@atlaspack/fs 2.13.1-canary.3631 → 2.13.1

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
@@ -1,17 +1,18 @@
1
- var $kTI78$path = require("path");
2
- var $kTI78$stream = require("stream");
3
- var $kTI78$util = require("util");
4
- var $kTI78$fs = require("fs");
5
- var $kTI78$os = require("os");
6
- var $kTI78$atlaspackbuildcache = require("@atlaspack/build-cache");
7
- var $kTI78$atlaspackutils = require("@atlaspack/utils");
8
- var $kTI78$atlaspackfeatureflags = require("@atlaspack/feature-flags");
9
- var $kTI78$parcelwatcher = require("@parcel/watcher");
10
- var $kTI78$atlaspackrust = require("@atlaspack/rust");
11
- var $kTI78$assert = require("assert");
12
- var $kTI78$constants = require("constants");
13
- var $kTI78$atlaspackworkers = require("@atlaspack/workers");
14
- var $kTI78$events = require("events");
1
+ var $2V2hx$path = require("path");
2
+ var $2V2hx$stream = require("stream");
3
+ var $2V2hx$util = require("util");
4
+ var $2V2hx$fs = require("fs");
5
+ var $2V2hx$os = require("os");
6
+ var $2V2hx$atlaspackbuildcache = require("@atlaspack/build-cache");
7
+ var $2V2hx$atlaspackutils = require("@atlaspack/utils");
8
+ var $2V2hx$atlaspackfeatureflags = require("@atlaspack/feature-flags");
9
+ var $2V2hx$parcelwatcher = require("@parcel/watcher");
10
+ var $2V2hx$atlaspackrust = require("@atlaspack/rust");
11
+ var $2V2hx$assert = require("assert");
12
+ var $2V2hx$constants = require("constants");
13
+ var $2V2hx$atlaspackworkers = require("@atlaspack/workers");
14
+ var $2V2hx$events = require("events");
15
+ var $2V2hx$atlaspacklogger = require("@atlaspack/logger");
15
16
 
16
17
 
