@parcel/utils 2.8.1 → 2.8.3

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
@@ -671,10 +671,10 @@ const $1e0430853cfb927a$var$depth = (token)=>{
671
671
  prevIndex = i;
672
672
  }
673
673
  if (prevIndex && prevIndex + 1 < input.length) {
674
- const value1 = input.slice(prevIndex + 1);
675
- parts.push(value1);
674
+ const value = input.slice(prevIndex + 1);
675
+ parts.push(value);
676
676
  if (opts.tokens) {
677
- tokens[tokens.length - 1].value = value1;
677
+ tokens[tokens.length - 1].value = value;
678
678
  $1e0430853cfb927a$var$depth(tokens[tokens.length - 1]);
679
679
  state.maxDepth += tokens[tokens.length - 1].depth;
680
680
  }
@@ -1361,7 +1361,7 @@ var $5MQDC = parcelRequire("5MQDC");
1361
1361
  });
1362
1362
  continue;
1363
1363
  }
1364
- let output1 = ")";
1364
+ let output = ")";
1365
1365
  if (brace.dots === true) {
1366
1366
  const arr = tokens.slice();
1367
1367
  const range = [];
@@ -1370,21 +1370,21 @@ var $5MQDC = parcelRequire("5MQDC");
1370
1370
  if (arr[i].type === "brace") break;
1371
1371
  if (arr[i].type !== "dots") range.unshift(arr[i].value);
1372
1372
  }
1373
- output1 = $fd5d6f248e5b4a63$var$expandRange(range, opts);
1373
+ output = $fd5d6f248e5b4a63$var$expandRange(range, opts);
1374
1374
  state.backtrack = true;
1375
1375
  }
1376
1376
  if (brace.comma !== true && brace.dots !== true) {
1377
1377
  const out = state.output.slice(0, brace.outputIndex);
1378
1378
  const toks = state.tokens.slice(brace.tokensIndex);
1379
1379
  brace.value = brace.output = "\\{";
1380
- value = output1 = "\\}";
1380
+ value = output = "\\}";
1381
1381
  state.output = out;
1382
1382
  for (const t of toks)state.output += t.output || t.value;
1383
1383
  }
1384
1384
  push({
1385
1385
  type: "brace",
1386
1386
  value: value,
1387
- output: output1
1387
+ output: output
1388
1388
  });
1389
1389
  decrement("braces");
1390
1390
  braces.pop();
