@parcel/utils 2.8.3 → 2.9.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 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 === "\0") continue;
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(msg){
1860
- super(msg);
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 = (err)=>{
1868
- const terr = new TomlError(err.message);
1869
- terr.code = err.code;
1870
- terr.wrapped = err;
1871
- return terr;
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(cp) {
1940
- return cp >= CHAR_0 && cp <= CHAR_9;
1939
+ function isDigit(cp11) {
1940
+ return cp11 >= CHAR_0 && cp11 <= CHAR_9;
1941
1941
  }
1942
- function isHexit(cp) {
1943
- return cp >= CHAR_A && cp <= CHAR_F || cp >= CHAR_a && cp <= CHAR_f || cp >= CHAR_0 && cp <= CHAR_9;
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(cp) {
1946
- return cp === CHAR_1 || cp === CHAR_0;
1945
+ function isBit(cp11) {
1946
+ return cp11 === CHAR_1 || cp11 === CHAR_0;
1947
1947
  }
1948
- function isOctit(cp) {
1949
- return cp >= CHAR_0 && cp <= CHAR_7;
1948
+ function isOctit(cp11) {
1949
+ return cp11 >= CHAR_0 && cp11 <= CHAR_7;
1950
1950
  }
1951
- function isAlphaNumQuoteHyphen(cp) {
1952
- return cp >= CHAR_A && cp <= CHAR_Z || cp >= CHAR_a && cp <= CHAR_z || cp >= CHAR_0 && cp <= CHAR_9 || cp === CHAR_APOS || cp === CHAR_QUOT || cp === CHAR_LOWBAR || cp === CHAR_HYPHEN;
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(cp) {
1955
- return cp >= CHAR_A && cp <= CHAR_Z || cp >= CHAR_a && cp <= CHAR_z || cp >= CHAR_0 && cp <= CHAR_9 || cp === CHAR_LOWBAR || cp === CHAR_HYPHEN;
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(obj, key) {
1968
- if (hasOwnProperty.call(obj, key)) return true;
1969
- if (key === "__proto__") defineProperty(obj, "__proto__", descriptor);
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(obj) {
1981
- if (obj === null || typeof obj !== "object") return false;
1982
- return obj[_type] === INLINE_TABLE;
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(obj) {
1997
- if (obj === null || typeof obj !== "object") return false;
1998
- return obj[_type] === TABLE;
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(type) {
2002
+ function InlineList(type11) {
2003
2003
  return Object.defineProperties([], {
2004
2004
  [_type]: {
2005
2005
  value: INLINE_LIST
2006
2006
  },
2007
2007
  [_contentType]: {
2008
- value: type
2008
+ value: type11
2009
2009
  }
2010
2010
  });
2011
2011
  }
2012
- function isInlineList(obj) {
2013
- if (obj === null || typeof obj !== "object") return false;
2014
- return obj[_type] === INLINE_LIST;
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(obj) {
2025
- if (obj === null || typeof obj !== "object") return false;
2026
- return obj[_type] === LIST;
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(value){
2037
+ constructor(value11){
2038
2038
  try {
2039
- this.value = $parcel$global.BigInt.asIntN(64, value);
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(value) {
2062
- let num = Number(value);
2061
+ function Integer(value11) {
2062
+ let num11 = Number(value11);
2063
2063
  // -0 is a float thing, not an int thing
2064
- if (Object.is(num, -0)) num = 0;
2065
- /* istanbul ignore else */ if ($parcel$global.BigInt && !Number.isSafeInteger(num)) return new BoxedBigInt(value);
2066
- else /* istanbul ignore next */ return Object.defineProperties(new Number(num), {
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: ${value}]`
2076
+ value: ()=>`[Integer: ${value11}]`
2077
2077
  }
2078
2078
  });
2079
2079
  }
2080
- function isInteger(obj) {
2081
- if (obj === null || typeof obj !== "object") return false;
2082
- return obj[_type] === INTEGER;
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(value) {
2086
- /* istanbul ignore next */ return Object.defineProperties(new Number(value), {
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: ${value}]`
2091
+ value: ()=>`[Float: ${value11}]`
2092
2092
  }
2093
2093
  });
2094
2094
  }
2095
- function isFloat(obj) {
2096
- if (obj === null || typeof obj !== "object") return false;
2097
- return obj[_type] === FLOAT;
2095
+ function isFloat(obj11) {
2096
+ if (obj11 === null || typeof obj11 !== "object") return false;
2097
+ return obj11[_type] === FLOAT;
2098
2098
  }
2099
- function tomlType(value) {
2100
- const type = typeof value;
2101
- if (type === "object") {
2102
- /* istanbul ignore if */ if (value === null) return "null";
2103
- if (value instanceof Date) return "datetime";
2104
- /* istanbul ignore else */ if (_type in value) switch(value[_type]){
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 type;
2119
+ return type11;
2120
2120
  }
2121
- function makeParserClass(Parser) {
2122
- class TOMLParser extends Parser {
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 === Parser.END || this.char === CTRL_J || this.char === CTRL_M;
2131
+ return this.char === Parser11.END || this.char === CTRL_J || this.char === CTRL_M;
2132
2132
  }
2133
2133
  parseStart() {
2134
- if (this.char === Parser.END) return null;
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 === Parser.END || this.char === CTRL_J) return this.return();
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(kv) {
2153
- let target = this.ctx;
2154
- let finalKey = kv.key.pop();
2155
- for (let kw of kv.key){
2156
- if (hasKey(target, kw) && (!isTable(target[kw]) || target[kw][_declared])) throw this.error(new TomlError("Can't redefine existing key"));
2157
- target = target[kw] = target[kw] || Table();
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(target, finalKey)) throw this.error(new TomlError("Can't redefine existing key"));
2159
+ if (hasKey(target11, finalKey11)) throw this.error(new TomlError("Can't redefine existing key"));
2160
2160
  // unbox our numbers
2161
- if (isInteger(kv.value) || isFloat(kv.value)) target[finalKey] = kv.value.valueOf();
2162
- else target[finalKey] = kv.value;
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(key) {
2169
- if (this.state.resultTable) this.state.resultTable.push(key);
2168
+ recordAssignKeyword(key11) {
2169
+ if (this.state.resultTable) this.state.resultTable.push(key11);
2170
2170
  else this.state.resultTable = [
2171
- key
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(value) {
2190
+ recordAssignValue(value11) {
2191
2191
  return this.returnNow({
2192
2192
  key: this.state.resultTable,
2193
- value: value
2193
+ value: value11
2194
2194
  });
2195
2195
  }
2196
2196
  /* COMMENTS: #...eol */ parseComment() {
2197
2197
  do {
2198
- if (this.char === Parser.END || this.char === CTRL_J) return this.return();
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(keyword) {
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, keyword) && (!isTable(this.ctx[keyword]) || this.ctx[keyword][_declared])) throw this.error(new TomlError("Can't redefine existing key"));
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[keyword] = this.ctx[keyword] || Table();
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, keyword)) this.ctx = this.ctx[keyword] = Table();
2224
- else if (isTable(this.ctx[keyword])) this.ctx = this.ctx[keyword];
2225
- else if (isList(this.ctx[keyword])) this.ctx = this.ctx[keyword][this.ctx[keyword].length - 1];
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(keyword) {
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, keyword)) this.ctx[keyword] = List();
2242
- if (isInlineList(this.ctx[keyword])) throw this.error(new TomlError("Can't extend an inline array"));
2243
- else if (isList(this.ctx[keyword])) {
2244
- const next = Table();
2245
- this.ctx[keyword].push(next);
2246
- this.ctx = next;
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, keyword)) this.ctx = this.ctx[keyword] = Table();
2251
- else if (isInlineList(this.ctx[keyword])) throw this.error(new TomlError("Can't extend an inline array"));
2252
- else if (isInlineTable(this.ctx[keyword])) throw this.error(new TomlError("Can't extend an inline table"));
2253
- else if (isList(this.ctx[keyword])) this.ctx = this.ctx[keyword][this.ctx[keyword].length - 1];
2254
- else if (isTable(this.ctx[keyword])) this.ctx = this.ctx[keyword];
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(keyword) {
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 === Parser.END) throw this.error(new TomlError("Key without value"));
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(value) {
2277
- return this.returnNow(value);
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 === Parser.END) throw this.error(new TomlError("Key ended without value"));
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 === Parser.END) throw this.error(new TomlError("Unterminated multi-line string"));
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(replacement) {
2367
- this.state.buf += replacement;
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 === Parser.END) throw this.error(new TomlError("Unterminated multi-line string"));
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 displayCode = "\\u00";
2390
- if (this.char < 16) displayCode += "0";
2391
- displayCode += this.char.toString(16);
2392
- return this.error(new TomlError(`Control characters (codes < 0x1f and 0x7f) are not allowed in strings, use ${displayCode} instead`));
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(replacement) {
2395
- this.state.buf += replacement;
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(char) {
2433
+ parseUnicodeReturn(char11) {
2434
2434
  try {
2435
- const codePoint = parseInt(char, 16);
2436
- if (codePoint >= SURROGATE_FIRST && codePoint <= SURROGATE_LAST) throw this.error(new TomlError("Invalid unicode, character in range 0xD800 - 0xDFFF is reserved"));
2437
- return this.returnNow(String.fromCodePoint(codePoint));
2438
- } catch (err) {
2439
- throw this.error(TomlError.wrap(err));
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 result = Integer(this.state.buf);
2491
- /* istanbul ignore if */ if (result.isNaN()) throw this.error(new TomlError("Invalid number"));
2492
- else return this.returnNow(result);
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 result = Integer(this.state.buf);
2571
- /* istanbul ignore if */ if (result.isNaN()) throw this.error(new TomlError("Invalid number"));
2572
- else return this.returnNow(result);
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 result = Integer(this.state.buf);
2580
- /* istanbul ignore if */ if (result.isNaN()) throw this.error(new TomlError("Invalid number"));
2581
- else return this.returnNow(result);
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 result = Integer(this.state.buf);
2589
- /* istanbul ignore if */ if (result.isNaN()) throw this.error(new TomlError("Invalid number"));
2590
- else return this.returnNow(result);
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 === Parser.END) throw this.error(new TomlError("Unterminated inline array"));
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(value) {
2784
+ recordInlineListValue(value11) {
2785
2785
  if (this.state.resultArr) {
2786
- const listType = this.state.resultArr[_contentType];
2787
- const valueType = tomlType(value);
2788
- if (listType !== valueType) throw this.error(new TomlError(`Inline lists must be a single type, not a mix of ${listType} and ${valueType}`));
2789
- } else this.state.resultArr = InlineList(tomlType(value));
2790
- if (isFloat(value) || isInteger(value)) // unbox now that we've verified they're ok
2791
- this.state.resultArr.push(value.valueOf());
2792
- else this.state.resultArr.push(value);
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 === Parser.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) throw this.error(new TomlError("Unterminated inline array"));
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(kv) {
2812
- let target = this.state.resultTable;
2813
- let finalKey = kv.key.pop();
2814
- for (let kw of kv.key){
2815
- if (hasKey(target, kw) && (!isTable(target[kw]) || target[kw][_declared])) throw this.error(new TomlError("Can't redefine existing key"));
2816
- target = target[kw] = target[kw] || Table();
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(target, finalKey)) throw this.error(new TomlError("Can't redefine existing key"));
2819
- if (isInteger(kv.value) || isFloat(kv.value)) target[finalKey] = kv.value.valueOf();
2820
- else target[finalKey] = kv.value;
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 === Parser.END || this.char === CHAR_NUM || this.char === CTRL_J || this.char === CTRL_M) throw this.error(new TomlError("Unterminated inline array"));
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 TOMLParser;
2831
+ return TOMLParser11;
2832
2832
  }
2833
2833
 
2834
2834
  });
@@ -3440,12 +3440,14 @@ $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);
3446
3447
  $parcel$export(module.exports, "getProgressMessage", () => $01f892dcf45b57a7$export$d28945a2f2ba5e30);
3447
3448
  $parcel$export(module.exports, "isGlob", () => $e8d0e504a4244d84$export$f3a2344a73dbdd42);
3448
3449
  $parcel$export(module.exports, "isGlobMatch", () => $e8d0e504a4244d84$export$16e6d319a883f04e);
3450
+ $parcel$export(module.exports, "globMatch", () => $e8d0e504a4244d84$export$73b12c6cc27aa6c0);
3449
3451
  $parcel$export(module.exports, "globSync", () => $e8d0e504a4244d84$export$42275ba87174c828);
3450
3452
  $parcel$export(module.exports, "glob", () => $e8d0e504a4244d84$export$442f1a04865e4790);
3451
3453
  $parcel$export(module.exports, "globToRegex", () => $e8d0e504a4244d84$export$c0436a5422df81e4);
@@ -3475,6 +3477,8 @@ $parcel$export(module.exports, "matchSourceMappingURL", () => $46fc74961fdcfe31$
3475
3477
  $parcel$export(module.exports, "loadSourceMapUrl", () => $46fc74961fdcfe31$export$527a92fa675f5e93);
3476
3478
  $parcel$export(module.exports, "loadSourceMap", () => $46fc74961fdcfe31$export$c500fecaca54de65);
3477
3479
  $parcel$export(module.exports, "remapSourceLocation", () => $46fc74961fdcfe31$export$2fed780245c466c1);
3480
+ $parcel$export(module.exports, "BitSet", () => $2c32463ab90dab73$export$33dc8f3f7b9e35df);
3481
+ $parcel$export(module.exports, "stripAnsi", () => (/*@__PURE__*/$parcel$interopDefault($f709bcec854d2334$exports)));
3478
3482
  function $fddc9169ba2fd655$export$2e2bcd8739ae039(string, startIndex = 0) {
3479
3483
  let lines = 1;
3480
3484
  for(let i = startIndex; i < string.length; i++)if (string.charAt(i) === "\n") lines++;
@@ -14669,7 +14673,7 @@ var $564ac6480d83471d$var$pkcs1 = $564ac6480d83471d$exports = $iGlOy.pkcs1 = $iG
14669
14673
  var lHash = md.digest();
14670
14674
  var PS = "";
14671
14675
  var PS_length = maxLength - message.length;
14672
- for(var i = 0; i < PS_length; i++)PS += "\0";
14676
+ for(var i = 0; i < PS_length; i++)PS += "\x00";
14673
14677
  var DB = lHash.getBytes() + PS + "\x01" + message;
14674
14678
  if (!seed) seed = $iGlOy.random.getBytes(md.digestLength);
14675
14679
  else if (seed.length !== md.digestLength) {
@@ -14683,7 +14687,7 @@ var $564ac6480d83471d$var$pkcs1 = $564ac6480d83471d$exports = $iGlOy.pkcs1 = $iG
14683
14687
  var seedMask = $564ac6480d83471d$var$rsa_mgf1(maskedDB, md.digestLength, mgf1Md);
14684
14688
  var maskedSeed = $iGlOy.util.xorBytes(seed, seedMask, seed.length);
14685
14689
  // return encoded message
14686
- return "\0" + maskedSeed + maskedDB;
14690
+ return "\x00" + maskedSeed + maskedDB;
14687
14691
  };
14688
14692
  /**
14689
14693
  * Decode the given RSAES-OAEP encoded message (EM) using key, with optional
@@ -14742,7 +14746,7 @@ var $564ac6480d83471d$var$pkcs1 = $564ac6480d83471d$exports = $iGlOy.pkcs1 = $iG
14742
14746
  var db = $iGlOy.util.xorBytes(maskedDB, dbMask, maskedDB.length);
14743
14747
  var lHashPrime = db.substring(0, md.digestLength);
14744
14748
  // constant time check that all values match what is expected
14745
- var error = y !== "\0";
14749
+ var error = y !== "\x00";
14746
14750
  // constant time check lHash vs lHashPrime
14747
14751
  for(var i = 0; i < md.digestLength; ++i)error |= lHash.charAt(i) !== lHashPrime.charAt(i);
14748
14752
  // "constant time" find the 0x1 byte separating the padding (zeros) from the
@@ -26649,8 +26653,8 @@ var $33c8fc1a702f0359$var$_states = null;
26649
26653
  (lo >>> 29 | hi << 3) ^ // ROTR 61/(swap + ROTR 29)
26650
26654
  hi >>> 6) >>> 0; // SHR 6
26651
26655
  // low bits
26652
- t1_lo = ((hi << 13 | lo >>> 19) ^ (// ROTR 19
26653
- lo << 3 | hi >>> 29) ^ // ROTR 61/(swap + ROTR 29)
26656
+ t1_lo = ((hi << 13 | lo >>> 19) ^ // ROTR 19
26657
+ (lo << 3 | hi >>> 29) ^ // ROTR 61/(swap + ROTR 29)
26654
26658
  (hi << 26 | lo >>> 6)) >>> 0; // SHR 6
26655
26659
  // for word 15 words ago: ROTR 1(x) ^ ROTR 8(x) ^ SHR 7(x)
26656
26660
  w15 = w[i - 15];
@@ -26662,8 +26666,8 @@ var $33c8fc1a702f0359$var$_states = null;
26662
26666
  hi >>> 7) >>> 0; // SHR 7
26663
26667
  // low bits
26664
26668
  t2_lo = ((hi << 31 | lo >>> 1) ^ // ROTR 1
26665
- (hi << 24 | lo >>> 8) ^ (// ROTR 8
26666
- hi << 25 | lo >>> 7)) >>> 0; // SHR 7
26669
+ (hi << 24 | lo >>> 8) ^ // ROTR 8
26670
+ (hi << 25 | lo >>> 7)) >>> 0; // SHR 7
26667
26671
  // sum(t1, word 7 ago, t2, word 16 ago) modulo 2^64 (carry lo overflow)
26668
26672
  w7 = w[i - 7];
26669
26673
  w16 = w[i - 16];
@@ -26691,22 +26695,22 @@ var $33c8fc1a702f0359$var$_states = null;
26691
26695
  // round function
26692
26696
  for(i = 0; i < 80; ++i){
26693
26697
  // Sum1(e) = ROTR 14(e) ^ ROTR 18(e) ^ ROTR 41(e)
26694
- s1_hi = ((e_hi >>> 14 | e_lo << 18) ^ (// ROTR 14
26695
- e_hi >>> 18 | e_lo << 14) ^ (// ROTR 18
26696
- e_lo >>> 9 | e_hi << 23)) >>> 0; // ROTR 41/(swap + ROTR 9)
26698
+ s1_hi = ((e_hi >>> 14 | e_lo << 18) ^ // ROTR 14
26699
+ (e_hi >>> 18 | e_lo << 14) ^ // ROTR 18
26700
+ (e_lo >>> 9 | e_hi << 23)) >>> 0; // ROTR 41/(swap + ROTR 9)
26697
26701
  s1_lo = ((e_hi << 18 | e_lo >>> 14) ^ // ROTR 14
26698
- (e_hi << 14 | e_lo >>> 18) ^ (// ROTR 18
26699
- e_lo << 23 | e_hi >>> 9)) >>> 0; // ROTR 41/(swap + ROTR 9)
26702
+ (e_hi << 14 | e_lo >>> 18) ^ // ROTR 18
26703
+ (e_lo << 23 | e_hi >>> 9)) >>> 0; // ROTR 41/(swap + ROTR 9)
26700
26704
  // Ch(e, f, g) (optimized the same way as SHA-1)
26701
26705
  ch_hi = (g_hi ^ e_hi & (f_hi ^ g_hi)) >>> 0;
26702
26706
  ch_lo = (g_lo ^ e_lo & (f_lo ^ g_lo)) >>> 0;
26703
26707
  // Sum0(a) = ROTR 28(a) ^ ROTR 34(a) ^ ROTR 39(a)
26704
- s0_hi = ((a_hi >>> 28 | a_lo << 4) ^ (// ROTR 28
26705
- a_lo >>> 2 | a_hi << 30) ^ // ROTR 34/(swap + ROTR 2)
26708
+ s0_hi = ((a_hi >>> 28 | a_lo << 4) ^ // ROTR 28
26709
+ (a_lo >>> 2 | a_hi << 30) ^ // ROTR 34/(swap + ROTR 2)
26706
26710
  (a_lo >>> 7 | a_hi << 25)) >>> 0; // ROTR 39/(swap + ROTR 7)
26707
- s0_lo = ((a_hi << 4 | a_lo >>> 28) ^ (// ROTR 28
26708
- a_lo << 30 | a_hi >>> 2) ^ (// ROTR 34/(swap + ROTR 2)
26709
- a_lo << 25 | a_hi >>> 7)) >>> 0; // ROTR 39/(swap + ROTR 7)
26711
+ s0_lo = ((a_hi << 4 | a_lo >>> 28) ^ // ROTR 28
26712
+ (a_lo << 30 | a_hi >>> 2) ^ // ROTR 34/(swap + ROTR 2)
26713
+ (a_lo << 25 | a_hi >>> 7)) >>> 0; // ROTR 39/(swap + ROTR 7)
26710
26714
  // Maj(a, b, c) (optimized the same way as SHA-1)
26711
26715
  maj_hi = (a_hi & b_hi | c_hi & (a_hi ^ b_hi)) >>> 0;
26712
26716
  maj_lo = (a_lo & b_lo | c_lo & (a_lo ^ b_lo)) >>> 0;
@@ -29326,8 +29330,8 @@ var $85c6486b1bf8bee8$var$ssh = $85c6486b1bf8bee8$exports = $iGlOy.ssh = $iGlOy.
29326
29330
  padding.truncate(padding.length() - encLen + privbuffer.length());
29327
29331
  privbuffer.putBuffer(padding);
29328
29332
  var aeskey = $iGlOy.util.createBuffer();
29329
- aeskey.putBuffer($85c6486b1bf8bee8$var$_sha1("\0\0\0\0", passphrase));
29330
- aeskey.putBuffer($85c6486b1bf8bee8$var$_sha1("\0\0\0\x01", passphrase));
29333
+ aeskey.putBuffer($85c6486b1bf8bee8$var$_sha1("\x00\x00\x00\x00", passphrase));
29334
+ aeskey.putBuffer($85c6486b1bf8bee8$var$_sha1("\x00\x00\x00\x01", passphrase));
29331
29335
  // encrypt some bytes using CBC mode
29332
29336
  // key is 40 bytes, so truncate *by* 8 bytes
29333
29337
  var cipher = $iGlOy.aes.createEncryptionCipher(aeskey.truncate(8), "CBC");
@@ -29740,48 +29744,65 @@ $5aee5a8e09e874bf$exports = function isGlob(str, options) {
29740
29744
  };
29741
29745
 
29742
29746
 
29743
- var $b57e78be4f7a2622$exports = {};
29747
+ var $21b1b538e1d1be85$exports = {};
29744
29748
  "use strict";
29745
- var $d436392a45e5b9b4$exports = {};
29749
+ var $94ffeb6ed5329bdb$exports = {};
29746
29750
  "use strict";
29747
- Object.defineProperty($d436392a45e5b9b4$exports, "__esModule", {
29751
+ Object.defineProperty($94ffeb6ed5329bdb$exports, "__esModule", {
29748
29752
  value: true
29749
29753
  });
29750
- var $1b5b082adfcf5f99$exports = {};
29754
+ $94ffeb6ed5329bdb$exports.convertPatternGroupToTask = $94ffeb6ed5329bdb$exports.convertPatternGroupsToTasks = $94ffeb6ed5329bdb$exports.groupPatternsByBaseDirectory = $94ffeb6ed5329bdb$exports.getNegativePatternsAsPositive = $94ffeb6ed5329bdb$exports.getPositivePatterns = $94ffeb6ed5329bdb$exports.convertPatternsToTasks = $94ffeb6ed5329bdb$exports.generate = void 0;
29755
+ var $cf522a9d05043495$exports = {};
29751
29756
  "use strict";
29752
- Object.defineProperty($1b5b082adfcf5f99$exports, "__esModule", {
29757
+ Object.defineProperty($cf522a9d05043495$exports, "__esModule", {
29753
29758
  value: true
29754
29759
  });
29755
- var $23d0e316ca6ff843$exports = {};
29760
+ $cf522a9d05043495$exports.string = $cf522a9d05043495$exports.stream = $cf522a9d05043495$exports.pattern = $cf522a9d05043495$exports.path = $cf522a9d05043495$exports.fs = $cf522a9d05043495$exports.errno = $cf522a9d05043495$exports.array = void 0;
29761
+ var $49e39d93ff5caf19$exports = {};
29756
29762
  "use strict";
29757
- Object.defineProperty($23d0e316ca6ff843$exports, "__esModule", {
29763
+ Object.defineProperty($49e39d93ff5caf19$exports, "__esModule", {
29758
29764
  value: true
29759
29765
  });
29760
- function $23d0e316ca6ff843$var$flatten(items) {
29766
+ $49e39d93ff5caf19$exports.splitWhen = $49e39d93ff5caf19$exports.flatten = void 0;
29767
+ function $49e39d93ff5caf19$var$flatten(items) {
29761
29768
  return items.reduce((collection, item)=>[].concat(collection, item), []);
29762
29769
  }
29763
- $23d0e316ca6ff843$exports.flatten = $23d0e316ca6ff843$var$flatten;
29770
+ $49e39d93ff5caf19$exports.flatten = $49e39d93ff5caf19$var$flatten;
29771
+ function $49e39d93ff5caf19$var$splitWhen(items, predicate) {
29772
+ const result = [
29773
+ []
29774
+ ];
29775
+ let groupIndex = 0;
29776
+ for (const item of items)if (predicate(item)) {
29777
+ groupIndex++;
29778
+ result[groupIndex] = [];
29779
+ } else result[groupIndex].push(item);
29780
+ return result;
29781
+ }
29782
+ $49e39d93ff5caf19$exports.splitWhen = $49e39d93ff5caf19$var$splitWhen;
29764
29783
 
29765
29784
 
29766
- $1b5b082adfcf5f99$exports.array = $23d0e316ca6ff843$exports;
29767
- var $6eea3630cce07c06$exports = {};
29785
+ $cf522a9d05043495$exports.array = $49e39d93ff5caf19$exports;
29786
+ var $a239a022330d4056$exports = {};
29768
29787
  "use strict";
29769
- Object.defineProperty($6eea3630cce07c06$exports, "__esModule", {
29788
+ Object.defineProperty($a239a022330d4056$exports, "__esModule", {
29770
29789
  value: true
29771
29790
  });
29772
- function $6eea3630cce07c06$var$isEnoentCodeError(error) {
29791
+ $a239a022330d4056$exports.isEnoentCodeError = void 0;
29792
+ function $a239a022330d4056$var$isEnoentCodeError(error) {
29773
29793
  return error.code === "ENOENT";
29774
29794
  }
29775
- $6eea3630cce07c06$exports.isEnoentCodeError = $6eea3630cce07c06$var$isEnoentCodeError;
29795
+ $a239a022330d4056$exports.isEnoentCodeError = $a239a022330d4056$var$isEnoentCodeError;
29776
29796
 
29777
29797
 
29778
- $1b5b082adfcf5f99$exports.errno = $6eea3630cce07c06$exports;
29779
- var $e88efb70f4f04277$exports = {};
29798
+ $cf522a9d05043495$exports.errno = $a239a022330d4056$exports;
29799
+ var $41689d437fc25774$exports = {};
29780
29800
  "use strict";
29781
- Object.defineProperty($e88efb70f4f04277$exports, "__esModule", {
29801
+ Object.defineProperty($41689d437fc25774$exports, "__esModule", {
29782
29802
  value: true
29783
29803
  });
29784
- class $e88efb70f4f04277$var$DirentFromStats {
29804
+ $41689d437fc25774$exports.createDirentFromStats = void 0;
29805
+ class $41689d437fc25774$var$DirentFromStats {
29785
29806
  constructor(name, stats){
29786
29807
  this.name = name;
29787
29808
  this.isBlockDevice = stats.isBlockDevice.bind(stats);
@@ -29793,42 +29814,55 @@ class $e88efb70f4f04277$var$DirentFromStats {
29793
29814
  this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
29794
29815
  }
29795
29816
  }
29796
- function $e88efb70f4f04277$var$createDirentFromStats(name, stats) {
29797
- return new $e88efb70f4f04277$var$DirentFromStats(name, stats);
29817
+ function $41689d437fc25774$var$createDirentFromStats(name, stats) {
29818
+ return new $41689d437fc25774$var$DirentFromStats(name, stats);
29798
29819
  }
29799
- $e88efb70f4f04277$exports.createDirentFromStats = $e88efb70f4f04277$var$createDirentFromStats;
29820
+ $41689d437fc25774$exports.createDirentFromStats = $41689d437fc25774$var$createDirentFromStats;
29800
29821
 
29801
29822
 
29802
- $1b5b082adfcf5f99$exports.fs = $e88efb70f4f04277$exports;
29803
- var $01c89d3b8f966493$exports = {};
29823
+ $cf522a9d05043495$exports.fs = $41689d437fc25774$exports;
29824
+ var $e6c7a6804c64fc92$exports = {};
29804
29825
  "use strict";
29805
- Object.defineProperty($01c89d3b8f966493$exports, "__esModule", {
29826
+ Object.defineProperty($e6c7a6804c64fc92$exports, "__esModule", {
29806
29827
  value: true
29807
29828
  });
29829
+ $e6c7a6804c64fc92$exports.removeLeadingDotSegment = $e6c7a6804c64fc92$exports.escape = $e6c7a6804c64fc92$exports.makeAbsolute = $e6c7a6804c64fc92$exports.unixify = void 0;
29808
29830
 
29809
- const $01c89d3b8f966493$var$UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([*?|(){}[\]]|^!|[@+!](?=\())/g;
29831
+ const $e6c7a6804c64fc92$var$LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2; // ./ or .\\
29832
+ const $e6c7a6804c64fc92$var$UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\())/g;
29810
29833
  /**
29811
29834
  * Designed to work only with simple paths: `dir\\file`.
29812
- */ function $01c89d3b8f966493$var$unixify(filepath) {
29835
+ */ function $e6c7a6804c64fc92$var$unixify(filepath) {
29813
29836
  return filepath.replace(/\\/g, "/");
29814
29837
  }
29815
- $01c89d3b8f966493$exports.unixify = $01c89d3b8f966493$var$unixify;
29816
- function $01c89d3b8f966493$var$makeAbsolute(cwd, filepath) {
29838
+ $e6c7a6804c64fc92$exports.unixify = $e6c7a6804c64fc92$var$unixify;
29839
+ function $e6c7a6804c64fc92$var$makeAbsolute(cwd, filepath) {
29817
29840
  return $8C1kk$path.resolve(cwd, filepath);
29818
29841
  }
29819
- $01c89d3b8f966493$exports.makeAbsolute = $01c89d3b8f966493$var$makeAbsolute;
29820
- function $01c89d3b8f966493$var$escape(pattern) {
29821
- return pattern.replace($01c89d3b8f966493$var$UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
29842
+ $e6c7a6804c64fc92$exports.makeAbsolute = $e6c7a6804c64fc92$var$makeAbsolute;
29843
+ function $e6c7a6804c64fc92$var$escape(pattern) {
29844
+ return pattern.replace($e6c7a6804c64fc92$var$UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
29845
+ }
29846
+ $e6c7a6804c64fc92$exports.escape = $e6c7a6804c64fc92$var$escape;
29847
+ function $e6c7a6804c64fc92$var$removeLeadingDotSegment(entry) {
29848
+ // We do not use `startsWith` because this is 10x slower than current implementation for some cases.
29849
+ // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
29850
+ if (entry.charAt(0) === ".") {
29851
+ const secondCharactery = entry.charAt(1);
29852
+ if (secondCharactery === "/" || secondCharactery === "\\") return entry.slice($e6c7a6804c64fc92$var$LEADING_DOT_SEGMENT_CHARACTERS_COUNT);
29853
+ }
29854
+ return entry;
29822
29855
  }
29823
- $01c89d3b8f966493$exports.escape = $01c89d3b8f966493$var$escape;
29856
+ $e6c7a6804c64fc92$exports.removeLeadingDotSegment = $e6c7a6804c64fc92$var$removeLeadingDotSegment;
29824
29857
 
29825
29858
 
29826
- $1b5b082adfcf5f99$exports.path = $01c89d3b8f966493$exports;
29827
- var $e1fc146aea519a53$exports = {};
29859
+ $cf522a9d05043495$exports.path = $e6c7a6804c64fc92$exports;
29860
+ var $16c73921a8454263$exports = {};
29828
29861
  "use strict";
29829
- Object.defineProperty($e1fc146aea519a53$exports, "__esModule", {
29862
+ Object.defineProperty($16c73921a8454263$exports, "__esModule", {
29830
29863
  value: true
29831
29864
  });
29865
+ $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
29866
 
29833
29867
  var $99a21639ca3a03fc$exports = {};
29834
29868
  "use strict";
@@ -29865,7 +29899,7 @@ var $99a21639ca3a03fc$var$escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
29865
29899
  };
29866
29900
 
29867
29901
 
29868
- var $fec3b4fc54d3756a$exports = {};
29902
+ var $971e5d0cad67a09a$exports = {};
29869
29903
  "use strict";
29870
29904
 
29871
29905
  var $fec07f13db1e462a$exports = {};
@@ -30982,7 +31016,7 @@ $2af609aa204f1181$exports = (parcelRequire("4997P"));
30982
31016
 
30983
31017
 
30984
31018
  var $5MQDC = parcelRequire("5MQDC");
30985
- const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31019
+ const $971e5d0cad67a09a$var$isEmptyString = (val)=>val === "" || val === "./";
30986
31020
  /**
30987
31021
  * Returns an array of strings that match one or more glob patterns.
30988
31022
  *
@@ -30999,7 +31033,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
30999
31033
  * @return {Array} Returns an array of matches
31000
31034
  * @summary false
31001
31035
  * @api public
31002
- */ const $fec3b4fc54d3756a$var$micromatch = (list, patterns, options)=>{
31036
+ */ const $971e5d0cad67a09a$var$micromatch = (list, patterns, options)=>{
31003
31037
  patterns = [].concat(patterns);
31004
31038
  list = [].concat(list);
31005
31039
  let omit = new Set();
@@ -31042,7 +31076,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31042
31076
  };
31043
31077
  /**
31044
31078
  * Backwards compatibility
31045
- */ $fec3b4fc54d3756a$var$micromatch.match = $fec3b4fc54d3756a$var$micromatch;
31079
+ */ $971e5d0cad67a09a$var$micromatch.match = $971e5d0cad67a09a$var$micromatch;
31046
31080
  /**
31047
31081
  * Returns a matcher function from the given glob `pattern` and `options`.
31048
31082
  * The returned function takes a string to match as its only argument and returns
@@ -31060,7 +31094,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31060
31094
  * @param {Object} `options`
31061
31095
  * @return {Function} Returns a matcher function.
31062
31096
  * @api public
31063
- */ $fec3b4fc54d3756a$var$micromatch.matcher = (pattern, options)=>$2af609aa204f1181$exports(pattern, options);
31097
+ */ $971e5d0cad67a09a$var$micromatch.matcher = (pattern, options)=>$2af609aa204f1181$exports(pattern, options);
31064
31098
  /**
31065
31099
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
31066
31100
  *
@@ -31076,10 +31110,10 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31076
31110
  * @param {Object} `[options]` See available [options](#options).
31077
31111
  * @return {Boolean} Returns true if any patterns match `str`
31078
31112
  * @api public
31079
- */ $fec3b4fc54d3756a$var$micromatch.isMatch = (str, patterns, options)=>$2af609aa204f1181$exports(patterns, options)(str);
31113
+ */ $971e5d0cad67a09a$var$micromatch.isMatch = (str, patterns, options)=>$2af609aa204f1181$exports(patterns, options)(str);
31080
31114
  /**
31081
31115
  * Backwards compatibility
31082
- */ $fec3b4fc54d3756a$var$micromatch.any = $fec3b4fc54d3756a$var$micromatch.isMatch;
31116
+ */ $971e5d0cad67a09a$var$micromatch.any = $971e5d0cad67a09a$var$micromatch.isMatch;
31083
31117
  /**
31084
31118
  * Returns a list of strings that _**do not match any**_ of the given `patterns`.
31085
31119
  *
@@ -31095,7 +31129,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31095
31129
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
31096
31130
  * @return {Array} Returns an array of strings that **do not match** the given patterns.
31097
31131
  * @api public
31098
- */ $fec3b4fc54d3756a$var$micromatch.not = (list, patterns, options = {})=>{
31132
+ */ $971e5d0cad67a09a$var$micromatch.not = (list, patterns, options = {})=>{
31099
31133
  patterns = [].concat(patterns).map(String);
31100
31134
  let result = new Set();
31101
31135
  let items = [];
@@ -31103,7 +31137,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31103
31137
  if (options.onResult) options.onResult(state);
31104
31138
  items.push(state.output);
31105
31139
  };
31106
- let matches = $fec3b4fc54d3756a$var$micromatch(list, patterns, {
31140
+ let matches = $971e5d0cad67a09a$var$micromatch(list, patterns, {
31107
31141
  ...options,
31108
31142
  onResult: onResult
31109
31143
  });
@@ -31130,14 +31164,14 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31130
31164
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
31131
31165
  * @return {Boolean} Returns true if any of the patterns matches any part of `str`.
31132
31166
  * @api public
31133
- */ $fec3b4fc54d3756a$var$micromatch.contains = (str, pattern, options)=>{
31167
+ */ $971e5d0cad67a09a$var$micromatch.contains = (str, pattern, options)=>{
31134
31168
  if (typeof str !== "string") throw new TypeError(`Expected a string: "${$8C1kk$util.inspect(str)}"`);
31135
- if (Array.isArray(pattern)) return pattern.some((p)=>$fec3b4fc54d3756a$var$micromatch.contains(str, p, options));
31169
+ if (Array.isArray(pattern)) return pattern.some((p)=>$971e5d0cad67a09a$var$micromatch.contains(str, p, options));
31136
31170
  if (typeof pattern === "string") {
31137
- if ($fec3b4fc54d3756a$var$isEmptyString(str) || $fec3b4fc54d3756a$var$isEmptyString(pattern)) return false;
31171
+ if ($971e5d0cad67a09a$var$isEmptyString(str) || $971e5d0cad67a09a$var$isEmptyString(pattern)) return false;
31138
31172
  if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern)) return true;
31139
31173
  }
31140
- return $fec3b4fc54d3756a$var$micromatch.isMatch(str, pattern, {
31174
+ return $971e5d0cad67a09a$var$micromatch.isMatch(str, pattern, {
31141
31175
  ...options,
31142
31176
  contains: true
31143
31177
  });
@@ -31160,9 +31194,9 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31160
31194
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
31161
31195
  * @return {Object} Returns an object with only keys that match the given patterns.
31162
31196
  * @api public
31163
- */ $fec3b4fc54d3756a$var$micromatch.matchKeys = (obj, patterns, options)=>{
31197
+ */ $971e5d0cad67a09a$var$micromatch.matchKeys = (obj, patterns, options)=>{
31164
31198
  if (!$5MQDC.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
31165
- let keys = $fec3b4fc54d3756a$var$micromatch(Object.keys(obj), patterns, options);
31199
+ let keys = $971e5d0cad67a09a$var$micromatch(Object.keys(obj), patterns, options);
31166
31200
  let res = {};
31167
31201
  for (let key of keys)res[key] = obj[key];
31168
31202
  return res;
@@ -31184,7 +31218,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31184
31218
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
31185
31219
  * @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
31186
31220
  * @api public
31187
- */ $fec3b4fc54d3756a$var$micromatch.some = (list, patterns, options)=>{
31221
+ */ $971e5d0cad67a09a$var$micromatch.some = (list, patterns, options)=>{
31188
31222
  let items = [].concat(list);
31189
31223
  for (let pattern of [].concat(patterns)){
31190
31224
  let isMatch = $2af609aa204f1181$exports(String(pattern), options);
@@ -31214,7 +31248,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31214
31248
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
31215
31249
  * @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
31216
31250
  * @api public
31217
- */ $fec3b4fc54d3756a$var$micromatch.every = (list, patterns, options)=>{
31251
+ */ $971e5d0cad67a09a$var$micromatch.every = (list, patterns, options)=>{
31218
31252
  let items = [].concat(list);
31219
31253
  for (let pattern of [].concat(patterns)){
31220
31254
  let isMatch = $2af609aa204f1181$exports(String(pattern), options);
@@ -31247,7 +31281,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31247
31281
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
31248
31282
  * @return {Boolean} Returns true if any patterns match `str`
31249
31283
  * @api public
31250
- */ $fec3b4fc54d3756a$var$micromatch.all = (str, patterns, options)=>{
31284
+ */ $971e5d0cad67a09a$var$micromatch.all = (str, patterns, options)=>{
31251
31285
  if (typeof str !== "string") throw new TypeError(`Expected a string: "${$8C1kk$util.inspect(str)}"`);
31252
31286
  return [].concat(patterns).every((p)=>$2af609aa204f1181$exports(p, options)(str));
31253
31287
  };
@@ -31268,7 +31302,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31268
31302
  * @param {Object} `options` See available [options](#options) for changing how matches are performed
31269
31303
  * @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
31270
31304
  * @api public
31271
- */ $fec3b4fc54d3756a$var$micromatch.capture = (glob, input, options)=>{
31305
+ */ $971e5d0cad67a09a$var$micromatch.capture = (glob, input, options)=>{
31272
31306
  let posix = $5MQDC.isWindows(options);
31273
31307
  let regex = $2af609aa204f1181$exports.makeRe(String(glob), {
31274
31308
  ...options,
@@ -31291,7 +31325,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31291
31325
  * @param {Object} `options`
31292
31326
  * @return {RegExp} Returns a regex created from the given pattern.
31293
31327
  * @api public
31294
- */ $fec3b4fc54d3756a$var$micromatch.makeRe = (...args)=>$2af609aa204f1181$exports.makeRe(...args);
31328
+ */ $971e5d0cad67a09a$var$micromatch.makeRe = (...args)=>$2af609aa204f1181$exports.makeRe(...args);
31295
31329
  /**
31296
31330
  * Scan a glob pattern to separate the pattern into segments. Used
31297
31331
  * by the [split](#split) method.
@@ -31304,7 +31338,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31304
31338
  * @param {Object} `options`
31305
31339
  * @return {Object} Returns an object with
31306
31340
  * @api public
31307
- */ $fec3b4fc54d3756a$var$micromatch.scan = (...args)=>$2af609aa204f1181$exports.scan(...args);
31341
+ */ $971e5d0cad67a09a$var$micromatch.scan = (...args)=>$2af609aa204f1181$exports.scan(...args);
31308
31342
  /**
31309
31343
  * Parse a glob pattern to create the source string for a regular
31310
31344
  * expression.
@@ -31317,7 +31351,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31317
31351
  * @param {Object} `options`
31318
31352
  * @return {Object} Returns an object with useful properties and output to be used as regex source string.
31319
31353
  * @api public
31320
- */ $fec3b4fc54d3756a$var$micromatch.parse = (patterns, options)=>{
31354
+ */ $971e5d0cad67a09a$var$micromatch.parse = (patterns, options)=>{
31321
31355
  let res = [];
31322
31356
  for (let pattern of [].concat(patterns || []))for (let str of $fec07f13db1e462a$exports(String(pattern), options))res.push($2af609aa204f1181$exports.parse(str, options));
31323
31357
  return res;
@@ -31337,7 +31371,7 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31337
31371
  * @param {Object} `options` Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options.
31338
31372
  * @return {Array}
31339
31373
  * @api public
31340
- */ $fec3b4fc54d3756a$var$micromatch.braces = (pattern, options)=>{
31374
+ */ $971e5d0cad67a09a$var$micromatch.braces = (pattern, options)=>{
31341
31375
  if (typeof pattern !== "string") throw new TypeError("Expected a string");
31342
31376
  if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) return [
31343
31377
  pattern
@@ -31346,123 +31380,174 @@ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
31346
31380
  };
31347
31381
  /**
31348
31382
  * Expand braces
31349
- */ $fec3b4fc54d3756a$var$micromatch.braceExpand = (pattern, options)=>{
31383
+ */ $971e5d0cad67a09a$var$micromatch.braceExpand = (pattern, options)=>{
31350
31384
  if (typeof pattern !== "string") throw new TypeError("Expected a string");
31351
- return $fec3b4fc54d3756a$var$micromatch.braces(pattern, {
31385
+ return $971e5d0cad67a09a$var$micromatch.braces(pattern, {
31352
31386
  ...options,
31353
31387
  expand: true
31354
31388
  });
31355
31389
  };
31356
31390
  /**
31357
31391
  * Expose micromatch
31358
- */ $fec3b4fc54d3756a$exports = $fec3b4fc54d3756a$var$micromatch;
31392
+ */ $971e5d0cad67a09a$exports = $971e5d0cad67a09a$var$micromatch;
31359
31393
 
31360
31394
 
31361
- const $e1fc146aea519a53$var$GLOBSTAR = "**";
31362
- const $e1fc146aea519a53$var$ESCAPE_SYMBOL = "\\";
31363
- const $e1fc146aea519a53$var$COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/;
31364
- const $e1fc146aea519a53$var$REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[.*]/;
31365
- const $e1fc146aea519a53$var$REGEX_GROUP_SYMBOLS_RE = /(?:^|[^@!*?+])\(.*\|.*\)/;
31366
- const $e1fc146aea519a53$var$GLOB_EXTENSION_SYMBOLS_RE = /[@!*?+]\(.*\)/;
31367
- const $e1fc146aea519a53$var$BRACE_EXPANSIONS_SYMBOLS_RE = /{.*(?:,|\.\.).*}/;
31368
- function $e1fc146aea519a53$var$isStaticPattern(pattern, options = {}) {
31369
- return !$e1fc146aea519a53$var$isDynamicPattern(pattern, options);
31395
+ const $16c73921a8454263$var$GLOBSTAR = "**";
31396
+ const $16c73921a8454263$var$ESCAPE_SYMBOL = "\\";
31397
+ const $16c73921a8454263$var$COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/;
31398
+ const $16c73921a8454263$var$REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[[^[]*]/;
31399
+ const $16c73921a8454263$var$REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;
31400
+ const $16c73921a8454263$var$GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/;
31401
+ const $16c73921a8454263$var$BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./;
31402
+ function $16c73921a8454263$var$isStaticPattern(pattern, options = {}) {
31403
+ return !$16c73921a8454263$var$isDynamicPattern(pattern, options);
31370
31404
  }
31371
- $e1fc146aea519a53$exports.isStaticPattern = $e1fc146aea519a53$var$isStaticPattern;
31372
- function $e1fc146aea519a53$var$isDynamicPattern(pattern, options = {}) {
31405
+ $16c73921a8454263$exports.isStaticPattern = $16c73921a8454263$var$isStaticPattern;
31406
+ function $16c73921a8454263$var$isDynamicPattern(pattern, options = {}) {
31407
+ /**
31408
+ * A special case with an empty string is necessary for matching patterns that start with a forward slash.
31409
+ * An empty string cannot be a dynamic pattern.
31410
+ * For example, the pattern `/lib/*` will be spread into parts: '', 'lib', '*'.
31411
+ */ if (pattern === "") return false;
31373
31412
  /**
31374
31413
  * When the `caseSensitiveMatch` option is disabled, all patterns must be marked as dynamic, because we cannot check
31375
31414
  * filepath directly (without read directory).
31376
- */ if (options.caseSensitiveMatch === false || pattern.includes($e1fc146aea519a53$var$ESCAPE_SYMBOL)) return true;
31377
- if ($e1fc146aea519a53$var$COMMON_GLOB_SYMBOLS_RE.test(pattern) || $e1fc146aea519a53$var$REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || $e1fc146aea519a53$var$REGEX_GROUP_SYMBOLS_RE.test(pattern)) return true;
31378
- if (options.extglob !== false && $e1fc146aea519a53$var$GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) return true;
31379
- if (options.braceExpansion !== false && $e1fc146aea519a53$var$BRACE_EXPANSIONS_SYMBOLS_RE.test(pattern)) return true;
31415
+ */ if (options.caseSensitiveMatch === false || pattern.includes($16c73921a8454263$var$ESCAPE_SYMBOL)) return true;
31416
+ 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;
31417
+ if (options.extglob !== false && $16c73921a8454263$var$GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) return true;
31418
+ if (options.braceExpansion !== false && $16c73921a8454263$var$hasBraceExpansion(pattern)) return true;
31380
31419
  return false;
31381
31420
  }
31382
- $e1fc146aea519a53$exports.isDynamicPattern = $e1fc146aea519a53$var$isDynamicPattern;
31383
- function $e1fc146aea519a53$var$convertToPositivePattern(pattern) {
31384
- return $e1fc146aea519a53$var$isNegativePattern(pattern) ? pattern.slice(1) : pattern;
31421
+ $16c73921a8454263$exports.isDynamicPattern = $16c73921a8454263$var$isDynamicPattern;
31422
+ function $16c73921a8454263$var$hasBraceExpansion(pattern) {
31423
+ const openingBraceIndex = pattern.indexOf("{");
31424
+ if (openingBraceIndex === -1) return false;
31425
+ const closingBraceIndex = pattern.indexOf("}", openingBraceIndex + 1);
31426
+ if (closingBraceIndex === -1) return false;
31427
+ const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex);
31428
+ return $16c73921a8454263$var$BRACE_EXPANSION_SEPARATORS_RE.test(braceContent);
31429
+ }
31430
+ function $16c73921a8454263$var$convertToPositivePattern(pattern) {
31431
+ return $16c73921a8454263$var$isNegativePattern(pattern) ? pattern.slice(1) : pattern;
31385
31432
  }
31386
- $e1fc146aea519a53$exports.convertToPositivePattern = $e1fc146aea519a53$var$convertToPositivePattern;
31387
- function $e1fc146aea519a53$var$convertToNegativePattern(pattern) {
31433
+ $16c73921a8454263$exports.convertToPositivePattern = $16c73921a8454263$var$convertToPositivePattern;
31434
+ function $16c73921a8454263$var$convertToNegativePattern(pattern) {
31388
31435
  return "!" + pattern;
31389
31436
  }
31390
- $e1fc146aea519a53$exports.convertToNegativePattern = $e1fc146aea519a53$var$convertToNegativePattern;
31391
- function $e1fc146aea519a53$var$isNegativePattern(pattern) {
31437
+ $16c73921a8454263$exports.convertToNegativePattern = $16c73921a8454263$var$convertToNegativePattern;
31438
+ function $16c73921a8454263$var$isNegativePattern(pattern) {
31392
31439
  return pattern.startsWith("!") && pattern[1] !== "(";
31393
31440
  }
31394
- $e1fc146aea519a53$exports.isNegativePattern = $e1fc146aea519a53$var$isNegativePattern;
31395
- function $e1fc146aea519a53$var$isPositivePattern(pattern) {
31396
- return !$e1fc146aea519a53$var$isNegativePattern(pattern);
31441
+ $16c73921a8454263$exports.isNegativePattern = $16c73921a8454263$var$isNegativePattern;
31442
+ function $16c73921a8454263$var$isPositivePattern(pattern) {
31443
+ return !$16c73921a8454263$var$isNegativePattern(pattern);
31397
31444
  }
31398
- $e1fc146aea519a53$exports.isPositivePattern = $e1fc146aea519a53$var$isPositivePattern;
31399
- function $e1fc146aea519a53$var$getNegativePatterns(patterns) {
31400
- return patterns.filter($e1fc146aea519a53$var$isNegativePattern);
31445
+ $16c73921a8454263$exports.isPositivePattern = $16c73921a8454263$var$isPositivePattern;
31446
+ function $16c73921a8454263$var$getNegativePatterns(patterns) {
31447
+ return patterns.filter($16c73921a8454263$var$isNegativePattern);
31401
31448
  }
31402
- $e1fc146aea519a53$exports.getNegativePatterns = $e1fc146aea519a53$var$getNegativePatterns;
31403
- function $e1fc146aea519a53$var$getPositivePatterns(patterns) {
31404
- return patterns.filter($e1fc146aea519a53$var$isPositivePattern);
31449
+ $16c73921a8454263$exports.getNegativePatterns = $16c73921a8454263$var$getNegativePatterns;
31450
+ function $16c73921a8454263$var$getPositivePatterns(patterns) {
31451
+ return patterns.filter($16c73921a8454263$var$isPositivePattern);
31405
31452
  }
31406
- $e1fc146aea519a53$exports.getPositivePatterns = $e1fc146aea519a53$var$getPositivePatterns;
31407
- function $e1fc146aea519a53$var$getBaseDirectory(pattern) {
31453
+ $16c73921a8454263$exports.getPositivePatterns = $16c73921a8454263$var$getPositivePatterns;
31454
+ /**
31455
+ * Returns patterns that can be applied inside the current directory.
31456
+ *
31457
+ * @example
31458
+ * // ['./*', '*', 'a/*']
31459
+ * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
31460
+ */ function $16c73921a8454263$var$getPatternsInsideCurrentDirectory(patterns) {
31461
+ return patterns.filter((pattern)=>!$16c73921a8454263$var$isPatternRelatedToParentDirectory(pattern));
31462
+ }
31463
+ $16c73921a8454263$exports.getPatternsInsideCurrentDirectory = $16c73921a8454263$var$getPatternsInsideCurrentDirectory;
31464
+ /**
31465
+ * Returns patterns to be expanded relative to (outside) the current directory.
31466
+ *
31467
+ * @example
31468
+ * // ['../*', './../*']
31469
+ * getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
31470
+ */ function $16c73921a8454263$var$getPatternsOutsideCurrentDirectory(patterns) {
31471
+ return patterns.filter($16c73921a8454263$var$isPatternRelatedToParentDirectory);
31472
+ }
31473
+ $16c73921a8454263$exports.getPatternsOutsideCurrentDirectory = $16c73921a8454263$var$getPatternsOutsideCurrentDirectory;
31474
+ function $16c73921a8454263$var$isPatternRelatedToParentDirectory(pattern) {
31475
+ return pattern.startsWith("..") || pattern.startsWith("./..");
31476
+ }
31477
+ $16c73921a8454263$exports.isPatternRelatedToParentDirectory = $16c73921a8454263$var$isPatternRelatedToParentDirectory;
31478
+ function $16c73921a8454263$var$getBaseDirectory(pattern) {
31408
31479
  return $99a21639ca3a03fc$exports(pattern, {
31409
31480
  flipBackslashes: false
31410
31481
  });
31411
31482
  }
31412
- $e1fc146aea519a53$exports.getBaseDirectory = $e1fc146aea519a53$var$getBaseDirectory;
31413
- function $e1fc146aea519a53$var$hasGlobStar(pattern) {
31414
- return pattern.includes($e1fc146aea519a53$var$GLOBSTAR);
31483
+ $16c73921a8454263$exports.getBaseDirectory = $16c73921a8454263$var$getBaseDirectory;
31484
+ function $16c73921a8454263$var$hasGlobStar(pattern) {
31485
+ return pattern.includes($16c73921a8454263$var$GLOBSTAR);
31415
31486
  }
31416
- $e1fc146aea519a53$exports.hasGlobStar = $e1fc146aea519a53$var$hasGlobStar;
31417
- function $e1fc146aea519a53$var$endsWithSlashGlobStar(pattern) {
31418
- return pattern.endsWith("/" + $e1fc146aea519a53$var$GLOBSTAR);
31487
+ $16c73921a8454263$exports.hasGlobStar = $16c73921a8454263$var$hasGlobStar;
31488
+ function $16c73921a8454263$var$endsWithSlashGlobStar(pattern) {
31489
+ return pattern.endsWith("/" + $16c73921a8454263$var$GLOBSTAR);
31419
31490
  }
31420
- $e1fc146aea519a53$exports.endsWithSlashGlobStar = $e1fc146aea519a53$var$endsWithSlashGlobStar;
31421
- function $e1fc146aea519a53$var$isAffectDepthOfReadingPattern(pattern) {
31491
+ $16c73921a8454263$exports.endsWithSlashGlobStar = $16c73921a8454263$var$endsWithSlashGlobStar;
31492
+ function $16c73921a8454263$var$isAffectDepthOfReadingPattern(pattern) {
31422
31493
  const basename = $8C1kk$path.basename(pattern);
31423
- return $e1fc146aea519a53$var$endsWithSlashGlobStar(pattern) || $e1fc146aea519a53$var$isStaticPattern(basename);
31494
+ return $16c73921a8454263$var$endsWithSlashGlobStar(pattern) || $16c73921a8454263$var$isStaticPattern(basename);
31424
31495
  }
31425
- $e1fc146aea519a53$exports.isAffectDepthOfReadingPattern = $e1fc146aea519a53$var$isAffectDepthOfReadingPattern;
31426
- function $e1fc146aea519a53$var$getNaiveDepth(pattern) {
31427
- const base = $e1fc146aea519a53$var$getBaseDirectory(pattern);
31428
- const patternDepth = pattern.split("/").length;
31429
- const patternBaseDepth = base.split("/").length;
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;
31496
+ $16c73921a8454263$exports.isAffectDepthOfReadingPattern = $16c73921a8454263$var$isAffectDepthOfReadingPattern;
31497
+ function $16c73921a8454263$var$expandPatternsWithBraceExpansion(patterns) {
31498
+ return patterns.reduce((collection, pattern)=>{
31499
+ return collection.concat($16c73921a8454263$var$expandBraceExpansion(pattern));
31500
+ }, []);
31436
31501
  }
31437
- $e1fc146aea519a53$exports.getNaiveDepth = $e1fc146aea519a53$var$getNaiveDepth;
31438
- function $e1fc146aea519a53$var$getMaxNaivePatternsDepth(patterns) {
31439
- return patterns.reduce((max, pattern)=>{
31440
- const depth = $e1fc146aea519a53$var$getNaiveDepth(pattern);
31441
- return depth > max ? depth : max;
31442
- }, 0);
31502
+ $16c73921a8454263$exports.expandPatternsWithBraceExpansion = $16c73921a8454263$var$expandPatternsWithBraceExpansion;
31503
+ function $16c73921a8454263$var$expandBraceExpansion(pattern) {
31504
+ return $971e5d0cad67a09a$exports.braces(pattern, {
31505
+ expand: true,
31506
+ nodupes: true
31507
+ });
31508
+ }
31509
+ $16c73921a8454263$exports.expandBraceExpansion = $16c73921a8454263$var$expandBraceExpansion;
31510
+ function $16c73921a8454263$var$getPatternParts(pattern, options) {
31511
+ let { parts: parts } = $971e5d0cad67a09a$exports.scan(pattern, Object.assign(Object.assign({}, options), {
31512
+ parts: true
31513
+ }));
31514
+ /**
31515
+ * The scan method returns an empty array in some cases.
31516
+ * See micromatch/picomatch#58 for more details.
31517
+ */ if (parts.length === 0) parts = [
31518
+ pattern
31519
+ ];
31520
+ /**
31521
+ * The scan method does not return an empty part for the pattern with a forward slash.
31522
+ * This is another part of micromatch/picomatch#58.
31523
+ */ if (parts[0].startsWith("/")) {
31524
+ parts[0] = parts[0].slice(1);
31525
+ parts.unshift("");
31526
+ }
31527
+ return parts;
31443
31528
  }
31444
- $e1fc146aea519a53$exports.getMaxNaivePatternsDepth = $e1fc146aea519a53$var$getMaxNaivePatternsDepth;
31445
- function $e1fc146aea519a53$var$makeRe(pattern, options) {
31446
- return $fec3b4fc54d3756a$exports.makeRe(pattern, options);
31529
+ $16c73921a8454263$exports.getPatternParts = $16c73921a8454263$var$getPatternParts;
31530
+ function $16c73921a8454263$var$makeRe(pattern, options) {
31531
+ return $971e5d0cad67a09a$exports.makeRe(pattern, options);
31447
31532
  }
31448
- $e1fc146aea519a53$exports.makeRe = $e1fc146aea519a53$var$makeRe;
31449
- function $e1fc146aea519a53$var$convertPatternsToRe(patterns, options) {
31450
- return patterns.map((pattern)=>$e1fc146aea519a53$var$makeRe(pattern, options));
31533
+ $16c73921a8454263$exports.makeRe = $16c73921a8454263$var$makeRe;
31534
+ function $16c73921a8454263$var$convertPatternsToRe(patterns, options) {
31535
+ return patterns.map((pattern)=>$16c73921a8454263$var$makeRe(pattern, options));
31451
31536
  }
31452
- $e1fc146aea519a53$exports.convertPatternsToRe = $e1fc146aea519a53$var$convertPatternsToRe;
31453
- function $e1fc146aea519a53$var$matchAny(entry, patternsRe) {
31454
- const filepath = entry.replace(/^\.[\\/]/, "");
31455
- return patternsRe.some((patternRe)=>patternRe.test(filepath));
31537
+ $16c73921a8454263$exports.convertPatternsToRe = $16c73921a8454263$var$convertPatternsToRe;
31538
+ function $16c73921a8454263$var$matchAny(entry, patternsRe) {
31539
+ return patternsRe.some((patternRe)=>patternRe.test(entry));
31456
31540
  }
31457
- $e1fc146aea519a53$exports.matchAny = $e1fc146aea519a53$var$matchAny;
31541
+ $16c73921a8454263$exports.matchAny = $16c73921a8454263$var$matchAny;
31458
31542
 
31459
31543
 
31460
- $1b5b082adfcf5f99$exports.pattern = $e1fc146aea519a53$exports;
31461
- var $57725c4b56279319$exports = {};
31544
+ $cf522a9d05043495$exports.pattern = $16c73921a8454263$exports;
31545
+ var $aec04465d373ed0c$exports = {};
31462
31546
  "use strict";
31463
- Object.defineProperty($57725c4b56279319$exports, "__esModule", {
31547
+ Object.defineProperty($aec04465d373ed0c$exports, "__esModule", {
31464
31548
  value: true
31465
31549
  });
31550
+ $aec04465d373ed0c$exports.merge = void 0;
31466
31551
  var $62a8baa648172408$exports = {};
31467
31552
  "use strict";
31468
31553
 
@@ -31471,12 +31556,13 @@ const $62a8baa648172408$var$slice = Array.prototype.slice;
31471
31556
  $62a8baa648172408$exports = $62a8baa648172408$var$merge2;
31472
31557
  function $62a8baa648172408$var$merge2() {
31473
31558
  const streamsQueue = [];
31474
- let merging = false;
31475
31559
  const args = $62a8baa648172408$var$slice.call(arguments);
31560
+ let merging = false;
31476
31561
  let options = args[args.length - 1];
31477
31562
  if (options && !Array.isArray(options) && options.pipe == null) args.pop();
31478
31563
  else options = {};
31479
31564
  const doEnd = options.end !== false;
31565
+ const doPipeError = options.pipeError === true;
31480
31566
  if (options.objectMode == null) options.objectMode = true;
31481
31567
  if (options.highWaterMark == null) options.highWaterMark = 65536;
31482
31568
  const mergedStream = $62a8baa648172408$var$PassThrough(options);
@@ -31506,12 +31592,17 @@ function $62a8baa648172408$var$merge2() {
31506
31592
  function onend() {
31507
31593
  stream.removeListener("merge2UnpipeEnd", onend);
31508
31594
  stream.removeListener("end", onend);
31595
+ if (doPipeError) stream.removeListener("error", onerror);
31509
31596
  next();
31510
31597
  }
31598
+ function onerror(err) {
31599
+ mergedStream.emit("error", err);
31600
+ }
31511
31601
  // skip ended stream
31512
31602
  if (stream._readableState.endEmitted) return next();
31513
31603
  stream.on("merge2UnpipeEnd", onend);
31514
31604
  stream.on("end", onend);
31605
+ if (doPipeError) stream.on("error", onerror);
31515
31606
  stream.pipe(mergedStream, {
31516
31607
  end: false
31517
31608
  });
@@ -31525,7 +31616,7 @@ function $62a8baa648172408$var$merge2() {
31525
31616
  merging = false;
31526
31617
  // emit 'queueDrain' when all streams merged.
31527
31618
  mergedStream.emit("queueDrain");
31528
- return doEnd && mergedStream.end();
31619
+ if (doEnd) mergedStream.end();
31529
31620
  }
31530
31621
  mergedStream.setMaxListeners(0);
31531
31622
  mergedStream.add = addStream;
@@ -31547,61 +31638,85 @@ function $62a8baa648172408$var$pauseStreams(streams, options) {
31547
31638
  }
31548
31639
 
31549
31640
 
31550
- function $57725c4b56279319$var$merge(streams) {
31641
+ function $aec04465d373ed0c$var$merge(streams) {
31551
31642
  const mergedStream = $62a8baa648172408$exports(streams);
31552
31643
  streams.forEach((stream)=>{
31553
31644
  stream.once("error", (error)=>mergedStream.emit("error", error));
31554
31645
  });
31555
- mergedStream.once("close", ()=>$57725c4b56279319$var$propagateCloseEventToSources(streams));
31556
- mergedStream.once("end", ()=>$57725c4b56279319$var$propagateCloseEventToSources(streams));
31646
+ mergedStream.once("close", ()=>$aec04465d373ed0c$var$propagateCloseEventToSources(streams));
31647
+ mergedStream.once("end", ()=>$aec04465d373ed0c$var$propagateCloseEventToSources(streams));
31557
31648
  return mergedStream;
31558
31649
  }
31559
- $57725c4b56279319$exports.merge = $57725c4b56279319$var$merge;
31560
- function $57725c4b56279319$var$propagateCloseEventToSources(streams) {
31650
+ $aec04465d373ed0c$exports.merge = $aec04465d373ed0c$var$merge;
31651
+ function $aec04465d373ed0c$var$propagateCloseEventToSources(streams) {
31561
31652
  streams.forEach((stream)=>stream.emit("close"));
31562
31653
  }
31563
31654
 
31564
31655
 
31565
- $1b5b082adfcf5f99$exports.stream = $57725c4b56279319$exports;
31656
+ $cf522a9d05043495$exports.stream = $aec04465d373ed0c$exports;
31657
+ var $972ab475a37ceade$exports = {};
31658
+ "use strict";
31659
+ Object.defineProperty($972ab475a37ceade$exports, "__esModule", {
31660
+ value: true
31661
+ });
31662
+ $972ab475a37ceade$exports.isEmpty = $972ab475a37ceade$exports.isString = void 0;
31663
+ function $972ab475a37ceade$var$isString(input) {
31664
+ return typeof input === "string";
31665
+ }
31666
+ $972ab475a37ceade$exports.isString = $972ab475a37ceade$var$isString;
31667
+ function $972ab475a37ceade$var$isEmpty(input) {
31668
+ return input === "";
31669
+ }
31670
+ $972ab475a37ceade$exports.isEmpty = $972ab475a37ceade$var$isEmpty;
31671
+
31566
31672
 
31673
+ $cf522a9d05043495$exports.string = $972ab475a37ceade$exports;
31567
31674
 
31568
- function $d436392a45e5b9b4$var$generate(patterns, settings) {
31569
- const positivePatterns = $d436392a45e5b9b4$var$getPositivePatterns(patterns);
31570
- const negativePatterns = $d436392a45e5b9b4$var$getNegativePatternsAsPositive(patterns, settings.ignore);
31571
- const staticPatterns = positivePatterns.filter((pattern)=>$1b5b082adfcf5f99$exports.pattern.isStaticPattern(pattern, settings));
31572
- const dynamicPatterns = positivePatterns.filter((pattern)=>$1b5b082adfcf5f99$exports.pattern.isDynamicPattern(pattern, settings));
31573
- const staticTasks = $d436392a45e5b9b4$var$convertPatternsToTasks(staticPatterns, negativePatterns, /* dynamic */ false);
31574
- const dynamicTasks = $d436392a45e5b9b4$var$convertPatternsToTasks(dynamicPatterns, negativePatterns, /* dynamic */ true);
31675
+
31676
+ function $94ffeb6ed5329bdb$var$generate(patterns, settings) {
31677
+ const positivePatterns = $94ffeb6ed5329bdb$var$getPositivePatterns(patterns);
31678
+ const negativePatterns = $94ffeb6ed5329bdb$var$getNegativePatternsAsPositive(patterns, settings.ignore);
31679
+ const staticPatterns = positivePatterns.filter((pattern)=>$cf522a9d05043495$exports.pattern.isStaticPattern(pattern, settings));
31680
+ const dynamicPatterns = positivePatterns.filter((pattern)=>$cf522a9d05043495$exports.pattern.isDynamicPattern(pattern, settings));
31681
+ const staticTasks = $94ffeb6ed5329bdb$var$convertPatternsToTasks(staticPatterns, negativePatterns, /* dynamic */ false);
31682
+ const dynamicTasks = $94ffeb6ed5329bdb$var$convertPatternsToTasks(dynamicPatterns, negativePatterns, /* dynamic */ true);
31575
31683
  return staticTasks.concat(dynamicTasks);
31576
31684
  }
31577
- $d436392a45e5b9b4$exports.generate = $d436392a45e5b9b4$var$generate;
31578
- function $d436392a45e5b9b4$var$convertPatternsToTasks(positive, negative, dynamic) {
31579
- const positivePatternsGroup = $d436392a45e5b9b4$var$groupPatternsByBaseDirectory(positive);
31580
- // When we have a global group – there is no reason to divide the patterns into independent tasks.
31581
- // In this case, the global task covers the rest.
31582
- if ("." in positivePatternsGroup) {
31583
- const task = $d436392a45e5b9b4$var$convertPatternGroupToTask(".", positive, negative, dynamic);
31584
- return [
31585
- task
31586
- ];
31587
- }
31588
- return $d436392a45e5b9b4$var$convertPatternGroupsToTasks(positivePatternsGroup, negative, dynamic);
31589
- }
31590
- $d436392a45e5b9b4$exports.convertPatternsToTasks = $d436392a45e5b9b4$var$convertPatternsToTasks;
31591
- function $d436392a45e5b9b4$var$getPositivePatterns(patterns) {
31592
- return $1b5b082adfcf5f99$exports.pattern.getPositivePatterns(patterns);
31593
- }
31594
- $d436392a45e5b9b4$exports.getPositivePatterns = $d436392a45e5b9b4$var$getPositivePatterns;
31595
- function $d436392a45e5b9b4$var$getNegativePatternsAsPositive(patterns, ignore) {
31596
- const negative = $1b5b082adfcf5f99$exports.pattern.getNegativePatterns(patterns).concat(ignore);
31597
- const positive = negative.map($1b5b082adfcf5f99$exports.pattern.convertToPositivePattern);
31685
+ $94ffeb6ed5329bdb$exports.generate = $94ffeb6ed5329bdb$var$generate;
31686
+ /**
31687
+ * Returns tasks grouped by basic pattern directories.
31688
+ *
31689
+ * Patterns that can be found inside (`./`) and outside (`../`) the current directory are handled separately.
31690
+ * This is necessary because directory traversal starts at the base directory and goes deeper.
31691
+ */ function $94ffeb6ed5329bdb$var$convertPatternsToTasks(positive, negative, dynamic) {
31692
+ const tasks = [];
31693
+ const patternsOutsideCurrentDirectory = $cf522a9d05043495$exports.pattern.getPatternsOutsideCurrentDirectory(positive);
31694
+ const patternsInsideCurrentDirectory = $cf522a9d05043495$exports.pattern.getPatternsInsideCurrentDirectory(positive);
31695
+ const outsideCurrentDirectoryGroup = $94ffeb6ed5329bdb$var$groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory);
31696
+ const insideCurrentDirectoryGroup = $94ffeb6ed5329bdb$var$groupPatternsByBaseDirectory(patternsInsideCurrentDirectory);
31697
+ tasks.push(...$94ffeb6ed5329bdb$var$convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic));
31698
+ /*
31699
+ * For the sake of reducing future accesses to the file system, we merge all tasks within the current directory
31700
+ * into a global task, if at least one pattern refers to the root (`.`). In this case, the global task covers the rest.
31701
+ */ if ("." in insideCurrentDirectoryGroup) tasks.push($94ffeb6ed5329bdb$var$convertPatternGroupToTask(".", patternsInsideCurrentDirectory, negative, dynamic));
31702
+ else tasks.push(...$94ffeb6ed5329bdb$var$convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic));
31703
+ return tasks;
31704
+ }
31705
+ $94ffeb6ed5329bdb$exports.convertPatternsToTasks = $94ffeb6ed5329bdb$var$convertPatternsToTasks;
31706
+ function $94ffeb6ed5329bdb$var$getPositivePatterns(patterns) {
31707
+ return $cf522a9d05043495$exports.pattern.getPositivePatterns(patterns);
31708
+ }
31709
+ $94ffeb6ed5329bdb$exports.getPositivePatterns = $94ffeb6ed5329bdb$var$getPositivePatterns;
31710
+ function $94ffeb6ed5329bdb$var$getNegativePatternsAsPositive(patterns, ignore) {
31711
+ const negative = $cf522a9d05043495$exports.pattern.getNegativePatterns(patterns).concat(ignore);
31712
+ const positive = negative.map($cf522a9d05043495$exports.pattern.convertToPositivePattern);
31598
31713
  return positive;
31599
31714
  }
31600
- $d436392a45e5b9b4$exports.getNegativePatternsAsPositive = $d436392a45e5b9b4$var$getNegativePatternsAsPositive;
31601
- function $d436392a45e5b9b4$var$groupPatternsByBaseDirectory(patterns) {
31715
+ $94ffeb6ed5329bdb$exports.getNegativePatternsAsPositive = $94ffeb6ed5329bdb$var$getNegativePatternsAsPositive;
31716
+ function $94ffeb6ed5329bdb$var$groupPatternsByBaseDirectory(patterns) {
31602
31717
  const group = {};
31603
31718
  return patterns.reduce((collection, pattern)=>{
31604
- const base = $1b5b082adfcf5f99$exports.pattern.getBaseDirectory(pattern);
31719
+ const base = $cf522a9d05043495$exports.pattern.getBaseDirectory(pattern);
31605
31720
  if (base in collection) collection[base].push(pattern);
31606
31721
  else collection[base] = [
31607
31722
  pattern
@@ -31609,36 +31724,85 @@ function $d436392a45e5b9b4$var$groupPatternsByBaseDirectory(patterns) {
31609
31724
  return collection;
31610
31725
  }, group);
31611
31726
  }
31612
- $d436392a45e5b9b4$exports.groupPatternsByBaseDirectory = $d436392a45e5b9b4$var$groupPatternsByBaseDirectory;
31613
- function $d436392a45e5b9b4$var$convertPatternGroupsToTasks(positive, negative, dynamic) {
31727
+ $94ffeb6ed5329bdb$exports.groupPatternsByBaseDirectory = $94ffeb6ed5329bdb$var$groupPatternsByBaseDirectory;
31728
+ function $94ffeb6ed5329bdb$var$convertPatternGroupsToTasks(positive, negative, dynamic) {
31614
31729
  return Object.keys(positive).map((base)=>{
31615
- return $d436392a45e5b9b4$var$convertPatternGroupToTask(base, positive[base], negative, dynamic);
31730
+ return $94ffeb6ed5329bdb$var$convertPatternGroupToTask(base, positive[base], negative, dynamic);
31616
31731
  });
31617
31732
  }
31618
- $d436392a45e5b9b4$exports.convertPatternGroupsToTasks = $d436392a45e5b9b4$var$convertPatternGroupsToTasks;
31619
- function $d436392a45e5b9b4$var$convertPatternGroupToTask(base, positive, negative, dynamic) {
31733
+ $94ffeb6ed5329bdb$exports.convertPatternGroupsToTasks = $94ffeb6ed5329bdb$var$convertPatternGroupsToTasks;
31734
+ function $94ffeb6ed5329bdb$var$convertPatternGroupToTask(base, positive, negative, dynamic) {
31620
31735
  return {
31621
31736
  dynamic: dynamic,
31622
31737
  positive: positive,
31623
31738
  negative: negative,
31624
31739
  base: base,
31625
- patterns: [].concat(positive, negative.map($1b5b082adfcf5f99$exports.pattern.convertToNegativePattern))
31740
+ patterns: [].concat(positive, negative.map($cf522a9d05043495$exports.pattern.convertToNegativePattern))
31626
31741
  };
31627
31742
  }
31628
- $d436392a45e5b9b4$exports.convertPatternGroupToTask = $d436392a45e5b9b4$var$convertPatternGroupToTask;
31743
+ $94ffeb6ed5329bdb$exports.convertPatternGroupToTask = $94ffeb6ed5329bdb$var$convertPatternGroupToTask;
31629
31744
 
31630
31745
 
31631
- var $5e8aeb81d3971f46$exports = {};
31746
+ var $87bf1fe6ced3ad26$exports = {};
31747
+ "use strict";
31748
+ Object.defineProperty($87bf1fe6ced3ad26$exports, "__esModule", {
31749
+ value: true
31750
+ });
31751
+ $87bf1fe6ced3ad26$exports.removeDuplicateSlashes = $87bf1fe6ced3ad26$exports.transform = void 0;
31752
+ /**
31753
+ * Matches a sequence of two or more consecutive slashes, excluding the first two slashes at the beginning of the string.
31754
+ * The latter is due to the presence of the device path at the beginning of the UNC path.
31755
+ * @todo rewrite to negative lookbehind with the next major release.
31756
+ */ const $87bf1fe6ced3ad26$var$DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
31757
+ function $87bf1fe6ced3ad26$var$transform(patterns) {
31758
+ return patterns.map((pattern)=>$87bf1fe6ced3ad26$var$removeDuplicateSlashes(pattern));
31759
+ }
31760
+ $87bf1fe6ced3ad26$exports.transform = $87bf1fe6ced3ad26$var$transform;
31761
+ /**
31762
+ * This package only works with forward slashes as a path separator.
31763
+ * Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes.
31764
+ */ function $87bf1fe6ced3ad26$var$removeDuplicateSlashes(pattern) {
31765
+ return pattern.replace($87bf1fe6ced3ad26$var$DOUBLE_SLASH_RE, "/");
31766
+ }
31767
+ $87bf1fe6ced3ad26$exports.removeDuplicateSlashes = $87bf1fe6ced3ad26$var$removeDuplicateSlashes;
31768
+
31769
+
31770
+ var $64f6f1838decdf61$exports = {};
31771
+ "use strict";
31772
+ Object.defineProperty($64f6f1838decdf61$exports, "__esModule", {
31773
+ value: true
31774
+ });
31775
+ var $f4af028c6d5ad86c$exports = {};
31776
+ "use strict";
31777
+ Object.defineProperty($f4af028c6d5ad86c$exports, "__esModule", {
31778
+ value: true
31779
+ });
31780
+ var $798d916015b2c927$exports = {};
31781
+ "use strict";
31782
+ Object.defineProperty($798d916015b2c927$exports, "__esModule", {
31783
+ value: true
31784
+ });
31785
+ var $dbc0921597fb36f9$exports = {};
31632
31786
  "use strict";
31633
- Object.defineProperty($5e8aeb81d3971f46$exports, "__esModule", {
31787
+ Object.defineProperty($dbc0921597fb36f9$exports, "__esModule", {
31634
31788
  value: true
31635
31789
  });
31636
- var $f93330d45af3b4cf$exports = {};
31790
+ var $2fa2a8e52edb0b77$exports = {};
31637
31791
  "use strict";
31638
- Object.defineProperty($f93330d45af3b4cf$exports, "__esModule", {
31792
+ Object.defineProperty($2fa2a8e52edb0b77$exports, "__esModule", {
31639
31793
  value: true
31640
31794
  });
31641
31795
 
31796
+ var $6e9dd7fa450f205e$exports = {};
31797
+ "use strict";
31798
+ Object.defineProperty($6e9dd7fa450f205e$exports, "__esModule", {
31799
+ value: true
31800
+ });
31801
+ var $214d283d2b9ddc47$exports = {};
31802
+ "use strict";
31803
+ Object.defineProperty($214d283d2b9ddc47$exports, "__esModule", {
31804
+ value: true
31805
+ });
31642
31806
  var $6c0caade5edaab5b$exports = {};
31643
31807
  "use strict";
31644
31808
  Object.defineProperty($6c0caade5edaab5b$exports, "__esModule", {
@@ -31748,33 +31912,6 @@ function $6c0caade5edaab5b$var$getSettings(settingsOrOptions = {}) {
31748
31912
  }
31749
31913
 
31750
31914
 
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
31915
  var $464bce01c537cfdb$exports = {};
31779
31916
  $464bce01c537cfdb$exports = $464bce01c537cfdb$var$runParallel;
31780
31917
  function $464bce01c537cfdb$var$runParallel(tasks, cb) {
@@ -32525,15 +32662,15 @@ function $798d916015b2c927$var$getSettings(settingsOrOptions = {}) {
32525
32662
  }
32526
32663
 
32527
32664
 
32528
- var $595889d33eb55b58$exports = {};
32665
+ var $9b0d5220a1514c46$exports = {};
32529
32666
  "use strict";
32530
- Object.defineProperty($595889d33eb55b58$exports, "__esModule", {
32667
+ Object.defineProperty($9b0d5220a1514c46$exports, "__esModule", {
32531
32668
  value: true
32532
32669
  });
32533
32670
 
32534
32671
 
32535
32672
 
32536
- class $595889d33eb55b58$var$Reader {
32673
+ class $9b0d5220a1514c46$var$Reader {
32537
32674
  constructor(_settings){
32538
32675
  this._settings = _settings;
32539
32676
  this._fsStatSettings = new $6c0caade5edaab5b$exports.Settings({
@@ -32549,19 +32686,28 @@ class $595889d33eb55b58$var$Reader {
32549
32686
  const entry = {
32550
32687
  name: pattern,
32551
32688
  path: pattern,
32552
- dirent: $1b5b082adfcf5f99$exports.fs.createDirentFromStats(pattern, stats)
32689
+ dirent: $cf522a9d05043495$exports.fs.createDirentFromStats(pattern, stats)
32553
32690
  };
32554
32691
  if (this._settings.stats) entry.stats = stats;
32555
32692
  return entry;
32556
32693
  }
32557
32694
  _isFatalError(error) {
32558
- return !$1b5b082adfcf5f99$exports.errno.isEnoentCodeError(error) && !this._settings.suppressErrors;
32695
+ return !$cf522a9d05043495$exports.errno.isEnoentCodeError(error) && !this._settings.suppressErrors;
32559
32696
  }
32560
32697
  }
32561
- $595889d33eb55b58$exports.default = $595889d33eb55b58$var$Reader;
32698
+ $9b0d5220a1514c46$exports.default = $9b0d5220a1514c46$var$Reader;
32699
+
32700
+
32701
+ var $3e83d8893f7f02ce$exports = {};
32702
+ "use strict";
32703
+ Object.defineProperty($3e83d8893f7f02ce$exports, "__esModule", {
32704
+ value: true
32705
+ });
32562
32706
 
32563
32707
 
32564
- class $f93330d45af3b4cf$var$ReaderStream extends $595889d33eb55b58$exports.default {
32708
+
32709
+
32710
+ class $3e83d8893f7f02ce$var$ReaderStream extends $9b0d5220a1514c46$exports.default {
32565
32711
  constructor(){
32566
32712
  super(...arguments);
32567
32713
  this._walkStream = $798d916015b2c927$exports.walkStream;
@@ -32599,93 +32745,209 @@ class $f93330d45af3b4cf$var$ReaderStream extends $595889d33eb55b58$exports.defau
32599
32745
  });
32600
32746
  }
32601
32747
  }
32602
- $f93330d45af3b4cf$exports.default = $f93330d45af3b4cf$var$ReaderStream;
32748
+ $3e83d8893f7f02ce$exports.default = $3e83d8893f7f02ce$var$ReaderStream;
32603
32749
 
32604
32750
 
32605
- var $b2104eae05a96326$exports = {};
32751
+ class $f4af028c6d5ad86c$var$ReaderAsync extends $9b0d5220a1514c46$exports.default {
32752
+ constructor(){
32753
+ super(...arguments);
32754
+ this._walkAsync = $798d916015b2c927$exports.walk;
32755
+ this._readerStream = new $3e83d8893f7f02ce$exports.default(this._settings);
32756
+ }
32757
+ dynamic(root, options) {
32758
+ return new Promise((resolve, reject)=>{
32759
+ this._walkAsync(root, options, (error, entries)=>{
32760
+ if (error === null) resolve(entries);
32761
+ else reject(error);
32762
+ });
32763
+ });
32764
+ }
32765
+ async static(patterns, options) {
32766
+ const entries = [];
32767
+ const stream = this._readerStream.static(patterns, options);
32768
+ // After #235, replace it with an asynchronous iterator.
32769
+ return new Promise((resolve, reject)=>{
32770
+ stream.once("error", reject);
32771
+ stream.on("data", (entry)=>entries.push(entry));
32772
+ stream.once("end", ()=>resolve(entries));
32773
+ });
32774
+ }
32775
+ }
32776
+ $f4af028c6d5ad86c$exports.default = $f4af028c6d5ad86c$var$ReaderAsync;
32777
+
32778
+
32779
+ var $cdd9415193e576b3$exports = {};
32606
32780
  "use strict";
32607
- Object.defineProperty($b2104eae05a96326$exports, "__esModule", {
32781
+ Object.defineProperty($cdd9415193e576b3$exports, "__esModule", {
32608
32782
  value: true
32609
32783
  });
32610
32784
 
32611
- var $158f1e2e83bb81fa$exports = {};
32785
+ var $e9c252ea38ebf1b3$exports = {};
32612
32786
  "use strict";
32613
- Object.defineProperty($158f1e2e83bb81fa$exports, "__esModule", {
32787
+ Object.defineProperty($e9c252ea38ebf1b3$exports, "__esModule", {
32614
32788
  value: true
32615
32789
  });
32616
32790
 
32617
- class $158f1e2e83bb81fa$var$DeepFilter {
32791
+ var $5f5b424167dc8a8e$exports = {};
32792
+ "use strict";
32793
+ Object.defineProperty($5f5b424167dc8a8e$exports, "__esModule", {
32794
+ value: true
32795
+ });
32796
+ var $bed2cf5848052d99$exports = {};
32797
+ "use strict";
32798
+ Object.defineProperty($bed2cf5848052d99$exports, "__esModule", {
32799
+ value: true
32800
+ });
32801
+
32802
+ class $bed2cf5848052d99$var$Matcher {
32803
+ constructor(_patterns, _settings, _micromatchOptions){
32804
+ this._patterns = _patterns;
32805
+ this._settings = _settings;
32806
+ this._micromatchOptions = _micromatchOptions;
32807
+ this._storage = [];
32808
+ this._fillStorage();
32809
+ }
32810
+ _fillStorage() {
32811
+ /**
32812
+ * The original pattern may include `{,*,**,a/*}`, which will lead to problems with matching (unresolved level).
32813
+ * So, before expand patterns with brace expansion into separated patterns.
32814
+ */ const patterns = $cf522a9d05043495$exports.pattern.expandPatternsWithBraceExpansion(this._patterns);
32815
+ for (const pattern of patterns){
32816
+ const segments = this._getPatternSegments(pattern);
32817
+ const sections = this._splitSegmentsIntoSections(segments);
32818
+ this._storage.push({
32819
+ complete: sections.length <= 1,
32820
+ pattern: pattern,
32821
+ segments: segments,
32822
+ sections: sections
32823
+ });
32824
+ }
32825
+ }
32826
+ _getPatternSegments(pattern) {
32827
+ const parts = $cf522a9d05043495$exports.pattern.getPatternParts(pattern, this._micromatchOptions);
32828
+ return parts.map((part)=>{
32829
+ const dynamic = $cf522a9d05043495$exports.pattern.isDynamicPattern(part, this._settings);
32830
+ if (!dynamic) return {
32831
+ dynamic: false,
32832
+ pattern: part
32833
+ };
32834
+ return {
32835
+ dynamic: true,
32836
+ pattern: part,
32837
+ patternRe: $cf522a9d05043495$exports.pattern.makeRe(part, this._micromatchOptions)
32838
+ };
32839
+ });
32840
+ }
32841
+ _splitSegmentsIntoSections(segments) {
32842
+ return $cf522a9d05043495$exports.array.splitWhen(segments, (segment)=>segment.dynamic && $cf522a9d05043495$exports.pattern.hasGlobStar(segment.pattern));
32843
+ }
32844
+ }
32845
+ $bed2cf5848052d99$exports.default = $bed2cf5848052d99$var$Matcher;
32846
+
32847
+
32848
+ class $5f5b424167dc8a8e$var$PartialMatcher extends $bed2cf5848052d99$exports.default {
32849
+ match(filepath) {
32850
+ const parts = filepath.split("/");
32851
+ const levels = parts.length;
32852
+ const patterns = this._storage.filter((info)=>!info.complete || info.segments.length > levels);
32853
+ for (const pattern of patterns){
32854
+ const section = pattern.sections[0];
32855
+ /**
32856
+ * In this case, the pattern has a globstar and we must read all directories unconditionally,
32857
+ * but only if the level has reached the end of the first group.
32858
+ *
32859
+ * fixtures/{a,b}/**
32860
+ * ^ true/false ^ always true
32861
+ */ if (!pattern.complete && levels > section.length) return true;
32862
+ const match = parts.every((part, index)=>{
32863
+ const segment = pattern.segments[index];
32864
+ if (segment.dynamic && segment.patternRe.test(part)) return true;
32865
+ if (!segment.dynamic && segment.pattern === part) return true;
32866
+ return false;
32867
+ });
32868
+ if (match) return true;
32869
+ }
32870
+ return false;
32871
+ }
32872
+ }
32873
+ $5f5b424167dc8a8e$exports.default = $5f5b424167dc8a8e$var$PartialMatcher;
32874
+
32875
+
32876
+ class $e9c252ea38ebf1b3$var$DeepFilter {
32618
32877
  constructor(_settings, _micromatchOptions){
32619
32878
  this._settings = _settings;
32620
32879
  this._micromatchOptions = _micromatchOptions;
32621
32880
  }
32622
32881
  getFilter(basePath, positive, negative) {
32623
- const maxPatternDepth = this._getMaxPatternDepth(positive);
32882
+ const matcher = this._getMatcher(positive);
32624
32883
  const negativeRe = this._getNegativePatternsRe(negative);
32625
- return (entry)=>this._filter(basePath, entry, negativeRe, maxPatternDepth);
32884
+ return (entry)=>this._filter(basePath, entry, matcher, negativeRe);
32626
32885
  }
32627
- _getMaxPatternDepth(patterns) {
32628
- const globstar = patterns.some($1b5b082adfcf5f99$exports.pattern.hasGlobStar);
32629
- return globstar ? Infinity : $1b5b082adfcf5f99$exports.pattern.getMaxNaivePatternsDepth(patterns);
32886
+ _getMatcher(patterns) {
32887
+ return new $5f5b424167dc8a8e$exports.default(patterns, this._settings, this._micromatchOptions);
32630
32888
  }
32631
32889
  _getNegativePatternsRe(patterns) {
32632
- const affectDepthOfReadingPatterns = patterns.filter($1b5b082adfcf5f99$exports.pattern.isAffectDepthOfReadingPattern);
32633
- return $1b5b082adfcf5f99$exports.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions);
32890
+ const affectDepthOfReadingPatterns = patterns.filter($cf522a9d05043495$exports.pattern.isAffectDepthOfReadingPattern);
32891
+ return $cf522a9d05043495$exports.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions);
32634
32892
  }
32635
- _filter(basePath, entry, negativeRe, maxPatternDepth) {
32636
- const depth = this._getEntryDepth(basePath, entry.path);
32637
- if (this._isSkippedByDeep(depth)) return false;
32638
- if (this._isSkippedByMaxPatternDepth(depth, maxPatternDepth)) return false;
32893
+ _filter(basePath, entry, matcher, negativeRe) {
32894
+ if (this._isSkippedByDeep(basePath, entry.path)) return false;
32639
32895
  if (this._isSkippedSymbolicLink(entry)) return false;
32640
- return this._isSkippedByNegativePatterns(entry, negativeRe);
32896
+ const filepath = $cf522a9d05043495$exports.path.removeLeadingDotSegment(entry.path);
32897
+ if (this._isSkippedByPositivePatterns(filepath, matcher)) return false;
32898
+ return this._isSkippedByNegativePatterns(filepath, negativeRe);
32641
32899
  }
32642
- _getEntryDepth(basePath, entryPath) {
32643
- const basePathDepth = basePath.split("/").length;
32644
- const entryPathDepth = entryPath.split("/").length;
32645
- return entryPathDepth - (basePath === "" ? 0 : basePathDepth);
32646
- }
32647
- _isSkippedByDeep(entryDepth) {
32648
- return entryDepth >= this._settings.deep;
32900
+ _isSkippedByDeep(basePath, entryPath) {
32901
+ /**
32902
+ * Avoid unnecessary depth calculations when it doesn't matter.
32903
+ */ if (this._settings.deep === Infinity) return false;
32904
+ return this._getEntryLevel(basePath, entryPath) >= this._settings.deep;
32649
32905
  }
32650
- _isSkippedByMaxPatternDepth(entryDepth, maxPatternDepth) {
32651
- return !this._settings.baseNameMatch && maxPatternDepth !== Infinity && entryDepth > maxPatternDepth;
32906
+ _getEntryLevel(basePath, entryPath) {
32907
+ const entryPathDepth = entryPath.split("/").length;
32908
+ if (basePath === "") return entryPathDepth;
32909
+ const basePathDepth = basePath.split("/").length;
32910
+ return entryPathDepth - basePathDepth;
32652
32911
  }
32653
32912
  _isSkippedSymbolicLink(entry) {
32654
32913
  return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
32655
32914
  }
32656
- _isSkippedByNegativePatterns(entry, negativeRe) {
32657
- return !$1b5b082adfcf5f99$exports.pattern.matchAny(entry.path, negativeRe);
32915
+ _isSkippedByPositivePatterns(entryPath, matcher) {
32916
+ return !this._settings.baseNameMatch && !matcher.match(entryPath);
32917
+ }
32918
+ _isSkippedByNegativePatterns(entryPath, patternsRe) {
32919
+ return !$cf522a9d05043495$exports.pattern.matchAny(entryPath, patternsRe);
32658
32920
  }
32659
32921
  }
32660
- $158f1e2e83bb81fa$exports.default = $158f1e2e83bb81fa$var$DeepFilter;
32922
+ $e9c252ea38ebf1b3$exports.default = $e9c252ea38ebf1b3$var$DeepFilter;
32661
32923
 
32662
32924
 
32663
- var $f26cad5ed17500b0$exports = {};
32925
+ var $8cc0797818496428$exports = {};
32664
32926
  "use strict";
32665
- Object.defineProperty($f26cad5ed17500b0$exports, "__esModule", {
32927
+ Object.defineProperty($8cc0797818496428$exports, "__esModule", {
32666
32928
  value: true
32667
32929
  });
32668
32930
 
32669
- class $f26cad5ed17500b0$var$EntryFilter {
32931
+ class $8cc0797818496428$var$EntryFilter {
32670
32932
  constructor(_settings, _micromatchOptions){
32671
32933
  this._settings = _settings;
32672
32934
  this._micromatchOptions = _micromatchOptions;
32673
32935
  this.index = new Map();
32674
32936
  }
32675
32937
  getFilter(positive, negative) {
32676
- const positiveRe = $1b5b082adfcf5f99$exports.pattern.convertPatternsToRe(positive, this._micromatchOptions);
32677
- const negativeRe = $1b5b082adfcf5f99$exports.pattern.convertPatternsToRe(negative, this._micromatchOptions);
32938
+ const positiveRe = $cf522a9d05043495$exports.pattern.convertPatternsToRe(positive, this._micromatchOptions);
32939
+ const negativeRe = $cf522a9d05043495$exports.pattern.convertPatternsToRe(negative, this._micromatchOptions);
32678
32940
  return (entry)=>this._filter(entry, positiveRe, negativeRe);
32679
32941
  }
32680
32942
  _filter(entry, positiveRe, negativeRe) {
32681
- if (this._settings.unique) {
32682
- if (this._isDuplicateEntry(entry)) return false;
32683
- this._createIndexRecord(entry);
32684
- }
32943
+ if (this._settings.unique && this._isDuplicateEntry(entry)) return false;
32685
32944
  if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) return false;
32686
- if (this._isSkippedByAbsoluteNegativePatterns(entry, negativeRe)) return false;
32945
+ if (this._isSkippedByAbsoluteNegativePatterns(entry.path, negativeRe)) return false;
32687
32946
  const filepath = this._settings.baseNameMatch ? entry.name : entry.path;
32688
- return this._isMatchToPatterns(filepath, positiveRe) && !this._isMatchToPatterns(entry.path, negativeRe);
32947
+ const isDirectory = entry.dirent.isDirectory();
32948
+ const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(entry.path, negativeRe, isDirectory);
32949
+ if (this._settings.unique && isMatched) this._createIndexRecord(entry);
32950
+ return isMatched;
32689
32951
  }
32690
32952
  _isDuplicateEntry(entry) {
32691
32953
  return this.index.has(entry.path);
@@ -32699,25 +32961,31 @@ class $f26cad5ed17500b0$var$EntryFilter {
32699
32961
  _onlyDirectoryFilter(entry) {
32700
32962
  return this._settings.onlyDirectories && !entry.dirent.isDirectory();
32701
32963
  }
32702
- _isSkippedByAbsoluteNegativePatterns(entry, negativeRe) {
32964
+ _isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) {
32703
32965
  if (!this._settings.absolute) return false;
32704
- const fullpath = $1b5b082adfcf5f99$exports.path.makeAbsolute(this._settings.cwd, entry.path);
32705
- return this._isMatchToPatterns(fullpath, negativeRe);
32966
+ const fullpath = $cf522a9d05043495$exports.path.makeAbsolute(this._settings.cwd, entryPath);
32967
+ return $cf522a9d05043495$exports.pattern.matchAny(fullpath, patternsRe);
32706
32968
  }
32707
- _isMatchToPatterns(filepath, patternsRe) {
32708
- return $1b5b082adfcf5f99$exports.pattern.matchAny(filepath, patternsRe);
32969
+ _isMatchToPatterns(entryPath, patternsRe, isDirectory) {
32970
+ const filepath = $cf522a9d05043495$exports.path.removeLeadingDotSegment(entryPath);
32971
+ // Trying to match files and directories by patterns.
32972
+ const isMatched = $cf522a9d05043495$exports.pattern.matchAny(filepath, patternsRe);
32973
+ // A pattern with a trailling slash can be used for directory matching.
32974
+ // To apply such pattern, we need to add a tralling slash to the path.
32975
+ if (!isMatched && isDirectory) return $cf522a9d05043495$exports.pattern.matchAny(filepath + "/", patternsRe);
32976
+ return isMatched;
32709
32977
  }
32710
32978
  }
32711
- $f26cad5ed17500b0$exports.default = $f26cad5ed17500b0$var$EntryFilter;
32979
+ $8cc0797818496428$exports.default = $8cc0797818496428$var$EntryFilter;
32712
32980
 
32713
32981
 
32714
- var $4f982576078a7524$exports = {};
32982
+ var $7ed24425816f590c$exports = {};
32715
32983
  "use strict";
32716
- Object.defineProperty($4f982576078a7524$exports, "__esModule", {
32984
+ Object.defineProperty($7ed24425816f590c$exports, "__esModule", {
32717
32985
  value: true
32718
32986
  });
32719
32987
 
32720
- class $4f982576078a7524$var$ErrorFilter {
32988
+ class $7ed24425816f590c$var$ErrorFilter {
32721
32989
  constructor(_settings){
32722
32990
  this._settings = _settings;
32723
32991
  }
@@ -32725,19 +32993,19 @@ class $4f982576078a7524$var$ErrorFilter {
32725
32993
  return (error)=>this._isNonFatalError(error);
32726
32994
  }
32727
32995
  _isNonFatalError(error) {
32728
- return $1b5b082adfcf5f99$exports.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
32996
+ return $cf522a9d05043495$exports.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
32729
32997
  }
32730
32998
  }
32731
- $4f982576078a7524$exports.default = $4f982576078a7524$var$ErrorFilter;
32999
+ $7ed24425816f590c$exports.default = $7ed24425816f590c$var$ErrorFilter;
32732
33000
 
32733
33001
 
32734
- var $4583c239a6a31b31$exports = {};
33002
+ var $cac4f3802d700428$exports = {};
32735
33003
  "use strict";
32736
- Object.defineProperty($4583c239a6a31b31$exports, "__esModule", {
33004
+ Object.defineProperty($cac4f3802d700428$exports, "__esModule", {
32737
33005
  value: true
32738
33006
  });
32739
33007
 
32740
- class $4583c239a6a31b31$var$EntryTransformer {
33008
+ class $cac4f3802d700428$var$EntryTransformer {
32741
33009
  constructor(_settings){
32742
33010
  this._settings = _settings;
32743
33011
  }
@@ -32747,8 +33015,8 @@ class $4583c239a6a31b31$var$EntryTransformer {
32747
33015
  _transform(entry) {
32748
33016
  let filepath = entry.path;
32749
33017
  if (this._settings.absolute) {
32750
- filepath = $1b5b082adfcf5f99$exports.path.makeAbsolute(this._settings.cwd, filepath);
32751
- filepath = $1b5b082adfcf5f99$exports.path.unixify(filepath);
33018
+ filepath = $cf522a9d05043495$exports.path.makeAbsolute(this._settings.cwd, filepath);
33019
+ filepath = $cf522a9d05043495$exports.path.unixify(filepath);
32752
33020
  }
32753
33021
  if (this._settings.markDirectories && entry.dirent.isDirectory()) filepath += "/";
32754
33022
  if (!this._settings.objectMode) return filepath;
@@ -32757,16 +33025,16 @@ class $4583c239a6a31b31$var$EntryTransformer {
32757
33025
  });
32758
33026
  }
32759
33027
  }
32760
- $4583c239a6a31b31$exports.default = $4583c239a6a31b31$var$EntryTransformer;
33028
+ $cac4f3802d700428$exports.default = $cac4f3802d700428$var$EntryTransformer;
32761
33029
 
32762
33030
 
32763
- class $b2104eae05a96326$var$Provider {
33031
+ class $cdd9415193e576b3$var$Provider {
32764
33032
  constructor(_settings){
32765
33033
  this._settings = _settings;
32766
- this.errorFilter = new $4f982576078a7524$exports.default(this._settings);
32767
- this.entryFilter = new $f26cad5ed17500b0$exports.default(this._settings, this._getMicromatchOptions());
32768
- this.deepFilter = new $158f1e2e83bb81fa$exports.default(this._settings, this._getMicromatchOptions());
32769
- this.entryTransformer = new $4583c239a6a31b31$exports.default(this._settings);
33034
+ this.errorFilter = new $7ed24425816f590c$exports.default(this._settings);
33035
+ this.entryFilter = new $8cc0797818496428$exports.default(this._settings, this._getMicromatchOptions());
33036
+ this.deepFilter = new $e9c252ea38ebf1b3$exports.default(this._settings, this._getMicromatchOptions());
33037
+ this.entryTransformer = new $cac4f3802d700428$exports.default(this._settings);
32770
33038
  }
32771
33039
  _getRootDirectory(task) {
32772
33040
  return $8C1kk$path.resolve(this._settings.cwd, task.base);
@@ -32800,45 +33068,40 @@ class $b2104eae05a96326$var$Provider {
32800
33068
  };
32801
33069
  }
32802
33070
  }
32803
- $b2104eae05a96326$exports.default = $b2104eae05a96326$var$Provider;
33071
+ $cdd9415193e576b3$exports.default = $cdd9415193e576b3$var$Provider;
32804
33072
 
32805
33073
 
32806
- class $5e8aeb81d3971f46$var$ProviderAsync extends $b2104eae05a96326$exports.default {
33074
+ class $64f6f1838decdf61$var$ProviderAsync extends $cdd9415193e576b3$exports.default {
32807
33075
  constructor(){
32808
33076
  super(...arguments);
32809
- this._reader = new $f93330d45af3b4cf$exports.default(this._settings);
33077
+ this._reader = new $f4af028c6d5ad86c$exports.default(this._settings);
32810
33078
  }
32811
- read(task) {
33079
+ async read(task) {
32812
33080
  const root = this._getRootDirectory(task);
32813
33081
  const options = this._getReaderOptions(task);
32814
- const entries = [];
32815
- return new Promise((resolve, reject)=>{
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
- });
33082
+ const entries = await this.api(root, task, options);
33083
+ return entries.map((entry)=>options.transform(entry));
32821
33084
  }
32822
33085
  api(root, task, options) {
32823
33086
  if (task.dynamic) return this._reader.dynamic(root, options);
32824
33087
  return this._reader.static(task.patterns, options);
32825
33088
  }
32826
33089
  }
32827
- $5e8aeb81d3971f46$exports.default = $5e8aeb81d3971f46$var$ProviderAsync;
33090
+ $64f6f1838decdf61$exports.default = $64f6f1838decdf61$var$ProviderAsync;
32828
33091
 
32829
33092
 
32830
- var $434410c8b70ca432$exports = {};
33093
+ var $7af4d6755aac8d4c$exports = {};
32831
33094
  "use strict";
32832
- Object.defineProperty($434410c8b70ca432$exports, "__esModule", {
33095
+ Object.defineProperty($7af4d6755aac8d4c$exports, "__esModule", {
32833
33096
  value: true
32834
33097
  });
32835
33098
 
32836
33099
 
32837
33100
 
32838
- class $434410c8b70ca432$var$ProviderStream extends $b2104eae05a96326$exports.default {
33101
+ class $7af4d6755aac8d4c$var$ProviderStream extends $cdd9415193e576b3$exports.default {
32839
33102
  constructor(){
32840
33103
  super(...arguments);
32841
- this._reader = new $f93330d45af3b4cf$exports.default(this._settings);
33104
+ this._reader = new $3e83d8893f7f02ce$exports.default(this._settings);
32842
33105
  }
32843
33106
  read(task) {
32844
33107
  const root = this._getRootDirectory(task);
@@ -32857,23 +33120,23 @@ class $434410c8b70ca432$var$ProviderStream extends $b2104eae05a96326$exports.def
32857
33120
  return this._reader.static(task.patterns, options);
32858
33121
  }
32859
33122
  }
32860
- $434410c8b70ca432$exports.default = $434410c8b70ca432$var$ProviderStream;
33123
+ $7af4d6755aac8d4c$exports.default = $7af4d6755aac8d4c$var$ProviderStream;
32861
33124
 
32862
33125
 
32863
- var $449ae2813b11b2d5$exports = {};
33126
+ var $920a3ecaa6c6297b$exports = {};
32864
33127
  "use strict";
32865
- Object.defineProperty($449ae2813b11b2d5$exports, "__esModule", {
33128
+ Object.defineProperty($920a3ecaa6c6297b$exports, "__esModule", {
32866
33129
  value: true
32867
33130
  });
32868
- var $91612adb731b8334$exports = {};
33131
+ var $2bcb845784c4dbc2$exports = {};
32869
33132
  "use strict";
32870
- Object.defineProperty($91612adb731b8334$exports, "__esModule", {
33133
+ Object.defineProperty($2bcb845784c4dbc2$exports, "__esModule", {
32871
33134
  value: true
32872
33135
  });
32873
33136
 
32874
33137
 
32875
33138
 
32876
- class $91612adb731b8334$var$ReaderSync extends $595889d33eb55b58$exports.default {
33139
+ class $2bcb845784c4dbc2$var$ReaderSync extends $9b0d5220a1514c46$exports.default {
32877
33140
  constructor(){
32878
33141
  super(...arguments);
32879
33142
  this._walkSync = $798d916015b2c927$exports.walkSync;
@@ -32905,14 +33168,14 @@ class $91612adb731b8334$var$ReaderSync extends $595889d33eb55b58$exports.default
32905
33168
  return this._statSync(filepath, this._fsStatSettings);
32906
33169
  }
32907
33170
  }
32908
- $91612adb731b8334$exports.default = $91612adb731b8334$var$ReaderSync;
33171
+ $2bcb845784c4dbc2$exports.default = $2bcb845784c4dbc2$var$ReaderSync;
32909
33172
 
32910
33173
 
32911
33174
 
32912
- class $449ae2813b11b2d5$var$ProviderSync extends $b2104eae05a96326$exports.default {
33175
+ class $920a3ecaa6c6297b$var$ProviderSync extends $cdd9415193e576b3$exports.default {
32913
33176
  constructor(){
32914
33177
  super(...arguments);
32915
- this._reader = new $91612adb731b8334$exports.default(this._settings);
33178
+ this._reader = new $2bcb845784c4dbc2$exports.default(this._settings);
32916
33179
  }
32917
33180
  read(task) {
32918
33181
  const root = this._getRootDirectory(task);
@@ -32925,18 +33188,22 @@ class $449ae2813b11b2d5$var$ProviderSync extends $b2104eae05a96326$exports.defau
32925
33188
  return this._reader.static(task.patterns, options);
32926
33189
  }
32927
33190
  }
32928
- $449ae2813b11b2d5$exports.default = $449ae2813b11b2d5$var$ProviderSync;
33191
+ $920a3ecaa6c6297b$exports.default = $920a3ecaa6c6297b$var$ProviderSync;
32929
33192
 
32930
33193
 
32931
- var $1d7e3dfd05c8321e$exports = {};
33194
+ var $91327a74649d3ed9$exports = {};
32932
33195
  "use strict";
32933
- Object.defineProperty($1d7e3dfd05c8321e$exports, "__esModule", {
33196
+ Object.defineProperty($91327a74649d3ed9$exports, "__esModule", {
32934
33197
  value: true
32935
33198
  });
33199
+ $91327a74649d3ed9$exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
32936
33200
 
32937
33201
 
32938
- const $1d7e3dfd05c8321e$var$CPU_COUNT = $8C1kk$os.cpus().length;
32939
- $1d7e3dfd05c8321e$exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
33202
+ /**
33203
+ * The `os.cpus` method can return zero. We expect the number of cores to be greater than zero.
33204
+ * https://github.com/nodejs/node/blob/7faeddf23a98c53896f8b574a6e66589e8fb1eb8/lib/os.js#L106-L107
33205
+ */ const $91327a74649d3ed9$var$CPU_COUNT = Math.max($8C1kk$os.cpus().length, 1);
33206
+ $91327a74649d3ed9$exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
32940
33207
  lstat: $8C1kk$fs.lstat,
32941
33208
  lstatSync: $8C1kk$fs.lstatSync,
32942
33209
  stat: $8C1kk$fs.stat,
@@ -32944,14 +33211,14 @@ $1d7e3dfd05c8321e$exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
32944
33211
  readdir: $8C1kk$fs.readdir,
32945
33212
  readdirSync: $8C1kk$fs.readdirSync
32946
33213
  };
32947
- class $1d7e3dfd05c8321e$var$Settings {
33214
+ class $91327a74649d3ed9$var$Settings {
32948
33215
  constructor(_options = {}){
32949
33216
  this._options = _options;
32950
33217
  this.absolute = this._getValue(this._options.absolute, false);
32951
33218
  this.baseNameMatch = this._getValue(this._options.baseNameMatch, false);
32952
33219
  this.braceExpansion = this._getValue(this._options.braceExpansion, true);
32953
33220
  this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, true);
32954
- this.concurrency = this._getValue(this._options.concurrency, $1d7e3dfd05c8321e$var$CPU_COUNT);
33221
+ this.concurrency = this._getValue(this._options.concurrency, $91327a74649d3ed9$var$CPU_COUNT);
32955
33222
  this.cwd = this._getValue(this._options.cwd, process.cwd());
32956
33223
  this.deep = this._getValue(this._options.deep, Infinity);
32957
33224
  this.dot = this._getValue(this._options.dot, false);
@@ -32975,79 +33242,456 @@ class $1d7e3dfd05c8321e$var$Settings {
32975
33242
  return option === undefined ? value : option;
32976
33243
  }
32977
33244
  _getFileSystemMethods(methods = {}) {
32978
- return Object.assign(Object.assign({}, $1d7e3dfd05c8321e$exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
33245
+ return Object.assign(Object.assign({}, $91327a74649d3ed9$exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
32979
33246
  }
32980
33247
  }
32981
- $1d7e3dfd05c8321e$exports.default = $1d7e3dfd05c8321e$var$Settings;
33248
+ $91327a74649d3ed9$exports.default = $91327a74649d3ed9$var$Settings;
32982
33249
 
32983
33250
 
32984
33251
 
32985
- function $b57e78be4f7a2622$var$FastGlob(source, options) {
32986
- try {
32987
- $b57e78be4f7a2622$var$assertPatternsInput(source);
32988
- } catch (error) {
32989
- return Promise.reject(error);
32990
- }
32991
- const works = $b57e78be4f7a2622$var$getWorks(source, $5e8aeb81d3971f46$exports.default, options);
32992
- return Promise.all(works).then($1b5b082adfcf5f99$exports.array.flatten);
33252
+ async function $21b1b538e1d1be85$var$FastGlob(source, options) {
33253
+ $21b1b538e1d1be85$var$assertPatternsInput(source);
33254
+ const works = $21b1b538e1d1be85$var$getWorks(source, $64f6f1838decdf61$exports.default, options);
33255
+ const result = await Promise.all(works);
33256
+ return $cf522a9d05043495$exports.array.flatten(result);
32993
33257
  }
32994
33258
  // https://github.com/typescript-eslint/typescript-eslint/issues/60
32995
33259
  // eslint-disable-next-line no-redeclare
32996
33260
  (function(FastGlob) {
32997
33261
  function sync(source, options) {
32998
- $b57e78be4f7a2622$var$assertPatternsInput(source);
32999
- const works = $b57e78be4f7a2622$var$getWorks(source, $449ae2813b11b2d5$exports.default, options);
33000
- return $1b5b082adfcf5f99$exports.array.flatten(works);
33262
+ $21b1b538e1d1be85$var$assertPatternsInput(source);
33263
+ const works = $21b1b538e1d1be85$var$getWorks(source, $920a3ecaa6c6297b$exports.default, options);
33264
+ return $cf522a9d05043495$exports.array.flatten(works);
33001
33265
  }
33002
33266
  FastGlob.sync = sync;
33003
33267
  function stream(source, options) {
33004
- $b57e78be4f7a2622$var$assertPatternsInput(source);
33005
- const works = $b57e78be4f7a2622$var$getWorks(source, $434410c8b70ca432$exports.default, options);
33268
+ $21b1b538e1d1be85$var$assertPatternsInput(source);
33269
+ const works = $21b1b538e1d1be85$var$getWorks(source, $7af4d6755aac8d4c$exports.default, options);
33006
33270
  /**
33007
33271
  * The stream returned by the provider cannot work with an asynchronous iterator.
33008
33272
  * To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams.
33009
33273
  * This affects performance (+25%). I don't see best solution right now.
33010
- */ return $1b5b082adfcf5f99$exports.stream.merge(works);
33274
+ */ return $cf522a9d05043495$exports.stream.merge(works);
33011
33275
  }
33012
33276
  FastGlob.stream = stream;
33013
33277
  function generateTasks(source, options) {
33014
- $b57e78be4f7a2622$var$assertPatternsInput(source);
33015
- const patterns = [].concat(source);
33016
- const settings = new $1d7e3dfd05c8321e$exports.default(options);
33017
- return $d436392a45e5b9b4$exports.generate(patterns, settings);
33278
+ $21b1b538e1d1be85$var$assertPatternsInput(source);
33279
+ const patterns = $87bf1fe6ced3ad26$exports.transform([].concat(source));
33280
+ const settings = new $91327a74649d3ed9$exports.default(options);
33281
+ return $94ffeb6ed5329bdb$exports.generate(patterns, settings);
33018
33282
  }
33019
33283
  FastGlob.generateTasks = generateTasks;
33020
33284
  function isDynamicPattern(source, options) {
33021
- $b57e78be4f7a2622$var$assertPatternsInput(source);
33022
- const settings = new $1d7e3dfd05c8321e$exports.default(options);
33023
- return $1b5b082adfcf5f99$exports.pattern.isDynamicPattern(source, settings);
33285
+ $21b1b538e1d1be85$var$assertPatternsInput(source);
33286
+ const settings = new $91327a74649d3ed9$exports.default(options);
33287
+ return $cf522a9d05043495$exports.pattern.isDynamicPattern(source, settings);
33024
33288
  }
33025
33289
  FastGlob.isDynamicPattern = isDynamicPattern;
33026
33290
  function escapePath(source) {
33027
- $b57e78be4f7a2622$var$assertPatternsInput(source);
33028
- return $1b5b082adfcf5f99$exports.path.escape(source);
33291
+ $21b1b538e1d1be85$var$assertPatternsInput(source);
33292
+ return $cf522a9d05043495$exports.path.escape(source);
33029
33293
  }
33030
33294
  FastGlob.escapePath = escapePath;
33031
- })($b57e78be4f7a2622$var$FastGlob || ($b57e78be4f7a2622$var$FastGlob = {}));
33032
- function $b57e78be4f7a2622$var$getWorks(source, _Provider, options) {
33033
- const patterns = [].concat(source);
33034
- const settings = new $1d7e3dfd05c8321e$exports.default(options);
33035
- const tasks = $d436392a45e5b9b4$exports.generate(patterns, settings);
33295
+ })($21b1b538e1d1be85$var$FastGlob || ($21b1b538e1d1be85$var$FastGlob = {}));
33296
+ function $21b1b538e1d1be85$var$getWorks(source, _Provider, options) {
33297
+ const patterns = $87bf1fe6ced3ad26$exports.transform([].concat(source));
33298
+ const settings = new $91327a74649d3ed9$exports.default(options);
33299
+ const tasks = $94ffeb6ed5329bdb$exports.generate(patterns, settings);
33036
33300
  const provider = new _Provider(settings);
33037
33301
  return tasks.map(provider.read, provider);
33038
33302
  }
33039
- function $b57e78be4f7a2622$var$assertPatternsInput(source) {
33040
- if ([].concat(source).every($b57e78be4f7a2622$var$isString)) return;
33041
- throw new TypeError("Patterns must be a string or an array of strings");
33303
+ function $21b1b538e1d1be85$var$assertPatternsInput(input) {
33304
+ const source = [].concat(input);
33305
+ const isValidSource = source.every((item)=>$cf522a9d05043495$exports.string.isString(item) && !$cf522a9d05043495$exports.string.isEmpty(item));
33306
+ if (!isValidSource) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
33042
33307
  }
33043
- function $b57e78be4f7a2622$var$isString(source) {
33044
- return typeof source === "string";
33045
- }
33046
- $b57e78be4f7a2622$exports = $b57e78be4f7a2622$var$FastGlob;
33308
+ $21b1b538e1d1be85$exports = $21b1b538e1d1be85$var$FastGlob;
33309
+
33310
+
33311
+ var $fec3b4fc54d3756a$exports = {};
33312
+ "use strict";
33047
33313
 
33048
33314
 
33049
33315
 
33050
33316
 
33317
+ var $5MQDC = parcelRequire("5MQDC");
33318
+ const $fec3b4fc54d3756a$var$isEmptyString = (val)=>val === "" || val === "./";
33319
+ /**
33320
+ * Returns an array of strings that match one or more glob patterns.
33321
+ *
33322
+ * ```js
33323
+ * const mm = require('micromatch');
33324
+ * // mm(list, patterns[, options]);
33325
+ *
33326
+ * console.log(mm(['a.js', 'a.txt'], ['*.js']));
33327
+ * //=> [ 'a.js' ]
33328
+ * ```
33329
+ * @param {String|Array<string>} `list` List of strings to match.
33330
+ * @param {String|Array<string>} `patterns` One or more glob patterns to use for matching.
33331
+ * @param {Object} `options` See available [options](#options)
33332
+ * @return {Array} Returns an array of matches
33333
+ * @summary false
33334
+ * @api public
33335
+ */ const $fec3b4fc54d3756a$var$micromatch = (list, patterns, options)=>{
33336
+ patterns = [].concat(patterns);
33337
+ list = [].concat(list);
33338
+ let omit = new Set();
33339
+ let keep = new Set();
33340
+ let items = new Set();
33341
+ let negatives = 0;
33342
+ let onResult = (state)=>{
33343
+ items.add(state.output);
33344
+ if (options && options.onResult) options.onResult(state);
33345
+ };
33346
+ for(let i = 0; i < patterns.length; i++){
33347
+ let isMatch = $2af609aa204f1181$exports(String(patterns[i]), {
33348
+ ...options,
33349
+ onResult: onResult
33350
+ }, true);
33351
+ let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
33352
+ if (negated) negatives++;
33353
+ for (let item of list){
33354
+ let matched = isMatch(item, true);
33355
+ let match = negated ? !matched.isMatch : matched.isMatch;
33356
+ if (!match) continue;
33357
+ if (negated) omit.add(matched.output);
33358
+ else {
33359
+ omit.delete(matched.output);
33360
+ keep.add(matched.output);
33361
+ }
33362
+ }
33363
+ }
33364
+ let result = negatives === patterns.length ? [
33365
+ ...items
33366
+ ] : [
33367
+ ...keep
33368
+ ];
33369
+ let matches = result.filter((item)=>!omit.has(item));
33370
+ if (options && matches.length === 0) {
33371
+ if (options.failglob === true) throw new Error(`No matches found for "${patterns.join(", ")}"`);
33372
+ if (options.nonull === true || options.nullglob === true) return options.unescape ? patterns.map((p)=>p.replace(/\\/g, "")) : patterns;
33373
+ }
33374
+ return matches;
33375
+ };
33376
+ /**
33377
+ * Backwards compatibility
33378
+ */ $fec3b4fc54d3756a$var$micromatch.match = $fec3b4fc54d3756a$var$micromatch;
33379
+ /**
33380
+ * Returns a matcher function from the given glob `pattern` and `options`.
33381
+ * The returned function takes a string to match as its only argument and returns
33382
+ * true if the string is a match.
33383
+ *
33384
+ * ```js
33385
+ * const mm = require('micromatch');
33386
+ * // mm.matcher(pattern[, options]);
33387
+ *
33388
+ * const isMatch = mm.matcher('*.!(*a)');
33389
+ * console.log(isMatch('a.a')); //=> false
33390
+ * console.log(isMatch('a.b')); //=> true
33391
+ * ```
33392
+ * @param {String} `pattern` Glob pattern
33393
+ * @param {Object} `options`
33394
+ * @return {Function} Returns a matcher function.
33395
+ * @api public
33396
+ */ $fec3b4fc54d3756a$var$micromatch.matcher = (pattern, options)=>$2af609aa204f1181$exports(pattern, options);
33397
+ /**
33398
+ * Returns true if **any** of the given glob `patterns` match the specified `string`.
33399
+ *
33400
+ * ```js
33401
+ * const mm = require('micromatch');
33402
+ * // mm.isMatch(string, patterns[, options]);
33403
+ *
33404
+ * console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true
33405
+ * console.log(mm.isMatch('a.a', 'b.*')); //=> false
33406
+ * ```
33407
+ * @param {String} `str` The string to test.
33408
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
33409
+ * @param {Object} `[options]` See available [options](#options).
33410
+ * @return {Boolean} Returns true if any patterns match `str`
33411
+ * @api public
33412
+ */ $fec3b4fc54d3756a$var$micromatch.isMatch = (str, patterns, options)=>$2af609aa204f1181$exports(patterns, options)(str);
33413
+ /**
33414
+ * Backwards compatibility
33415
+ */ $fec3b4fc54d3756a$var$micromatch.any = $fec3b4fc54d3756a$var$micromatch.isMatch;
33416
+ /**
33417
+ * Returns a list of strings that _**do not match any**_ of the given `patterns`.
33418
+ *
33419
+ * ```js
33420
+ * const mm = require('micromatch');
33421
+ * // mm.not(list, patterns[, options]);
33422
+ *
33423
+ * console.log(mm.not(['a.a', 'b.b', 'c.c'], '*.a'));
33424
+ * //=> ['b.b', 'c.c']
33425
+ * ```
33426
+ * @param {Array} `list` Array of strings to match.
33427
+ * @param {String|Array} `patterns` One or more glob pattern to use for matching.
33428
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
33429
+ * @return {Array} Returns an array of strings that **do not match** the given patterns.
33430
+ * @api public
33431
+ */ $fec3b4fc54d3756a$var$micromatch.not = (list, patterns, options = {})=>{
33432
+ patterns = [].concat(patterns).map(String);
33433
+ let result = new Set();
33434
+ let items = [];
33435
+ let onResult = (state)=>{
33436
+ if (options.onResult) options.onResult(state);
33437
+ items.push(state.output);
33438
+ };
33439
+ let matches = $fec3b4fc54d3756a$var$micromatch(list, patterns, {
33440
+ ...options,
33441
+ onResult: onResult
33442
+ });
33443
+ for (let item of items)if (!matches.includes(item)) result.add(item);
33444
+ return [
33445
+ ...result
33446
+ ];
33447
+ };
33448
+ /**
33449
+ * Returns true if the given `string` contains the given pattern. Similar
33450
+ * to [.isMatch](#isMatch) but the pattern can match any part of the string.
33451
+ *
33452
+ * ```js
33453
+ * var mm = require('micromatch');
33454
+ * // mm.contains(string, pattern[, options]);
33455
+ *
33456
+ * console.log(mm.contains('aa/bb/cc', '*b'));
33457
+ * //=> true
33458
+ * console.log(mm.contains('aa/bb/cc', '*d'));
33459
+ * //=> false
33460
+ * ```
33461
+ * @param {String} `str` The string to match.
33462
+ * @param {String|Array} `patterns` Glob pattern to use for matching.
33463
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
33464
+ * @return {Boolean} Returns true if any of the patterns matches any part of `str`.
33465
+ * @api public
33466
+ */ $fec3b4fc54d3756a$var$micromatch.contains = (str, pattern, options)=>{
33467
+ if (typeof str !== "string") throw new TypeError(`Expected a string: "${$8C1kk$util.inspect(str)}"`);
33468
+ if (Array.isArray(pattern)) return pattern.some((p)=>$fec3b4fc54d3756a$var$micromatch.contains(str, p, options));
33469
+ if (typeof pattern === "string") {
33470
+ if ($fec3b4fc54d3756a$var$isEmptyString(str) || $fec3b4fc54d3756a$var$isEmptyString(pattern)) return false;
33471
+ if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern)) return true;
33472
+ }
33473
+ return $fec3b4fc54d3756a$var$micromatch.isMatch(str, pattern, {
33474
+ ...options,
33475
+ contains: true
33476
+ });
33477
+ };
33478
+ /**
33479
+ * Filter the keys of the given object with the given `glob` pattern
33480
+ * and `options`. Does not attempt to match nested keys. If you need this feature,
33481
+ * use [glob-object][] instead.
33482
+ *
33483
+ * ```js
33484
+ * const mm = require('micromatch');
33485
+ * // mm.matchKeys(object, patterns[, options]);
33486
+ *
33487
+ * const obj = { aa: 'a', ab: 'b', ac: 'c' };
33488
+ * console.log(mm.matchKeys(obj, '*b'));
33489
+ * //=> { ab: 'b' }
33490
+ * ```
33491
+ * @param {Object} `object` The object with keys to filter.
33492
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
33493
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
33494
+ * @return {Object} Returns an object with only keys that match the given patterns.
33495
+ * @api public
33496
+ */ $fec3b4fc54d3756a$var$micromatch.matchKeys = (obj, patterns, options)=>{
33497
+ if (!$5MQDC.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
33498
+ let keys = $fec3b4fc54d3756a$var$micromatch(Object.keys(obj), patterns, options);
33499
+ let res = {};
33500
+ for (let key of keys)res[key] = obj[key];
33501
+ return res;
33502
+ };
33503
+ /**
33504
+ * Returns true if some of the strings in the given `list` match any of the given glob `patterns`.
33505
+ *
33506
+ * ```js
33507
+ * const mm = require('micromatch');
33508
+ * // mm.some(list, patterns[, options]);
33509
+ *
33510
+ * console.log(mm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
33511
+ * // true
33512
+ * console.log(mm.some(['foo.js'], ['*.js', '!foo.js']));
33513
+ * // false
33514
+ * ```
33515
+ * @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
33516
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
33517
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
33518
+ * @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
33519
+ * @api public
33520
+ */ $fec3b4fc54d3756a$var$micromatch.some = (list, patterns, options)=>{
33521
+ let items = [].concat(list);
33522
+ for (let pattern of [].concat(patterns)){
33523
+ let isMatch = $2af609aa204f1181$exports(String(pattern), options);
33524
+ if (items.some((item)=>isMatch(item))) return true;
33525
+ }
33526
+ return false;
33527
+ };
33528
+ /**
33529
+ * Returns true if every string in the given `list` matches
33530
+ * any of the given glob `patterns`.
33531
+ *
33532
+ * ```js
33533
+ * const mm = require('micromatch');
33534
+ * // mm.every(list, patterns[, options]);
33535
+ *
33536
+ * console.log(mm.every('foo.js', ['foo.js']));
33537
+ * // true
33538
+ * console.log(mm.every(['foo.js', 'bar.js'], ['*.js']));
33539
+ * // true
33540
+ * console.log(mm.every(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
33541
+ * // false
33542
+ * console.log(mm.every(['foo.js'], ['*.js', '!foo.js']));
33543
+ * // false
33544
+ * ```
33545
+ * @param {String|Array} `list` The string or array of strings to test.
33546
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
33547
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
33548
+ * @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
33549
+ * @api public
33550
+ */ $fec3b4fc54d3756a$var$micromatch.every = (list, patterns, options)=>{
33551
+ let items = [].concat(list);
33552
+ for (let pattern of [].concat(patterns)){
33553
+ let isMatch = $2af609aa204f1181$exports(String(pattern), options);
33554
+ if (!items.every((item)=>isMatch(item))) return false;
33555
+ }
33556
+ return true;
33557
+ };
33558
+ /**
33559
+ * Returns true if **all** of the given `patterns` match
33560
+ * the specified string.
33561
+ *
33562
+ * ```js
33563
+ * const mm = require('micromatch');
33564
+ * // mm.all(string, patterns[, options]);
33565
+ *
33566
+ * console.log(mm.all('foo.js', ['foo.js']));
33567
+ * // true
33568
+ *
33569
+ * console.log(mm.all('foo.js', ['*.js', '!foo.js']));
33570
+ * // false
33571
+ *
33572
+ * console.log(mm.all('foo.js', ['*.js', 'foo.js']));
33573
+ * // true
33574
+ *
33575
+ * console.log(mm.all('foo.js', ['*.js', 'f*', '*o*', '*o.js']));
33576
+ * // true
33577
+ * ```
33578
+ * @param {String|Array} `str` The string to test.
33579
+ * @param {String|Array} `patterns` One or more glob patterns to use for matching.
33580
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
33581
+ * @return {Boolean} Returns true if any patterns match `str`
33582
+ * @api public
33583
+ */ $fec3b4fc54d3756a$var$micromatch.all = (str, patterns, options)=>{
33584
+ if (typeof str !== "string") throw new TypeError(`Expected a string: "${$8C1kk$util.inspect(str)}"`);
33585
+ return [].concat(patterns).every((p)=>$2af609aa204f1181$exports(p, options)(str));
33586
+ };
33587
+ /**
33588
+ * Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
33589
+ *
33590
+ * ```js
33591
+ * const mm = require('micromatch');
33592
+ * // mm.capture(pattern, string[, options]);
33593
+ *
33594
+ * console.log(mm.capture('test/*.js', 'test/foo.js'));
33595
+ * //=> ['foo']
33596
+ * console.log(mm.capture('test/*.js', 'foo/bar.css'));
33597
+ * //=> null
33598
+ * ```
33599
+ * @param {String} `glob` Glob pattern to use for matching.
33600
+ * @param {String} `input` String to match
33601
+ * @param {Object} `options` See available [options](#options) for changing how matches are performed
33602
+ * @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
33603
+ * @api public
33604
+ */ $fec3b4fc54d3756a$var$micromatch.capture = (glob, input, options)=>{
33605
+ let posix = $5MQDC.isWindows(options);
33606
+ let regex = $2af609aa204f1181$exports.makeRe(String(glob), {
33607
+ ...options,
33608
+ capture: true
33609
+ });
33610
+ let match = regex.exec(posix ? $5MQDC.toPosixSlashes(input) : input);
33611
+ if (match) return match.slice(1).map((v)=>v === void 0 ? "" : v);
33612
+ };
33613
+ /**
33614
+ * Create a regular expression from the given glob `pattern`.
33615
+ *
33616
+ * ```js
33617
+ * const mm = require('micromatch');
33618
+ * // mm.makeRe(pattern[, options]);
33619
+ *
33620
+ * console.log(mm.makeRe('*.js'));
33621
+ * //=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
33622
+ * ```
33623
+ * @param {String} `pattern` A glob pattern to convert to regex.
33624
+ * @param {Object} `options`
33625
+ * @return {RegExp} Returns a regex created from the given pattern.
33626
+ * @api public
33627
+ */ $fec3b4fc54d3756a$var$micromatch.makeRe = (...args)=>$2af609aa204f1181$exports.makeRe(...args);
33628
+ /**
33629
+ * Scan a glob pattern to separate the pattern into segments. Used
33630
+ * by the [split](#split) method.
33631
+ *
33632
+ * ```js
33633
+ * const mm = require('micromatch');
33634
+ * const state = mm.scan(pattern[, options]);
33635
+ * ```
33636
+ * @param {String} `pattern`
33637
+ * @param {Object} `options`
33638
+ * @return {Object} Returns an object with
33639
+ * @api public
33640
+ */ $fec3b4fc54d3756a$var$micromatch.scan = (...args)=>$2af609aa204f1181$exports.scan(...args);
33641
+ /**
33642
+ * Parse a glob pattern to create the source string for a regular
33643
+ * expression.
33644
+ *
33645
+ * ```js
33646
+ * const mm = require('micromatch');
33647
+ * const state = mm(pattern[, options]);
33648
+ * ```
33649
+ * @param {String} `glob`
33650
+ * @param {Object} `options`
33651
+ * @return {Object} Returns an object with useful properties and output to be used as regex source string.
33652
+ * @api public
33653
+ */ $fec3b4fc54d3756a$var$micromatch.parse = (patterns, options)=>{
33654
+ let res = [];
33655
+ for (let pattern of [].concat(patterns || []))for (let str of $fec07f13db1e462a$exports(String(pattern), options))res.push($2af609aa204f1181$exports.parse(str, options));
33656
+ return res;
33657
+ };
33658
+ /**
33659
+ * Process the given brace `pattern`.
33660
+ *
33661
+ * ```js
33662
+ * const { braces } = require('micromatch');
33663
+ * console.log(braces('foo/{a,b,c}/bar'));
33664
+ * //=> [ 'foo/(a|b|c)/bar' ]
33665
+ *
33666
+ * console.log(braces('foo/{a,b,c}/bar', { expand: true }));
33667
+ * //=> [ 'foo/a/bar', 'foo/b/bar', 'foo/c/bar' ]
33668
+ * ```
33669
+ * @param {String} `pattern` String with brace pattern to process.
33670
+ * @param {Object} `options` Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options.
33671
+ * @return {Array}
33672
+ * @api public
33673
+ */ $fec3b4fc54d3756a$var$micromatch.braces = (pattern, options)=>{
33674
+ if (typeof pattern !== "string") throw new TypeError("Expected a string");
33675
+ if (options && options.nobrace === true || !/\{.*\}/.test(pattern)) return [
33676
+ pattern
33677
+ ];
33678
+ return $fec07f13db1e462a$exports(pattern, options);
33679
+ };
33680
+ /**
33681
+ * Expand braces
33682
+ */ $fec3b4fc54d3756a$var$micromatch.braceExpand = (pattern, options)=>{
33683
+ if (typeof pattern !== "string") throw new TypeError("Expected a string");
33684
+ return $fec3b4fc54d3756a$var$micromatch.braces(pattern, {
33685
+ ...options,
33686
+ expand: true
33687
+ });
33688
+ };
33689
+ /**
33690
+ * Expose micromatch
33691
+ */ $fec3b4fc54d3756a$exports = $fec3b4fc54d3756a$var$micromatch;
33692
+
33693
+
33694
+
33051
33695
  function $e8d0e504a4244d84$export$f3a2344a73dbdd42(p) {
33052
33696
  return (0, (/*@__PURE__*/$parcel$interopDefault($5aee5a8e09e874bf$exports)))((0, $3dff16cfd200ff25$export$16778b798ae8e49d)(p));
33053
33697
  }
@@ -33055,6 +33699,10 @@ function $e8d0e504a4244d84$export$16e6d319a883f04e(filePath, glob, opts) {
33055
33699
  glob = Array.isArray(glob) ? glob.map((0, $3dff16cfd200ff25$export$16778b798ae8e49d)) : (0, $3dff16cfd200ff25$export$16778b798ae8e49d)(glob);
33056
33700
  return (0, $fec3b4fc54d3756a$exports.isMatch)(filePath, glob, opts);
33057
33701
  }
33702
+ function $e8d0e504a4244d84$export$73b12c6cc27aa6c0(values, glob, opts) {
33703
+ glob = Array.isArray(glob) ? glob.map((0, $3dff16cfd200ff25$export$16778b798ae8e49d)) : (0, $3dff16cfd200ff25$export$16778b798ae8e49d)(glob);
33704
+ return (0, (/*@__PURE__*/$parcel$interopDefault($fec3b4fc54d3756a$exports)))(values, glob, opts);
33705
+ }
33058
33706
  function $e8d0e504a4244d84$export$c0436a5422df81e4(glob, opts) {
33059
33707
  return (0, $fec3b4fc54d3756a$exports.makeRe)(glob, opts);
33060
33708
  }
@@ -33075,8 +33723,9 @@ function $e8d0e504a4244d84$export$42275ba87174c828(p, fs, options) {
33075
33723
  return fs.readdirSync(p, opts);
33076
33724
  }
33077
33725
  }
33078
- }; // $FlowFixMe
33079
- return (0, (/*@__PURE__*/$parcel$interopDefault($b57e78be4f7a2622$exports))).sync((0, $3dff16cfd200ff25$export$16778b798ae8e49d)(p), options);
33726
+ };
33727
+ // $FlowFixMe
33728
+ return (0, (/*@__PURE__*/$parcel$interopDefault($21b1b538e1d1be85$exports))).sync((0, $3dff16cfd200ff25$export$16778b798ae8e49d)(p), options);
33080
33729
  }
33081
33730
  function $e8d0e504a4244d84$export$442f1a04865e4790(p, fs, options) {
33082
33731
  // $FlowFixMe
@@ -33111,8 +33760,9 @@ function $e8d0e504a4244d84$export$442f1a04865e4790(p, fs, options) {
33111
33760
  }
33112
33761
  }
33113
33762
  }
33114
- }; // $FlowFixMe Added in Flow 0.121.0 upgrade in #4381
33115
- return (0, (/*@__PURE__*/$parcel$interopDefault($b57e78be4f7a2622$exports)))((0, $3dff16cfd200ff25$export$16778b798ae8e49d)(p), options);
33763
+ };
33764
+ // $FlowFixMe Added in Flow 0.121.0 upgrade in #4381
33765
+ return (0, (/*@__PURE__*/$parcel$interopDefault($21b1b538e1d1be85$exports)))((0, $3dff16cfd200ff25$export$16778b798ae8e49d)(p), options);
33116
33766
  }
33117
33767
 
33118
33768
 
@@ -33137,7 +33787,8 @@ function $275c1a71c92a4142$export$2e2bcd8739ae039(files) {
33137
33787
  }
33138
33788
  }
33139
33789
  return cur ? cur.dir : process.cwd();
33140
- } // Transforms a path like `packages/*/src/index.js` to the root of the glob, `packages/`
33790
+ }
33791
+ // Transforms a path like `packages/*/src/index.js` to the root of the glob, `packages/`
33141
33792
  function $275c1a71c92a4142$var$findGlobRoot(dir) {
33142
33793
  let parts = dir.split((0, ($parcel$interopDefault($8C1kk$path))).sep);
33143
33794
  let last = parts.length;
@@ -33180,7 +33831,9 @@ var $7cae98672dfb03cc$var$nonLocalhostDomainRE = /^[^\s\.]+\.\S{2,}$/;
33180
33831
  }
33181
33832
 
33182
33833
 
33183
- const $f7d48e99e9c9e3b2$var$ANCHOR_REGEXP = /^#/; // Matches scheme (ie: tel:, mailto:, data:, itms-apps:)
33834
+ // Matches anchor (ie: #raptors)
33835
+ const $f7d48e99e9c9e3b2$var$ANCHOR_REGEXP = /^#/;
33836
+ // Matches scheme (ie: tel:, mailto:, data:, itms-apps:)
33184
33837
  const $f7d48e99e9c9e3b2$var$SCHEME_REGEXP = /^[a-z][a-z0-9\-+.]*:/i;
33185
33838
  function $f7d48e99e9c9e3b2$export$2e2bcd8739ae039(url) {
33186
33839
  return (0, (/*@__PURE__*/$parcel$interopDefault($7cae98672dfb03cc$exports)))(url) || $f7d48e99e9c9e3b2$var$ANCHOR_REGEXP.test(url) || $f7d48e99e9c9e3b2$var$SCHEME_REGEXP.test(url);
@@ -33490,10 +34143,14 @@ async function $f02d6a9d30f55938$export$2e2bcd8739ae039(diagnostic, options, ter
33490
34143
  if (code != null) formattedCodeFrame = (0, ($parcel$interopDefault($8C1kk$parcelcodeframe)))(code, highlights, {
33491
34144
  useColor: true,
33492
34145
  syntaxHighlighting: true,
33493
- language: codeFrame.language || (filePath != null ? (0, ($parcel$interopDefault($8C1kk$path))).extname(filePath).substr(1) : undefined),
34146
+ language: // $FlowFixMe sketchy null checks do not matter here...
34147
+ codeFrame.language || (filePath != null ? (0, ($parcel$interopDefault($8C1kk$path))).extname(filePath).substr(1) : undefined),
33494
34148
  terminalWidth: terminalWidth
33495
34149
  });
33496
- let location = typeof filePath !== "string" ? "" : `${filePath}:${highlights[0].start.line}:${highlights[0].start.column}`;
34150
+ let location;
34151
+ if (typeof filePath !== "string") location = "";
34152
+ else if (highlights.length === 0) location = filePath;
34153
+ else location = `${filePath}:${highlights[0].start.line}:${highlights[0].start.column}`;
33497
34154
  result.codeframe += location ? (0, ($parcel$interopDefault($8C1kk$chalk))).gray.underline(location) + "\n" : "";
33498
34155
  result.codeframe += formattedCodeFrame;
33499
34156
  if (codeFrame !== codeFrames[codeFrames.length - 1]) result.codeframe += "\n\n";
@@ -33521,7 +34178,8 @@ function $75952a43539cb60f$export$93f345b3f0dd27e7() {
33521
34178
  resolve: resolve,
33522
34179
  reject: reject
33523
34180
  };
33524
- }); // Promise constructor callback executes synchronously, so this is defined
34181
+ });
34182
+ // Promise constructor callback executes synchronously, so this is defined
33525
34183
  (0, ($parcel$interopDefault($8C1kk$assert)))(deferred != null);
33526
34184
  return {
33527
34185
  deferred: deferred,
@@ -33606,26 +34264,18 @@ class $b0fd219fea43bcac$export$2e2bcd8739ae039 {
33606
34264
 
33607
34265
 
33608
34266
 
33609
- var $f48e6c7a66080865$exports = {};
33610
-
33611
- $parcel$export($f48e6c7a66080865$exports, "distance", () => $f48e6c7a66080865$export$9f17032d917177de, (v) => $f48e6c7a66080865$export$9f17032d917177de = v);
33612
- $parcel$export($f48e6c7a66080865$exports, "closest", () => $f48e6c7a66080865$export$ff7f7c97cdce86e, (v) => $f48e6c7a66080865$export$ff7f7c97cdce86e = v);
33613
- var $f48e6c7a66080865$export$9f17032d917177de;
33614
- var $f48e6c7a66080865$export$ff7f7c97cdce86e;
33615
- const $f48e6c7a66080865$var$peq = new Uint32Array(0x10000);
33616
- const $f48e6c7a66080865$var$myers_32 = (a, b)=>{
34267
+ const $c066e3e3e5b06560$var$peq = new Uint32Array(0x10000);
34268
+ const $c066e3e3e5b06560$var$myers_32 = (a, b)=>{
33617
34269
  const n = a.length;
33618
34270
  const m = b.length;
33619
34271
  const lst = 1 << n - 1;
33620
34272
  let pv = -1;
33621
34273
  let mv = 0;
33622
34274
  let sc = n;
33623
- let i = m;
33624
- while(i--)$f48e6c7a66080865$var$peq[b.charCodeAt(i)] = 0;
33625
- i = n;
33626
- while(i--)$f48e6c7a66080865$var$peq[a.charCodeAt(i)] |= 1 << i;
34275
+ let i = n;
34276
+ while(i--)$c066e3e3e5b06560$var$peq[a.charCodeAt(i)] |= 1 << i;
33627
34277
  for(i = 0; i < m; i++){
33628
- let eq = $f48e6c7a66080865$var$peq[b.charCodeAt(i)];
34278
+ let eq = $c066e3e3e5b06560$var$peq[b.charCodeAt(i)];
33629
34279
  const xv = eq | mv;
33630
34280
  eq |= (eq & pv) + pv ^ pv;
33631
34281
  mv |= ~(eq | pv);
@@ -33636,16 +34286,17 @@ const $f48e6c7a66080865$var$myers_32 = (a, b)=>{
33636
34286
  pv = pv << 1 | ~(xv | mv);
33637
34287
  mv &= xv;
33638
34288
  }
34289
+ i = n;
34290
+ while(i--)$c066e3e3e5b06560$var$peq[a.charCodeAt(i)] = 0;
33639
34291
  return sc;
33640
34292
  };
33641
- const $f48e6c7a66080865$var$myers_x = (b, a)=>{
34293
+ const $c066e3e3e5b06560$var$myers_x = (b, a)=>{
33642
34294
  const n = a.length;
33643
34295
  const m = b.length;
33644
34296
  const mhc = [];
33645
34297
  const phc = [];
33646
34298
  const hsize = Math.ceil(n / 32);
33647
34299
  const vsize = Math.ceil(m / 32);
33648
- let score = m;
33649
34300
  for(let i = 0; i < hsize; i++){
33650
34301
  phc[i] = -1;
33651
34302
  mhc[i] = 0;
@@ -33655,71 +34306,68 @@ const $f48e6c7a66080865$var$myers_x = (b, a)=>{
33655
34306
  let mv = 0;
33656
34307
  let pv = -1;
33657
34308
  const start = j * 32;
33658
- const vlen = Math.min(32, m - start);
33659
- let k = n;
33660
- while(k--)$f48e6c7a66080865$var$peq[a.charCodeAt(k)] = 0;
33661
- for(k = start; k < start + vlen; k++)$f48e6c7a66080865$var$peq[b.charCodeAt(k)] |= 1 << k;
33662
- score = m;
34309
+ const vlen = Math.min(32, m) + start;
34310
+ for(let k = start; k < vlen; k++)$c066e3e3e5b06560$var$peq[b.charCodeAt(k)] |= 1 << k;
33663
34311
  for(let i = 0; i < n; i++){
33664
- const eq = $f48e6c7a66080865$var$peq[a.charCodeAt(i)];
33665
- const pb = phc[i / 32 | 0] >>> i % 32 & 1;
33666
- const mb = mhc[i / 32 | 0] >>> i % 32 & 1;
34312
+ const eq = $c066e3e3e5b06560$var$peq[a.charCodeAt(i)];
34313
+ const pb = phc[i / 32 | 0] >>> i & 1;
34314
+ const mb = mhc[i / 32 | 0] >>> i & 1;
33667
34315
  const xv = eq | mv;
33668
34316
  const xh = ((eq | mb) & pv) + pv ^ pv | eq | mb;
33669
34317
  let ph = mv | ~(xh | pv);
33670
34318
  let mh = pv & xh;
33671
- if (ph >>> 31 ^ pb) phc[i / 32 | 0] ^= 1 << i % 32;
33672
- if (mh >>> 31 ^ mb) mhc[i / 32 | 0] ^= 1 << i % 32;
34319
+ if (ph >>> 31 ^ pb) phc[i / 32 | 0] ^= 1 << i;
34320
+ if (mh >>> 31 ^ mb) mhc[i / 32 | 0] ^= 1 << i;
33673
34321
  ph = ph << 1 | pb;
33674
34322
  mh = mh << 1 | mb;
33675
34323
  pv = mh | ~(xv | ph);
33676
34324
  mv = ph & xv;
33677
34325
  }
34326
+ for(let k = start; k < vlen; k++)$c066e3e3e5b06560$var$peq[b.charCodeAt(k)] = 0;
33678
34327
  }
33679
34328
  let mv = 0;
33680
34329
  let pv = -1;
33681
34330
  const start = j * 32;
33682
- const vlen = Math.min(32, m - start);
33683
- let k = n;
33684
- while(k--)$f48e6c7a66080865$var$peq[a.charCodeAt(k)] = 0;
33685
- for(k = start; k < start + vlen; k++)$f48e6c7a66080865$var$peq[b.charCodeAt(k)] |= 1 << k;
33686
- score = m;
34331
+ const vlen = Math.min(32, m - start) + start;
34332
+ for(let k = start; k < vlen; k++)$c066e3e3e5b06560$var$peq[b.charCodeAt(k)] |= 1 << k;
34333
+ let score = m;
33687
34334
  for(let i = 0; i < n; i++){
33688
- const eq = $f48e6c7a66080865$var$peq[a.charCodeAt(i)];
33689
- const pb = phc[i / 32 | 0] >>> i % 32 & 1;
33690
- const mb = mhc[i / 32 | 0] >>> i % 32 & 1;
34335
+ const eq = $c066e3e3e5b06560$var$peq[a.charCodeAt(i)];
34336
+ const pb = phc[i / 32 | 0] >>> i & 1;
34337
+ const mb = mhc[i / 32 | 0] >>> i & 1;
33691
34338
  const xv = eq | mv;
33692
34339
  const xh = ((eq | mb) & pv) + pv ^ pv | eq | mb;
33693
34340
  let ph = mv | ~(xh | pv);
33694
34341
  let mh = pv & xh;
33695
- score += ph >>> m % 32 - 1 & 1;
33696
- score -= mh >>> m % 32 - 1 & 1;
33697
- if (ph >>> 31 ^ pb) phc[i / 32 | 0] ^= 1 << i % 32;
33698
- if (mh >>> 31 ^ mb) mhc[i / 32 | 0] ^= 1 << i % 32;
34342
+ score += ph >>> m - 1 & 1;
34343
+ score -= mh >>> m - 1 & 1;
34344
+ if (ph >>> 31 ^ pb) phc[i / 32 | 0] ^= 1 << i;
34345
+ if (mh >>> 31 ^ mb) mhc[i / 32 | 0] ^= 1 << i;
33699
34346
  ph = ph << 1 | pb;
33700
34347
  mh = mh << 1 | mb;
33701
34348
  pv = mh | ~(xv | ph);
33702
34349
  mv = ph & xv;
33703
34350
  }
34351
+ for(let k = start; k < vlen; k++)$c066e3e3e5b06560$var$peq[b.charCodeAt(k)] = 0;
33704
34352
  return score;
33705
34353
  };
33706
- $f48e6c7a66080865$export$9f17032d917177de = (a, b)=>{
34354
+ const $c066e3e3e5b06560$export$9f17032d917177de = (a, b)=>{
33707
34355
  if (a.length < b.length) {
33708
34356
  const tmp = b;
33709
34357
  b = a;
33710
34358
  a = tmp;
33711
34359
  }
33712
34360
  if (b.length === 0) return a.length;
33713
- if (a.length <= 32) return $f48e6c7a66080865$var$myers_32(a, b);
33714
- return $f48e6c7a66080865$var$myers_x(a, b);
34361
+ if (a.length <= 32) return $c066e3e3e5b06560$var$myers_32(a, b);
34362
+ return $c066e3e3e5b06560$var$myers_x(a, b);
33715
34363
  };
33716
- $f48e6c7a66080865$export$ff7f7c97cdce86e = (str, arr)=>{
34364
+ const $c066e3e3e5b06560$export$ff7f7c97cdce86e = (str, arr)=>{
33717
34365
  let min_distance = Infinity;
33718
34366
  let min_index = 0;
33719
34367
  for(let i = 0; i < arr.length; i++){
33720
- const distance = $f48e6c7a66080865$export$9f17032d917177de(str, arr[i]);
33721
- if (distance < min_distance) {
33722
- min_distance = distance;
34368
+ const dist = $c066e3e3e5b06560$export$9f17032d917177de(str, arr[i]);
34369
+ if (dist < min_distance) {
34370
+ min_distance = dist;
33723
34371
  min_index = i;
33724
34372
  }
33725
34373
  }
@@ -33745,11 +34393,13 @@ function $4ca1027d34905147$var$validateSchema(schema, data) {
33745
34393
  else switch(schemaNode.type){
33746
34394
  case "array":
33747
34395
  if (schemaNode.items) {
33748
- let results = []; // $FlowFixMe type was already checked
34396
+ let results = [];
34397
+ // $FlowFixMe type was already checked
33749
34398
  for(let i = 0; i < dataNode.length; i++){
33750
34399
  let result = walk([
33751
34400
  schemaNode.items
33752
- ].concat(schemaAncestors), dataNode[i], dataPath + "/" + i);
34401
+ ].concat(schemaAncestors), // $FlowFixMe type was already checked
34402
+ dataNode[i], dataPath + "/" + i);
33753
34403
  if (result) results.push(result);
33754
34404
  }
33755
34405
  if (results.length) return results.reduce((acc, v)=>acc.concat(v), []);
@@ -33830,13 +34480,15 @@ function $4ca1027d34905147$var$validateSchema(schema, data) {
33830
34480
  })));
33831
34481
  }
33832
34482
  if (schemaNode.properties) {
33833
- let { additionalProperties: additionalProperties = true } = schemaNode; // $FlowFixMe type was already checked
34483
+ let { additionalProperties: additionalProperties = true } = schemaNode;
34484
+ // $FlowFixMe type was already checked
33834
34485
  for(let k in dataNode){
33835
34486
  if (invalidProps && invalidProps.includes(k)) continue;
33836
34487
  else if (k in schemaNode.properties) {
33837
34488
  let result = walk([
33838
34489
  schemaNode.properties[k]
33839
- ].concat(schemaAncestors), dataNode[k], dataPath + "/" + (0, $8C1kk$parceldiagnostic.encodeJSONKeyComponent)(k));
34490
+ ].concat(schemaAncestors), // $FlowFixMe type was already checked
34491
+ dataNode[k], dataPath + "/" + (0, $8C1kk$parceldiagnostic.encodeJSONKeyComponent)(k));
33840
34492
  if (result) results.push(result);
33841
34493
  } else {
33842
34494
  if (typeof additionalProperties === "boolean") {
@@ -33844,7 +34496,8 @@ function $4ca1027d34905147$var$validateSchema(schema, data) {
33844
34496
  type: "enum",
33845
34497
  dataType: "key",
33846
34498
  dataPath: dataPath + "/" + (0, $8C1kk$parceldiagnostic.encodeJSONKeyComponent)(k),
33847
- expectedValues: Object.keys(schemaNode.properties).filter((p)=>!(p in dataNode)),
34499
+ expectedValues: Object.keys(schemaNode.properties).filter(// $FlowFixMe type was already checked
34500
+ (p)=>!(p in dataNode)),
33848
34501
  actualValue: k,
33849
34502
  ancestors: schemaAncestors,
33850
34503
  prettyType: schemaNode.__type
@@ -33852,7 +34505,8 @@ function $4ca1027d34905147$var$validateSchema(schema, data) {
33852
34505
  } else {
33853
34506
  let result = walk([
33854
34507
  additionalProperties
33855
- ].concat(schemaAncestors), dataNode[k], dataPath + "/" + (0, $8C1kk$parceldiagnostic.encodeJSONKeyComponent)(k));
34508
+ ].concat(schemaAncestors), // $FlowFixMe type was already checked
34509
+ dataNode[k], dataPath + "/" + (0, $8C1kk$parceldiagnostic.encodeJSONKeyComponent)(k));
33856
34510
  if (result) results.push(result);
33857
34511
  }
33858
34512
  }
@@ -33916,14 +34570,16 @@ var $4ca1027d34905147$export$2e2bcd8739ae039 = $4ca1027d34905147$var$validateSch
33916
34570
  function $4ca1027d34905147$export$2115c2c0a84eef61(expectedValues, actualValue) {
33917
34571
  let result = expectedValues.map((exp)=>[
33918
34572
  exp,
33919
- (0, (/*@__PURE__*/$parcel$interopDefault($f48e6c7a66080865$exports))).distance(exp, actualValue)
33920
- ]).filter(([, d])=>d * 2 < actualValue.length);
34573
+ $c066e3e3e5b06560$export$9f17032d917177de(exp, actualValue)
34574
+ ]).filter(// Remove if more than half of the string would need to be changed
34575
+ ([, d])=>d * 2 < actualValue.length);
33921
34576
  result.sort(([, a], [, b])=>a - b);
33922
34577
  return result.map(([v])=>v);
33923
34578
  }
33924
34579
  $4ca1027d34905147$var$validateSchema.diagnostic = function(schema, data, origin, message) {
33925
34580
  if ("source" in data && "data" in data && typeof data.source !== "string" && !data) throw new Error("At least one of data.source and data.data must be defined!");
33926
- var _data_data;
34581
+ var // $FlowFixMe we can assume it's a JSON object
34582
+ _data_data;
33927
34583
  let object = data.map ? data.map.data : (_data_data = data.data) !== null && _data_data !== void 0 ? _data_data : JSON.parse(data.source);
33928
34584
  let errors = $4ca1027d34905147$var$validateSchema(schema, object);
33929
34585
  if (errors.length) {
@@ -34015,7 +34671,8 @@ class $3f2d35ad38f40faa$export$2e2bcd8739ae039 extends (0, $8C1kk$stream.Transfo
34015
34671
 
34016
34672
 
34017
34673
  function $dfabc3743c08d51c$export$2e2bcd8739ae039(publicURL, assetPath) {
34018
- const url = (0, ($parcel$interopDefault($8C1kk$url))).parse(publicURL, false, true); // Leading / ensures that paths with colons are not parsed as a protocol.
34674
+ const url = (0, ($parcel$interopDefault($8C1kk$url))).parse(publicURL, false, true);
34675
+ // Leading / ensures that paths with colons are not parsed as a protocol.
34019
34676
  let p = assetPath.startsWith("/") ? assetPath : "/" + assetPath;
34020
34677
  const assetUrl = (0, ($parcel$interopDefault($8C1kk$url))).parse(p);
34021
34678
  url.pathname = (0, ($parcel$interopDefault($8C1kk$path))).posix.join(url.pathname, assetUrl.pathname);
@@ -34032,7 +34689,8 @@ function $b18990c6c3ea36b3$export$2e2bcd8739ae039(from, to) {
34032
34689
  }
34033
34690
 
34034
34691
 
34035
- function $43b0dce5dd282650$export$2e2bcd8739ae039(start, specifier, lineOffset = 0, columnOffset = 0, importWrapperLength = 2) {
34692
+ function $43b0dce5dd282650$export$2e2bcd8739ae039(start, specifier, lineOffset = 0, columnOffset = 0, // Imports are usually wrapped in quotes
34693
+ importWrapperLength = 2) {
34036
34694
  return {
34037
34695
  filePath: specifier,
34038
34696
  start: {
@@ -34233,6 +34891,7 @@ $618f8c1de80a427f$exports = async (target, options)=>{
34233
34891
 
34234
34892
 
34235
34893
 
34894
+ // Chrome app name is platform dependent. we should not hard code it.
34236
34895
  // https://github.com/react-native-community/cli/blob/e2be8a905285d9b37512fc78c9755b9635ecf805/packages/cli/src/commands/server/launchDebugger.ts#L28
34237
34896
  function $f064b622a304e96c$var$getChromeAppName() {
34238
34897
  switch(process.platform){
@@ -34537,10 +35196,28 @@ var $5dc3ee1f90b35876$var$parse = function parse(text, reviver) {
34537
35196
  };
34538
35197
  function $5dc3ee1f90b35876$var$internalize(holder, name, reviver) {
34539
35198
  const value = holder[name];
34540
- if (value != null && typeof value === "object") for(const key in value){
34541
- const replacement = $5dc3ee1f90b35876$var$internalize(value, key, reviver);
34542
- if (replacement === undefined) delete value[key];
34543
- else value[key] = replacement;
35199
+ if (value != null && typeof value === "object") {
35200
+ if (Array.isArray(value)) for(let i = 0; i < value.length; i++){
35201
+ const key = String(i);
35202
+ const replacement = $5dc3ee1f90b35876$var$internalize(value, key, reviver);
35203
+ if (replacement === undefined) delete value[key];
35204
+ else Object.defineProperty(value, key, {
35205
+ value: replacement,
35206
+ writable: true,
35207
+ enumerable: true,
35208
+ configurable: true
35209
+ });
35210
+ }
35211
+ else for(const key in value){
35212
+ const replacement = $5dc3ee1f90b35876$var$internalize(value, key, reviver);
35213
+ if (replacement === undefined) delete value[key];
35214
+ else Object.defineProperty(value, key, {
35215
+ value: replacement,
35216
+ writable: true,
35217
+ enumerable: true,
35218
+ configurable: true
35219
+ });
35220
+ }
34544
35221
  }
34545
35222
  return reviver.call(holder, name, value);
34546
35223
  }
@@ -35067,7 +35744,7 @@ function $5dc3ee1f90b35876$var$escape() {
35067
35744
  case "0":
35068
35745
  $5dc3ee1f90b35876$var$read();
35069
35746
  if ($5dc3ee1f90b35876$var$util.isDigit($5dc3ee1f90b35876$var$peek())) throw $5dc3ee1f90b35876$var$invalidChar($5dc3ee1f90b35876$var$read());
35070
- return "\0";
35747
+ return "\x00";
35071
35748
  case "x":
35072
35749
  $5dc3ee1f90b35876$var$read();
35073
35750
  return $5dc3ee1f90b35876$var$hexEscape();
@@ -35226,7 +35903,12 @@ function $5dc3ee1f90b35876$var$push() {
35226
35903
  else {
35227
35904
  const parent = $5dc3ee1f90b35876$var$stack[$5dc3ee1f90b35876$var$stack.length - 1];
35228
35905
  if (Array.isArray(parent)) parent.push(value);
35229
- else parent[$5dc3ee1f90b35876$var$key] = value;
35906
+ else Object.defineProperty(parent, $5dc3ee1f90b35876$var$key, {
35907
+ value: value,
35908
+ writable: true,
35909
+ enumerable: true,
35910
+ configurable: true
35911
+ });
35230
35912
  }
35231
35913
  if (value !== null && typeof value === "object") {
35232
35914
  $5dc3ee1f90b35876$var$stack.push(value);
@@ -35287,7 +35969,7 @@ function $5dc3ee1f90b35876$var$formatChar(c) {
35287
35969
  "\r": "\\r",
35288
35970
  " ": "\\t",
35289
35971
  "\v": "\\v",
35290
- "\0": "\\0",
35972
+ "\x00": "\\0",
35291
35973
  "\u2028": "\\u2028",
35292
35974
  "\u2029": "\\u2029"
35293
35975
  };
@@ -35375,7 +36057,7 @@ var $5dc3ee1f90b35876$var$stringify = function stringify(value, replacer, space)
35375
36057
  "\r": "\\r",
35376
36058
  " ": "\\t",
35377
36059
  "\v": "\\v",
35378
- "\0": "\\0",
36060
+ "\x00": "\\0",
35379
36061
  "\u2028": "\\u2028",
35380
36062
  "\u2029": "\\u2029"
35381
36063
  };
@@ -35388,7 +36070,7 @@ var $5dc3ee1f90b35876$var$stringify = function stringify(value, replacer, space)
35388
36070
  quotes[c]++;
35389
36071
  product += c;
35390
36072
  continue;
35391
- case "\0":
36073
+ case "\x00":
35392
36074
  if ($5dc3ee1f90b35876$var$util.isDigit(value[i + 1])) {
35393
36075
  product += "\\x00";
35394
36076
  continue;
@@ -36039,7 +36721,7 @@ async function $10671d0be444e08b$export$c1a4367d4847eb06(fs, filepath, filenames
36039
36721
  if (extname === "js" || extname === "cjs") {
36040
36722
  let output = {
36041
36723
  // $FlowFixMe
36042
- config: (0, (/*@__PURE__*/$parcel$interopDefault($284aeb9e515b63c0$exports)))(require(configFile)),
36724
+ config: (0, (/*@__PURE__*/$parcel$interopDefault($284aeb9e515b63c0$exports)))(module.require(configFile)),
36043
36725
  files: [
36044
36726
  {
36045
36727
  filePath: configFile
@@ -36049,52 +36731,7 @@ async function $10671d0be444e08b$export$c1a4367d4847eb06(fs, filepath, filenames
36049
36731
  $10671d0be444e08b$var$configCache.set(configFile, output);
36050
36732
  return output;
36051
36733
  }
36052
- let configContent = await fs.readFile(configFile, "utf8");
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;
36734
+ return $10671d0be444e08b$export$f5327b421858c8cd(fs, configFile, opts);
36098
36735
  } catch (err) {
36099
36736
  if (err.code === "MODULE_NOT_FOUND" || err.code === "ENOENT") return null;
36100
36737
  throw err;
@@ -36106,6 +36743,64 @@ $10671d0be444e08b$export$c1a4367d4847eb06.clear = ()=>{
36106
36743
  $10671d0be444e08b$var$configCache.reset();
36107
36744
  $10671d0be444e08b$var$resolveCache.clear();
36108
36745
  };
36746
+ async function $10671d0be444e08b$export$f5327b421858c8cd(fs, configFile, opts) {
36747
+ var _opts_parse;
36748
+ let parse = (_opts_parse = opts === null || opts === void 0 ? void 0 : opts.parse) !== null && _opts_parse !== void 0 ? _opts_parse : true;
36749
+ let cachedOutput = $10671d0be444e08b$var$configCache.get(String(parse) + configFile);
36750
+ if (cachedOutput) return cachedOutput;
36751
+ try {
36752
+ let configContent = await fs.readFile(configFile, "utf8");
36753
+ let config;
36754
+ if (parse === false) config = configContent;
36755
+ else {
36756
+ let extname = (0, ($parcel$interopDefault($8C1kk$path))).extname(configFile).slice(1);
36757
+ var _opts_parser;
36758
+ let parse = (_opts_parser = opts === null || opts === void 0 ? void 0 : opts.parser) !== null && _opts_parser !== void 0 ? _opts_parser : $10671d0be444e08b$var$getParser(extname);
36759
+ try {
36760
+ config = parse(configContent);
36761
+ } catch (e) {
36762
+ if (extname !== "" && extname !== "json") throw e;
36763
+ let pos = {
36764
+ line: e.lineNumber,
36765
+ column: e.columnNumber
36766
+ };
36767
+ throw new (0, ($parcel$interopDefault($8C1kk$parceldiagnostic)))({
36768
+ diagnostic: {
36769
+ message: `Failed to parse ${(0, ($parcel$interopDefault($8C1kk$path))).basename(configFile)}`,
36770
+ origin: "@parcel/utils",
36771
+ codeFrames: [
36772
+ {
36773
+ language: "json5",
36774
+ filePath: configFile,
36775
+ code: configContent,
36776
+ codeHighlights: [
36777
+ {
36778
+ start: pos,
36779
+ end: pos,
36780
+ message: e.message
36781
+ }
36782
+ ]
36783
+ }
36784
+ ]
36785
+ }
36786
+ });
36787
+ }
36788
+ }
36789
+ let output = {
36790
+ config: config,
36791
+ files: [
36792
+ {
36793
+ filePath: configFile
36794
+ }
36795
+ ]
36796
+ };
36797
+ $10671d0be444e08b$var$configCache.set(String(parse) + configFile, output);
36798
+ return output;
36799
+ } catch (err) {
36800
+ if (err.code === "MODULE_NOT_FOUND" || err.code === "ENOENT") return null;
36801
+ throw err;
36802
+ }
36803
+ }
36109
36804
  function $10671d0be444e08b$var$getParser(extname) {
36110
36805
  switch(extname){
36111
36806
  case "toml":
@@ -36128,15 +36823,22 @@ async function $6aebdac47db0459e$export$6643be4f4e63e994(fs, moduleName, dir) {
36128
36823
  let modulesDir = (0, ($parcel$interopDefault($8C1kk$path))).join(dir, "node_modules");
36129
36824
  let stats = await fs.stat(modulesDir);
36130
36825
  if (stats.isDirectory()) {
36131
- let dirContent = (await fs.readdir(modulesDir)).sort(); // Filter out the modules that interest us
36132
- let modules = dirContent.filter((i)=>isOrganisationModule ? i.startsWith("@") : !i.startsWith("@")); // If it's an organisation module, loop through all the modules of that organisation
36826
+ let dirContent = (await fs.readdir(modulesDir)).sort();
36827
+ // Filter out the modules that interest us
36828
+ let modules = dirContent.filter((i)=>isOrganisationModule ? i.startsWith("@") : !i.startsWith("@"));
36829
+ // If it's an organisation module, loop through all the modules of that organisation
36133
36830
  if (isOrganisationModule) await Promise.all(modules.map(async (item)=>{
36134
36831
  let orgDirPath = (0, ($parcel$interopDefault($8C1kk$path))).join(modulesDir, item);
36135
- let orgDirContent = (await fs.readdir(orgDirPath)).sort(); // Add all org packages
36832
+ let orgDirContent = (await fs.readdir(orgDirPath)).sort();
36833
+ // Add all org packages
36136
36834
  potentialModules.push(...orgDirContent.map((i)=>`${item}/${i}`));
36137
36835
  }));
36836
+ else potentialModules.push(...modules);
36138
36837
  }
36139
- } catch (err) {} // Move up a directory
36838
+ } catch (err) {
36839
+ // ignore
36840
+ }
36841
+ // Move up a directory
36140
36842
  dir = (0, ($parcel$interopDefault($8C1kk$path))).dirname(dir);
36141
36843
  }
36142
36844
  return (0, $4ca1027d34905147$export$2115c2c0a84eef61)(potentialModules.sort(), moduleName).slice(0, 2);
@@ -36150,7 +36852,7 @@ async function $6aebdac47db0459e$var$findAllFilesUp({ fs: fs , dir: dir , root:
36150
36852
  let stats = await fs.stat(fullPath);
36151
36853
  let isDir = stats.isDirectory();
36152
36854
  if (isDir && includeDirectories || stats.isFile()) collected.push(relativeFilePath);
36153
- // If it's a directory, run over each item within said directory...
36855
+ // If it's a directory, run over each item within said directory...
36154
36856
  if (isDir) return $6aebdac47db0459e$var$findAllFilesUp({
36155
36857
  fs: fs,
36156
36858
  dir: fullPath,
@@ -36163,7 +36865,8 @@ async function $6aebdac47db0459e$var$findAllFilesUp({ fs: fs , dir: dir , root:
36163
36865
  }));
36164
36866
  }
36165
36867
  async function $6aebdac47db0459e$export$4eeb1b3271a29661(fs, fileSpecifier, dir, projectRoot, leadingDotSlash = true, includeDirectories = true, includeExtension = false) {
36166
- let potentialFiles = []; // Find our root, we won't recommend files above the package root as that's bad practise
36868
+ let potentialFiles = [];
36869
+ // Find our root, we won't recommend files above the package root as that's bad practise
36167
36870
  let pkg = await (0, $10671d0be444e08b$export$7eca4ea16d4c8343)(fs, (0, ($parcel$interopDefault($8C1kk$path))).join(dir, "index"), [
36168
36871
  "package.json"
36169
36872
  ], projectRoot);
@@ -36255,10 +36958,11 @@ class $5783bf7916ff59db$export$674cd7dcb504ac5c extends Map {
36255
36958
  else {
36256
36959
  ret = this._getDefault(key);
36257
36960
  this.set(key, ret);
36258
- } // $FlowFixMe
36961
+ }
36962
+ // $FlowFixMe
36259
36963
  return ret;
36260
36964
  }
36261
- } // Duplicated from DefaultMap implementation for Flow
36965
+ }
36262
36966
  class $5783bf7916ff59db$export$4924f7ffab2ae440 extends WeakMap {
36263
36967
  constructor(getDefault, entries){
36264
36968
  super(entries);
@@ -36270,7 +36974,8 @@ class $5783bf7916ff59db$export$4924f7ffab2ae440 extends WeakMap {
36270
36974
  else {
36271
36975
  ret = this._getDefault(key);
36272
36976
  this.set(key, ret);
36273
- } // $FlowFixMe
36977
+ }
36978
+ // $FlowFixMe
36274
36979
  return ret;
36275
36980
  }
36276
36981
  }
@@ -36314,21 +37019,27 @@ function $4b14026b40817fca$export$8a9ede1a78d6a1fe(stream) {
36314
37019
  function $4b14026b40817fca$export$3477f9615e12f61d(obj) {
36315
37020
  return (0, $8C1kk$parcelhash.hashString)(JSON.stringify((0, $9631335a11debdd4$export$1a9b883158ac407c)(obj)));
36316
37021
  }
37022
+ let $4b14026b40817fca$var$testCache = {
37023
+ };
36317
37024
  function $4b14026b40817fca$export$42462553d605d8cd(fs, filePath) {
36318
37025
  return $4b14026b40817fca$export$8a9ede1a78d6a1fe(fs.createReadStream(filePath));
36319
37026
  }
36320
37027
 
36321
37028
 
36322
- /* global MessageChannel:readonly */ let $1c93db5abaa33eaa$export$8b1c306fed4227bf; // $FlowFixMe[prop-missing]
37029
+ let $1c93db5abaa33eaa$export$8b1c306fed4227bf;
37030
+ // $FlowFixMe[prop-missing]
36323
37031
  if (process.browser) {
36324
- $1c93db5abaa33eaa$export$8b1c306fed4227bf = ArrayBuffer; // Safari has removed the constructor
37032
+ $1c93db5abaa33eaa$export$8b1c306fed4227bf = ArrayBuffer;
37033
+ // Safari has removed the constructor
36325
37034
  if (typeof SharedArrayBuffer !== "undefined") {
36326
37035
  let channel = new MessageChannel();
36327
37036
  try {
36328
37037
  // Firefox might throw when sending the Buffer over a MessagePort
36329
37038
  channel.port1.postMessage(new SharedArrayBuffer(0));
36330
37039
  $1c93db5abaa33eaa$export$8b1c306fed4227bf = SharedArrayBuffer;
36331
- } catch (_) {}
37040
+ } catch (_) {
37041
+ // NOOP
37042
+ }
36332
37043
  channel.port1.close();
36333
37044
  channel.port2.close();
36334
37045
  }
@@ -36339,7 +37050,6 @@ if (process.browser) {
36339
37050
 
36340
37051
 
36341
37052
 
36342
-
36343
37053
  async function $0e887a49fdd81cad$export$3b1983e9896f988b(options) {
36344
37054
  let server;
36345
37055
  if (!options.https) server = (0, ($parcel$interopDefault($8C1kk$http))).createServer(options.listener);
@@ -36355,7 +37065,8 @@ async function $0e887a49fdd81cad$export$3b1983e9896f988b(options) {
36355
37065
  cert: cert,
36356
37066
  key: key
36357
37067
  }, options.listener);
36358
- } // HTTPServer#close only stops accepting new connections, and does not close existing ones.
37068
+ }
37069
+ // HTTPServer#close only stops accepting new connections, and does not close existing ones.
36359
37070
  // Before closing, destroy any active connections through their sockets. Additionally, remove sockets when they close:
36360
37071
  // https://stackoverflow.com/questions/18874689/force-close-all-connections-in-a-node-js-http-server
36361
37072
  // https://stackoverflow.com/questions/14626636/how-do-i-shutdown-a-node-js-https-server-immediately/14636625#14636625
@@ -36454,7 +37165,8 @@ function $bc66accb63b05e9a$export$a22ef0cbdf8abc95({ dependency: dependency , fr
36454
37165
  leadingDotSlash: false
36455
37166
  }),
36456
37167
  hash: orig.hash
36457
- }); // If the resulting path includes a colon character and doesn't start with a ./ or ../
37168
+ });
37169
+ // If the resulting path includes a colon character and doesn't start with a ./ or ../
36458
37170
  // we need to add one so that the first part before the colon isn't parsed as a URL protocol.
36459
37171
  if (to.includes(":") && !to.startsWith("./") && !to.startsWith("../")) to = "./" + to;
36460
37172
  } else to = (0, $dfabc3743c08d51c$export$2e2bcd8739ae039)(toBundle.target.publicUrl, (0, ($parcel$interopDefault($8C1kk$url))).format({
@@ -36789,8 +37501,8 @@ function $46fc74961fdcfe31$export$2fed780245c466c1(loc, originalMap) {
36789
37501
  let { filePath: filePath , start: { line: startLine , column: startCol } , end: { line: endLine , column: endCol } } = loc;
36790
37502
  let lineDiff = endLine - startLine;
36791
37503
  let colDiff = endCol - startCol;
36792
- let start = originalMap.findClosestMapping(startLine, startCol);
36793
- let end = originalMap.findClosestMapping(endLine, endCol);
37504
+ let start = originalMap.findClosestMapping(startLine, startCol - 1);
37505
+ let end = originalMap.findClosestMapping(endLine, endCol - 1);
36794
37506
  if (start === null || start === void 0 ? void 0 : start.original) {
36795
37507
  if (start.source) filePath = start.source;
36796
37508
  ({ line: startLine , column: startCol } = start.original);
@@ -36798,11 +37510,13 @@ function $46fc74961fdcfe31$export$2fed780245c466c1(loc, originalMap) {
36798
37510
  }
36799
37511
  if (end === null || end === void 0 ? void 0 : end.original) {
36800
37512
  ({ line: endLine , column: endCol } = end.original);
36801
- endCol++;
37513
+ endCol++; // source map columns are 0-based
36802
37514
  if (endLine < startLine) {
36803
37515
  endLine = startLine;
36804
37516
  endCol = startCol;
36805
37517
  } else if (endLine === startLine && endCol < startCol && lineDiff === 0) endCol = startCol + colDiff;
37518
+ else if (endLine === startLine && startCol === endCol && lineDiff === 0) // Prevent 0-length ranges
37519
+ endCol = startCol + 1;
36806
37520
  } else {
36807
37521
  endLine = startLine;
36808
37522
  endCol = startCol;
@@ -36822,5 +37536,111 @@ function $46fc74961fdcfe31$export$2fed780245c466c1(loc, originalMap) {
36822
37536
 
36823
37537
 
36824
37538
 
37539
+ // As our current version of flow doesn't support BigInt's, these values/types
37540
+ // have been hoisted to keep the flow errors to a minimum. This can be removed
37541
+ // if we upgrade to a flow version that supports BigInt's
37542
+ // $FlowFixMe
37543
+ // $FlowFixMe
37544
+ const $2c32463ab90dab73$var$BIGINT_ZERO = 0n;
37545
+ // $FlowFixMe
37546
+ const $2c32463ab90dab73$var$BIGINT_ONE = 1n;
37547
+ // $FlowFixMe
37548
+ let $2c32463ab90dab73$var$numberToBigInt = (v)=>BigInt(v);
37549
+ let $2c32463ab90dab73$var$bitUnion = (a, b)=>a | b;
37550
+ class $2c32463ab90dab73$export$33dc8f3f7b9e35df {
37551
+ constructor({ initial: initial , items: items , lookup: lookup }){
37552
+ if (initial instanceof $2c32463ab90dab73$export$33dc8f3f7b9e35df) this._value = initial === null || initial === void 0 ? void 0 : initial._value;
37553
+ else if (initial) this._value = initial;
37554
+ else this._value = $2c32463ab90dab73$var$BIGINT_ZERO;
37555
+ this._items = items;
37556
+ this._lookup = lookup;
37557
+ }
37558
+ static from(items) {
37559
+ let lookup = new Map();
37560
+ for(let i = 0; i < items.length; i++)lookup.set(items[i], $2c32463ab90dab73$var$numberToBigInt(i));
37561
+ return new $2c32463ab90dab73$export$33dc8f3f7b9e35df({
37562
+ items: items,
37563
+ lookup: lookup
37564
+ });
37565
+ }
37566
+ static union(a, b) {
37567
+ return new $2c32463ab90dab73$export$33dc8f3f7b9e35df({
37568
+ initial: $2c32463ab90dab73$var$bitUnion(a._value, b._value),
37569
+ lookup: a._lookup,
37570
+ items: a._items
37571
+ });
37572
+ }
37573
+ #getIndex(item) {
37574
+ return (0, (/*@__PURE__*/$parcel$interopDefault($812806c6461f2963$exports)))(this._lookup.get(item), "Item is missing from BitSet");
37575
+ }
37576
+ add(item) {
37577
+ this._value |= $2c32463ab90dab73$var$BIGINT_ONE << this.#getIndex(item);
37578
+ }
37579
+ delete(item) {
37580
+ this._value &= ~($2c32463ab90dab73$var$BIGINT_ONE << this.#getIndex(item));
37581
+ }
37582
+ has(item) {
37583
+ return Boolean(this._value & $2c32463ab90dab73$var$BIGINT_ONE << this.#getIndex(item));
37584
+ }
37585
+ intersect(v) {
37586
+ this._value = this._value & v._value;
37587
+ }
37588
+ union(v) {
37589
+ this._value = $2c32463ab90dab73$var$bitUnion(this._value, v._value);
37590
+ }
37591
+ clear() {
37592
+ this._value = $2c32463ab90dab73$var$BIGINT_ZERO;
37593
+ }
37594
+ cloneEmpty() {
37595
+ return new $2c32463ab90dab73$export$33dc8f3f7b9e35df({
37596
+ lookup: this._lookup,
37597
+ items: this._items
37598
+ });
37599
+ }
37600
+ clone() {
37601
+ return new $2c32463ab90dab73$export$33dc8f3f7b9e35df({
37602
+ lookup: this._lookup,
37603
+ items: this._items,
37604
+ initial: this._value
37605
+ });
37606
+ }
37607
+ values() {
37608
+ let values = [];
37609
+ let tmpValue = this._value;
37610
+ let i;
37611
+ // This implementation is optimized for BitSets that contain a very small percentage
37612
+ // of items compared to the total number of potential items. This makes sense for
37613
+ // our bundler use-cases where Sets often contain <1% coverage of the total item count.
37614
+ // In cases where Sets contain a larger percentage of the total items, a regular looping
37615
+ // strategy would be more performant.
37616
+ while(tmpValue > $2c32463ab90dab73$var$BIGINT_ZERO){
37617
+ // Get last set bit
37618
+ i = tmpValue.toString(2).length - 1;
37619
+ values.push(this._items[i]);
37620
+ // Unset last set bit
37621
+ tmpValue &= ~($2c32463ab90dab73$var$BIGINT_ONE << $2c32463ab90dab73$var$numberToBigInt(i));
37622
+ }
37623
+ return values;
37624
+ }
37625
+ }
37626
+
37627
+
37628
+ var $f709bcec854d2334$exports = {};
37629
+ "use strict";
37630
+ var $55a853fa49f658b3$exports = {};
37631
+ "use strict";
37632
+ $55a853fa49f658b3$exports = ({ onlyFirst: onlyFirst = false } = {})=>{
37633
+ const pattern = [
37634
+ "[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
37635
+ "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
37636
+ ].join("|");
37637
+ return new RegExp(pattern, onlyFirst ? undefined : "g");
37638
+ };
37639
+
37640
+
37641
+ $f709bcec854d2334$exports = (string)=>typeof string === "string" ? string.replace($55a853fa49f658b3$exports(), "") : string;
37642
+
37643
+
37644
+
36825
37645
 
36826
37646
  //# sourceMappingURL=index.js.map