17
18
  function $parcel$interopDefault(a) {
@@ -41,42 +42,42 @@ function $parcel$export(e, n, v, s) {
41
42
 
42
43
  var $parcel$global = globalThis;
43
44
 
44
- $parcel$export(module.exports, "ncp", () => $f850a02712c7cafd$export$d3a8044e3fef7335);
45
+ $parcel$export(module.exports, "ncp", () => $5acbc033ab4ad011$export$d3a8044e3fef7335);
45
46
 
46
47
 
47
48
 
48
- var $f8ce570f65ef93a7$exports = {};
49
+ var $94eb45ad74bb764d$exports = {};
49
50
 
50
- $parcel$export($f8ce570f65ef93a7$exports, "NodeFS", () => $f8ce570f65ef93a7$export$c4e0ef2ab73c21e7);
51
- var $6c064781873e3d07$exports = {};
51
+ $parcel$export($94eb45ad74bb764d$exports, "NodeFS", () => $94eb45ad74bb764d$export$c4e0ef2ab73c21e7);
52
+ var $243d4fdf6bcaa749$exports = {};
52
53
 
53
- var $639b403ad792e788$exports = {};
54
+ var $2d902cbb5c7044aa$exports = {};
54
55
 
55
- var $639b403ad792e788$var$origCwd = process.cwd;
56
- var $639b403ad792e788$var$cwd = null;
57
- var $639b403ad792e788$var$platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
56
+ var $2d902cbb5c7044aa$var$origCwd = process.cwd;
57
+ var $2d902cbb5c7044aa$var$cwd = null;
58
+ var $2d902cbb5c7044aa$var$platform = process.env.GRACEFUL_FS_PLATFORM || process.platform;
58
59
  process.cwd = function() {
59
- if (!$639b403ad792e788$var$cwd) $639b403ad792e788$var$cwd = $639b403ad792e788$var$origCwd.call(process);
60
- return $639b403ad792e788$var$cwd;
60
+ if (!$2d902cbb5c7044aa$var$cwd) $2d902cbb5c7044aa$var$cwd = $2d902cbb5c7044aa$var$origCwd.call(process);
61
+ return $2d902cbb5c7044aa$var$cwd;
61
62
  };
62
63
  try {
63
64
  process.cwd();
64
65
  } catch (er) {}
65
66
  // This check is needed until node.js 12 is required
66
67
  if (typeof process.chdir === 'function') {
67
- var $639b403ad792e788$var$chdir = process.chdir;
68
+ var $2d902cbb5c7044aa$var$chdir = process.chdir;
68
69
  process.chdir = function(d) {
69
- $639b403ad792e788$var$cwd = null;
70
- $639b403ad792e788$var$chdir.call(process, d);
70
+ $2d902cbb5c7044aa$var$cwd = null;
71
+ $2d902cbb5c7044aa$var$chdir.call(process, d);
71
72
  };
72
- if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, $639b403ad792e788$var$chdir);
73
+ if (Object.setPrototypeOf) Object.setPrototypeOf(process.chdir, $2d902cbb5c7044aa$var$chdir);
73
74
  }
74
- $639b403ad792e788$exports = $639b403ad792e788$var$patch;
75
- function $639b403ad792e788$var$patch(fs) {
75
+ $2d902cbb5c7044aa$exports = $2d902cbb5c7044aa$var$patch;
76
+ function $2d902cbb5c7044aa$var$patch(fs) {
76
77
  // (re-)implement some things that are known busted or missing.
77
78
  // lchmod, broken prior to 0.6.2
78
79
  // back-port the fix here.
79
- if ($kTI78$constants.hasOwnProperty('O_SYMLINK') && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) patchLchmod(fs);
80
+ if ($2V2hx$constants.hasOwnProperty('O_SYMLINK') && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) patchLchmod(fs);
80
81
  // lutimes implementation, or no-op
81
82
  if (!fs.lutimes) patchLutimes(fs);
82
83
  // https://github.com/isaacs/node-graceful-fs/issues/4
@@ -122,7 +123,7 @@ function $639b403ad792e788$var$patch(fs) {
122
123
  // failures. Also, take care to yield the scheduler. Windows scheduling gives
123
124
  // CPU to a busy looping process, which can cause the program causing the lock
124
125
  // contention to be starved of CPU by node, so the contention doesn't resolve.
125
- if ($639b403ad792e788$var$platform === "win32") fs.rename = typeof fs.rename !== 'function' ? fs.rename : function(fs$rename) {
126
+ if ($2d902cbb5c7044aa$var$platform === "win32") fs.rename = typeof fs.rename !== 'function' ? fs.rename : function(fs$rename) {
126
127
  function rename(from, to, cb) {
127
128
  var start = Date.now();
128
129
  var backoff = 0;
@@ -179,7 +180,7 @@ function $639b403ad792e788$var$patch(fs) {
179
180
  }(fs.readSync);
180
181
  function patchLchmod(fs) {
181
182
  fs.lchmod = function(path, mode, callback) {
182
- fs.open(path, $kTI78$constants.O_WRONLY | $kTI78$constants.O_SYMLINK, mode, function(err, fd) {
183
+ fs.open(path, $2V2hx$constants.O_WRONLY | $2V2hx$constants.O_SYMLINK, mode, function(err, fd) {
183
184
  if (err) {
184
185
  if (callback) callback(err);
185
186
  return;
@@ -194,7 +195,7 @@ function $639b403ad792e788$var$patch(fs) {
194
195
  });
195
196
  };
196
197
  fs.lchmodSync = function(path, mode) {
197
- var fd = fs.openSync(path, $kTI78$constants.O_WRONLY | $kTI78$constants.O_SYMLINK, mode);
198
+ var fd = fs.openSync(path, $2V2hx$constants.O_WRONLY | $2V2hx$constants.O_SYMLINK, mode);
198
199
  // prefer to return the chmod error, if one occurs,
199
200
  // but still try to close, and report closing errors if they occur.
200
201
  var threw = true;
@@ -212,9 +213,9 @@ function $639b403ad792e788$var$patch(fs) {
212
213
  };
213
214
  }
214
215
  function patchLutimes(fs) {
215
- if ($kTI78$constants.hasOwnProperty("O_SYMLINK") && fs.futimes) {
216
+ if ($2V2hx$constants.hasOwnProperty("O_SYMLINK") && fs.futimes) {
216
217
  fs.lutimes = function(path, at, mt, cb) {
217
- fs.open(path, $kTI78$constants.O_SYMLINK, function(er, fd) {
218
+ fs.open(path, $2V2hx$constants.O_SYMLINK, function(er, fd) {
218
219
  if (er) {
219
220
  if (cb) cb(er);
220
221
  return;
@@ -227,7 +228,7 @@ function $639b403ad792e788$var$patch(fs) {
227
228
  });
228
229
  };
229
230
  fs.lutimesSync = function(path, at, mt) {
230
- var fd = fs.openSync(path, $kTI78$constants.O_SYMLINK);
231
+ var fd = fs.openSync(path, $2V2hx$constants.O_SYMLINK);
231
232
  var ret;
232
233
  var threw = true;
233
234
  try {
@@ -342,18 +343,18 @@ function $639b403ad792e788$var$patch(fs) {
342
343
  }
343
344
 
344
345
 
345
- var $4c0a2d7980621f6a$exports = {};
346
+ var $ecbaa1aacd85d011$exports = {};
346
347
 
347
- var $4c0a2d7980621f6a$require$Stream = $kTI78$stream.Stream;
348
- $4c0a2d7980621f6a$exports = $4c0a2d7980621f6a$var$legacy;
349
- function $4c0a2d7980621f6a$var$legacy(fs) {
348
+ var $ecbaa1aacd85d011$require$Stream = $2V2hx$stream.Stream;
349
+ $ecbaa1aacd85d011$exports = $ecbaa1aacd85d011$var$legacy;
350
+ function $ecbaa1aacd85d011$var$legacy(fs) {
350
351
  return {
351
352
  ReadStream: ReadStream,
352
353
  WriteStream: WriteStream
353
354
  };
354
355
  function ReadStream(path, options) {
355
356
  if (!(this instanceof ReadStream)) return new ReadStream(path, options);
356
- $4c0a2d7980621f6a$require$Stream.call(this);
357
+ $ecbaa1aacd85d011$require$Stream.call(this);
357
358
  var self = this;
358
359
  this.path = path;
359
360
  this.fd = null;
@@ -396,7 +397,7 @@ function $4c0a2d7980621f6a$var$legacy(fs) {
396
397
  }
397
398
  function WriteStream(path, options) {
398
399
  if (!(this instanceof WriteStream)) return new WriteStream(path, options);
399
- $4c0a2d7980621f6a$require$Stream.call(this);
400
+ $ecbaa1aacd85d011$require$Stream.call(this);
400
401
  this.path = path;
401
402
  this.fd = null;
402
403
  this.writable = true;
@@ -433,16 +434,16 @@ function $4c0a2d7980621f6a$var$legacy(fs) {
433
434
  }
434
435
 
435
436
 
436
- var $0f902c53c0cc1afb$exports = {};
437
+ var $1d7a9f7e34bc692e$exports = {};
437
438
  'use strict';
438
- $0f902c53c0cc1afb$exports = $0f902c53c0cc1afb$var$clone;
439
- var $0f902c53c0cc1afb$var$getPrototypeOf = Object.getPrototypeOf || function(obj) {
439
+ $1d7a9f7e34bc692e$exports = $1d7a9f7e34bc692e$var$clone;
440
+ var $1d7a9f7e34bc692e$var$getPrototypeOf = Object.getPrototypeOf || function(obj) {
440
441
  return obj.__proto__;
441
442
  };
442
- function $0f902c53c0cc1afb$var$clone(obj) {
443
+ function $1d7a9f7e34bc692e$var$clone(obj) {
443
444
  if (obj === null || typeof obj !== 'object') return obj;
444
445
  if (obj instanceof Object) var copy = {
445
- __proto__: $0f902c53c0cc1afb$var$getPrototypeOf(obj)
446
+ __proto__: $1d7a9f7e34bc692e$var$getPrototypeOf(obj)
446
447
  };
447
448
  else var copy = Object.create(null);
448
449
  Object.getOwnPropertyNames(obj).forEach(function(key) {
@@ -453,80 +454,80 @@ function $0f902c53c0cc1afb$var$clone(obj) {
453
454
 
454
455
 
455
456
 
456
- /* istanbul ignore next - node 0.x polyfill */ var $6c064781873e3d07$var$gracefulQueue;
457
- var $6c064781873e3d07$var$previousSymbol;
457
+ /* istanbul ignore next - node 0.x polyfill */ var $243d4fdf6bcaa749$var$gracefulQueue;
458
+ var $243d4fdf6bcaa749$var$previousSymbol;
458
459
  /* istanbul ignore else - node 0.x polyfill */ if (typeof Symbol === 'function' && typeof Symbol.for === 'function') {
459
- $6c064781873e3d07$var$gracefulQueue = Symbol.for('graceful-fs.queue');
460
+ $243d4fdf6bcaa749$var$gracefulQueue = Symbol.for('graceful-fs.queue');
460
461
  // This is used in testing by future versions
461
- $6c064781873e3d07$var$previousSymbol = Symbol.for('graceful-fs.previous');
462
+ $243d4fdf6bcaa749$var$previousSymbol = Symbol.for('graceful-fs.previous');
462
463
  } else {
463
- $6c064781873e3d07$var$gracefulQueue = '___graceful-fs.queue';
464
- $6c064781873e3d07$var$previousSymbol = '___graceful-fs.previous';
464
+ $243d4fdf6bcaa749$var$gracefulQueue = '___graceful-fs.queue';
465
+ $243d4fdf6bcaa749$var$previousSymbol = '___graceful-fs.previous';
465
466
  }
466
- function $6c064781873e3d07$var$noop() {}
467
- function $6c064781873e3d07$var$publishQueue(context, queue) {
468
- Object.defineProperty(context, $6c064781873e3d07$var$gracefulQueue, {
467
+ function $243d4fdf6bcaa749$var$noop() {}
468
+ function $243d4fdf6bcaa749$var$publishQueue(context, queue) {
469
+ Object.defineProperty(context, $243d4fdf6bcaa749$var$gracefulQueue, {
469
470
  get: function() {
470
471
  return queue;
471
472
  }
472
473
  });
473
474
  }
474
- var $6c064781873e3d07$var$debug = $6c064781873e3d07$var$noop;
475
- if ($kTI78$util.debuglog) $6c064781873e3d07$var$debug = $kTI78$util.debuglog('gfs4');
476
- else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) $6c064781873e3d07$var$debug = function() {
477
- var m = $kTI78$util.format.apply($kTI78$util, arguments);
475
+ var $243d4fdf6bcaa749$var$debug = $243d4fdf6bcaa749$var$noop;
476
+ if ($2V2hx$util.debuglog) $243d4fdf6bcaa749$var$debug = $2V2hx$util.debuglog('gfs4');
477
+ else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) $243d4fdf6bcaa749$var$debug = function() {
478
+ var m = $2V2hx$util.format.apply($2V2hx$util, arguments);
478
479
  m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ');
479
480
  console.error(m);
480
481
  };
481
482
 
482
483
  // Once time initialization
483
- if (!$kTI78$fs[$6c064781873e3d07$var$gracefulQueue]) {
484
+ if (!$2V2hx$fs[$243d4fdf6bcaa749$var$gracefulQueue]) {
484
485
  // This queue can be shared by multiple loaded instances
485
- var $6c064781873e3d07$var$queue = $parcel$global[$6c064781873e3d07$var$gracefulQueue] || [];
486
- $6c064781873e3d07$var$publishQueue($kTI78$fs, $6c064781873e3d07$var$queue);
486
+ var $243d4fdf6bcaa749$var$queue = $parcel$global[$243d4fdf6bcaa749$var$gracefulQueue] || [];
487
+ $243d4fdf6bcaa749$var$publishQueue($2V2hx$fs, $243d4fdf6bcaa749$var$queue);
487
488
  // Patch fs.close/closeSync to shared queue version, because we need
488
489
  // to retry() whenever a close happens *anywhere* in the program.
489
490
  // This is essential when multiple graceful-fs instances are
490
491
  // in play at the same time.
491
- $kTI78$fs.close = function(fs$close) {
492
+ $2V2hx$fs.close = function(fs$close) {
492
493
  function close(fd, cb) {
493
- return fs$close.call($kTI78$fs, fd, function(err) {
494
+ return fs$close.call($2V2hx$fs, fd, function(err) {
494
495
  // This function uses the graceful-fs shared queue
495
- if (!err) $6c064781873e3d07$var$resetQueue();
496
+ if (!err) $243d4fdf6bcaa749$var$resetQueue();
496
497
  if (typeof cb === 'function') cb.apply(this, arguments);
497
498
  });
498
499
  }
499
- Object.defineProperty(close, $6c064781873e3d07$var$previousSymbol, {
500
+ Object.defineProperty(close, $243d4fdf6bcaa749$var$previousSymbol, {
500
501
  value: fs$close
501
502
  });
502
503
  return close;
503
- }($kTI78$fs.close);
504
- $kTI78$fs.closeSync = function(fs$closeSync) {
504
+ }($2V2hx$fs.close);
505
+ $2V2hx$fs.closeSync = function(fs$closeSync) {
505
506
  function closeSync(fd) {
506
507
  // This function uses the graceful-fs shared queue
507
- fs$closeSync.apply($kTI78$fs, arguments);
508
- $6c064781873e3d07$var$resetQueue();
508
+ fs$closeSync.apply($2V2hx$fs, arguments);
509
+ $243d4fdf6bcaa749$var$resetQueue();
509
510
  }
510
- Object.defineProperty(closeSync, $6c064781873e3d07$var$previousSymbol, {
511
+ Object.defineProperty(closeSync, $243d4fdf6bcaa749$var$previousSymbol, {
511
512
  value: fs$closeSync
512
513
  });
513
514
  return closeSync;
514
- }($kTI78$fs.closeSync);
515
+ }($2V2hx$fs.closeSync);
515
516
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) process.on('exit', function() {
516
- $6c064781873e3d07$var$debug($kTI78$fs[$6c064781873e3d07$var$gracefulQueue]);
517
- $kTI78$assert.equal($kTI78$fs[$6c064781873e3d07$var$gracefulQueue].length, 0);
517
+ $243d4fdf6bcaa749$var$debug($2V2hx$fs[$243d4fdf6bcaa749$var$gracefulQueue]);
518
+ $2V2hx$assert.equal($2V2hx$fs[$243d4fdf6bcaa749$var$gracefulQueue].length, 0);
518
519
  });
519
520
  }
520
- if (!$parcel$global[$6c064781873e3d07$var$gracefulQueue]) $6c064781873e3d07$var$publishQueue($parcel$global, $kTI78$fs[$6c064781873e3d07$var$gracefulQueue]);
521
- $6c064781873e3d07$exports = $6c064781873e3d07$var$patch($0f902c53c0cc1afb$exports($kTI78$fs));
522
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !$kTI78$fs.__patched) {
523
- $6c064781873e3d07$exports = $6c064781873e3d07$var$patch($kTI78$fs);
524
- $kTI78$fs.__patched = true;
521
+ if (!$parcel$global[$243d4fdf6bcaa749$var$gracefulQueue]) $243d4fdf6bcaa749$var$publishQueue($parcel$global, $2V2hx$fs[$243d4fdf6bcaa749$var$gracefulQueue]);
522
+ $243d4fdf6bcaa749$exports = $243d4fdf6bcaa749$var$patch($1d7a9f7e34bc692e$exports($2V2hx$fs));
523
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !$2V2hx$fs.__patched) {
524
+ $243d4fdf6bcaa749$exports = $243d4fdf6bcaa749$var$patch($2V2hx$fs);
525
+ $2V2hx$fs.__patched = true;
525
526
  }
526
- function $6c064781873e3d07$var$patch(fs) {
527
+ function $243d4fdf6bcaa749$var$patch(fs) {
527
528
  // Everything that references the open() function needs to be in here
528
- $639b403ad792e788$exports(fs);
529
- fs.gracefulify = $6c064781873e3d07$var$patch;
529
+ $2d902cbb5c7044aa$exports(fs);
530
+ fs.gracefulify = $243d4fdf6bcaa749$var$patch;
530
531
  fs.createReadStream = createReadStream;
531
532
  fs.createWriteStream = createWriteStream;
532
533
  var fs$readFile = fs.readFile;
@@ -536,7 +537,7 @@ function $6c064781873e3d07$var$patch(fs) {
536
537
  return go$readFile(path, options, cb);
537
538
  function go$readFile(path, options, cb, startTime) {
538
539
  return fs$readFile(path, options, function(err) {
539
- if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) $6c064781873e3d07$var$enqueue([
540
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) $243d4fdf6bcaa749$var$enqueue([
540
541
  go$readFile,
541
542
  [
542
543
  path,
@@ -558,7 +559,7 @@ function $6c064781873e3d07$var$patch(fs) {
558
559
  return go$writeFile(path, data, options, cb);
559
560
  function go$writeFile(path, data, options, cb, startTime) {
560
561
  return fs$writeFile(path, data, options, function(err) {
561
- if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) $6c064781873e3d07$var$enqueue([
562
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) $243d4fdf6bcaa749$var$enqueue([
562
563
  go$writeFile,
563
564
  [
564
565
  path,
@@ -581,7 +582,7 @@ function $6c064781873e3d07$var$patch(fs) {
581
582
  return go$appendFile(path, data, options, cb);
582
583
  function go$appendFile(path, data, options, cb, startTime) {
583
584
  return fs$appendFile(path, data, options, function(err) {
584
- if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) $6c064781873e3d07$var$enqueue([
585
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) $243d4fdf6bcaa749$var$enqueue([
585
586
  go$appendFile,
586
587
  [
587
588
  path,
@@ -607,7 +608,7 @@ function $6c064781873e3d07$var$patch(fs) {
607
608
  return go$copyFile(src, dest, flags, cb);
608
609
  function go$copyFile(src, dest, flags, cb, startTime) {
609
610
  return fs$copyFile(src, dest, flags, function(err) {
610
- if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) $6c064781873e3d07$var$enqueue([
611
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) $243d4fdf6bcaa749$var$enqueue([
611
612
  go$copyFile,
612
613
  [
613
614
  src,
@@ -636,7 +637,7 @@ function $6c064781873e3d07$var$patch(fs) {
636
637
  return go$readdir(path, options, cb);
637
638
  function fs$readdirCallback(path, options, cb, startTime) {
638
639
  return function(err, files) {
639
- if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) $6c064781873e3d07$var$enqueue([
640
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) $243d4fdf6bcaa749$var$enqueue([
640
641
  go$readdir,
641
642
  [
642
643
  path,
@@ -655,7 +656,7 @@ function $6c064781873e3d07$var$patch(fs) {
655
656
  }
656
657
  }
657
658
  if (process.version.substr(0, 4) === 'v0.8') {
658
- var legStreams = $4c0a2d7980621f6a$exports(fs);
659
+ var legStreams = $ecbaa1aacd85d011$exports(fs);
659
660
  ReadStream = legStreams.ReadStream;
660
661
  WriteStream = legStreams.WriteStream;
661
662
  }
@@ -758,7 +759,7 @@ function $6c064781873e3d07$var$patch(fs) {
758
759
  return go$open(path, flags, mode, cb);
759
760
  function go$open(path, flags, mode, cb, startTime) {
760
761
  return fs$open(path, flags, mode, function(err, fd) {
761
- if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) $6c064781873e3d07$var$enqueue([
762
+ if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) $243d4fdf6bcaa749$var$enqueue([
762
763
  go$open,
763
764
  [
764
765
  path,
@@ -776,35 +777,35 @@ function $6c064781873e3d07$var$patch(fs) {
776
777
  }
777
778
  return fs;
778
779
  }
779
- function $6c064781873e3d07$var$enqueue(elem) {
780
- $6c064781873e3d07$var$debug('ENQUEUE', elem[0].name, elem[1]);
781
- $kTI78$fs[$6c064781873e3d07$var$gracefulQueue].push(elem);
782
- $6c064781873e3d07$var$retry();
780
+ function $243d4fdf6bcaa749$var$enqueue(elem) {
781
+ $243d4fdf6bcaa749$var$debug('ENQUEUE', elem[0].name, elem[1]);
782
+ $2V2hx$fs[$243d4fdf6bcaa749$var$gracefulQueue].push(elem);
783
+ $243d4fdf6bcaa749$var$retry();
783
784
  }
784
785
  // keep track of the timeout between retry() calls
785
- var $6c064781873e3d07$var$retryTimer;
786
+ var $243d4fdf6bcaa749$var$retryTimer;
786
787
  // reset the startTime and lastTime to now
787
788
  // this resets the start of the 60 second overall timeout as well as the
788
789
  // delay between attempts so that we'll retry these jobs sooner
789
- function $6c064781873e3d07$var$resetQueue() {
790
+ function $243d4fdf6bcaa749$var$resetQueue() {
790
791
  var now = Date.now();
791
- for(var i = 0; i < $kTI78$fs[$6c064781873e3d07$var$gracefulQueue].length; ++i)// entries that are only a length of 2 are from an older version, don't
792
+ for(var i = 0; i < $2V2hx$fs[$243d4fdf6bcaa749$var$gracefulQueue].length; ++i)// entries that are only a length of 2 are from an older version, don't
792
793
  // bother modifying those since they'll be retried anyway.
793
- if ($kTI78$fs[$6c064781873e3d07$var$gracefulQueue][i].length > 2) {
794
- $kTI78$fs[$6c064781873e3d07$var$gracefulQueue][i][3] = now // startTime
794
+ if ($2V2hx$fs[$243d4fdf6bcaa749$var$gracefulQueue][i].length > 2) {
795
+ $2V2hx$fs[$243d4fdf6bcaa749$var$gracefulQueue][i][3] = now // startTime
795
796
  ;
796
- $kTI78$fs[$6c064781873e3d07$var$gracefulQueue][i][4] = now // lastTime
797
+ $2V2hx$fs[$243d4fdf6bcaa749$var$gracefulQueue][i][4] = now // lastTime
797
798
  ;
798
799
  }
799
800
  // call retry to make sure we're actively processing the queue
800
- $6c064781873e3d07$var$retry();
801
+ $243d4fdf6bcaa749$var$retry();
801
802
  }
802
- function $6c064781873e3d07$var$retry() {
803
+ function $243d4fdf6bcaa749$var$retry() {
803
804
  // clear the timer and remove it to help prevent unintended concurrency
804
- clearTimeout($6c064781873e3d07$var$retryTimer);
805
- $6c064781873e3d07$var$retryTimer = undefined;
806
- if ($kTI78$fs[$6c064781873e3d07$var$gracefulQueue].length === 0) return;
807
- var elem = $kTI78$fs[$6c064781873e3d07$var$gracefulQueue].shift();
805
+ clearTimeout($243d4fdf6bcaa749$var$retryTimer);
806
+ $243d4fdf6bcaa749$var$retryTimer = undefined;
807
+ if ($2V2hx$fs[$243d4fdf6bcaa749$var$gracefulQueue].length === 0) return;
808
+ var elem = $2V2hx$fs[$243d4fdf6bcaa749$var$gracefulQueue].shift();
808
809
  var fn = elem[0];
809
810
  var args = elem[1];
810
811
  // these items may be unset if they were added by an older graceful-fs
@@ -814,11 +815,11 @@ function $6c064781873e3d07$var$retry() {
814
815
  // if we don't have a startTime we have no way of knowing if we've waited
815
816
  // long enough, so go ahead and retry this item now
816
817
  if (startTime === undefined) {
817
- $6c064781873e3d07$var$debug('RETRY', fn.name, args);
818
+ $243d4fdf6bcaa749$var$debug('RETRY', fn.name, args);
818
819
  fn.apply(null, args);
819
820
  } else if (Date.now() - startTime >= 60000) {
820
821
  // it's been more than 60 seconds total, bail now
821
- $6c064781873e3d07$var$debug('TIMEOUT', fn.name, args);
822
+ $243d4fdf6bcaa749$var$debug('TIMEOUT', fn.name, args);
822
823
  var cb = args.pop();
823
824
  if (typeof cb === 'function') cb.call(null, err);
824
825
  } else {
@@ -832,32 +833,32 @@ function $6c064781873e3d07$var$retry() {
832
833
  var desiredDelay = Math.min(sinceStart * 1.2, 100);
833
834
  // it's been long enough since the last retry, do it again
834
835
  if (sinceAttempt >= desiredDelay) {
835
- $6c064781873e3d07$var$debug('RETRY', fn.name, args);
836
+ $243d4fdf6bcaa749$var$debug('RETRY', fn.name, args);
836
837
  fn.apply(null, args.concat([
837
838
  startTime
838
839
  ]));
839
840
  } else // if we can't do this job yet, push it to the end of the queue
840
841
  // and let the next iteration check again
841
- $kTI78$fs[$6c064781873e3d07$var$gracefulQueue].push(elem);
842
+ $2V2hx$fs[$243d4fdf6bcaa749$var$gracefulQueue].push(elem);
842
843
  }
843
844
  // schedule our next run if one isn't already scheduled
844
- if ($6c064781873e3d07$var$retryTimer === undefined) $6c064781873e3d07$var$retryTimer = setTimeout($6c064781873e3d07$var$retry, 0);
845
+ if ($243d4fdf6bcaa749$var$retryTimer === undefined) $243d4fdf6bcaa749$var$retryTimer = setTimeout($243d4fdf6bcaa749$var$retry, 0);
845
846
  }
846
847
 
847
848
 
848
849
 
849
- var $591958858326883b$exports = {};
850
+ var $1e76aa5674175761$exports = {};
850
851
 
851
852
 
852
- $591958858326883b$exports = $591958858326883b$var$ncp;
853
- $591958858326883b$var$ncp.ncp = $591958858326883b$var$ncp;
854
- function $591958858326883b$var$ncp(source, dest, options, callback) {
853
+ $1e76aa5674175761$exports = $1e76aa5674175761$var$ncp;
854
+ $1e76aa5674175761$var$ncp.ncp = $1e76aa5674175761$var$ncp;
855
+ function $1e76aa5674175761$var$ncp(source, dest, options, callback) {
855
856
  var cback = callback;
856
857
  if (!callback) {
857
858
  cback = options;
858
859
  options = {};
859
860
  }
860
- var basePath = process.cwd(), currentPath = $kTI78$path.resolve(basePath, source), targetPath = $kTI78$path.resolve(basePath, dest), filter = options.filter, rename = options.rename, transform = options.transform, clobber = options.clobber !== false, modified = options.modified, dereference = options.dereference, errs = null, started = 0, finished = 0, running = 0, limit = options.limit || $591958858326883b$var$ncp.limit || 16;
861
+ var basePath = process.cwd(), currentPath = $2V2hx$path.resolve(basePath, source), targetPath = $2V2hx$path.resolve(basePath, dest), filter = options.filter, rename = options.rename, transform = options.transform, clobber = options.clobber !== false, modified = options.modified, dereference = options.dereference, errs = null, started = 0, finished = 0, running = 0, limit = options.limit || $1e76aa5674175761$var$ncp.limit || 16;
861
862
  limit = limit < 1 ? 1 : limit > 512 ? 512 : limit;
862
863
  startCopy(currentPath);
863
864
  function startCopy(source) {
@@ -872,7 +873,7 @@ function $591958858326883b$var$ncp(source, dest, options, callback) {
872
873
  return getStats(source);
873
874
  }
874
875
  function getStats(source) {
875
- var stat = dereference ? $kTI78$fs.stat : $kTI78$fs.lstat;
876
+ var stat = dereference ? $2V2hx$fs.stat : $2V2hx$fs.lstat;
876
877
  if (running >= limit) return setImmediate(function() {
877
878
  getStats(source);
878
879
  });
@@ -900,7 +901,7 @@ function $591958858326883b$var$ncp(source, dest, options, callback) {
900
901
  copyFile(file, target);
901
902
  });
902
903
  if (modified) {
903
- var stat = dereference ? $kTI78$fs.stat : $kTI78$fs.lstat;
904
+ var stat = dereference ? $2V2hx$fs.stat : $2V2hx$fs.lstat;
904
905
  stat(target, function(err, stats) {
905
906
  //if souce modified time greater to target modified time copy file
906
907
  if (file.mtime.getTime() > stats.mtime.getTime()) copyFile(file, target);
@@ -910,7 +911,7 @@ function $591958858326883b$var$ncp(source, dest, options, callback) {
910
911
  });
911
912
  }
912
913
  function copyFile(file, target) {
913
- var readStream = $kTI78$fs.createReadStream(file.name), writeStream = $kTI78$fs.createWriteStream(target, {
914
+ var readStream = $2V2hx$fs.createReadStream(file.name), writeStream = $2V2hx$fs.createWriteStream(target, {
914
915
  mode: file.mode
915
916
  });
916
917
  readStream.on('error', onError);
@@ -922,13 +923,13 @@ function $591958858326883b$var$ncp(source, dest, options, callback) {
922
923
  writeStream.once('finish', function() {
923
924
  if (modified) {
924
925
  //target file modified date sync.
925
- $kTI78$fs.utimesSync(target, file.atime, file.mtime);
926
+ $2V2hx$fs.utimesSync(target, file.atime, file.mtime);
926
927
  cb();
927
928
  } else cb();
928
929
  });
929
930
  }
930
931
  function rmFile(file, done) {
931
- $kTI78$fs.unlink(file, function(err) {
932
+ $2V2hx$fs.unlink(file, function(err) {
932
933
  if (err) return onError(err);
933
934
  return done();
934
935
  });
@@ -941,34 +942,34 @@ function $591958858326883b$var$ncp(source, dest, options, callback) {
941
942
  });
942
943
  }
943
944
  function mkDir(dir, target) {
944
- $kTI78$fs.mkdir(target, dir.mode, function(err) {
945
+ $2V2hx$fs.mkdir(target, dir.mode, function(err) {
945
946
  if (err) return onError(err);
946
947
  copyDir(dir.name);
947
948
  });
948
949
  }
949
950
  function copyDir(dir) {
950
- $kTI78$fs.readdir(dir, function(err, items) {
951
+ $2V2hx$fs.readdir(dir, function(err, items) {
951
952
  if (err) return onError(err);
952
953
  items.forEach(function(item) {
953
- startCopy($kTI78$path.join(dir, item));
954
+ startCopy($2V2hx$path.join(dir, item));
954
955
  });
955
956
  return cb();
956
957
  });
957
958
  }
958
959
  function onLink(link) {
959
960
  var target = link.replace(currentPath, targetPath);
960
- $kTI78$fs.readlink(link, function(err, resolvedPath) {
961
+ $2V2hx$fs.readlink(link, function(err, resolvedPath) {
961
962
  if (err) return onError(err);
962
963
  checkLink(resolvedPath, target);
963
964
  });
964
965
  }
965
966
  function checkLink(resolvedPath, target) {
966
- if (dereference) resolvedPath = $kTI78$path.resolve(basePath, resolvedPath);
967
+ if (dereference) resolvedPath = $2V2hx$path.resolve(basePath, resolvedPath);
967
968
  isWritable(target, function(writable) {
968
969
  if (writable) return makeLink(resolvedPath, target);
969
- $kTI78$fs.readlink(target, function(err, targetDest) {
970
+ $2V2hx$fs.readlink(target, function(err, targetDest) {
970
971
  if (err) return onError(err);
971
- if (dereference) targetDest = $kTI78$path.resolve(basePath, targetDest);
972
+ if (dereference) targetDest = $2V2hx$path.resolve(basePath, targetDest);
972
973
  if (targetDest === resolvedPath) return cb();
973
974
  return rmFile(target, function() {
974
975
  makeLink(resolvedPath, target);
@@ -977,13 +978,13 @@ function $591958858326883b$var$ncp(source, dest, options, callback) {
977
978
  });
978
979
  }
979
980
  function makeLink(linkPath, target) {
980
- $kTI78$fs.symlink(linkPath, target, function(err) {
981
+ $2V2hx$fs.symlink(linkPath, target, function(err) {
981
982
  if (err) return onError(err);
982
983
  return cb();
983
984
  });
984
985
  }
985
986
  function isWritable(path, done) {
986
- $kTI78$fs.lstat(path, function(err) {
987
+ $2V2hx$fs.lstat(path, function(err) {
987
988
  if (err) {
988
989
  if (err.code === 'ENOENT') return done(true);
989
990
  return done(false);
@@ -993,7 +994,7 @@ function $591958858326883b$var$ncp(source, dest, options, callback) {
993
994
  }
994
995
  function onError(err) {
995
996
  if (options.stopOnError) return cback(err);
996
- else if (!errs && options.errs) errs = $kTI78$fs.createWriteStream(options.errs);
997
+ else if (!errs && options.errs) errs = $2V2hx$fs.createWriteStream(options.errs);
997
998
  else if (!errs) errs = [];
998
999
  if (typeof errs.write === 'undefined') errs.push(err);
999
1000
  else errs.write(err.stack + '\n\n');
@@ -1016,36 +1017,36 @@ function $591958858326883b$var$ncp(source, dest, options, callback) {
1016
1017
 
1017
1018
 
1018
1019
 
1019
- var $eac1f2f4592d0c44$exports = {};
1020
- $eac1f2f4592d0c44$exports = JSON.parse("{\"name\":\"@atlaspack/fs\",\"version\":\"2.13.1-canary.3631+64cd5e9ae\",\"description\":\"Blazing fast, zero configuration web application bundler\",\"license\":\"(MIT OR Apache-2.0)\",\"publishConfig\":{\"access\":\"public\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/atlassian-labs/atlaspack.git\"},\"main\":\"lib/index.js\",\"source\":\"src/index.js\",\"types\":\"index.d.ts\",\"engines\":{\"node\":\">= 16.0.0\"},\"targets\":{\"types\":false,\"main\":{\"includeNodeModules\":{\"@atlaspack/build-cache\":false,\"@atlaspack/feature-flags\":false,\"@atlaspack/rust\":false,\"@atlaspack/types-internal\":false,\"@atlaspack/utils\":false,\"@atlaspack/watcher-watchman-js\":false,\"@parcel/watcher\":false,\"@atlaspack/workers\":false}},\"browser\":{\"includeNodeModules\":{\"@atlaspack/build-cache\":false,\"@atlaspack/feature-flags\":false,\"@atlaspack/rust\":false,\"@atlaspack/types-internal\":false,\"@atlaspack/utils\":false,\"@atlaspack/watcher-watchman-js\":false,\"@parcel/watcher\":false,\"@atlaspack/workers\":false}}},\"scripts\":{\"build-ts\":\"mkdir -p lib && flow-to-ts src/types.js > lib/types.d.ts\",\"check-ts\":\"tsc --noEmit index.d.ts\"},\"dependencies\":{\"@atlaspack/build-cache\":\"2.13.1-canary.3631+64cd5e9ae\",\"@atlaspack/feature-flags\":\"2.13.1-canary.3631+64cd5e9ae\",\"@atlaspack/rust\":\"2.13.1-canary.3631+64cd5e9ae\",\"@atlaspack/types-internal\":\"2.13.1-canary.3631+64cd5e9ae\",\"@atlaspack/utils\":\"2.13.1-canary.3631+64cd5e9ae\",\"@atlaspack/workers\":\"2.13.1-canary.3631+64cd5e9ae\",\"@parcel/watcher\":\"^2.0.7\"},\"devDependencies\":{\"@atlaspack/watcher-watchman-js\":\"2.13.1-canary.3631+64cd5e9ae\",\"graceful-fs\":\"^4.2.4\",\"ncp\":\"^2.0.0\",\"nullthrows\":\"^1.1.1\",\"utility-types\":\"^3.10.0\"},\"browser\":{\"@atlaspack/fs\":\"./lib/browser.js\",\"./src/NodeFS.js\":\"./src/NodeFS.browser.js\"},\"gitHead\":\"64cd5e9ae573dbf0bee64488c7cf2026f991a1ed\"}");
1020
+ var $d7f6ae9f917393f7$exports = {};
1021
+ $d7f6ae9f917393f7$exports = JSON.parse("{\"name\":\"@atlaspack/fs\",\"version\":\"2.13.2-canary.3634+14fb7718e\",\"description\":\"Blazing fast, zero configuration web application bundler\",\"license\":\"(MIT OR Apache-2.0)\",\"publishConfig\":{\"access\":\"public\"},\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/atlassian-labs/atlaspack.git\"},\"main\":\"lib/index.js\",\"source\":\"src/index.js\",\"types\":\"index.d.ts\",\"engines\":{\"node\":\">= 16.0.0\"},\"targets\":{\"types\":false,\"main\":{\"includeNodeModules\":{\"@atlaspack/build-cache\":false,\"@atlaspack/diagnostic\":false,\"@atlaspack/feature-flags\":false,\"@atlaspack/logger\":false,\"@atlaspack/rust\":false,\"@atlaspack/types-internal\":false,\"@atlaspack/utils\":false,\"@atlaspack/watcher-watchman-js\":false,\"@parcel/watcher\":false,\"@atlaspack/workers\":false}},\"browser\":{\"includeNodeModules\":{\"@atlaspack/build-cache\":false,\"@atlaspack/diagnostic\":false,\"@atlaspack/feature-flags\":false,\"@atlaspack/logger\":false,\"@atlaspack/rust\":false,\"@atlaspack/types-internal\":false,\"@atlaspack/utils\":false,\"@atlaspack/watcher-watchman-js\":false,\"@parcel/watcher\":false,\"@atlaspack/workers\":false}}},\"scripts\":{\"build-ts\":\"mkdir -p lib && flow-to-ts src/types.js > lib/types.d.ts\",\"check-ts\":\"tsc --noEmit index.d.ts\"},\"dependencies\":{\"@atlaspack/build-cache\":\"2.13.2-canary.3634+14fb7718e\",\"@atlaspack/feature-flags\":\"2.13.2-canary.3634+14fb7718e\",\"@atlaspack/logger\":\"2.13.2-canary.3634+14fb7718e\",\"@atlaspack/rust\":\"2.13.2-canary.3634+14fb7718e\",\"@atlaspack/types-internal\":\"2.13.2-canary.3634+14fb7718e\",\"@atlaspack/utils\":\"2.13.2-canary.3634+14fb7718e\",\"@atlaspack/workers\":\"2.13.2-canary.3634+14fb7718e\",\"@parcel/watcher\":\"^2.0.7\"},\"devDependencies\":{\"@atlaspack/watcher-watchman-js\":\"2.13.2-canary.3634+14fb7718e\",\"graceful-fs\":\"^4.2.4\",\"ncp\":\"^2.0.0\",\"nullthrows\":\"^1.1.1\",\"utility-types\":\"^3.10.0\"},\"browser\":{\"@atlaspack/fs\":\"./lib/browser.js\",\"./src/NodeFS.js\":\"./src/NodeFS.browser.js\"},\"gitHead\":\"14fb7718e1f24e890b92354c645049300691ee8c\"}");
1021
1022
 
1022
1023
 
1023
1024
 
1024
1025
 
1025
- function $d65482e6541f1ac9$export$4c6d088a7d7f9947(fs, moduleName, dir) {
1026
- let { root: root } = (0, ($parcel$interopDefault($kTI78$path))).parse(dir);
1026
+ function $782db929ace769f6$export$4c6d088a7d7f9947(fs, moduleName, dir) {
1027
+ let { root: root } = (0, ($parcel$interopDefault($2V2hx$path))).parse(dir);
1027
1028
  while(dir !== root){
1028
1029
  // Skip node_modules directories
1029
- if ((0, ($parcel$interopDefault($kTI78$path))).basename(dir) === 'node_modules') dir = (0, ($parcel$interopDefault($kTI78$path))).dirname(dir);
1030
+ if ((0, ($parcel$interopDefault($2V2hx$path))).basename(dir) === 'node_modules') dir = (0, ($parcel$interopDefault($2V2hx$path))).dirname(dir);
1030
1031
  try {
1031
- let moduleDir = (0, ($parcel$interopDefault($kTI78$path))).join(dir, 'node_modules', moduleName);
1032
+ let moduleDir = (0, ($parcel$interopDefault($2V2hx$path))).join(dir, 'node_modules', moduleName);
1032
1033
  let stats = fs.statSync(moduleDir);
1033
1034
  if (stats.isDirectory()) return moduleDir;
1034
1035
  } catch (err) {
1035
1036
  // ignore
1036
1037
  }
1037
1038
  // Move up a directory
1038
- dir = (0, ($parcel$interopDefault($kTI78$path))).dirname(dir);
1039
+ dir = (0, ($parcel$interopDefault($2V2hx$path))).dirname(dir);
1039
1040
  }
1040
1041
  return null;
1041
1042
  }
1042
- function $d65482e6541f1ac9$export$d51a93c758976388(fs, fileNames, dir, root) {
1043
- let { root: pathRoot } = (0, ($parcel$interopDefault($kTI78$path))).parse(dir);
1043
+ function $782db929ace769f6$export$d51a93c758976388(fs, fileNames, dir, root) {
1044
+ let { root: pathRoot } = (0, ($parcel$interopDefault($2V2hx$path))).parse(dir);
1044
1045
  // eslint-disable-next-line no-constant-condition
1045
1046
  while(true){
1046
- if ((0, ($parcel$interopDefault($kTI78$path))).basename(dir) === 'node_modules') return null;
1047
+ if ((0, ($parcel$interopDefault($2V2hx$path))).basename(dir) === 'node_modules') return null;
1047
1048
  for (const fileName of fileNames){
1048
- let filePath = (0, ($parcel$interopDefault($kTI78$path))).join(dir, fileName);
1049
+ let filePath = (0, ($parcel$interopDefault($2V2hx$path))).join(dir, fileName);
1049
1050
  try {
1050
1051
  if (fs.statSync(filePath).isFile()) return filePath;
1051
1052
  } catch (err) {
@@ -1053,11 +1054,11 @@ function $d65482e6541f1ac9$export$d51a93c758976388(fs, fileNames, dir, root) {
1053
1054
  }
1054
1055
  }
1055
1056
  if (dir === root || dir === pathRoot) break;
1056
- dir = (0, ($parcel$interopDefault($kTI78$path))).dirname(dir);
1057
+ dir = (0, ($parcel$interopDefault($2V2hx$path))).dirname(dir);
1057
1058
  }
1058
1059
  return null;
1059
1060
  }
1060
- function $d65482e6541f1ac9$export$64df6e3182fd5b2d(fs, filePaths) {
1061
+ function $782db929ace769f6$export$64df6e3182fd5b2d(fs, filePaths) {
1061
1062
  for (let filePath of filePaths)try {
1062
1063
  if (fs.statSync(filePath).isFile()) return filePath;
1063
1064
  } catch (err) {
@@ -1068,9 +1069,9 @@ function $d65482e6541f1ac9$export$64df6e3182fd5b2d(fs, filePaths) {
1068
1069
 
1069
1070
  // Most of this can go away once we only support Node 10+, which includes
1070
1071
  // require('fs').promises
1071
- const $f8ce570f65ef93a7$var$realpath = (0, $kTI78$util.promisify)(process.platform === 'win32' ? (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).realpath : (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).realpath.native);
1072
- const $f8ce570f65ef93a7$var$isPnP = process.versions.pnp != null;
1073
- function $f8ce570f65ef93a7$var$getWatchmanWatcher() {
1072
+ const $94eb45ad74bb764d$var$realpath = (0, $2V2hx$util.promisify)(process.platform === 'win32' ? (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).realpath : (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).realpath.native);
1073
+ const $94eb45ad74bb764d$var$isPnP = process.versions.pnp != null;
1074
+ function $94eb45ad74bb764d$var$getWatchmanWatcher() {
1074
1075
  // This is here to trick atlaspack into ignoring this require...
1075
1076
  const packageName = [
1076
1077
  '@atlaspack',
@@ -1079,54 +1080,54 @@ function $f8ce570f65ef93a7$var$getWatchmanWatcher() {
1079
1080
  // $FlowFixMe
1080
1081
  return require(packageName);
1081
1082
  }
1082
- class $f8ce570f65ef93a7$export$c4e0ef2ab73c21e7 {
1083
- readFile = (0, $kTI78$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).readFile);
1084
- copyFile = (0, $kTI78$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).copyFile);
1085
- stat = (0, $kTI78$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).stat);
1086
- readdir = (0, $kTI78$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).readdir);
1087
- symlink = (0, $kTI78$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).symlink);
1088
- unlink = (0, $kTI78$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).unlink);
1089
- utimes = (0, $kTI78$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).utimes);
1090
- ncp = (0, $kTI78$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($591958858326883b$exports))));
1091
- createReadStream = (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).createReadStream;
1083
+ class $94eb45ad74bb764d$export$c4e0ef2ab73c21e7 {
1084
+ readFile = (0, $2V2hx$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).readFile);
1085
+ copyFile = (0, $2V2hx$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).copyFile);
1086
+ stat = (0, $2V2hx$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).stat);
1087
+ readdir = (0, $2V2hx$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).readdir);
1088
+ symlink = (0, $2V2hx$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).symlink);
1089
+ unlink = (0, $2V2hx$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).unlink);
1090
+ utimes = (0, $2V2hx$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).utimes);
1091
+ ncp = (0, $2V2hx$util.promisify)((0, (/*@__PURE__*/$parcel$interopDefault($1e76aa5674175761$exports))));
1092
+ createReadStream = (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).createReadStream;
1092
1093
  cwd = ()=>process.cwd();
1093
1094
  chdir = (directory)=>process.chdir(directory);
1094
- statSync = (path)=>(0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).statSync(path);
1095
- realpathSync = process.platform === 'win32' ? (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).realpathSync : (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).realpathSync.native;
1096
- existsSync = (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).existsSync;
1097
- readdirSync = (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).readdirSync;
1098
- findAncestorFile = $f8ce570f65ef93a7$var$isPnP ? (...args)=>$d65482e6541f1ac9$export$d51a93c758976388(this, ...args) : $kTI78$atlaspackrust.findAncestorFile;
1099
- findNodeModule = $f8ce570f65ef93a7$var$isPnP ? (...args)=>$d65482e6541f1ac9$export$4c6d088a7d7f9947(this, ...args) : $kTI78$atlaspackrust.findNodeModule;
1100
- findFirstFile = $f8ce570f65ef93a7$var$isPnP ? (...args)=>$d65482e6541f1ac9$export$64df6e3182fd5b2d(this, ...args) : $kTI78$atlaspackrust.findFirstFile;
1095
+ statSync = (path)=>(0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).statSync(path);
1096
+ realpathSync = process.platform === 'win32' ? (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).realpathSync : (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).realpathSync.native;
1097
+ existsSync = (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).existsSync;
1098
+ readdirSync = (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).readdirSync;
1099
+ findAncestorFile = $94eb45ad74bb764d$var$isPnP ? (...args)=>$782db929ace769f6$export$d51a93c758976388(this, ...args) : $2V2hx$atlaspackrust.findAncestorFile;
1100
+ findNodeModule = $94eb45ad74bb764d$var$isPnP ? (...args)=>$782db929ace769f6$export$4c6d088a7d7f9947(this, ...args) : $2V2hx$atlaspackrust.findNodeModule;
1101
+ findFirstFile = $94eb45ad74bb764d$var$isPnP ? (...args)=>$782db929ace769f6$export$64df6e3182fd5b2d(this, ...args) : $2V2hx$atlaspackrust.findFirstFile;
1101
1102
  watcher() {
1102
- return (0, $kTI78$atlaspackfeatureflags.getFeatureFlag)('useWatchmanWatcher') ? $f8ce570f65ef93a7$var$getWatchmanWatcher() : (0, ($parcel$interopDefault($kTI78$parcelwatcher)));
1103
+ return (0, $2V2hx$atlaspackfeatureflags.getFeatureFlag)('useWatchmanWatcher') ? $94eb45ad74bb764d$var$getWatchmanWatcher() : (0, ($parcel$interopDefault($2V2hx$parcelwatcher)));
1103
1104
  }
1104
1105
  createWriteStream(filePath, options) {
1105
1106
  // Make createWriteStream atomic
1106
- let tmpFilePath = $f8ce570f65ef93a7$var$getTempFilePath(filePath);
1107
+ let tmpFilePath = $94eb45ad74bb764d$var$getTempFilePath(filePath);
1107
1108
  let failed = false;
1108
1109
  const move = async ()=>{
1109
1110
  if (!failed) try {
1110
- await (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).promises.rename(tmpFilePath, filePath);
1111
+ await (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).promises.rename(tmpFilePath, filePath);
1111
1112
  } catch (e) {
1112
1113
  // This is adapted from fs-write-stream-atomic. Apparently
1113
1114
  // Windows doesn't like renaming when the target already exists.
1114
1115
  if (process.platform === 'win32' && e.syscall && e.syscall === 'rename' && e.code && e.code === 'EPERM') {
1115
1116
  let [hashTmp, hashTarget] = await Promise.all([
1116
- (0, $kTI78$atlaspackutils.hashFile)(this, tmpFilePath),
1117
- (0, $kTI78$atlaspackutils.hashFile)(this, filePath)
1117
+ (0, $2V2hx$atlaspackutils.hashFile)(this, tmpFilePath),
1118
+ (0, $2V2hx$atlaspackutils.hashFile)(this, filePath)
1118
1119
  ]);
1119
1120
  await this.unlink(tmpFilePath);
1120
1121
  if (hashTmp != hashTarget) throw e;
1121
1122
  }
1122
1123
  }
1123
1124
  };
1124
- let writeStream = (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).createWriteStream(tmpFilePath, {
1125
+ let writeStream = (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).createWriteStream(tmpFilePath, {
1125
1126
  ...options,
1126
1127
  fs: {
1127
- ...(0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))),
1128
+ ...(0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))),
1128
1129
  close: (fd, cb)=>{
1129
- (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).close(fd, (err)=>{
1130
+ (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).close(fd, (err)=>{
1130
1131
  if (err) cb(err);
1131
1132
  else move().then(()=>cb(), (err)=>cb(err));
1132
1133
  });
@@ -1135,22 +1136,22 @@ class $f8ce570f65ef93a7$export$c4e0ef2ab73c21e7 {
1135
1136
  });
1136
1137
  writeStream.once('error', ()=>{
1137
1138
  failed = true;
1138
- (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).unlinkSync(tmpFilePath);
1139
+ (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).unlinkSync(tmpFilePath);
1139
1140
  });
1140
1141
  return writeStream;
1141
1142
  }
1142
1143
  async writeFile(filePath, contents, options) {
1143
- let tmpFilePath = $f8ce570f65ef93a7$var$getTempFilePath(filePath);
1144
- await (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).promises.writeFile(tmpFilePath, contents, options);
1145
- await (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).promises.rename(tmpFilePath, filePath);
1144
+ let tmpFilePath = $94eb45ad74bb764d$var$getTempFilePath(filePath);
1145
+ await (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).promises.writeFile(tmpFilePath, contents, options);
1146
+ await (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).promises.rename(tmpFilePath, filePath);
1146
1147
  }
1147
1148
  readFileSync(filePath, encoding) {
1148
- if (encoding != null) return (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).readFileSync(filePath, encoding);
1149
- return (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).readFileSync(filePath);
1149
+ if (encoding != null) return (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).readFileSync(filePath, encoding);
1150
+ return (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).readFileSync(filePath);
1150
1151
  }
1151
1152
  async realpath(originalPath) {
1152
1153
  try {
1153
- return await $f8ce570f65ef93a7$var$realpath(originalPath, 'utf8');
1154
+ return await $94eb45ad74bb764d$var$realpath(originalPath, 'utf8');
1154
1155
  } catch (e) {
1155
1156
  // do nothing
1156
1157
  }
@@ -1158,7 +1159,7 @@ class $f8ce570f65ef93a7$export$c4e0ef2ab73c21e7 {
1158
1159
  }
1159
1160
  exists(filePath) {
1160
1161
  return new Promise((resolve)=>{
1161
- (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).exists(filePath, resolve);
1162
+ (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).exists(filePath, resolve);
1162
1163
  });
1163
1164
  }
1164
1165
  watch(dir, fn, opts) {
@@ -1171,19 +1172,19 @@ class $f8ce570f65ef93a7$export$c4e0ef2ab73c21e7 {
1171
1172
  await this.watcher().writeSnapshot(dir, snapshot, opts);
1172
1173
  }
1173
1174
  static deserialize() {
1174
- return new $f8ce570f65ef93a7$export$c4e0ef2ab73c21e7();
1175
+ return new $94eb45ad74bb764d$export$c4e0ef2ab73c21e7();
1175
1176
  }
1176
1177
  serialize() {
1177
1178
  return null;
1178
1179
  }
1179
1180
  async mkdirp(filePath) {
1180
- await (0, ($parcel$interopDefault($kTI78$fs))).promises.mkdir(filePath, {
1181
+ await (0, ($parcel$interopDefault($2V2hx$fs))).promises.mkdir(filePath, {
1181
1182
  recursive: true
1182
1183
  });
1183
1184
  }
1184
1185
  async rimraf(filePath) {
1185
- if ((0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).promises.rm) {
1186
- await (0, (/*@__PURE__*/$parcel$interopDefault($6c064781873e3d07$exports))).promises.rm(filePath, {
1186
+ if ((0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).promises.rm) {
1187
+ await (0, (/*@__PURE__*/$parcel$interopDefault($243d4fdf6bcaa749$exports))).promises.rm(filePath, {
1187
1188
  recursive: true,
1188
1189
  force: true
1189
1190
  });
@@ -1197,117 +1198,117 @@ class $f8ce570f65ef93a7$export$c4e0ef2ab73c21e7 {
1197
1198
  return;
1198
1199
  }
1199
1200
  if (stat.isDirectory()) // $FlowFixMe
1200
- await (0, ($parcel$interopDefault($kTI78$fs))).promises.rmdir(filePath, {
1201
+ await (0, ($parcel$interopDefault($2V2hx$fs))).promises.rmdir(filePath, {
1201
1202
  recursive: true
1202
1203
  });
1203
- else await (0, ($parcel$interopDefault($kTI78$fs))).promises.unlink(filePath);
1204
+ else await (0, ($parcel$interopDefault($2V2hx$fs))).promises.unlink(filePath);
1204
1205
  }
1205
1206
  }
1206
- (0, $kTI78$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eac1f2f4592d0c44$exports))).version}:NodeFS`, $f8ce570f65ef93a7$export$c4e0ef2ab73c21e7);
1207
- let $f8ce570f65ef93a7$var$writeStreamCalls = 0;
1208
- let $f8ce570f65ef93a7$var$threadId;
1207
+ (0, $2V2hx$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($d7f6ae9f917393f7$exports))).version}:NodeFS`, $94eb45ad74bb764d$export$c4e0ef2ab73c21e7);
1208
+ let $94eb45ad74bb764d$var$writeStreamCalls = 0;
1209
+ let $94eb45ad74bb764d$var$threadId;
1209
1210
 
1210
1211
  try {
1211
- ({ threadId: $f8ce570f65ef93a7$var$threadId } = $f8ce570f65ef93a7$import$9c2ae04019a9b9e3);
1212
+ ({ threadId: $94eb45ad74bb764d$var$threadId } = $94eb45ad74bb764d$import$9c2ae04019a9b9e3);
1212
1213
  } catch {
1213
1214
  //
1214
1215
  }
1215
- let $f8ce570f65ef93a7$var$useOsTmpDir;
1216
- function $f8ce570f65ef93a7$var$shouldUseOsTmpDir(filePath) {
1217
- if ($f8ce570f65ef93a7$var$useOsTmpDir != null) return $f8ce570f65ef93a7$var$useOsTmpDir;
1216
+ let $94eb45ad74bb764d$var$useOsTmpDir;
1217
+ function $94eb45ad74bb764d$var$shouldUseOsTmpDir(filePath) {
1218
+ if ($94eb45ad74bb764d$var$useOsTmpDir != null) return $94eb45ad74bb764d$var$useOsTmpDir;
1218
1219
  try {
1219
- const tmpDir = (0, $kTI78$os.tmpdir)();
1220
- (0, ($parcel$interopDefault($kTI78$fs))).accessSync(tmpDir, (0, ($parcel$interopDefault($kTI78$fs))).constants.R_OK | (0, ($parcel$interopDefault($kTI78$fs))).constants.W_OK);
1221
- const tmpDirStats = (0, ($parcel$interopDefault($kTI78$fs))).statSync(tmpDir);
1222
- const filePathStats = (0, ($parcel$interopDefault($kTI78$fs))).statSync(filePath);
1220
+ const tmpDir = (0, $2V2hx$os.tmpdir)();
1221
+ (0, ($parcel$interopDefault($2V2hx$fs))).accessSync(tmpDir, (0, ($parcel$interopDefault($2V2hx$fs))).constants.R_OK | (0, ($parcel$interopDefault($2V2hx$fs))).constants.W_OK);
1222
+ const tmpDirStats = (0, ($parcel$interopDefault($2V2hx$fs))).statSync(tmpDir);
1223
+ const filePathStats = (0, ($parcel$interopDefault($2V2hx$fs))).statSync(filePath);
1223
1224
  // Check the tmpdir is on the same partition as the target directory.
1224
1225
  // This is required to ensure renaming is an atomic operation.
1225
- $f8ce570f65ef93a7$var$useOsTmpDir = tmpDirStats.dev === filePathStats.dev;
1226
+ $94eb45ad74bb764d$var$useOsTmpDir = tmpDirStats.dev === filePathStats.dev;
1226
1227
  } catch (e) {
1227
1228
  // We don't have read/write access to the OS tmp directory
1228
- $f8ce570f65ef93a7$var$useOsTmpDir = false;
1229
+ $94eb45ad74bb764d$var$useOsTmpDir = false;
1229
1230
  }
1230
- return $f8ce570f65ef93a7$var$useOsTmpDir;
1231
+ return $94eb45ad74bb764d$var$useOsTmpDir;
1231
1232
  }
1232
1233
  // Generate a temporary file path used for atomic writing of files.
1233
- function $f8ce570f65ef93a7$var$getTempFilePath(filePath) {
1234
- $f8ce570f65ef93a7$var$writeStreamCalls = $f8ce570f65ef93a7$var$writeStreamCalls % Number.MAX_SAFE_INTEGER;
1234
+ function $94eb45ad74bb764d$var$getTempFilePath(filePath) {
1235
+ $94eb45ad74bb764d$var$writeStreamCalls = $94eb45ad74bb764d$var$writeStreamCalls % Number.MAX_SAFE_INTEGER;
1235
1236
  let tmpFilePath = filePath;
1236
1237
  // If possible, write the tmp file to the OS tmp directory
1237
1238
  // This reduces the amount of FS events the watcher needs to process during the build
1238
- if ($f8ce570f65ef93a7$var$shouldUseOsTmpDir(filePath)) tmpFilePath = (0, ($parcel$interopDefault($kTI78$path))).join((0, $kTI78$os.tmpdir)(), (0, ($parcel$interopDefault($kTI78$path))).basename(filePath));
1239
- return tmpFilePath + '.' + process.pid + ($f8ce570f65ef93a7$var$threadId != null ? '.' + $f8ce570f65ef93a7$var$threadId : '') + '.' + ($f8ce570f65ef93a7$var$writeStreamCalls++).toString(36);
1239
+ if ($94eb45ad74bb764d$var$shouldUseOsTmpDir(filePath)) tmpFilePath = (0, ($parcel$interopDefault($2V2hx$path))).join((0, $2V2hx$os.tmpdir)(), (0, ($parcel$interopDefault($2V2hx$path))).basename(filePath));
1240
+ return tmpFilePath + '.' + process.pid + ($94eb45ad74bb764d$var$threadId != null ? '.' + $94eb45ad74bb764d$var$threadId : '') + '.' + ($94eb45ad74bb764d$var$writeStreamCalls++).toString(36);
1240
1241
  }
1241
1242
 
1242
1243
 
1243
- var $7a85d2e5bcd45e92$exports = {};
1244
+ var $0846bf1c7ee89e90$exports = {};
1244
1245
 
1245
- $parcel$export($7a85d2e5bcd45e92$exports, "MemoryFS", () => $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e);
1246
- $parcel$export($7a85d2e5bcd45e92$exports, "FSError", () => $7a85d2e5bcd45e92$export$d414276624ebf134);
1247
- $parcel$export($7a85d2e5bcd45e92$exports, "makeShared", () => $7a85d2e5bcd45e92$export$df9eb3e75aa27a22);
1248
- $parcel$export($7a85d2e5bcd45e92$exports, "File", () => $7a85d2e5bcd45e92$export$b6afa8811b7e644e);
1246
+ $parcel$export($0846bf1c7ee89e90$exports, "MemoryFS", () => $0846bf1c7ee89e90$export$3048eb7ec07c2c4e);
1247
+ $parcel$export($0846bf1c7ee89e90$exports, "FSError", () => $0846bf1c7ee89e90$export$d414276624ebf134);
1248
+ $parcel$export($0846bf1c7ee89e90$exports, "makeShared", () => $0846bf1c7ee89e90$export$df9eb3e75aa27a22);
1249
+ $parcel$export($0846bf1c7ee89e90$exports, "File", () => $0846bf1c7ee89e90$export$b6afa8811b7e644e);
1249
1250
 
1250
1251
 
1251
1252
 
1252
1253
 
1253
1254
 
1254
1255
 
1255
- var $3c6f2cb8f8e5311c$exports = {};
1256
+ var $20532aab86e1ce9f$exports = {};
1256
1257
  'use strict';
1257
- function $3c6f2cb8f8e5311c$var$nullthrows(x, message) {
1258
+ function $20532aab86e1ce9f$var$nullthrows(x, message) {
1258
1259
  if (x != null) return x;
1259
1260
  var error = new Error(message !== undefined ? message : 'Got unexpected ' + x);
1260
1261
  error.framesToPop = 1; // Skip nullthrows's own stack frame.
1261
1262
  throw error;
1262
1263
  }
1263
- $3c6f2cb8f8e5311c$exports = $3c6f2cb8f8e5311c$var$nullthrows;
1264
- $3c6f2cb8f8e5311c$exports.default = $3c6f2cb8f8e5311c$var$nullthrows;
1265
- Object.defineProperty($3c6f2cb8f8e5311c$exports, '__esModule', {
1264
+ $20532aab86e1ce9f$exports = $20532aab86e1ce9f$var$nullthrows;
1265
+ $20532aab86e1ce9f$exports.default = $20532aab86e1ce9f$var$nullthrows;
1266
+ Object.defineProperty($20532aab86e1ce9f$exports, '__esModule', {
1266
1267
  value: true
1267
1268
  });
1268
1269
 
1269
1270
 
1270
1271
 
1271
1272
 
1272
- const $7a85d2e5bcd45e92$var$instances = new Map();
1273
- let $7a85d2e5bcd45e92$var$id = 0;
1274
- class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1273
+ const $0846bf1c7ee89e90$var$instances = new Map();
1274
+ let $0846bf1c7ee89e90$var$id = 0;
1275
+ class $0846bf1c7ee89e90$export$3048eb7ec07c2c4e {
1275
1276
  _numWorkerInstances = 0;
1276
1277
  _workerRegisterResolves = [];
1277
- _emitter = new (0, ($parcel$interopDefault($kTI78$events)))();
1278
+ _emitter = new (0, ($parcel$interopDefault($2V2hx$events)))();
1278
1279
  constructor(workerFarm){
1279
1280
  this.farm = workerFarm;
1280
- this._cwd = (0, ($parcel$interopDefault($kTI78$path))).resolve((0, ($parcel$interopDefault($kTI78$path))).sep);
1281
+ this._cwd = (0, ($parcel$interopDefault($2V2hx$path))).resolve((0, ($parcel$interopDefault($2V2hx$path))).sep);
1281
1282
  this.dirs = new Map([
1282
1283
  [
1283
1284
  this._cwd,
1284
- new $7a85d2e5bcd45e92$var$Directory()
1285
+ new $0846bf1c7ee89e90$var$Directory()
1285
1286
  ]
1286
1287
  ]);
1287
1288
  this.files = new Map();
1288
1289
  this.symlinks = new Map();
1289
1290
  this.watchers = new Map();
1290
1291
  this.events = [];
1291
- this.id = $7a85d2e5bcd45e92$var$id++;
1292
+ this.id = $0846bf1c7ee89e90$var$id++;
1292
1293
  this._workerHandles = [];
1293
1294
  this._eventQueue = [];
1294
- $7a85d2e5bcd45e92$var$instances.set(this.id, this);
1295
+ $0846bf1c7ee89e90$var$instances.set(this.id, this);
1295
1296
  this._emitter.on('allWorkersRegistered', ()=>{
1296
1297
  for (let resolve of this._workerRegisterResolves)resolve();
1297
1298
  this._workerRegisterResolves = [];
1298
1299
  });
1299
1300
  }
1300
1301
  static deserialize(opts) {
1301
- let existing = $7a85d2e5bcd45e92$var$instances.get(opts.id);
1302
+ let existing = $0846bf1c7ee89e90$var$instances.get(opts.id);
1302
1303
  if (existing != null) {
1303
1304
  // Correct the count of worker instances since serialization assumes a new instance is created
1304
- (0, ($parcel$interopDefault($kTI78$atlaspackworkers))).getWorkerApi().runHandle(opts.handle, [
1305
+ (0, ($parcel$interopDefault($2V2hx$atlaspackworkers))).getWorkerApi().runHandle(opts.handle, [
1305
1306
  'decrementWorkerInstance',
1306
1307
  []
1307
1308
  ]);
1308
1309
  return existing;
1309
1310
  }
1310
- let fs = new $7a85d2e5bcd45e92$var$WorkerFS(opts.id, (0, (/*@__PURE__*/$parcel$interopDefault($3c6f2cb8f8e5311c$exports)))(opts.handle));
1311
+ let fs = new $0846bf1c7ee89e90$var$WorkerFS(opts.id, (0, (/*@__PURE__*/$parcel$interopDefault($20532aab86e1ce9f$exports)))(opts.handle));
1311
1312
  fs.dirs = opts.dirs;
1312
1313
  fs.files = opts.files;
1313
1314
  fs.symlinks = opts.symlinks;
@@ -1340,15 +1341,15 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1340
1341
  this._cwd = dir;
1341
1342
  }
1342
1343
  _normalizePath(filePath, realpath = true) {
1343
- filePath = (0, ($parcel$interopDefault($kTI78$path))).normalize(filePath);
1344
- if (!filePath.startsWith(this.cwd())) filePath = (0, ($parcel$interopDefault($kTI78$path))).resolve(this.cwd(), filePath);
1344
+ filePath = (0, ($parcel$interopDefault($2V2hx$path))).normalize(filePath);
1345
+ if (!filePath.startsWith(this.cwd())) filePath = (0, ($parcel$interopDefault($2V2hx$path))).resolve(this.cwd(), filePath);
1345
1346
  // get realpath by following symlinks
1346
1347
  if (realpath) {
1347
- let { root: root, dir: dir, base: base } = (0, ($parcel$interopDefault($kTI78$path))).parse(filePath);
1348
- let parts = dir.slice(root.length).split((0, ($parcel$interopDefault($kTI78$path))).sep).concat(base);
1348
+ let { root: root, dir: dir, base: base } = (0, ($parcel$interopDefault($2V2hx$path))).parse(filePath);
1349
+ let parts = dir.slice(root.length).split((0, ($parcel$interopDefault($2V2hx$path))).sep).concat(base);
1349
1350
  let res = root;
1350
1351
  for (let part of parts){
1351
- res = (0, ($parcel$interopDefault($kTI78$path))).join(res, part);
1352
+ res = (0, ($parcel$interopDefault($2V2hx$path))).join(res, part);
1352
1353
  let symlink = this.symlinks.get(res);
1353
1354
  if (symlink) res = symlink;
1354
1355
  }
@@ -1358,16 +1359,16 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1358
1359
  }
1359
1360
  async writeFile(filePath, contents, options) {
1360
1361
  filePath = this._normalizePath(filePath);
1361
- if (this.dirs.has(filePath)) throw new $7a85d2e5bcd45e92$export$d414276624ebf134('EISDIR', filePath, 'is a directory');
1362
- let dir = (0, ($parcel$interopDefault($kTI78$path))).dirname(filePath);
1363
- if (!this.dirs.has(dir)) throw new $7a85d2e5bcd45e92$export$d414276624ebf134('ENOENT', dir, 'does not exist');
1364
- let buffer = $7a85d2e5bcd45e92$export$df9eb3e75aa27a22(contents);
1362
+ if (this.dirs.has(filePath)) throw new $0846bf1c7ee89e90$export$d414276624ebf134('EISDIR', filePath, 'is a directory');
1363
+ let dir = (0, ($parcel$interopDefault($2V2hx$path))).dirname(filePath);
1364
+ if (!this.dirs.has(dir)) throw new $0846bf1c7ee89e90$export$d414276624ebf134('ENOENT', dir, 'does not exist');
1365
+ let buffer = $0846bf1c7ee89e90$export$df9eb3e75aa27a22(contents);
1365
1366
  let file = this.files.get(filePath);
1366
1367
  let mode = options && options.mode || 438;
1367
1368
  if (file) {
1368
1369
  file.write(buffer, mode);
1369
1370
  this.files.set(filePath, file);
1370
- } else this.files.set(filePath, new $7a85d2e5bcd45e92$export$b6afa8811b7e644e(buffer, mode));
1371
+ } else this.files.set(filePath, new $0846bf1c7ee89e90$export$b6afa8811b7e644e(buffer, mode));
1371
1372
  await this._sendWorkerEvent({
1372
1373
  type: 'writeFile',
1373
1374
  path: filePath,
@@ -1385,7 +1386,7 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1385
1386
  readFileSync(filePath, encoding) {
1386
1387
  filePath = this._normalizePath(filePath);
1387
1388
  let file = this.files.get(filePath);
1388
- if (file == null) throw new $7a85d2e5bcd45e92$export$d414276624ebf134('ENOENT', filePath, 'does not exist');
1389
+ if (file == null) throw new $0846bf1c7ee89e90$export$d414276624ebf134('ENOENT', filePath, 'does not exist');
1389
1390
  let buffer = file.read();
1390
1391
  if (encoding) return buffer.toString(encoding);
1391
1392
  return buffer;
@@ -1399,7 +1400,7 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1399
1400
  let dir = this.dirs.get(filePath);
1400
1401
  if (dir) return dir.stat();
1401
1402
  let file = this.files.get(filePath);
1402
- if (file == null) throw new $7a85d2e5bcd45e92$export$d414276624ebf134('ENOENT', filePath, 'does not exist');
1403
+ if (file == null) throw new $0846bf1c7ee89e90$export$d414276624ebf134('ENOENT', filePath, 'does not exist');
1403
1404
  return file.stat();
1404
1405
  }
1405
1406
  // eslint-disable-next-line require-await
@@ -1408,26 +1409,26 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1408
1409
  }
1409
1410
  readdirSync(dir, opts) {
1410
1411
  dir = this._normalizePath(dir);
1411
- if (!this.dirs.has(dir)) throw new $7a85d2e5bcd45e92$export$d414276624ebf134('ENOENT', dir, 'does not exist');
1412
- if (!dir.endsWith((0, ($parcel$interopDefault($kTI78$path))).sep)) dir += (0, ($parcel$interopDefault($kTI78$path))).sep;
1412
+ if (!this.dirs.has(dir)) throw new $0846bf1c7ee89e90$export$d414276624ebf134('ENOENT', dir, 'does not exist');
1413
+ if (!dir.endsWith((0, ($parcel$interopDefault($2V2hx$path))).sep)) dir += (0, ($parcel$interopDefault($2V2hx$path))).sep;
1413
1414
  let res = [];
1414
1415
  for (let [filePath, entry] of this.dirs){
1415
1416
  if (filePath === dir) continue;
1416
- if (filePath.startsWith(dir) && filePath.indexOf((0, ($parcel$interopDefault($kTI78$path))).sep, dir.length) === -1) {
1417
+ if (filePath.startsWith(dir) && filePath.indexOf((0, ($parcel$interopDefault($2V2hx$path))).sep, dir.length) === -1) {
1417
1418
  let name = filePath.slice(dir.length);
1418
- if (opts?.withFileTypes) res.push(new $7a85d2e5bcd45e92$var$Dirent(name, entry));
1419
+ if (opts?.withFileTypes) res.push(new $0846bf1c7ee89e90$var$Dirent(name, entry));
1419
1420
  else res.push(name);
1420
1421
  }
1421
1422
  }
1422
- for (let [filePath, entry] of this.files)if (filePath.startsWith(dir) && filePath.indexOf((0, ($parcel$interopDefault($kTI78$path))).sep, dir.length) === -1) {
1423
+ for (let [filePath, entry] of this.files)if (filePath.startsWith(dir) && filePath.indexOf((0, ($parcel$interopDefault($2V2hx$path))).sep, dir.length) === -1) {
1423
1424
  let name = filePath.slice(dir.length);
1424
- if (opts?.withFileTypes) res.push(new $7a85d2e5bcd45e92$var$Dirent(name, entry));
1425
+ if (opts?.withFileTypes) res.push(new $0846bf1c7ee89e90$var$Dirent(name, entry));
1425
1426
  else res.push(name);
1426
1427
  }
1427
- for (let [from] of this.symlinks)if (from.startsWith(dir) && from.indexOf((0, ($parcel$interopDefault($kTI78$path))).sep, dir.length) === -1) {
1428
+ for (let [from] of this.symlinks)if (from.startsWith(dir) && from.indexOf((0, ($parcel$interopDefault($2V2hx$path))).sep, dir.length) === -1) {
1428
1429
  let name = from.slice(dir.length);
1429
- if (opts?.withFileTypes) res.push(new $7a85d2e5bcd45e92$var$Dirent(name, {
1430
- mode: $7a85d2e5bcd45e92$var$S_IFLNK
1430
+ if (opts?.withFileTypes) res.push(new $0846bf1c7ee89e90$var$Dirent(name, {
1431
+ mode: $0846bf1c7ee89e90$var$S_IFLNK
1431
1432
  }));
1432
1433
  else res.push(name);
1433
1434
  }
@@ -1439,7 +1440,7 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1439
1440
  }
1440
1441
  async unlink(filePath) {
1441
1442
  filePath = this._normalizePath(filePath);
1442
- if (!this.files.has(filePath) && !this.dirs.has(filePath)) throw new $7a85d2e5bcd45e92$export$d414276624ebf134('ENOENT', filePath, 'does not exist');
1443
+ if (!this.files.has(filePath) && !this.dirs.has(filePath)) throw new $0846bf1c7ee89e90$export$d414276624ebf134('ENOENT', filePath, 'does not exist');
1443
1444
  this.files.delete(filePath);
1444
1445
  this.dirs.delete(filePath);
1445
1446
  this.watchers.delete(filePath);
@@ -1456,11 +1457,11 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1456
1457
  async mkdirp(dir) {
1457
1458
  dir = this._normalizePath(dir);
1458
1459
  if (this.dirs.has(dir)) return Promise.resolve();
1459
- if (this.files.has(dir)) throw new $7a85d2e5bcd45e92$export$d414276624ebf134('ENOENT', dir, 'is not a directory');
1460
- let root = (0, ($parcel$interopDefault($kTI78$path))).parse(dir).root;
1460
+ if (this.files.has(dir)) throw new $0846bf1c7ee89e90$export$d414276624ebf134('ENOENT', dir, 'is not a directory');
1461
+ let root = (0, ($parcel$interopDefault($2V2hx$path))).parse(dir).root;
1461
1462
  while(dir !== root){
1462
1463
  if (this.dirs.has(dir)) break;
1463
- this.dirs.set(dir, new $7a85d2e5bcd45e92$var$Directory());
1464
+ this.dirs.set(dir, new $0846bf1c7ee89e90$var$Directory());
1464
1465
  await this._sendWorkerEvent({
1465
1466
  type: 'mkdir',
1466
1467
  path: dir
@@ -1469,14 +1470,14 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1469
1470
  type: 'create',
1470
1471
  path: dir
1471
1472
  });
1472
- dir = (0, ($parcel$interopDefault($kTI78$path))).dirname(dir);
1473
+ dir = (0, ($parcel$interopDefault($2V2hx$path))).dirname(dir);
1473
1474
  }
1474
1475
  return Promise.resolve();
1475
1476
  }
1476
1477
  async rimraf(filePath) {
1477
1478
  filePath = this._normalizePath(filePath);
1478
1479
  if (this.dirs.has(filePath)) {
1479
- let dir = filePath + (0, ($parcel$interopDefault($kTI78$path))).sep;
1480
+ let dir = filePath + (0, ($parcel$interopDefault($2V2hx$path))).sep;
1480
1481
  for (let filePath of this.files.keys())if (filePath.startsWith(dir)) {
1481
1482
  this.files.delete(filePath);
1482
1483
  await this._sendWorkerEvent({
@@ -1533,7 +1534,7 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1533
1534
  source = this._normalizePath(source);
1534
1535
  if (this.dirs.has(source)) {
1535
1536
  if (!this.dirs.has(destination)) {
1536
- this.dirs.set(destination, new $7a85d2e5bcd45e92$var$Directory());
1537
+ this.dirs.set(destination, new $0846bf1c7ee89e90$var$Directory());
1537
1538
  await this._sendWorkerEvent({
1538
1539
  type: 'mkdir',
1539
1540
  path: destination
@@ -1543,11 +1544,11 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1543
1544
  path: destination
1544
1545
  });
1545
1546
  }
1546
- let dir = source + (0, ($parcel$interopDefault($kTI78$path))).sep;
1547
+ let dir = source + (0, ($parcel$interopDefault($2V2hx$path))).sep;
1547
1548
  for (let dirPath of this.dirs.keys())if (dirPath.startsWith(dir)) {
1548
- let destName = (0, ($parcel$interopDefault($kTI78$path))).join(destination, dirPath.slice(dir.length));
1549
+ let destName = (0, ($parcel$interopDefault($2V2hx$path))).join(destination, dirPath.slice(dir.length));
1549
1550
  if (!this.dirs.has(destName)) {
1550
- this.dirs.set(destName, new $7a85d2e5bcd45e92$var$Directory());
1551
+ this.dirs.set(destName, new $0846bf1c7ee89e90$var$Directory());
1551
1552
  await this._sendWorkerEvent({
1552
1553
  type: 'mkdir',
1553
1554
  path: destination
@@ -1559,7 +1560,7 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1559
1560
  }
1560
1561
  }
1561
1562
  for (let [filePath, file] of this.files)if (filePath.startsWith(dir)) {
1562
- let destName = (0, ($parcel$interopDefault($kTI78$path))).join(destination, filePath.slice(dir.length));
1563
+ let destName = (0, ($parcel$interopDefault($2V2hx$path))).join(destination, filePath.slice(dir.length));
1563
1564
  let exists = this.files.has(destName);
1564
1565
  this.files.set(destName, file);
1565
1566
  await this._sendWorkerEvent({
@@ -1575,10 +1576,10 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1575
1576
  } else await this.copyFile(source, destination);
1576
1577
  }
1577
1578
  createReadStream(filePath) {
1578
- return new $7a85d2e5bcd45e92$var$ReadStream(this, filePath);
1579
+ return new $0846bf1c7ee89e90$var$ReadStream(this, filePath);
1579
1580
  }
1580
1581
  createWriteStream(filePath, options) {
1581
- return new $7a85d2e5bcd45e92$var$WriteStream(this, filePath, options);
1582
+ return new $0846bf1c7ee89e90$var$WriteStream(this, filePath, options);
1582
1583
  }
1583
1584
  realpathSync(filePath) {
1584
1585
  return this._normalizePath(filePath);
@@ -1615,7 +1616,7 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1615
1616
  let events = this._eventQueue;
1616
1617
  this._eventQueue = [];
1617
1618
  for (let [dir, watchers] of this.watchers){
1618
- if (!dir.endsWith((0, ($parcel$interopDefault($kTI78$path))).sep)) dir += (0, ($parcel$interopDefault($kTI78$path))).sep;
1619
+ if (!dir.endsWith((0, ($parcel$interopDefault($2V2hx$path))).sep)) dir += (0, ($parcel$interopDefault($2V2hx$path))).sep;
1619
1620
  if (event.path.startsWith(dir)) for (let watcher of watchers)watcher.trigger(events);
1620
1621
  }
1621
1622
  }, 50);
@@ -1633,7 +1634,7 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1633
1634
  }
1634
1635
  watch(dir, fn, opts) {
1635
1636
  dir = this._normalizePath(dir);
1636
- let watcher = new $7a85d2e5bcd45e92$var$Watcher(fn, opts);
1637
+ let watcher = new $0846bf1c7ee89e90$var$Watcher(fn, opts);
1637
1638
  let watchers = this.watchers.get(dir);
1638
1639
  if (!watchers) {
1639
1640
  watchers = new Set();
@@ -1642,7 +1643,7 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1642
1643
  watchers.add(watcher);
1643
1644
  return Promise.resolve({
1644
1645
  unsubscribe: ()=>{
1645
- watchers = (0, (/*@__PURE__*/$parcel$interopDefault($3c6f2cb8f8e5311c$exports)))(watchers);
1646
+ watchers = (0, (/*@__PURE__*/$parcel$interopDefault($20532aab86e1ce9f$exports)))(watchers);
1646
1647
  watchers.delete(watcher);
1647
1648
  if (watchers.size === 0) this.watchers.delete(dir);
1648
1649
  return Promise.resolve();
@@ -1654,35 +1655,35 @@ class $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1654
1655
  let len = Number(contents);
1655
1656
  let events = this.events.slice(len);
1656
1657
  let ignore = opts.ignore;
1657
- if (ignore) events = events.filter((event)=>!ignore.some((i)=>event.path.startsWith(i + (0, ($parcel$interopDefault($kTI78$path))).sep)));
1658
+ if (ignore) events = events.filter((event)=>!ignore.some((i)=>event.path.startsWith(i + (0, ($parcel$interopDefault($2V2hx$path))).sep)));
1658
1659
  return events;
1659
1660
  }
1660
1661
  async writeSnapshot(dir, snapshot) {
1661
- await this.mkdirp((0, ($parcel$interopDefault($kTI78$path))).dirname(snapshot));
1662
+ await this.mkdirp((0, ($parcel$interopDefault($2V2hx$path))).dirname(snapshot));
1662
1663
  await this.writeFile(snapshot, '' + this.events.length);
1663
1664
  }
1664
1665
  findAncestorFile(fileNames, fromDir, root) {
1665
- return (0, $d65482e6541f1ac9$export$d51a93c758976388)(this, fileNames, fromDir, root);
1666
+ return (0, $782db929ace769f6$export$d51a93c758976388)(this, fileNames, fromDir, root);
1666
1667
  }
1667
1668
  findNodeModule(moduleName, fromDir) {
1668
- return (0, $d65482e6541f1ac9$export$4c6d088a7d7f9947)(this, moduleName, fromDir);
1669
+ return (0, $782db929ace769f6$export$4c6d088a7d7f9947)(this, moduleName, fromDir);
1669
1670
  }
1670
1671
  findFirstFile(filePaths) {
1671
- return (0, $d65482e6541f1ac9$export$64df6e3182fd5b2d)(this, filePaths);
1672
+ return (0, $782db929ace769f6$export$64df6e3182fd5b2d)(this, filePaths);
1672
1673
  }
1673
1674
  }
1674
- class $7a85d2e5bcd45e92$var$Watcher {
1675
+ class $0846bf1c7ee89e90$var$Watcher {
1675
1676
  constructor(fn, options){
1676
1677
  this.fn = fn;
1677
1678
  this.options = options;
1678
1679
  }
1679
1680
  trigger(events) {
1680
1681
  let ignore = this.options.ignore;
1681
- if (ignore) events = events.filter((event)=>!ignore.some((i)=>event.path.startsWith(i + (0, ($parcel$interopDefault($kTI78$path))).sep)));
1682
+ if (ignore) events = events.filter((event)=>!ignore.some((i)=>event.path.startsWith(i + (0, ($parcel$interopDefault($2V2hx$path))).sep)));
1682
1683
  if (events.length > 0) this.fn(null, events);
1683
1684
  }
1684
1685
  }
1685
- class $7a85d2e5bcd45e92$export$d414276624ebf134 extends Error {
1686
+ class $0846bf1c7ee89e90$export$d414276624ebf134 extends Error {
1686
1687
  constructor(code, path, message){
1687
1688
  super(`${code}: ${path} ${message}`);
1688
1689
  this.name = 'FSError';
@@ -1691,7 +1692,7 @@ class $7a85d2e5bcd45e92$export$d414276624ebf134 extends Error {
1691
1692
  Error.captureStackTrace?.(this, this.constructor);
1692
1693
  }
1693
1694
  }
1694
- class $7a85d2e5bcd45e92$var$ReadStream extends (0, $kTI78$stream.Readable) {
1695
+ class $0846bf1c7ee89e90$var$ReadStream extends (0, $2V2hx$stream.Readable) {
1695
1696
  constructor(fs, filePath){
1696
1697
  super();
1697
1698
  this.fs = fs;
@@ -1711,7 +1712,7 @@ class $7a85d2e5bcd45e92$var$ReadStream extends (0, $kTI78$stream.Readable) {
1711
1712
  });
1712
1713
  }
1713
1714
  }
1714
- class $7a85d2e5bcd45e92$var$WriteStream extends (0, $kTI78$stream.Writable) {
1715
+ class $0846bf1c7ee89e90$var$WriteStream extends (0, $2V2hx$stream.Writable) {
1715
1716
  constructor(fs, filePath, options){
1716
1717
  super({
1717
1718
  emitClose: true,
@@ -1734,11 +1735,11 @@ class $7a85d2e5bcd45e92$var$WriteStream extends (0, $kTI78$stream.Writable) {
1734
1735
  this.fs.writeFile(this.filePath, this.buffer, this.options).then(callback).catch(callback);
1735
1736
  }
1736
1737
  }
1737
- const $7a85d2e5bcd45e92$var$S_IFREG = 32768;
1738
- const $7a85d2e5bcd45e92$var$S_IFDIR = 16384;
1739
- const $7a85d2e5bcd45e92$var$S_IFLNK = 40960;
1740
- const $7a85d2e5bcd45e92$var$S_IFMT = 61440;
1741
- class $7a85d2e5bcd45e92$var$Entry {
1738
+ const $0846bf1c7ee89e90$var$S_IFREG = 32768;
1739
+ const $0846bf1c7ee89e90$var$S_IFDIR = 16384;
1740
+ const $0846bf1c7ee89e90$var$S_IFLNK = 40960;
1741
+ const $0846bf1c7ee89e90$var$S_IFMT = 61440;
1742
+ class $0846bf1c7ee89e90$var$Entry {
1742
1743
  constructor(mode){
1743
1744
  this.mode = mode;
1744
1745
  let now = Date.now();
@@ -1762,10 +1763,10 @@ class $7a85d2e5bcd45e92$var$Entry {
1762
1763
  return 0;
1763
1764
  }
1764
1765
  stat() {
1765
- return new $7a85d2e5bcd45e92$var$Stat(this);
1766
+ return new $0846bf1c7ee89e90$var$Stat(this);
1766
1767
  }
1767
1768
  }
1768
- class $7a85d2e5bcd45e92$var$Stat {
1769
+ class $0846bf1c7ee89e90$var$Stat {
1769
1770
  dev = 0;
1770
1771
  ino = 0;
1771
1772
  nlink = 0;
@@ -1787,10 +1788,10 @@ class $7a85d2e5bcd45e92$var$Stat {
1787
1788
  this.birthtime = new Date(entry.birthtime);
1788
1789
  }
1789
1790
  isFile() {
1790
- return Boolean(this.mode & $7a85d2e5bcd45e92$var$S_IFREG);
1791
+ return Boolean(this.mode & $0846bf1c7ee89e90$var$S_IFREG);
1791
1792
  }
1792
1793
  isDirectory() {
1793
- return Boolean(this.mode & $7a85d2e5bcd45e92$var$S_IFDIR);
1794
+ return Boolean(this.mode & $0846bf1c7ee89e90$var$S_IFDIR);
1794
1795
  }
1795
1796
  isBlockDevice() {
1796
1797
  return false;
@@ -1808,17 +1809,17 @@ class $7a85d2e5bcd45e92$var$Stat {
1808
1809
  return false;
1809
1810
  }
1810
1811
  }
1811
- class $7a85d2e5bcd45e92$var$Dirent {
1812
+ class $0846bf1c7ee89e90$var$Dirent {
1812
1813
  #mode;
1813
1814
  constructor(name, entry){
1814
1815
  this.name = name;
1815
1816
  this.#mode = entry.mode;
1816
1817
  }
1817
1818
  isFile() {
1818
- return (this.#mode & $7a85d2e5bcd45e92$var$S_IFMT) === $7a85d2e5bcd45e92$var$S_IFREG;
1819
+ return (this.#mode & $0846bf1c7ee89e90$var$S_IFMT) === $0846bf1c7ee89e90$var$S_IFREG;
1819
1820
  }
1820
1821
  isDirectory() {
1821
- return (this.#mode & $7a85d2e5bcd45e92$var$S_IFMT) === $7a85d2e5bcd45e92$var$S_IFDIR;
1822
+ return (this.#mode & $0846bf1c7ee89e90$var$S_IFMT) === $0846bf1c7ee89e90$var$S_IFDIR;
1822
1823
  }
1823
1824
  isBlockDevice() {
1824
1825
  return false;
@@ -1827,7 +1828,7 @@ class $7a85d2e5bcd45e92$var$Dirent {
1827
1828
  return false;
1828
1829
  }
1829
1830
  isSymbolicLink() {
1830
- return (this.#mode & $7a85d2e5bcd45e92$var$S_IFMT) === $7a85d2e5bcd45e92$var$S_IFLNK;
1831
+ return (this.#mode & $0846bf1c7ee89e90$var$S_IFMT) === $0846bf1c7ee89e90$var$S_IFLNK;
1831
1832
  }
1832
1833
  isFIFO() {
1833
1834
  return false;
@@ -1836,9 +1837,9 @@ class $7a85d2e5bcd45e92$var$Dirent {
1836
1837
  return false;
1837
1838
  }
1838
1839
  }
1839
- class $7a85d2e5bcd45e92$export$b6afa8811b7e644e extends $7a85d2e5bcd45e92$var$Entry {
1840
+ class $0846bf1c7ee89e90$export$b6afa8811b7e644e extends $0846bf1c7ee89e90$var$Entry {
1840
1841
  constructor(buffer, mode){
1841
- super($7a85d2e5bcd45e92$var$S_IFREG | mode);
1842
+ super($0846bf1c7ee89e90$var$S_IFREG | mode);
1842
1843
  this.buffer = buffer;
1843
1844
  }
1844
1845
  read() {
@@ -1846,27 +1847,27 @@ class $7a85d2e5bcd45e92$export$b6afa8811b7e644e extends $7a85d2e5bcd45e92$var$En
1846
1847
  return Buffer.from(this.buffer);
1847
1848
  }
1848
1849
  write(buffer, mode) {
1849
- super.modify($7a85d2e5bcd45e92$var$S_IFREG | mode);
1850
+ super.modify($0846bf1c7ee89e90$var$S_IFREG | mode);
1850
1851
  this.buffer = buffer;
1851
1852
  }
1852
1853
  getSize() {
1853
1854
  return this.buffer.byteLength;
1854
1855
  }
1855
1856
  }
1856
- class $7a85d2e5bcd45e92$var$Directory extends $7a85d2e5bcd45e92$var$Entry {
1857
+ class $0846bf1c7ee89e90$var$Directory extends $0846bf1c7ee89e90$var$Entry {
1857
1858
  constructor(){
1858
- super($7a85d2e5bcd45e92$var$S_IFDIR);
1859
+ super($0846bf1c7ee89e90$var$S_IFDIR);
1859
1860
  }
1860
1861
  }
1861
- function $7a85d2e5bcd45e92$export$df9eb3e75aa27a22(contents) {
1862
- if (typeof contents !== 'string' && contents.buffer instanceof (0, $kTI78$atlaspackutils.SharedBuffer)) return contents;
1862
+ function $0846bf1c7ee89e90$export$df9eb3e75aa27a22(contents) {
1863
+ if (typeof contents !== 'string' && contents.buffer instanceof (0, $2V2hx$atlaspackutils.SharedBuffer)) return contents;
1863
1864
  let contentsBuffer = contents;
1864
1865
  // $FlowFixMe
1865
1866
  if (process.browser) // For the polyfilled buffer module, it's faster to always convert once so that the subsequent
1866
1867
  // operations are fast (.byteLength and using .set instead of .write)
1867
1868
  contentsBuffer = contentsBuffer instanceof Buffer ? contentsBuffer : Buffer.from(contentsBuffer);
1868
1869
  let length = Buffer.byteLength(contentsBuffer);
1869
- let shared = new (0, $kTI78$atlaspackutils.SharedBuffer)(length);
1870
+ let shared = new (0, $2V2hx$atlaspackutils.SharedBuffer)(length);
1870
1871
  let buffer = Buffer.from(shared);
1871
1872
  if (length > 0) {
1872
1873
  if (typeof contentsBuffer === 'string') buffer.write(contentsBuffer);
@@ -1874,18 +1875,18 @@ function $7a85d2e5bcd45e92$export$df9eb3e75aa27a22(contents) {
1874
1875
  }
1875
1876
  return buffer;
1876
1877
  }
1877
- class $7a85d2e5bcd45e92$var$WorkerFS extends $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e {
1878
+ class $0846bf1c7ee89e90$var$WorkerFS extends $0846bf1c7ee89e90$export$3048eb7ec07c2c4e {
1878
1879
  constructor(id, handle){
1879
1880
  // TODO Make this not a subclass
1880
1881
  // $FlowFixMe
1881
1882
  super();
1882
1883
  this.id = id;
1883
- this.handleFn = (methodName, args)=>(0, ($parcel$interopDefault($kTI78$atlaspackworkers))).getWorkerApi().runHandle(handle, [
1884
+ this.handleFn = (methodName, args)=>(0, ($parcel$interopDefault($2V2hx$atlaspackworkers))).getWorkerApi().runHandle(handle, [
1884
1885
  methodName,
1885
1886
  args
1886
1887
  ]);
1887
1888
  this.handleFn('_registerWorker', [
1888
- (0, ($parcel$interopDefault($kTI78$atlaspackworkers))).getWorkerApi().createReverseHandle((event)=>{
1889
+ (0, ($parcel$interopDefault($2V2hx$atlaspackworkers))).getWorkerApi().createReverseHandle((event)=>{
1889
1890
  switch(event.type){
1890
1891
  case 'writeFile':
1891
1892
  this.files.set(event.path, event.entry);
@@ -1896,7 +1897,7 @@ class $7a85d2e5bcd45e92$var$WorkerFS extends $7a85d2e5bcd45e92$export$3048eb7ec0
1896
1897
  this.symlinks.delete(event.path);
1897
1898
  break;
1898
1899
  case 'mkdir':
1899
- this.dirs.set(event.path, new $7a85d2e5bcd45e92$var$Directory());
1900
+ this.dirs.set(event.path, new $0846bf1c7ee89e90$var$Directory());
1900
1901
  break;
1901
1902
  case 'symlink':
1902
1903
  this.symlinks.set(event.path, event.target);
@@ -1906,7 +1907,7 @@ class $7a85d2e5bcd45e92$var$WorkerFS extends $7a85d2e5bcd45e92$export$3048eb7ec0
1906
1907
  ]);
1907
1908
  }
1908
1909
  static deserialize(opts) {
1909
- return (0, (/*@__PURE__*/$parcel$interopDefault($3c6f2cb8f8e5311c$exports)))($7a85d2e5bcd45e92$var$instances.get(opts.id));
1910
+ return (0, (/*@__PURE__*/$parcel$interopDefault($20532aab86e1ce9f$exports)))($0846bf1c7ee89e90$var$instances.get(opts.id));
1910
1911
  }
1911
1912
  serialize() {
1912
1913
  // $FlowFixMe
@@ -1916,7 +1917,7 @@ class $7a85d2e5bcd45e92$var$WorkerFS extends $7a85d2e5bcd45e92$export$3048eb7ec0
1916
1917
  }
1917
1918
  writeFile(filePath, contents, options) {
1918
1919
  super.writeFile(filePath, contents, options);
1919
- let buffer = $7a85d2e5bcd45e92$export$df9eb3e75aa27a22(contents);
1920
+ let buffer = $0846bf1c7ee89e90$export$df9eb3e75aa27a22(contents);
1920
1921
  return this.handleFn('writeFile', [
1921
1922
  filePath,
1922
1923
  buffer,
@@ -1956,16 +1957,16 @@ class $7a85d2e5bcd45e92$var$WorkerFS extends $7a85d2e5bcd45e92$export$3048eb7ec0
1956
1957
  ]);
1957
1958
  }
1958
1959
  }
1959
- (0, $kTI78$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eac1f2f4592d0c44$exports))).version}:MemoryFS`, $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e);
1960
- (0, $kTI78$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eac1f2f4592d0c44$exports))).version}:WorkerFS`, $7a85d2e5bcd45e92$var$WorkerFS);
1961
- (0, $kTI78$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eac1f2f4592d0c44$exports))).version}:Stat`, $7a85d2e5bcd45e92$var$Stat);
1962
- (0, $kTI78$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eac1f2f4592d0c44$exports))).version}:File`, $7a85d2e5bcd45e92$export$b6afa8811b7e644e);
1963
- (0, $kTI78$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eac1f2f4592d0c44$exports))).version}:Directory`, $7a85d2e5bcd45e92$var$Directory);
1960
+ (0, $2V2hx$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($d7f6ae9f917393f7$exports))).version}:MemoryFS`, $0846bf1c7ee89e90$export$3048eb7ec07c2c4e);
1961
+ (0, $2V2hx$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($d7f6ae9f917393f7$exports))).version}:WorkerFS`, $0846bf1c7ee89e90$var$WorkerFS);
1962
+ (0, $2V2hx$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($d7f6ae9f917393f7$exports))).version}:Stat`, $0846bf1c7ee89e90$var$Stat);
1963
+ (0, $2V2hx$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($d7f6ae9f917393f7$exports))).version}:File`, $0846bf1c7ee89e90$export$b6afa8811b7e644e);
1964
+ (0, $2V2hx$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($d7f6ae9f917393f7$exports))).version}:Directory`, $0846bf1c7ee89e90$var$Directory);
1964
1965
 
1965
1966
 
1966
- var $e0baf6d453e0601b$exports = {};
1967
+ var $74907c54eb766352$exports = {};
1967
1968
 
1968
- $parcel$export($e0baf6d453e0601b$exports, "OverlayFS", () => $e0baf6d453e0601b$export$5963299e2424ca1c);
1969
+ $parcel$export($74907c54eb766352$exports, "OverlayFS", () => $74907c54eb766352$export$5963299e2424ca1c);
1969
1970
 
1970
1971
 
1971
1972
 
@@ -1973,16 +1974,16 @@ $parcel$export($e0baf6d453e0601b$exports, "OverlayFS", () => $e0baf6d453e0601b$e
1973
1974
 
1974
1975
 
1975
1976
 
1976
- class $e0baf6d453e0601b$export$5963299e2424ca1c {
1977
+ class $74907c54eb766352$export$5963299e2424ca1c {
1977
1978
  deleted = new Set();
1978
1979
  constructor(workerFarmOrFS, readable){
1979
- if (workerFarmOrFS instanceof (0, ($parcel$interopDefault($kTI78$atlaspackworkers)))) this.writable = new (0, $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e)(workerFarmOrFS);
1980
+ if (workerFarmOrFS instanceof (0, ($parcel$interopDefault($2V2hx$atlaspackworkers)))) this.writable = new (0, $0846bf1c7ee89e90$export$3048eb7ec07c2c4e)(workerFarmOrFS);
1980
1981
  else this.writable = workerFarmOrFS;
1981
1982
  this.readable = readable;
1982
1983
  this._cwd = readable.cwd();
1983
1984
  }
1984
1985
  static deserialize(opts) {
1985
- let fs = new $e0baf6d453e0601b$export$5963299e2424ca1c(opts.writable, opts.readable);
1986
+ let fs = new $74907c54eb766352$export$5963299e2424ca1c(opts.writable, opts.readable);
1986
1987
  if (opts.deleted != null) fs.deleted = opts.deleted;
1987
1988
  return fs;
1988
1989
  }
@@ -1996,28 +1997,28 @@ class $e0baf6d453e0601b$export$5963299e2424ca1c {
1996
1997
  }
1997
1998
  _deletedThrows(filePath) {
1998
1999
  filePath = this._normalizePath(filePath);
1999
- if (this.deleted.has(filePath)) throw new $e0baf6d453e0601b$var$FSError('ENOENT', filePath, 'does not exist');
2000
+ if (this.deleted.has(filePath)) throw new $74907c54eb766352$var$FSError('ENOENT', filePath, 'does not exist');
2000
2001
  return filePath;
2001
2002
  }
2002
2003
  _checkExists(filePath) {
2003
2004
  filePath = this._deletedThrows(filePath);
2004
- if (!this.existsSync(filePath)) throw new $e0baf6d453e0601b$var$FSError('ENOENT', filePath, 'does not exist');
2005
+ if (!this.existsSync(filePath)) throw new $74907c54eb766352$var$FSError('ENOENT', filePath, 'does not exist');
2005
2006
  return filePath;
2006
2007
  }
2007
2008
  _isSymlink(filePath) {
2008
2009
  filePath = this._normalizePath(filePath);
2009
2010
  // Check the parts of the path to see if any are symlinks.
2010
- let { root: root, dir: dir, base: base } = (0, ($parcel$interopDefault($kTI78$path))).parse(filePath);
2011
- let segments = dir.slice(root.length).split((0, ($parcel$interopDefault($kTI78$path))).sep).concat(base);
2011
+ let { root: root, dir: dir, base: base } = (0, ($parcel$interopDefault($2V2hx$path))).parse(filePath);
2012
+ let segments = dir.slice(root.length).split((0, ($parcel$interopDefault($2V2hx$path))).sep).concat(base);
2012
2013
  while(segments.length){
2013
- filePath = (0, ($parcel$interopDefault($kTI78$path))).join(root, ...segments);
2014
+ filePath = (0, ($parcel$interopDefault($2V2hx$path))).join(root, ...segments);
2014
2015
  let name = segments.pop();
2015
2016
  if (this.deleted.has(filePath)) return false;
2016
- else if (this.writable instanceof (0, $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e) && this.writable.symlinks.has(filePath)) return true;
2017
+ else if (this.writable instanceof (0, $0846bf1c7ee89e90$export$3048eb7ec07c2c4e) && this.writable.symlinks.has(filePath)) return true;
2017
2018
  else {
2018
2019
  // HACK: Atlaspack fs does not provide `lstatSync`,
2019
2020
  // so we use `readdirSync` to check if the path is a symlink.
2020
- let parent = (0, ($parcel$interopDefault($kTI78$path))).resolve(filePath, '..');
2021
+ let parent = (0, ($parcel$interopDefault($2V2hx$path))).resolve(filePath, '..');
2021
2022
  if (parent === filePath) return false;
2022
2023
  try {
2023
2024
  for (let dirent of this.readdirSync(parent, {
@@ -2038,12 +2039,12 @@ class $e0baf6d453e0601b$export$5963299e2424ca1c {
2038
2039
  }
2039
2040
  async _copyPathForWrite(filePath) {
2040
2041
  filePath = await this._normalizePath(filePath);
2041
- let dirPath = (0, ($parcel$interopDefault($kTI78$path))).dirname(filePath);
2042
+ let dirPath = (0, ($parcel$interopDefault($2V2hx$path))).dirname(filePath);
2042
2043
  if (this.existsSync(dirPath) && !this.writable.existsSync(dirPath)) await this.writable.mkdirp(dirPath);
2043
2044
  return filePath;
2044
2045
  }
2045
2046
  _normalizePath(filePath) {
2046
- return (0, ($parcel$interopDefault($kTI78$path))).resolve(this.cwd(), filePath);
2047
+ return (0, ($parcel$interopDefault($2V2hx$path))).resolve(this.cwd(), filePath);
2047
2048
  }
2048
2049
  // eslint-disable-next-line require-await
2049
2050
  async readFile(filePath, encoding) {
@@ -2076,22 +2077,22 @@ class $e0baf6d453e0601b$export$5963299e2424ca1c {
2076
2077
  let toDelete = [
2077
2078
  filePath
2078
2079
  ];
2079
- if (this.writable instanceof (0, $7a85d2e5bcd45e92$export$3048eb7ec07c2c4e) && this._isSymlink(filePath)) this.writable.symlinks.delete(filePath);
2080
+ if (this.writable instanceof (0, $0846bf1c7ee89e90$export$3048eb7ec07c2c4e) && this._isSymlink(filePath)) this.writable.symlinks.delete(filePath);
2080
2081
  else if (this.statSync(filePath).isDirectory()) {
2081
2082
  let stack = [
2082
2083
  filePath
2083
2084
  ];
2084
2085
  // Recursively add every descendant path to deleted.
2085
2086
  while(stack.length){
2086
- let root = (0, (/*@__PURE__*/$parcel$interopDefault($3c6f2cb8f8e5311c$exports)))(stack.pop());
2087
+ let root = (0, (/*@__PURE__*/$parcel$interopDefault($20532aab86e1ce9f$exports)))(stack.pop());
2087
2088
  for (let ent of this.readdirSync(root, {
2088
2089
  withFileTypes: true
2089
2090
  }))if (typeof ent === 'string') {
2090
- let childPath = (0, ($parcel$interopDefault($kTI78$path))).join(root, ent);
2091
+ let childPath = (0, ($parcel$interopDefault($2V2hx$path))).join(root, ent);
2091
2092
  toDelete.push(childPath);
2092
2093
  if (this.statSync(childPath).isDirectory()) stack.push(childPath);
2093
2094
  } else {
2094
- let childPath = (0, ($parcel$interopDefault($kTI78$path))).join(root, ent.name);
2095
+ let childPath = (0, ($parcel$interopDefault($2V2hx$path))).join(root, ent.name);
2095
2096
  toDelete.push(childPath);
2096
2097
  if (ent.isDirectory()) stack.push(childPath);
2097
2098
  }
@@ -2108,10 +2109,10 @@ class $e0baf6d453e0601b$export$5963299e2424ca1c {
2108
2109
  dir = this._normalizePath(dir);
2109
2110
  await this.writable.mkdirp(dir);
2110
2111
  if (this.deleted != null) {
2111
- let root = (0, ($parcel$interopDefault($kTI78$path))).parse(dir).root;
2112
+ let root = (0, ($parcel$interopDefault($2V2hx$path))).parse(dir).root;
2112
2113
  while(dir !== root){
2113
2114
  this.deleted.delete(dir);
2114
- dir = (0, ($parcel$interopDefault($kTI78$path))).dirname(dir);
2115
+ dir = (0, ($parcel$interopDefault($2V2hx$path))).dirname(dir);
2115
2116
  }
2116
2117
  }
2117
2118
  }
@@ -2197,7 +2198,7 @@ class $e0baf6d453e0601b$export$5963299e2424ca1c {
2197
2198
  let entries = new Map();
2198
2199
  try {
2199
2200
  for (let entry of this.writable.readdirSync(dir, opts)){
2200
- let filePath = (0, ($parcel$interopDefault($kTI78$path))).join(dir, entry.name ?? entry);
2201
+ let filePath = (0, ($parcel$interopDefault($2V2hx$path))).join(dir, entry.name ?? entry);
2201
2202
  if (this.deleted.has(filePath)) continue;
2202
2203
  entries.set(filePath, entry);
2203
2204
  }
@@ -2206,7 +2207,7 @@ class $e0baf6d453e0601b$export$5963299e2424ca1c {
2206
2207
  }
2207
2208
  try {
2208
2209
  for (let entry of this.readable.readdirSync(dir, opts)){
2209
- let filePath = (0, ($parcel$interopDefault($kTI78$path))).join(dir, entry.name ?? entry);
2210
+ let filePath = (0, ($parcel$interopDefault($2V2hx$path))).join(dir, entry.name ?? entry);
2210
2211
  if (this.deleted.has(filePath)) continue;
2211
2212
  if (entries.has(filePath)) continue;
2212
2213
  entries.set(filePath, entry);
@@ -2238,16 +2239,16 @@ class $e0baf6d453e0601b$export$5963299e2424ca1c {
2238
2239
  await this.writable.writeSnapshot(dir, snapshot, opts);
2239
2240
  }
2240
2241
  findAncestorFile(fileNames, fromDir, root) {
2241
- return (0, $d65482e6541f1ac9$export$d51a93c758976388)(this, fileNames, fromDir, root);
2242
+ return (0, $782db929ace769f6$export$d51a93c758976388)(this, fileNames, fromDir, root);
2242
2243
  }
2243
2244
  findNodeModule(moduleName, fromDir) {
2244
- return (0, $d65482e6541f1ac9$export$4c6d088a7d7f9947)(this, moduleName, fromDir);
2245
+ return (0, $782db929ace769f6$export$4c6d088a7d7f9947)(this, moduleName, fromDir);
2245
2246
  }
2246
2247
  findFirstFile(filePaths) {
2247
- return (0, $d65482e6541f1ac9$export$64df6e3182fd5b2d)(this, filePaths);
2248
+ return (0, $782db929ace769f6$export$64df6e3182fd5b2d)(this, filePaths);
2248
2249
  }
2249
2250
  }
2250
- class $e0baf6d453e0601b$var$FSError extends Error {
2251
+ class $74907c54eb766352$var$FSError extends Error {
2251
2252
  constructor(code, path, message){
2252
2253
  super(`${code}: ${path} ${message}`);
2253
2254
  this.name = 'FSError';
@@ -2256,18 +2257,19 @@ class $e0baf6d453e0601b$var$FSError extends Error {
2256
2257
  Error.captureStackTrace?.(this, this.constructor);
2257
2258
  }
2258
2259
  }
2259
- (0, $kTI78$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eac1f2f4592d0c44$exports))).version}:OverlayFS`, $e0baf6d453e0601b$export$5963299e2424ca1c);
2260
+ (0, $2V2hx$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($d7f6ae9f917393f7$exports))).version}:OverlayFS`, $74907c54eb766352$export$5963299e2424ca1c);
2260
2261
 
2261
2262
 
2262
- var $ee847fd2a2c5603a$exports = {};
2263
+ var $907e69a4d4f6f904$exports = {};
2263
2264
 
2264
- $parcel$export($ee847fd2a2c5603a$exports, "NodeVCSAwareFS", () => $ee847fd2a2c5603a$export$80de92554c03942a);
2265
+ $parcel$export($907e69a4d4f6f904$exports, "NodeVCSAwareFS", () => $907e69a4d4f6f904$export$80de92554c03942a);
2265
2266
 
2266
2267
 
2267
2268
 
2268
2269
 
2269
2270
 
2270
- class $ee847fd2a2c5603a$export$80de92554c03942a extends (0, $f8ce570f65ef93a7$export$c4e0ef2ab73c21e7) {
2271
+
2272
+ class $907e69a4d4f6f904$export$80de92554c03942a extends (0, $94eb45ad74bb764d$export$c4e0ef2ab73c21e7) {
2271
2273
  #options;
2272
2274
  constructor(options){
2273
2275
  super();
@@ -2278,43 +2280,43 @@ class $ee847fd2a2c5603a$export$80de92554c03942a extends (0, $f8ce570f65ef93a7$ex
2278
2280
  const snapshotFile = await this.readFile(snapshot);
2279
2281
  const snapshotFileContent = snapshotFile.toString();
2280
2282
  const { nativeSnapshotPath: nativeSnapshotPath, vcsState: vcsState } = JSON.parse(snapshotFileContent);
2281
- const watcherEventsSince = await this.watcher().getEventsSince(dir, nativeSnapshotPath, opts);
2282
- const vcsEventsSince = (0, $kTI78$atlaspackrust.getEventsSince)(this.#options.gitRepoPath, vcsState.gitHash);
2283
+ const watcherEventsSince = await (0, $2V2hx$atlaspacklogger.instrumentAsync)('NodeVCSAwareFS::watchman.getEventsSince', ()=>this.watcher().getEventsSince(dir, nativeSnapshotPath, opts));
2284
+ const vcsEventsSince = (0, $2V2hx$atlaspacklogger.instrument)('NodeVCSAwareFS::rust.getEventsSince', ()=>(0, $2V2hx$atlaspackrust.getEventsSince)(this.#options.gitRepoPath, vcsState.gitHash));
2283
2285
  this.#options.logEventDiff(watcherEventsSince, vcsEventsSince);
2284
2286
  return watcherEventsSince;
2285
2287
  }
2286
2288
  async writeSnapshot(dir, snapshot, opts) {
2287
- const snapshotDirectory = (0, ($parcel$interopDefault($kTI78$path))).dirname(snapshot);
2288
- const filename = (0, ($parcel$interopDefault($kTI78$path))).basename(snapshot, '.txt');
2289
- const nativeSnapshotPath = (0, ($parcel$interopDefault($kTI78$path))).join(snapshotDirectory, `${filename}.native-snapshot.txt`);
2289
+ const snapshotDirectory = (0, ($parcel$interopDefault($2V2hx$path))).dirname(snapshot);
2290
+ const filename = (0, ($parcel$interopDefault($2V2hx$path))).basename(snapshot, '.txt');
2291
+ const nativeSnapshotPath = (0, ($parcel$interopDefault($2V2hx$path))).join(snapshotDirectory, `${filename}.native-snapshot.txt`);
2290
2292
  await this.watcher().writeSnapshot(dir, nativeSnapshotPath, opts);
2291
2293
  // TODO: we need the git repo path, pass the exclude patterns
2292
- const vcsState = await (0, $kTI78$atlaspackrust.getVcsStateSnapshot)(this.#options.gitRepoPath, this.#options.excludePatterns);
2294
+ const vcsState = await (0, $2V2hx$atlaspackrust.getVcsStateSnapshot)(this.#options.gitRepoPath, this.#options.excludePatterns);
2293
2295
  await this.writeFile(snapshot, JSON.stringify({
2294
2296
  vcsState: vcsState,
2295
2297
  nativeSnapshotPath: nativeSnapshotPath
2296
2298
  }));
2297
2299
  }
2298
2300
  }
2299
- (0, $kTI78$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($eac1f2f4592d0c44$exports))).version}:NodeVCSAwareFS`, $ee847fd2a2c5603a$export$80de92554c03942a);
2301
+ (0, $2V2hx$atlaspackbuildcache.registerSerializableClass)(`${(0, (/*@__PURE__*/$parcel$interopDefault($d7f6ae9f917393f7$exports))).version}:NodeVCSAwareFS`, $907e69a4d4f6f904$export$80de92554c03942a);
2300
2302
 
2301
2303
 
2302
- const $f850a02712c7cafd$var$pipeline = (0, $kTI78$util.promisify)((0, ($parcel$interopDefault($kTI78$stream))).pipeline);
2303
- async function $f850a02712c7cafd$export$d3a8044e3fef7335(sourceFS, source, destinationFS, destination) {
2304
+ const $5acbc033ab4ad011$var$pipeline = (0, $2V2hx$util.promisify)((0, ($parcel$interopDefault($2V2hx$stream))).pipeline);
2305
+ async function $5acbc033ab4ad011$export$d3a8044e3fef7335(sourceFS, source, destinationFS, destination) {
2304
2306
  await destinationFS.mkdirp(destination);
2305
2307
  let files = await sourceFS.readdir(source);
2306
2308
  for (let file of files){
2307
- let sourcePath = (0, ($parcel$interopDefault($kTI78$path))).join(source, file);
2308
- let destPath = (0, ($parcel$interopDefault($kTI78$path))).join(destination, file);
2309
+ let sourcePath = (0, ($parcel$interopDefault($2V2hx$path))).join(source, file);
2310
+ let destPath = (0, ($parcel$interopDefault($2V2hx$path))).join(destination, file);
2309
2311
  let stats = await sourceFS.stat(sourcePath);
2310
- if (stats.isFile()) await $f850a02712c7cafd$var$pipeline(sourceFS.createReadStream(sourcePath), destinationFS.createWriteStream(destPath));
2311
- else if (stats.isDirectory()) await $f850a02712c7cafd$export$d3a8044e3fef7335(sourceFS, sourcePath, destinationFS, destPath);
2312
+ if (stats.isFile()) await $5acbc033ab4ad011$var$pipeline(sourceFS.createReadStream(sourcePath), destinationFS.createWriteStream(destPath));
2313
+ else if (stats.isDirectory()) await $5acbc033ab4ad011$export$d3a8044e3fef7335(sourceFS, sourcePath, destinationFS, destPath);
2312
2314
  }
2313
2315
  }
2314
- $parcel$exportWildcard(module.exports, $f8ce570f65ef93a7$exports);
2315
- $parcel$exportWildcard(module.exports, $7a85d2e5bcd45e92$exports);
2316
- $parcel$exportWildcard(module.exports, $e0baf6d453e0601b$exports);
2317
- $parcel$exportWildcard(module.exports, $ee847fd2a2c5603a$exports);
2316
+ $parcel$exportWildcard(module.exports, $94eb45ad74bb764d$exports);
2317
+ $parcel$exportWildcard(module.exports, $0846bf1c7ee89e90$exports);
2318
+ $parcel$exportWildcard(module.exports, $74907c54eb766352$exports);
2319
+ $parcel$exportWildcard(module.exports, $907e69a4d4f6f904$exports);
2318
2320
 
2319
2321
 
2320
2322
  //# sourceMappingURL=index.js.map