@@ -1403,16 +1403,16 @@ var $5MQDC = parcelRequire("5MQDC");
1403
1403
  /**
1404
1404
  * Commas
1405
1405
  */ if (value === ",") {
1406
- let output2 = value;
1407
- const brace1 = braces[braces.length - 1];
1408
- if (brace1 && stack[stack.length - 1] === "braces") {
1409
- brace1.comma = true;
1410
- output2 = "|";
1406
+ let output = value;
1407
+ const brace = braces[braces.length - 1];
1408
+ if (brace && stack[stack.length - 1] === "braces") {
1409
+ brace.comma = true;
1410
+ output = "|";
1411
1411
  }
1412
1412
  push({
1413
1413
  type: "comma",
1414
1414
  value: value,
1415
- output: output2
1415
+ output: output
1416
1416
  });
1417
1417
  continue;
1418
1418
  }
@@ -1443,11 +1443,11 @@ var $5MQDC = parcelRequire("5MQDC");
1443
1443
  */ if (value === ".") {
1444
1444
  if (state.braces > 0 && prev.type === "dot") {
1445
1445
  if (prev.value === ".") prev.output = DOT_LITERAL;
1446
- const brace2 = braces[braces.length - 1];
1446
+ const brace = braces[braces.length - 1];
1447
1447
  prev.type = "dots";
1448
1448
  prev.output += value;
1449
1449
  prev.value += value;
1450
- brace2.dots = true;
1450
+ brace.dots = true;
1451
1451
  continue;
1452
1452
  }
1453
1453
  if (state.braces + state.parens === 0 && prev.type !== "bos" && prev.type !== "slash") {
@@ -1474,14 +1474,14 @@ var $5MQDC = parcelRequire("5MQDC");
1474
1474
  continue;
1475
1475
  }
1476
1476
  if (prev && prev.type === "paren") {
1477
- const next1 = peek();
1478
- let output3 = value;
1479
- if (next1 === "<" && !$5MQDC.supportsLookbehinds()) throw new Error("Node.js v10 or higher is required for regex lookbehinds");
1480
- if (prev.value === "(" && !/[!=<:]/.test(next1) || next1 === "<" && !/<([!=]|\w+>)/.test(remaining())) output3 = `\\${value}`;
1477
+ const next = peek();
1478
+ let output = value;
1479
+ if (next === "<" && !$5MQDC.supportsLookbehinds()) throw new Error("Node.js v10 or higher is required for regex lookbehinds");
1480
+ if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) output = `\\${value}`;
1481
1481
  push({
1482
1482
  type: "text",
1483
1483
  value: value,
1484
- output: output3
1484
+ output: output
1485
1485
  });
1486
1486
  continue;
1487
1487
  }
@@ -1564,10 +1564,10 @@ var $5MQDC = parcelRequire("5MQDC");
1564
1564
  * Plain text
1565
1565
  */ if (value !== "*") {
1566
1566
  if (value === "$" || value === "^") value = `\\${value}`;
1567
- const match1 = $fd5d6f248e5b4a63$var$REGEX_NON_SPECIAL_CHARS.exec(remaining());
1568
- if (match1) {
1569
- value += match1[0];
1570
- state.index += match1[0].length;
1567
+ const match = $fd5d6f248e5b4a63$var$REGEX_NON_SPECIAL_CHARS.exec(remaining());
1568
+ if (match) {
1569
+ value += match[0];
1570
+ state.index += match[0].length;
1571
1571
  }
1572
1572
  push({
1573
1573
  type: "text",
@@ -1587,8 +1587,8 @@ var $5MQDC = parcelRequire("5MQDC");
1587
1587
  consume(value);
1588
1588
  continue;
1589
1589
  }
1590
- let rest1 = remaining();
1591
- if (opts.noextglob !== true && /^\([^?]/.test(rest1)) {
1590
+ let rest = remaining();
1591
+ if (opts.noextglob !== true && /^\([^?]/.test(rest)) {
1592
1592
  extglobOpen("star", value);
1593
1593
  continue;
1594
1594
  }
@@ -1601,7 +1601,7 @@ var $5MQDC = parcelRequire("5MQDC");
1601
1601
  const before = prior.prev;
1602
1602
  const isStart = prior.type === "slash" || prior.type === "bos";
1603
1603
  const afterStar = before && (before.type === "star" || before.type === "globstar");
1604
- if (opts.bash === true && (!isStart || rest1[0] && rest1[0] !== "/")) {
1604
+ if (opts.bash === true && (!isStart || rest[0] && rest[0] !== "/")) {
1605
1605
  push({
1606
1606
  type: "star",
1607
1607
  value: value,
@@ -1620,10 +1620,10 @@ var $5MQDC = parcelRequire("5MQDC");
1620
1620
  continue;
1621
1621
  }
1622
1622
  // strip consecutive `/**/`
1623
- while(rest1.slice(0, 3) === "/**"){
1623
+ while(rest.slice(0, 3) === "/**"){
1624
1624
  const after = input[state.index + 4];
1625
1625
  if (after && after !== "/") break;
1626
- rest1 = rest1.slice(3);
1626
+ rest = rest.slice(3);
1627
1627
  consume("/**", 3);
1628
1628
  }
1629
1629
  if (prior.type === "bos" && eos()) {
@@ -1646,8 +1646,8 @@ var $5MQDC = parcelRequire("5MQDC");
1646
1646
  consume(value);
1647
1647
  continue;
1648
1648
  }
1649
- if (prior.type === "slash" && prior.prev.type !== "bos" && rest1[0] === "/") {
1650
- const end = rest1[1] !== void 0 ? "|$" : "";
1649
+ if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") {
1650
+ const end = rest[1] !== void 0 ? "|$" : "";
1651
1651
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
1652
1652
  prior.output = `(?:${prior.output}`;
1653
1653
  prev.type = "globstar";
@@ -1663,7 +1663,7 @@ var $5MQDC = parcelRequire("5MQDC");
1663
1663
  });
1664
1664
  continue;
1665
1665
  }
1666
- if (prior.type === "bos" && rest1[0] === "/") {
1666
+ if (prior.type === "bos" && rest[0] === "/") {
1667
1667
  prev.type = "globstar";
1668
1668
  prev.value += value;
1669
1669
  prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`;
@@ -1746,9 +1746,9 @@ var $5MQDC = parcelRequire("5MQDC");
1746
1746
  // rebuild the output if we had to backtrack at any point
1747
1747
  if (state.backtrack === true) {
1748
1748
  state.output = "";
1749
- for (const token1 of state.tokens){
1750
- state.output += token1.output != null ? token1.output : token1.value;
1751
- if (token1.suffix) state.output += token1.suffix;
1749
+ for (const token of state.tokens){
1750
+ state.output += token.output != null ? token.output : token.value;
1751
+ if (token.suffix) state.output += token.suffix;
1752
1752
  }
1753
1753
  }
1754
1754
  return state;
@@ -3092,8 +3092,8 @@ function $6e1ae4ed5b62d1d9$var$parseAsync(str, opts) {
3092
3092
  try {
3093
3093
  parser.parse(str.slice(index, index + blocksize));
3094
3094
  setImmediate(parseAsyncNext, index + blocksize, blocksize, resolve, reject);
3095
- } catch (err1) {
3096
- reject($ciuZ9(err1, str));
3095
+ } catch (err) {
3096
+ reject($ciuZ9(err, str));
3097
3097
  }
3098
3098
  }
3099
3099
  }
@@ -3534,7 +3534,7 @@ async function $15d4bc8b6fca8c7e$var$getSourcemapSizes(filePath, fs, projectRoot
3534
3534
  } else currColumn++;
3535
3535
  }
3536
3536
  let sizeMap = new Map();
3537
- for(let i1 = 0; i1 < sourceSizes.length; i1++)sizeMap.set(sources[i1], sourceSizes[i1]);
3537
+ for(let i = 0; i < sourceSizes.length; i++)sizeMap.set(sources[i], sourceSizes[i]);
3538
3538
  sizeMap.set("", unknownOrigin);
3539
3539
  return sizeMap;
3540
3540
  }
@@ -22813,7 +22813,7 @@ $e55982d45da68b81$var$tls.Alert.Description = {
22813
22813
  var version = c.session.clientHelloVersion;
22814
22814
  if (version.major !== sp.pre_master_secret.charCodeAt(0) || version.minor !== sp.pre_master_secret.charCodeAt(1)) // error, do not send alert (see BLEI attack below)
22815
22815
  throw new Error("TLS version rollback attack detected.");
22816
- } catch (ex1) {
22816
+ } catch (ex) {
22817
22817
  /* Note: Daniel Bleichenbacher [BLEI] can be used to attack a
22818
22818
  TLS server which is using PKCS#1 encoded RSA, so instead of
22819
22819
  failing here, we generate 48 random bytes and use that as
@@ -30128,20 +30128,20 @@ function $07628d57aabb0c0b$var$splitToPatterns(min, max, tok, options) {
30128
30128
  let start = min;
30129
30129
  let prev;
30130
30130
  for(let i = 0; i < ranges.length; i++){
30131
- let max1 = ranges[i];
30132
- let obj = $07628d57aabb0c0b$var$rangeToPattern(String(start), String(max1), options);
30131
+ let max = ranges[i];
30132
+ let obj = $07628d57aabb0c0b$var$rangeToPattern(String(start), String(max), options);
30133
30133
  let zeros = "";
30134
30134
  if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
30135
30135
  if (prev.count.length > 1) prev.count.pop();
30136
30136
  prev.count.push(obj.count[0]);
30137
30137
  prev.string = prev.pattern + $07628d57aabb0c0b$var$toQuantifier(prev.count);
30138
- start = max1 + 1;
30138
+ start = max + 1;
30139
30139
  continue;
30140
30140
  }
30141
- if (tok.isPadded) zeros = $07628d57aabb0c0b$var$padZeros(max1, tok, options);
30141
+ if (tok.isPadded) zeros = $07628d57aabb0c0b$var$padZeros(max, tok, options);
30142
30142
  obj.string = zeros + obj.pattern + $07628d57aabb0c0b$var$toQuantifier(obj.count);
30143
30143
  tokens.push(obj);
30144
- start = max1 + 1;
30144
+ start = max + 1;
30145
30145
  prev = obj;
30146
30146
  }
30147
30147
  return tokens;
@@ -30695,18 +30695,18 @@ var $88c0a7901dd4a8c2$require$CHAR_ZERO_WIDTH_NOBREAK_SPACE = $f1bb1ac16e435177$
30695
30695
  * Quotes: '|"|`
30696
30696
  */ if (value === $88c0a7901dd4a8c2$require$CHAR_DOUBLE_QUOTE || value === $88c0a7901dd4a8c2$require$CHAR_SINGLE_QUOTE || value === $88c0a7901dd4a8c2$require$CHAR_BACKTICK) {
30697
30697
  let open = value;
30698
- let next1;
30698
+ let next;
30699
30699
  if (options.keepQuotes !== true) value = "";
30700
- while(index < length && (next1 = advance())){
30701
- if (next1 === $88c0a7901dd4a8c2$require$CHAR_BACKSLASH) {
30702
- value += next1 + advance();
30700
+ while(index < length && (next = advance())){
30701
+ if (next === $88c0a7901dd4a8c2$require$CHAR_BACKSLASH) {
30702
+ value += next + advance();
30703
30703
  continue;
30704
30704
  }
30705
- if (next1 === open) {
30706
- if (options.keepQuotes === true) value += next1;
30705
+ if (next === open) {
30706
+ if (options.keepQuotes === true) value += next;
30707
30707
  break;
30708
30708
  }
30709
- value += next1;
30709
+ value += next;
30710
30710
  }
30711
30711
  push({
30712
30712
  type: "text",
@@ -30763,9 +30763,9 @@ var $88c0a7901dd4a8c2$require$CHAR_ZERO_WIDTH_NOBREAK_SPACE = $f1bb1ac16e435177$
30763
30763
  */ if (value === $88c0a7901dd4a8c2$require$CHAR_COMMA && depth > 0) {
30764
30764
  if (block.ranges > 0) {
30765
30765
  block.ranges = 0;
30766
- let open1 = block.nodes.shift();
30766
+ let open = block.nodes.shift();
30767
30767
  block.nodes = [
30768
- open1,
30768
+ open,
30769
30769
  {
30770
30770
  type: "text",
30771
30771
  value: $156a1a36db86ccbd$exports(block)
@@ -30839,9 +30839,9 @@ var $88c0a7901dd4a8c2$require$CHAR_ZERO_WIDTH_NOBREAK_SPACE = $f1bb1ac16e435177$
30839
30839
  });
30840
30840
  // get the location of the block on parent.nodes (block's siblings)
30841
30841
  let parent = stack[stack.length - 1];
30842
- let index1 = parent.nodes.indexOf(block);
30842
+ let index = parent.nodes.indexOf(block);
30843
30843
  // replace the (invalid) block with it's nodes
30844
- parent.nodes.splice(index1, 1, ...block.nodes);
30844
+ parent.nodes.splice(index, 1, ...block.nodes);
30845
30845
  }
30846
30846
  }while (stack.length > 0);
30847
30847
  push({
@@ -33441,8 +33441,8 @@ function $007fe08032bb1964$var$supportsHyperlink(stream) {
33441
33441
  if ("VTE_VERSION" in env) {
33442
33442
  // 0.50.0 was supposed to support hyperlinks, but throws a segfault
33443
33443
  if (env.VTE_VERSION === "0.50.0") return false;
33444
- const version1 = $007fe08032bb1964$var$parseVersion(env.VTE_VERSION);
33445
- return version1.major > 0 || version1.minor >= 50;
33444
+ const version = $007fe08032bb1964$var$parseVersion(env.VTE_VERSION);
33445
+ return version.major > 0 || version.minor >= 50;
33446
33446
  }
33447
33447
  return false;
33448
33448
  }
@@ -33660,46 +33660,46 @@ const $f48e6c7a66080865$var$myers_x = (b, a)=>{
33660
33660
  while(k--)$f48e6c7a66080865$var$peq[a.charCodeAt(k)] = 0;
33661
33661
  for(k = start; k < start + vlen; k++)$f48e6c7a66080865$var$peq[b.charCodeAt(k)] |= 1 << k;
33662
33662
  score = m;
33663
- for(let i1 = 0; i1 < n; i1++){
33664
- const eq = $f48e6c7a66080865$var$peq[a.charCodeAt(i1)];
33665
- const pb = phc[i1 / 32 | 0] >>> i1 % 32 & 1;
33666
- const mb = mhc[i1 / 32 | 0] >>> i1 % 32 & 1;
33663
+ 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;
33667
33667
  const xv = eq | mv;
33668
33668
  const xh = ((eq | mb) & pv) + pv ^ pv | eq | mb;
33669
33669
  let ph = mv | ~(xh | pv);
33670
33670
  let mh = pv & xh;
33671
- if (ph >>> 31 ^ pb) phc[i1 / 32 | 0] ^= 1 << i1 % 32;
33672
- if (mh >>> 31 ^ mb) mhc[i1 / 32 | 0] ^= 1 << i1 % 32;
33671
+ if (ph >>> 31 ^ pb) phc[i / 32 | 0] ^= 1 << i % 32;
33672
+ if (mh >>> 31 ^ mb) mhc[i / 32 | 0] ^= 1 << i % 32;
33673
33673
  ph = ph << 1 | pb;
33674
33674
  mh = mh << 1 | mb;
33675
33675
  pv = mh | ~(xv | ph);
33676
33676
  mv = ph & xv;
33677
33677
  }
33678
33678
  }
33679
- let mv1 = 0;
33680
- let pv1 = -1;
33681
- const start1 = j * 32;
33682
- const vlen1 = Math.min(32, m - start1);
33683
- let k1 = n;
33684
- while(k1--)$f48e6c7a66080865$var$peq[a.charCodeAt(k1)] = 0;
33685
- for(k1 = start1; k1 < start1 + vlen1; k1++)$f48e6c7a66080865$var$peq[b.charCodeAt(k1)] |= 1 << k1;
33679
+ let mv = 0;
33680
+ let pv = -1;
33681
+ 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
33686
  score = m;
33687
- for(let i2 = 0; i2 < n; i2++){
33688
- const eq1 = $f48e6c7a66080865$var$peq[a.charCodeAt(i2)];
33689
- const pb1 = phc[i2 / 32 | 0] >>> i2 % 32 & 1;
33690
- const mb1 = mhc[i2 / 32 | 0] >>> i2 % 32 & 1;
33691
- const xv1 = eq1 | mv1;
33692
- const xh1 = ((eq1 | mb1) & pv1) + pv1 ^ pv1 | eq1 | mb1;
33693
- let ph1 = mv1 | ~(xh1 | pv1);
33694
- let mh1 = pv1 & xh1;
33695
- score += ph1 >>> m % 32 - 1 & 1;
33696
- score -= mh1 >>> m % 32 - 1 & 1;
33697
- if (ph1 >>> 31 ^ pb1) phc[i2 / 32 | 0] ^= 1 << i2 % 32;
33698
- if (mh1 >>> 31 ^ mb1) mhc[i2 / 32 | 0] ^= 1 << i2 % 32;
33699
- ph1 = ph1 << 1 | pb1;
33700
- mh1 = mh1 << 1 | mb1;
33701
- pv1 = mh1 | ~(xv1 | ph1);
33702
- mv1 = ph1 & xv1;
33687
+ 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;
33691
+ const xv = eq | mv;
33692
+ const xh = ((eq | mb) & pv) + pv ^ pv | eq | mb;
33693
+ let ph = mv | ~(xh | pv);
33694
+ 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;
33699
+ ph = ph << 1 | pb;
33700
+ mh = mh << 1 | mb;
33701
+ pv = mh | ~(xv | ph);
33702
+ mv = ph & xv;
33703
33703
  }
33704
33704
  return score;
33705
33705
  };
@@ -33784,14 +33784,14 @@ function $4ca1027d34905147$var$validateSchema(schema, data) {
33784
33784
  case "number":
33785
33785
  {
33786
33786
  // $FlowFixMe type was already checked
33787
- let value1 = dataNode;
33787
+ let value = dataNode;
33788
33788
  if (schemaNode.enum) {
33789
- if (!schemaNode.enum.includes(value1)) return {
33789
+ if (!schemaNode.enum.includes(value)) return {
33790
33790
  type: "enum",
33791
33791
  dataType: "value",
33792
33792
  dataPath: dataPath,
33793
33793
  expectedValues: schemaNode.enum,
33794
- actualValue: value1,
33794
+ actualValue: value,
33795
33795
  ancestors: schemaAncestors
33796
33796
  };
33797
33797
  }
@@ -33799,13 +33799,13 @@ function $4ca1027d34905147$var$validateSchema(schema, data) {
33799
33799
  }
33800
33800
  case "object":
33801
33801
  {
33802
- let results1 = [];
33802
+ let results = [];
33803
33803
  let invalidProps;
33804
33804
  if (schemaNode.__forbiddenProperties) {
33805
33805
  // $FlowFixMe type was already checked
33806
33806
  let keys = Object.keys(dataNode);
33807
33807
  invalidProps = schemaNode.__forbiddenProperties.filter((val)=>keys.includes(val));
33808
- results1.push(...invalidProps.map((k)=>({
33808
+ results.push(...invalidProps.map((k)=>({
33809
33809
  type: "forbidden-prop",
33810
33810
  dataPath: dataPath + "/" + (0, $8C1kk$parceldiagnostic.encodeJSONKeyComponent)(k),
33811
33811
  dataType: "key",
@@ -33817,15 +33817,15 @@ function $4ca1027d34905147$var$validateSchema(schema, data) {
33817
33817
  }
33818
33818
  if (schemaNode.required) {
33819
33819
  // $FlowFixMe type was already checked
33820
- let keys1 = Object.keys(dataNode);
33821
- let missingKeys = schemaNode.required.filter((val)=>!keys1.includes(val));
33822
- results1.push(...missingKeys.map((k)=>({
33820
+ let keys = Object.keys(dataNode);
33821
+ let missingKeys = schemaNode.required.filter((val)=>!keys.includes(val));
33822
+ results.push(...missingKeys.map((k)=>({
33823
33823
  type: "missing-prop",
33824
33824
  dataPath: dataPath,
33825
33825
  dataType: "value",
33826
33826
  prop: k,
33827
33827
  expectedProps: schemaNode.required,
33828
- actualProps: keys1,
33828
+ actualProps: keys,
33829
33829
  ancestors: schemaAncestors
33830
33830
  })));
33831
33831
  }
@@ -33834,13 +33834,13 @@ function $4ca1027d34905147$var$validateSchema(schema, data) {
33834
33834
  for(let k in dataNode){
33835
33835
  if (invalidProps && invalidProps.includes(k)) continue;
33836
33836
  else if (k in schemaNode.properties) {
33837
- let result1 = walk([
33837
+ let result = walk([
33838
33838
  schemaNode.properties[k]
33839
33839
  ].concat(schemaAncestors), dataNode[k], dataPath + "/" + (0, $8C1kk$parceldiagnostic.encodeJSONKeyComponent)(k));
33840
- if (result1) results1.push(result1);
33840
+ if (result) results.push(result);
33841
33841
  } else {
33842
33842
  if (typeof additionalProperties === "boolean") {
33843
- if (!additionalProperties) results1.push({
33843
+ if (!additionalProperties) results.push({
33844
33844
  type: "enum",
33845
33845
  dataType: "key",
33846
33846
  dataPath: dataPath + "/" + (0, $8C1kk$parceldiagnostic.encodeJSONKeyComponent)(k),
@@ -33850,15 +33850,15 @@ function $4ca1027d34905147$var$validateSchema(schema, data) {
33850
33850
  prettyType: schemaNode.__type
33851
33851
  });
33852
33852
  } else {
33853
- let result2 = walk([
33853
+ let result = walk([
33854
33854
  additionalProperties
33855
33855
  ].concat(schemaAncestors), dataNode[k], dataPath + "/" + (0, $8C1kk$parceldiagnostic.encodeJSONKeyComponent)(k));
33856
- if (result2) results1.push(result2);
33856
+ if (result) results.push(result);
33857
33857
  }
33858
33858
  }
33859
33859
  }
33860
33860
  }
33861
- if (results1.length) return results1.reduce((acc, v)=>acc.concat(v), []);
33861
+ if (results.length) return results.reduce((acc, v)=>acc.concat(v), []);
33862
33862
  break;
33863
33863
  }
33864
33864
  case "boolean":
@@ -33877,23 +33877,23 @@ function $4ca1027d34905147$var$validateSchema(schema, data) {
33877
33877
  };
33878
33878
  if (schemaNode.oneOf || schemaNode.allOf) {
33879
33879
  let list = schemaNode.oneOf || schemaNode.allOf;
33880
- let results2 = [];
33880
+ let results = [];
33881
33881
  for (let f of list){
33882
- let result3 = walk([
33882
+ let result = walk([
33883
33883
  f
33884
33884
  ].concat(schemaAncestors), dataNode, dataPath);
33885
- if (result3) results2.push(result3);
33885
+ if (result) results.push(result);
33886
33886
  }
33887
- if (schemaNode.oneOf ? results2.length == schemaNode.oneOf.length : results2.length > 0) {
33887
+ if (schemaNode.oneOf ? results.length == schemaNode.oneOf.length : results.length > 0) {
33888
33888
  // return the result with more values / longer key
33889
- results2.sort((a, b)=>Array.isArray(a) || Array.isArray(b) ? Array.isArray(a) && !Array.isArray(b) ? -1 : !Array.isArray(a) && Array.isArray(b) ? 1 : Array.isArray(a) && Array.isArray(b) ? b.length - a.length : 0 : b.dataPath.length - a.dataPath.length);
33890
- return results2[0];
33889
+ results.sort((a, b)=>Array.isArray(a) || Array.isArray(b) ? Array.isArray(a) && !Array.isArray(b) ? -1 : !Array.isArray(a) && Array.isArray(b) ? 1 : Array.isArray(a) && Array.isArray(b) ? b.length - a.length : 0 : b.dataPath.length - a.dataPath.length);
33890
+ return results[0];
33891
33891
  }
33892
33892
  } else if (schemaNode.not) {
33893
- let result4 = walk([
33893
+ let result = walk([
33894
33894
  schemaNode.not
33895
33895
  ].concat(schemaAncestors), dataNode, dataPath);
33896
- if (!result4 || result4.length == 0) return {
33896
+ if (!result || result.length == 0) return {
33897
33897
  type: "other",
33898
33898
  dataPath: dataPath,
33899
33899
  dataType: null,
@@ -33923,8 +33923,8 @@ function $4ca1027d34905147$export$2115c2c0a84eef61(expectedValues, actualValue)
33923
33923
  }
33924
33924
  $4ca1027d34905147$var$validateSchema.diagnostic = function(schema, data, origin, message) {
33925
33925
  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;
33927
- let object = data.map ? data.map.data : (_data = data.data) !== null && _data !== void 0 ? _data : JSON.parse(data.source);
33926
+ var _data_data;
33927
+ let object = data.map ? data.map.data : (_data_data = data.data) !== null && _data_data !== void 0 ? _data_data : JSON.parse(data.source);
33928
33928
  let errors = $4ca1027d34905147$var$validateSchema(schema, object);
33929
33929
  if (errors.length) {
33930
33930
  let keys = errors.map((e)=>{
@@ -33938,17 +33938,17 @@ $4ca1027d34905147$var$validateSchema.diagnostic = function(schema, data, origin,
33938
33938
  else message = "Unexpected value";
33939
33939
  } else if (e.type === "forbidden-prop") {
33940
33940
  let { prop: prop , expectedProps: expectedProps , actualProps: actualProps } = e;
33941
- let likely1 = $4ca1027d34905147$export$2115c2c0a84eef61(expectedProps, prop).filter((v)=>!actualProps.includes(v));
33942
- if (likely1.length > 0) message = `Did you mean ${likely1.map((v)=>JSON.stringify(v)).join(", ")}?`;
33941
+ let likely = $4ca1027d34905147$export$2115c2c0a84eef61(expectedProps, prop).filter((v)=>!actualProps.includes(v));
33942
+ if (likely.length > 0) message = `Did you mean ${likely.map((v)=>JSON.stringify(v)).join(", ")}?`;
33943
33943
  else message = "Unexpected property";
33944
33944
  } else if (e.type === "missing-prop") {
33945
- let { prop: prop1 , actualProps: actualProps1 } = e;
33946
- let likely2 = $4ca1027d34905147$export$2115c2c0a84eef61(actualProps1, prop1);
33947
- if (likely2.length > 0) {
33948
- message = `Did you mean ${JSON.stringify(prop1)}?`;
33949
- e.dataPath += "/" + likely2[0];
33945
+ let { prop: prop , actualProps: actualProps } = e;
33946
+ let likely = $4ca1027d34905147$export$2115c2c0a84eef61(actualProps, prop);
33947
+ if (likely.length > 0) {
33948
+ message = `Did you mean ${JSON.stringify(prop)}?`;
33949
+ e.dataPath += "/" + likely[0];
33950
33950
  e.dataType = "key";
33951
- } else message = `Missing property ${prop1}`;
33951
+ } else message = `Missing property ${prop}`;
33952
33952
  } else if (e.type === "type") {
33953
33953
  if (e.prettyType != null) message = `Expected ${e.prettyType}`;
33954
33954
  else message = `Expected type ${e.expectedTypes.join(", ")}`;
@@ -33964,19 +33964,19 @@ $4ca1027d34905147$var$validateSchema.diagnostic = function(schema, data, origin,
33964
33964
  map = data.map;
33965
33965
  code = data.source;
33966
33966
  } else {
33967
- var _source;
33967
+ var _data_source;
33968
33968
  // $FlowFixMe we can assume that data is valid JSON
33969
- map = (_source = data.source) !== null && _source !== void 0 ? _source : JSON.stringify((0, (/*@__PURE__*/$parcel$interopDefault($812806c6461f2963$exports)))(data.data), 0, " ");
33969
+ map = (_data_source = data.source) !== null && _data_source !== void 0 ? _data_source : JSON.stringify((0, (/*@__PURE__*/$parcel$interopDefault($812806c6461f2963$exports)))(data.data), 0, " ");
33970
33970
  code = map;
33971
33971
  }
33972
- var _filePath, _prependKey;
33972
+ var _data_filePath, _data_prependKey;
33973
33973
  let codeFrames = [
33974
33974
  {
33975
- filePath: (_filePath = data.filePath) !== null && _filePath !== void 0 ? _filePath : undefined,
33975
+ filePath: (_data_filePath = data.filePath) !== null && _data_filePath !== void 0 ? _data_filePath : undefined,
33976
33976
  language: "json",
33977
33977
  code: code,
33978
33978
  codeHighlights: (0, $8C1kk$parceldiagnostic.generateJSONCodeHighlights)(map, keys.map(({ key: key , type: type , message: message })=>({
33979
- key: ((_prependKey = data.prependKey) !== null && _prependKey !== void 0 ? _prependKey : "") + key,
33979
+ key: ((_data_prependKey = data.prependKey) !== null && _data_prependKey !== void 0 ? _data_prependKey : "") + key,
33980
33980
  type: type,
33981
33981
  message: message != null ? (0, $8C1kk$parceldiagnostic.escapeMarkdown)(message) : message
33982
33982
  })))
@@ -34304,13 +34304,13 @@ var $284aeb9e515b63c0$var$clone = function() {
34304
34304
  var nativeSet;
34305
34305
  try {
34306
34306
  nativeSet = Set;
34307
- } catch (_1) {
34307
+ } catch (_) {
34308
34308
  nativeSet = function() {};
34309
34309
  }
34310
34310
  var nativePromise;
34311
34311
  try {
34312
34312
  nativePromise = Promise;
34313
- } catch (_2) {
34313
+ } catch (_) {
34314
34314
  nativePromise = function() {};
34315
34315
  }
34316
34316
  /**
@@ -34474,7 +34474,7 @@ var $284aeb9e515b63c0$var$clone = function() {
34474
34474
  clone.__getRegExpFlags = __getRegExpFlags;
34475
34475
  return clone;
34476
34476
  }();
34477
- if ($284aeb9e515b63c0$exports) $284aeb9e515b63c0$exports = $284aeb9e515b63c0$var$clone;
34477
+ if (0, $284aeb9e515b63c0$exports) $284aeb9e515b63c0$exports = $284aeb9e515b63c0$var$clone;
34478
34478
 
34479
34479
 
34480
34480
  // This is a generated file. Do not edit.
@@ -35468,8 +35468,8 @@ var $5dc3ee1f90b35876$var$stringify = function stringify(value, replacer, space)
35468
35468
  final = "[" + properties + "]";
35469
35469
  } else {
35470
35470
  let separator = ",\n" + indent;
35471
- let properties1 = partial.join(separator);
35472
- final = "[\n" + indent + properties1 + ",\n" + stepback + "]";
35471
+ let properties = partial.join(separator);
35472
+ final = "[\n" + indent + properties + ",\n" + stepback + "]";
35473
35473
  }
35474
35474
  stack.pop();
35475
35475
  indent = stepback;
@@ -36028,8 +36028,8 @@ function $10671d0be444e08b$export$d175e66e9fcd7b75(fs, filepath, filenames, proj
36028
36028
  return fs.findAncestorFile(filenames, (0, ($parcel$interopDefault($8C1kk$path))).dirname(filepath), projectRoot);
36029
36029
  }
36030
36030
  async function $10671d0be444e08b$export$c1a4367d4847eb06(fs, filepath, filenames, projectRoot, opts) {
36031
- var ref;
36032
- let parse = (ref = opts === null || opts === void 0 ? void 0 : opts.parse) !== null && ref !== void 0 ? ref : true;
36031
+ var _opts_parse;
36032
+ let parse = (_opts_parse = opts === null || opts === void 0 ? void 0 : opts.parse) !== null && _opts_parse !== void 0 ? _opts_parse : true;
36033
36033
  let configFile = await $10671d0be444e08b$export$7eca4ea16d4c8343(fs, filepath, filenames, projectRoot);
36034
36034
  if (configFile) {
36035
36035
  let cachedOutput = $10671d0be444e08b$var$configCache.get(String(parse) + configFile);
@@ -36053,10 +36053,10 @@ async function $10671d0be444e08b$export$c1a4367d4847eb06(fs, filepath, filenames
36053
36053
  let config;
36054
36054
  if (parse === false) config = configContent;
36055
36055
  else {
36056
- var ref1;
36057
- let parse1 = (ref1 = opts === null || opts === void 0 ? void 0 : opts.parser) !== null && ref1 !== void 0 ? ref1 : $10671d0be444e08b$var$getParser(extname);
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
36058
  try {
36059
- config = parse1(configContent);
36059
+ config = parse(configContent);
36060
36060
  } catch (e) {
36061
36061
  if (extname !== "" && extname !== "json") throw e;
36062
36062
  let pos = {
@@ -36085,7 +36085,7 @@ async function $10671d0be444e08b$export$c1a4367d4847eb06(fs, filepath, filenames
36085
36085
  });
36086
36086
  }
36087
36087
  }
36088
- let output1 = {
36088
+ let output = {
36089
36089
  config: config,
36090
36090
  files: [
36091
36091
  {
@@ -36093,8 +36093,8 @@ async function $10671d0be444e08b$export$c1a4367d4847eb06(fs, filepath, filenames
36093
36093
  }
36094
36094
  ]
36095
36095
  };
36096
- $10671d0be444e08b$var$configCache.set(String(parse) + configFile, output1);
36097
- return output1;
36096
+ $10671d0be444e08b$var$configCache.set(String(parse) + configFile, output);
36097
+ return output;
36098
36098
  } catch (err) {
36099
36099
  if (err.code === "MODULE_NOT_FOUND" || err.code === "ENOENT") return null;
36100
36100
  throw err;
@@ -36222,6 +36222,7 @@ function $9631335a11debdd4$var$sortEntry(entry) {
36222
36222
  function $9631335a11debdd4$export$8bd517cc5b3722f7(a, b) {
36223
36223
  let difference = new Set();
36224
36224
  for (let e of a)if (!b.has(e)) difference.add(e);
36225
+ for (let d of b)if (!a.has(d)) difference.add(d);
36225
36226
  return difference;
36226
36227
  }
36227
36228
  function $9631335a11debdd4$export$9404cfefeb010e68(a, b) {
@@ -36349,10 +36350,10 @@ async function $0e887a49fdd81cad$export$3b1983e9896f988b(options) {
36349
36350
  key: key
36350
36351
  }, options.listener);
36351
36352
  } else {
36352
- let { cert: cert1 , key: key1 } = await (0, $186980c178984fd2$export$2e2bcd8739ae039)(options.inputFS, options.https);
36353
+ let { cert: cert , key: key } = await (0, $186980c178984fd2$export$2e2bcd8739ae039)(options.inputFS, options.https);
36353
36354
  server = (0, ($parcel$interopDefault($8C1kk$https))).createServer({
36354
- cert: cert1,
36355
- key: key1
36355
+ cert: cert,
36356
+ key: key
36356
36357
  }, options.listener);
36357
36358
  } // HTTPServer#close only stops accepting new connections, and does not close existing ones.
36358
36359
  // Before closing, destroy any active connections through their sockets. Additionally, remove sockets when they close:
@@ -36397,10 +36398,10 @@ function $bc66accb63b05e9a$export$d0d0105f44defc19({ bundle: bundle , bundleGrap
36397
36398
  if (node.type === "dependency" && node.value.specifierType === "url") urlDependencies.push(node.value);
36398
36399
  });
36399
36400
  for (let dependency of urlDependencies){
36400
- var ref;
36401
+ var _dependency_meta;
36401
36402
  if (dependency.specifierType !== "url") continue;
36402
- var ref1;
36403
- let placeholder = (ref1 = (ref = dependency.meta) === null || ref === void 0 ? void 0 : ref.placeholder) !== null && ref1 !== void 0 ? ref1 : dependency.id;
36403
+ var _dependency_meta_placeholder;
36404
+ let placeholder = (_dependency_meta_placeholder = (_dependency_meta = dependency.meta) === null || _dependency_meta === void 0 ? void 0 : _dependency_meta.placeholder) !== null && _dependency_meta_placeholder !== void 0 ? _dependency_meta_placeholder : dependency.id;
36404
36405
  (0, ($parcel$interopDefault($8C1kk$assert)))(typeof placeholder === "string");
36405
36406
  let resolved = bundleGraph.getReferencedBundle(dependency, bundle);
36406
36407
  if (resolved == null) {
@@ -36434,9 +36435,9 @@ async function $bc66accb63b05e9a$export$f074a8f9bef628fd({ bundle: bundle , bund
36434
36435
  let packagedContents = (packagedBundle.contents instanceof (0, $8C1kk$stream.Readable) ? await (0, $29bb96d8a6524ff0$export$f109d1c79a5ae5a1)(packagedBundle.contents) : packagedBundle.contents).toString();
36435
36436
  let inlineType = (0, (/*@__PURE__*/$parcel$interopDefault($812806c6461f2963$exports)))(entryBundle.getMainEntry()).meta.inlineType;
36436
36437
  if (inlineType == null || inlineType === "string") {
36437
- var ref;
36438
- var ref1;
36439
- let placeholder = (ref1 = (ref = dependency.meta) === null || ref === void 0 ? void 0 : ref.placeholder) !== null && ref1 !== void 0 ? ref1 : dependency.id;
36438
+ var _dependency_meta;
36439
+ var _dependency_meta_placeholder;
36440
+ let placeholder = (_dependency_meta_placeholder = (_dependency_meta = dependency.meta) === null || _dependency_meta === void 0 ? void 0 : _dependency_meta.placeholder) !== null && _dependency_meta_placeholder !== void 0 ? _dependency_meta_placeholder : dependency.id;
36440
36441
  (0, ($parcel$interopDefault($8C1kk$assert)))(typeof placeholder === "string");
36441
36442
  replacements.set(placeholder, getInlineReplacement(dependency, inlineType, packagedContents));
36442
36443
  }
@@ -36444,7 +36445,7 @@ async function $bc66accb63b05e9a$export$f074a8f9bef628fd({ bundle: bundle , bund
36444
36445
  return $bc66accb63b05e9a$var$performReplacement(replacements, contents, map);
36445
36446
  }
36446
36447
  function $bc66accb63b05e9a$export$a22ef0cbdf8abc95({ dependency: dependency , fromBundle: fromBundle , toBundle: toBundle , relative: relative , getReplacement: getReplacement }) {
36447
- var ref;
36448
+ var _dependency_meta;
36448
36449
  let to;
36449
36450
  let orig = (0, ($parcel$interopDefault($8C1kk$url))).parse(dependency.specifier);
36450
36451
  if (relative) {
@@ -36460,8 +36461,8 @@ function $bc66accb63b05e9a$export$a22ef0cbdf8abc95({ dependency: dependency , fr
36460
36461
  pathname: (0, (/*@__PURE__*/$parcel$interopDefault($812806c6461f2963$exports)))(toBundle.name),
36461
36462
  hash: orig.hash
36462
36463
  }));
36463
- var ref1;
36464
- let placeholder = (ref1 = (ref = dependency.meta) === null || ref === void 0 ? void 0 : ref.placeholder) !== null && ref1 !== void 0 ? ref1 : dependency.id;
36464
+ var _dependency_meta_placeholder;
36465
+ let placeholder = (_dependency_meta_placeholder = (_dependency_meta = dependency.meta) === null || _dependency_meta === void 0 ? void 0 : _dependency_meta.placeholder) !== null && _dependency_meta_placeholder !== void 0 ? _dependency_meta_placeholder : dependency.id;
36465
36466
  (0, ($parcel$interopDefault($8C1kk$assert)))(typeof placeholder === "string");
36466
36467
  return {
36467
36468
  from: placeholder,