@telia-ace/alliance-utilities 1.0.3-next.1 → 1.0.4-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -4,60 +4,48 @@ var se = (e, t, n) => (Vt(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import it from "fs";
5
5
  import M from "path";
6
6
  import { pipeline as zt } from "stream/promises";
7
- var ot = /* @__PURE__ */ ((e) => (e[e.Yes = 0] = "Yes", e[e.No = 1] = "No", e[e.Done = 2] = "Done", e[e.NoWorkspaceName = 3] = "NoWorkspaceName", e[e.NoAppName = 4] = "NoAppName", e[e.AlreadyExists = 5] = "AlreadyExists", e[e.CwdIsNotWorkspace = 6] = "CwdIsNotWorkspace", e[e.NoAppOrWorkspaceInCurrentDirectory = 7] = "NoAppOrWorkspaceInCurrentDirectory", e[e.UnrecognizedCommand = 8] = "UnrecognizedCommand", e[e.WorkspaceCreated = 9] = "WorkspaceCreated", e[e.AppCreated = 10] = "AppCreated", e[e.ServedStopped = 11] = "ServedStopped", e[e.WorkspaceNameInquiry = 12] = "WorkspaceNameInquiry", e[e.AppNameInquiry = 13] = "AppNameInquiry", e[e.GatewayInquiry = 14] = "GatewayInquiry", e[e.CliVersionOption = 15] = "CliVersionOption", e[e.CreateWorkspaceDescription = 16] = "CreateWorkspaceDescription", e[e.CreateAppDescription = 17] = "CreateAppDescription", e[e.ServeDescription = 18] = "ServeDescription", e[e.BuildDescription = 19] = "BuildDescription", e[e.MissingTranslationKey = 20] = "MissingTranslationKey", e[e.ActionErrorOccured = 21] = "ActionErrorOccured", e[e.OperationStateSetError = 22] = "OperationStateSetError", e[e.OperationCancelled = 23] = "OperationCancelled", e[e.StopServerInstructions = 24] = "StopServerInstructions", e[e.LanguageInquiry = 25] = "LanguageInquiry", e[e.TemplateInquiry = 26] = "TemplateInquiry", e[e.NonSupportedBuildPlugin = 27] = "NonSupportedBuildPlugin", e[e.DevServerPortDescription = 28] = "DevServerPortDescription", e[e.ApiGatewayPortDescription = 29] = "ApiGatewayPortDescription", e[e.ApiServerModeDescription = 30] = "ApiServerModeDescription", e[e.DevServerOpenDescription = 31] = "DevServerOpenDescription", e[e.BuildWatchDescription = 32] = "BuildWatchDescription", e[e.CouldNotStartGatewayInDocker = 33] = "CouldNotStartGatewayInDocker", e[e.PullingLatestImage = 34] = "PullingLatestImage", e[e.PullLatestImageError = 35] = "PullLatestImageError", e[e.AppEntryBuildOptionDescription = 36] = "AppEntryBuildOptionDescription", e[e.ManifestEntryBuildOptionDescription = 37] = "ManifestEntryBuildOptionDescription", e[e.BuildPluginOptionDescription = 38] = "BuildPluginOptionDescription", e[e.BuildModeOptionDescription = 39] = "BuildModeOptionDescription", e[e.FetchPackageVersionError = 40] = "FetchPackageVersionError", e[e.UnknownArgumentDescription = 41] = "UnknownArgumentDescription", e[e.DockerNotStartedOrInstalled = 42] = "DockerNotStartedOrInstalled", e[e.PressAnyKeyToContinue = 43] = "PressAnyKeyToContinue", e[e.EnableDevAuthentication = 44] = "EnableDevAuthentication", e[e.UnsupportedBuildPlugin = 45] = "UnsupportedBuildPlugin", e[e.NoAppNameFound = 46] = "NoAppNameFound", e[e.AppConfigurationPath = 47] = "AppConfigurationPath", e[e.ServerGatewayMode = 48] = "ServerGatewayMode", e[e.ServerProxyMode = 49] = "ServerProxyMode", e[e.ServerMode = 50] = "ServerMode", e))(ot || {});
7
+ var ot = /* @__PURE__ */ ((e) => (e[e.Done = 0] = "Done", e[e.NoWorkspaceName = 1] = "NoWorkspaceName", e[e.NoAppName = 2] = "NoAppName", e[e.AlreadyExists = 3] = "AlreadyExists", e[e.NoAppOrWorkspaceInCurrentDirectory = 4] = "NoAppOrWorkspaceInCurrentDirectory", e[e.UnrecognizedCommand = 5] = "UnrecognizedCommand", e[e.WorkspaceCreated = 6] = "WorkspaceCreated", e[e.AppCreated = 7] = "AppCreated", e[e.ServedStopped = 8] = "ServedStopped", e[e.WorkspaceNameInquiry = 9] = "WorkspaceNameInquiry", e[e.AppNameInquiry = 10] = "AppNameInquiry", e[e.ServerModeInquiry = 11] = "ServerModeInquiry", e[e.CreateWorkspaceDescription = 12] = "CreateWorkspaceDescription", e[e.CreateAppDescription = 13] = "CreateAppDescription", e[e.ServeDescription = 14] = "ServeDescription", e[e.BuildDescription = 15] = "BuildDescription", e[e.MissingTranslationKey = 16] = "MissingTranslationKey", e[e.OperationCancelled = 17] = "OperationCancelled", e[e.StopServerInstructions = 18] = "StopServerInstructions", e[e.TemplateLanguageInquiry = 19] = "TemplateLanguageInquiry", e[e.TemplateFrameworkInquiry = 20] = "TemplateFrameworkInquiry", e[e.DevServerPortDescription = 21] = "DevServerPortDescription", e[e.ApiGatewayPortDescription = 22] = "ApiGatewayPortDescription", e[e.ApiServerModeDescription = 23] = "ApiServerModeDescription", e[e.DevServerOpenDescription = 24] = "DevServerOpenDescription", e[e.BuildWatchDescription = 25] = "BuildWatchDescription", e[e.CouldNotStartGatewayInDocker = 26] = "CouldNotStartGatewayInDocker", e[e.PullingLatestImage = 27] = "PullingLatestImage", e[e.AppEntryBuildOptionDescription = 28] = "AppEntryBuildOptionDescription", e[e.ManifestEntryBuildOptionDescription = 29] = "ManifestEntryBuildOptionDescription", e[e.BuildModeOptionDescription = 30] = "BuildModeOptionDescription", e[e.FetchPackageVersionError = 31] = "FetchPackageVersionError", e[e.DockerNotStartedOrInstalled = 32] = "DockerNotStartedOrInstalled", e[e.EnableDevAuthentication = 33] = "EnableDevAuthentication", e[e.NoAppNameFound = 34] = "NoAppNameFound", e[e.AppConfigurationPath = 35] = "AppConfigurationPath", e[e.ServerGatewayMode = 36] = "ServerGatewayMode", e[e.ServerProxyMode = 37] = "ServerProxyMode", e[e.ServerMode = 38] = "ServerMode", e))(ot || {});
8
8
  const Qt = {
9
- [0]: "Yes",
10
- [1]: "No",
11
- [2]: "Done",
12
- [3]: "No workspace name provided!",
13
- [4]: "No app name provided!",
14
- [5]: "File or directory '{0}' already exists!",
15
- [6]: "Current directory is not an Alliance workspace.",
16
- [7]: "Could not find any app entry file at '{0}' or any apps under the alliance.apps property in '{1}'!",
17
- [8]: "Unrecognized command(s) {0}!",
18
- [9]: "Workspace '{0}' was created on path '{1}'!",
19
- [10]: "App '{0}' was created on path '{1}'!",
20
- [11]: "Server stopped.",
21
- [16]: "Creates an Alliance Workspace in the current directory.",
22
- [17]: "Creates an Alliance Application in the current directory or Alliance Workspace.",
23
- [18]: "Starts a Alliance development server using the current directory package.json.",
24
- [15]: "Prints which version is currently is installed.",
25
- [19]: "Builds an Alliance Application using Vite.",
26
- [12]: "Enter the name of your workspace",
27
- [14]: "Do you want to start the gateway?",
28
- [13]: "Enter the name of your app",
29
- [20]: "No translation key provided!",
30
- [21]: "Error occured when running action number {0}, with the message: ",
31
- [22]: "Tried to set already existing key '{0}' on OperationState.",
32
- [23]: "Operation cancelled.",
33
- [24]: `Press CTRL + C to stop the server.
9
+ [0]: "Done",
10
+ [1]: "No workspace name provided!",
11
+ [2]: "No app name provided!",
12
+ [3]: "File or directory '{0}' already exists!",
13
+ [4]: "Could not find any app entry file at '{0}' or any apps under the alliance.apps property in '{1}'!",
14
+ [5]: "Unrecognized command(s) {0}!",
15
+ [6]: "Workspace was created at path '{0}'!",
16
+ [7]: "App was created at path '{0}'!",
17
+ [8]: "Server stopped.",
18
+ [12]: "Creates an Alliance Workspace in the current directory.",
19
+ [13]: "Creates an Alliance Application in the current directory or Alliance Workspace.",
20
+ [14]: "Starts a Alliance development server using the current directory package.json.",
21
+ [15]: "Builds an Alliance Application using Vite.",
22
+ [9]: "Enter the name of your workspace",
23
+ [11]: "Which server mode do you want to use?",
24
+ [10]: "Enter the name of your app",
25
+ [16]: "No translation key provided!",
26
+ [17]: "Operation cancelled.",
27
+ [18]: `Press CTRL + C to stop the server.
34
28
  `,
35
- [25]: "Select preferred language",
36
- [26]: "Select preferred framework template",
37
- [27]: "Framework '{0}' not supported. Supported frameworks: {1}!",
38
- [28]: "The port that the dev server should use.",
39
- [29]: "The port that the api gateway should use.",
40
- [30]: "Which components to start. [server|server-proxy|server-gateway].",
41
- [31]: "Whether the dev server should automatically open in your browser or not.",
42
- [32]: "Whether the build should start watching and rebuild when files change or not.",
43
- [33]: "Could not start Docker container with Alliance gateway.",
44
- [34]: "Pulling latest image...",
45
- [35]: "Error when pulling latest image...",
46
- [36]: "The entry file for the app (./src/app).",
47
- [37]: "The entry file for the app manifest (./src/manifest).",
48
- [38]: "The Vite build plugin to use.",
49
- [39]: "Which mode to use when building the app. [production|development]",
50
- [40]: "Failed to fetch package info from the NPM registry for package '${0}'!",
51
- [41]: "Unknown value '{0}' for argument '{1}'",
52
- [42]: "Docker not started or not installed.",
53
- [43]: "Press any key to continue...",
54
- [44]: "Whether user authentication should be enabled or not.",
55
- [45]: "Build plugin '{0}' not supported.",
56
- [46]: "Could not find app name in manifest.",
57
- [47]: "The path to the app configuration file.",
58
- [50]: "Server",
59
- [49]: "Server with proxy",
60
- [48]: "Server with gateway"
29
+ [19]: "Select preferred language",
30
+ [20]: "Select preferred framework template",
31
+ [21]: "The port that the dev server should use.",
32
+ [22]: "The port that the api gateway should use.",
33
+ [23]: "Which components to start. [server|server-proxy|server-gateway].",
34
+ [24]: "Whether the dev server should automatically open in your browser or not.",
35
+ [25]: "Whether the build should start watching and rebuild when files change or not.",
36
+ [26]: "Could not start Docker container with Alliance gateway.",
37
+ [27]: "Pulling latest image...",
38
+ [28]: "The entry file for the app (./src/app).",
39
+ [29]: "The entry file for the app manifest (./src/manifest).",
40
+ [30]: "Which mode to use when building the app. [production|development]",
41
+ [31]: "Failed to fetch package info from the NPM registry for package '${0}'!",
42
+ [32]: "Docker not started or not installed.",
43
+ [33]: "Whether user authentication should be enabled or not.",
44
+ [34]: "Could not find app name in manifest.",
45
+ [35]: "The path to the app configuration file.",
46
+ [38]: "Server",
47
+ [37]: "Server with proxy",
48
+ [36]: "Server with gateway"
61
49
  }, Se = class {
62
50
  };
63
51
  let te = Se;
@@ -123,7 +111,7 @@ const Xt = {}, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
123
111
  __proto__: null,
124
112
  default: Xt
125
113
  }, Symbol.toStringTag, { value: "Module" })), ae = /* @__PURE__ */ Ht(Zt);
126
- var U = ae, Tt = process.cwd, de = null, Kt = process.env.GRACEFUL_FS_PLATFORM || process.platform;
114
+ var q = ae, Tt = process.cwd, de = null, Kt = process.env.GRACEFUL_FS_PLATFORM || process.platform;
127
115
  process.cwd = function() {
128
116
  return de || (de = Tt.call(process)), de;
129
117
  };
@@ -132,14 +120,14 @@ try {
132
120
  } catch {
133
121
  }
134
122
  if (typeof process.chdir == "function") {
135
- var Ue = process.chdir;
123
+ var qe = process.chdir;
136
124
  process.chdir = function(e) {
137
- de = null, Ue.call(process, e);
138
- }, Object.setPrototypeOf && Object.setPrototypeOf(process.chdir, Ue);
125
+ de = null, qe.call(process, e);
126
+ }, Object.setPrototypeOf && Object.setPrototypeOf(process.chdir, qe);
139
127
  }
140
128
  var en = tn;
141
129
  function tn(e) {
142
- U.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./) && t(e), e.lutimes || n(e), e.chown = o(e.chown), e.fchown = o(e.fchown), e.lchown = o(e.lchown), e.chmod = i(e.chmod), e.fchmod = i(e.fchmod), e.lchmod = i(e.lchmod), e.chownSync = c(e.chownSync), e.fchownSync = c(e.fchownSync), e.lchownSync = c(e.lchownSync), e.chmodSync = r(e.chmodSync), e.fchmodSync = r(e.fchmodSync), e.lchmodSync = r(e.lchmodSync), e.stat = a(e.stat), e.fstat = a(e.fstat), e.lstat = a(e.lstat), e.statSync = f(e.statSync), e.fstatSync = f(e.fstatSync), e.lstatSync = f(e.lstatSync), e.chmod && !e.lchmod && (e.lchmod = function(u, s, m) {
130
+ q.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./) && t(e), e.lutimes || n(e), e.chown = o(e.chown), e.fchown = o(e.fchown), e.lchown = o(e.lchown), e.chmod = i(e.chmod), e.fchmod = i(e.fchmod), e.lchmod = i(e.lchmod), e.chownSync = c(e.chownSync), e.fchownSync = c(e.fchownSync), e.lchownSync = c(e.lchownSync), e.chmodSync = r(e.chmodSync), e.fchmodSync = r(e.fchmodSync), e.lchmodSync = r(e.lchmodSync), e.stat = a(e.stat), e.fstat = a(e.fstat), e.lstat = a(e.lstat), e.statSync = f(e.statSync), e.fstatSync = f(e.fstatSync), e.lstatSync = f(e.lstatSync), e.chmod && !e.lchmod && (e.lchmod = function(u, s, m) {
143
131
  m && process.nextTick(m);
144
132
  }, e.lchmodSync = function() {
145
133
  }), e.chown && !e.lchown && (e.lchown = function(u, s, m, l) {
@@ -147,45 +135,45 @@ function tn(e) {
147
135
  }, e.lchownSync = function() {
148
136
  }), Kt === "win32" && (e.rename = typeof e.rename != "function" ? e.rename : function(u) {
149
137
  function s(m, l, y) {
150
- var g = Date.now(), v = 0;
151
- u(m, l, function $(R) {
152
- if (R && (R.code === "EACCES" || R.code === "EPERM") && Date.now() - g < 6e4) {
138
+ var $ = Date.now(), v = 0;
139
+ u(m, l, function g(B) {
140
+ if (B && (B.code === "EACCES" || B.code === "EPERM") && Date.now() - $ < 6e4) {
153
141
  setTimeout(function() {
154
142
  e.stat(l, function(A, ee) {
155
- A && A.code === "ENOENT" ? u(m, l, $) : y(R);
143
+ A && A.code === "ENOENT" ? u(m, l, g) : y(B);
156
144
  });
157
145
  }, v), v < 100 && (v += 10);
158
146
  return;
159
147
  }
160
- y && y(R);
148
+ y && y(B);
161
149
  });
162
150
  }
163
151
  return Object.setPrototypeOf && Object.setPrototypeOf(s, u), s;
164
152
  }(e.rename)), e.read = typeof e.read != "function" ? e.read : function(u) {
165
- function s(m, l, y, g, v, $) {
166
- var R;
167
- if ($ && typeof $ == "function") {
153
+ function s(m, l, y, $, v, g) {
154
+ var B;
155
+ if (g && typeof g == "function") {
168
156
  var A = 0;
169
- R = function(ee, Je, be) {
157
+ B = function(ee, Je, be) {
170
158
  if (ee && ee.code === "EAGAIN" && A < 10)
171
- return A++, u.call(e, m, l, y, g, v, R);
172
- $.apply(this, arguments);
159
+ return A++, u.call(e, m, l, y, $, v, B);
160
+ g.apply(this, arguments);
173
161
  };
174
162
  }
175
- return u.call(e, m, l, y, g, v, R);
163
+ return u.call(e, m, l, y, $, v, B);
176
164
  }
177
165
  return Object.setPrototypeOf && Object.setPrototypeOf(s, u), s;
178
166
  }(e.read), e.readSync = typeof e.readSync != "function" ? e.readSync : function(u) {
179
- return function(s, m, l, y, g) {
167
+ return function(s, m, l, y, $) {
180
168
  for (var v = 0; ; )
181
169
  try {
182
- return u.call(e, s, m, l, y, g);
183
- } catch ($) {
184
- if ($.code === "EAGAIN" && v < 10) {
170
+ return u.call(e, s, m, l, y, $);
171
+ } catch (g) {
172
+ if (g.code === "EAGAIN" && v < 10) {
185
173
  v++;
186
174
  continue;
187
175
  }
188
- throw $;
176
+ throw g;
189
177
  }
190
178
  };
191
179
  }(e.readSync);
@@ -193,24 +181,24 @@ function tn(e) {
193
181
  u.lchmod = function(s, m, l) {
194
182
  u.open(
195
183
  s,
196
- U.O_WRONLY | U.O_SYMLINK,
184
+ q.O_WRONLY | q.O_SYMLINK,
197
185
  m,
198
- function(y, g) {
186
+ function(y, $) {
199
187
  if (y) {
200
188
  l && l(y);
201
189
  return;
202
190
  }
203
- u.fchmod(g, m, function(v) {
204
- u.close(g, function($) {
205
- l && l(v || $);
191
+ u.fchmod($, m, function(v) {
192
+ u.close($, function(g) {
193
+ l && l(v || g);
206
194
  });
207
195
  });
208
196
  }
209
197
  );
210
198
  }, u.lchmodSync = function(s, m) {
211
- var l = u.openSync(s, U.O_WRONLY | U.O_SYMLINK, m), y = !0, g;
199
+ var l = u.openSync(s, q.O_WRONLY | q.O_SYMLINK, m), y = !0, $;
212
200
  try {
213
- g = u.fchmodSync(l, m), y = !1;
201
+ $ = u.fchmodSync(l, m), y = !1;
214
202
  } finally {
215
203
  if (y)
216
204
  try {
@@ -220,26 +208,26 @@ function tn(e) {
220
208
  else
221
209
  u.closeSync(l);
222
210
  }
223
- return g;
211
+ return $;
224
212
  };
225
213
  }
226
214
  function n(u) {
227
- U.hasOwnProperty("O_SYMLINK") && u.futimes ? (u.lutimes = function(s, m, l, y) {
228
- u.open(s, U.O_SYMLINK, function(g, v) {
229
- if (g) {
230
- y && y(g);
215
+ q.hasOwnProperty("O_SYMLINK") && u.futimes ? (u.lutimes = function(s, m, l, y) {
216
+ u.open(s, q.O_SYMLINK, function($, v) {
217
+ if ($) {
218
+ y && y($);
231
219
  return;
232
220
  }
233
- u.futimes(v, m, l, function($) {
234
- u.close(v, function(R) {
235
- y && y($ || R);
221
+ u.futimes(v, m, l, function(g) {
222
+ u.close(v, function(B) {
223
+ y && y(g || B);
236
224
  });
237
225
  });
238
226
  });
239
227
  }, u.lutimesSync = function(s, m, l) {
240
- var y = u.openSync(s, U.O_SYMLINK), g, v = !0;
228
+ var y = u.openSync(s, q.O_SYMLINK), $, v = !0;
241
229
  try {
242
- g = u.futimesSync(y, m, l), v = !1;
230
+ $ = u.futimesSync(y, m, l), v = !1;
243
231
  } finally {
244
232
  if (v)
245
233
  try {
@@ -249,7 +237,7 @@ function tn(e) {
249
237
  else
250
238
  u.closeSync(y);
251
239
  }
252
- return g;
240
+ return $;
253
241
  }) : u.futimes && (u.lutimes = function(s, m, l, y) {
254
242
  y && process.nextTick(y);
255
243
  }, u.lutimesSync = function() {
@@ -274,8 +262,8 @@ function tn(e) {
274
262
  }
275
263
  function o(u) {
276
264
  return u && function(s, m, l, y) {
277
- return u.call(e, s, m, l, function(g) {
278
- p(g) && (g = null), y && y.apply(this, arguments);
265
+ return u.call(e, s, m, l, function($) {
266
+ p($) && ($ = null), y && y.apply(this, arguments);
279
267
  });
280
268
  };
281
269
  }
@@ -292,7 +280,7 @@ function tn(e) {
292
280
  function a(u) {
293
281
  return u && function(s, m, l) {
294
282
  typeof m == "function" && (l = m, m = null);
295
- function y(g, v) {
283
+ function y($, v) {
296
284
  v && (v.uid < 0 && (v.uid += 4294967296), v.gid < 0 && (v.gid += 4294967296)), l && l.apply(this, arguments);
297
285
  }
298
286
  return m ? u.call(e, s, m, y) : u.call(e, s, y);
@@ -311,7 +299,7 @@ function tn(e) {
311
299
  return !!(s && (u.code === "EINVAL" || u.code === "EPERM"));
312
300
  }
313
301
  }
314
- var qe = ae.Stream, nn = rn;
302
+ var Ge = ae.Stream, nn = rn;
315
303
  function rn(e) {
316
304
  return {
317
305
  ReadStream: t,
@@ -320,7 +308,7 @@ function rn(e) {
320
308
  function t(i, r) {
321
309
  if (!(this instanceof t))
322
310
  return new t(i, r);
323
- qe.call(this);
311
+ Ge.call(this);
324
312
  var o = this;
325
313
  this.path = i, this.fd = null, this.readable = !0, this.paused = !1, this.flags = "r", this.mode = 438, this.bufferSize = 64 * 1024, r = r || {};
326
314
  for (var c = Object.keys(r), a = 0, f = c.length; a < f; a++) {
@@ -355,7 +343,7 @@ function rn(e) {
355
343
  function n(i, r) {
356
344
  if (!(this instanceof n))
357
345
  return new n(i, r);
358
- qe.call(this), this.path = i, this.fd = null, this.writable = !0, this.flags = "w", this.encoding = "binary", this.mode = 438, this.bytesWritten = 0, r = r || {};
346
+ Ge.call(this), this.path = i, this.fd = null, this.writable = !0, this.flags = "w", this.encoding = "binary", this.mode = 438, this.bytesWritten = 0, r = r || {};
359
347
  for (var o = Object.keys(r), c = 0, a = o.length; c < a; c++) {
360
348
  var f = o[c];
361
349
  this[f] = r[f];
@@ -406,7 +394,7 @@ if (!F[I]) {
406
394
  ct(F, mn), F.close = function(e) {
407
395
  function t(n, i) {
408
396
  return e.call(F, n, function(r) {
409
- r || Ge(), typeof i == "function" && i.apply(this, arguments);
397
+ r || Ue(), typeof i == "function" && i.apply(this, arguments);
410
398
  });
411
399
  }
412
400
  return Object.defineProperty(t, he, {
@@ -414,7 +402,7 @@ if (!F[I]) {
414
402
  }), t;
415
403
  }(F.close), F.closeSync = function(e) {
416
404
  function t(n) {
417
- e.apply(F, arguments), Ge();
405
+ e.apply(F, arguments), Ue();
418
406
  }
419
407
  return Object.defineProperty(t, he, {
420
408
  value: e
@@ -424,8 +412,8 @@ if (!F[I]) {
424
412
  });
425
413
  }
426
414
  Oe[I] || ct(Oe, F[I]);
427
- var B = Ae(sn(F));
428
- process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !F.__patched && (B = Ae(F), F.__patched = !0);
415
+ var R = Ae(sn(F));
416
+ process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !F.__patched && (R = Ae(F), F.__patched = !0);
429
417
  function Ae(e) {
430
418
  an(e), e.gracefulify = Ae, e.createReadStream = Je, e.createWriteStream = be;
431
419
  var t = e.readFile;
@@ -503,17 +491,17 @@ function Ae(e) {
503
491
  }
504
492
  if (process.version.substr(0, 4) === "v0.8") {
505
493
  var m = fn(e);
506
- $ = m.ReadStream, A = m.WriteStream;
494
+ g = m.ReadStream, A = m.WriteStream;
507
495
  }
508
496
  var l = e.ReadStream;
509
- l && ($.prototype = Object.create(l.prototype), $.prototype.open = R);
497
+ l && (g.prototype = Object.create(l.prototype), g.prototype.open = B);
510
498
  var y = e.WriteStream;
511
499
  y && (A.prototype = Object.create(y.prototype), A.prototype.open = ee), Object.defineProperty(e, "ReadStream", {
512
500
  get: function() {
513
- return $;
501
+ return g;
514
502
  },
515
503
  set: function(d) {
516
- $ = d;
504
+ g = d;
517
505
  },
518
506
  enumerable: !0,
519
507
  configurable: !0
@@ -527,13 +515,13 @@ function Ae(e) {
527
515
  enumerable: !0,
528
516
  configurable: !0
529
517
  });
530
- var g = $;
518
+ var $ = g;
531
519
  Object.defineProperty(e, "FileReadStream", {
532
520
  get: function() {
533
- return g;
521
+ return $;
534
522
  },
535
523
  set: function(d) {
536
- g = d;
524
+ $ = d;
537
525
  },
538
526
  enumerable: !0,
539
527
  configurable: !0
@@ -549,12 +537,12 @@ function Ae(e) {
549
537
  enumerable: !0,
550
538
  configurable: !0
551
539
  });
552
- function $(d, S) {
553
- return this instanceof $ ? (l.apply(this, arguments), this) : $.apply(Object.create($.prototype), arguments);
540
+ function g(d, S) {
541
+ return this instanceof g ? (l.apply(this, arguments), this) : g.apply(Object.create(g.prototype), arguments);
554
542
  }
555
- function R() {
543
+ function B() {
556
544
  var d = this;
557
- $e(d.path, d.flags, d.mode, function(S, h) {
545
+ ge(d.path, d.flags, d.mode, function(S, h) {
558
546
  S ? (d.autoClose && d.destroy(), d.emit("error", S)) : (d.fd = h, d.emit("open", h), d.read());
559
547
  });
560
548
  }
@@ -563,7 +551,7 @@ function Ae(e) {
563
551
  }
564
552
  function ee() {
565
553
  var d = this;
566
- $e(d.path, d.flags, d.mode, function(S, h) {
554
+ ge(d.path, d.flags, d.mode, function(S, h) {
567
555
  S ? (d.destroy(), d.emit("error", S)) : (d.fd = h, d.emit("open", h));
568
556
  });
569
557
  }
@@ -573,12 +561,12 @@ function Ae(e) {
573
561
  function be(d, S) {
574
562
  return new e.WriteStream(d, S);
575
563
  }
576
- var Gt = e.open;
577
- e.open = $e;
578
- function $e(d, S, h, C) {
564
+ var Ut = e.open;
565
+ e.open = ge;
566
+ function ge(d, S, h, C) {
579
567
  return typeof h == "function" && (C = h, h = null), N(d, S, h, C);
580
568
  function N(P, E, D, w, _) {
581
- return Gt(P, E, D, function(k, Pi) {
569
+ return Ut(P, E, D, function(k, Pi) {
582
570
  k && (k.code === "EMFILE" || k.code === "ENFILE") ? H([N, [P, E, D, w], k, _ || Date.now(), Date.now()]) : typeof w == "function" && w.apply(this, arguments);
583
571
  });
584
572
  }
@@ -589,7 +577,7 @@ function H(e) {
589
577
  V("ENQUEUE", e[0].name, e[1]), F[I].push(e), xe();
590
578
  }
591
579
  var me;
592
- function Ge() {
580
+ function Ue() {
593
581
  for (var e = Date.now(), t = 0; t < F[I].length; ++t)
594
582
  F[I][t].length > 2 && (F[I][t][3] = e, F[I][t][4] = e);
595
583
  xe();
@@ -611,7 +599,7 @@ function xe() {
611
599
  }
612
600
  }
613
601
  (function(e) {
614
- const t = W.fromCallback, n = B, i = [
602
+ const t = W.fromCallback, n = R, i = [
615
603
  "access",
616
604
  "appendFile",
617
605
  "chmod",
@@ -726,7 +714,7 @@ var Q = {
726
714
  pathExists: hn(Sn),
727
715
  pathExistsSync: lt.existsSync
728
716
  };
729
- const X = B;
717
+ const X = R;
730
718
  function vn(e, t, n, i) {
731
719
  X.open(e, "r+", (r, o) => {
732
720
  if (r)
@@ -746,7 +734,7 @@ var mt = {
746
734
  utimesMillis: vn,
747
735
  utimesMillisSync: wn
748
736
  };
749
- const Z = z, O = M, gn = ae;
737
+ const Z = z, O = M, $n = ae;
750
738
  function kn(e, t, n) {
751
739
  const i = n.dereference ? (r) => Z.stat(r, { bigint: !0 }) : (r) => Z.lstat(r, { bigint: !0 });
752
740
  return Promise.all([
@@ -758,7 +746,7 @@ function kn(e, t, n) {
758
746
  })
759
747
  ]).then(([r, o]) => ({ srcStat: r, destStat: o }));
760
748
  }
761
- function $n(e, t, n) {
749
+ function gn(e, t, n) {
762
750
  let i;
763
751
  const r = n.dereference ? (c) => Z.statSync(c, { bigint: !0 }) : (c) => Z.lstatSync(c, { bigint: !0 }), o = r(e);
764
752
  try {
@@ -771,7 +759,7 @@ function $n(e, t, n) {
771
759
  return { srcStat: o, destStat: i };
772
760
  }
773
761
  function En(e, t, n, i, r) {
774
- gn.callbackify(kn)(e, t, i, (o, c) => {
762
+ $n.callbackify(kn)(e, t, i, (o, c) => {
775
763
  if (o)
776
764
  return r(o);
777
765
  const { srcStat: a, destStat: f } = c;
@@ -789,7 +777,7 @@ function En(e, t, n, i, r) {
789
777
  });
790
778
  }
791
779
  function Fn(e, t, n, i) {
792
- const { srcStat: r, destStat: o } = $n(e, t, i);
780
+ const { srcStat: r, destStat: o } = gn(e, t, i);
793
781
  if (o) {
794
782
  if (fe(r, o)) {
795
783
  const c = O.basename(e), a = O.basename(t);
@@ -846,7 +834,7 @@ var K = {
846
834
  isSrcSubdir: We,
847
835
  areIdentical: fe
848
836
  };
849
- const j = B, ie = M, Dn = b.mkdirs, Pn = Q.pathExists, On = mt.utimesMillis, oe = K;
837
+ const j = R, ie = M, Dn = b.mkdirs, Pn = Q.pathExists, On = mt.utimesMillis, oe = K;
850
838
  function Cn(e, t, n, i) {
851
839
  typeof n == "function" && !i ? (i = n, n = {}) : typeof n == "function" && (n = { filter: n }), i = i || function() {
852
840
  }, n = n || {}, n.clobber = "clobber" in n ? !!n.clobber : !0, n.overwrite = "overwrite" in n ? !!n.overwrite : n.clobber, n.preserveTimestamps && process.arch === "ia32" && process.emitWarning(
@@ -888,7 +876,7 @@ function dt(e, t, n, i) {
888
876
  Promise.resolve(n.filter(e, t)).then((r) => i(null, r), (r) => i(r));
889
877
  }
890
878
  function Ce(e, t, n, i, r) {
891
- (i.dereference ? j.stat : j.lstat)(t, (c, a) => c ? r(c) : a.isDirectory() ? jn(a, e, t, n, i, r) : a.isFile() || a.isCharacterDevice() || a.isBlockDevice() ? _n(a, e, t, n, i, r) : a.isSymbolicLink() ? Rn(e, t, n, i, r) : a.isSocket() ? r(new Error(`Cannot copy a socket file: ${t}`)) : a.isFIFO() ? r(new Error(`Cannot copy a FIFO pipe: ${t}`)) : r(new Error(`Unknown file: ${t}`)));
879
+ (i.dereference ? j.stat : j.lstat)(t, (c, a) => c ? r(c) : a.isDirectory() ? jn(a, e, t, n, i, r) : a.isFile() || a.isCharacterDevice() || a.isBlockDevice() ? _n(a, e, t, n, i, r) : a.isSymbolicLink() ? Bn(e, t, n, i, r) : a.isSocket() ? r(new Error(`Cannot copy a socket file: ${t}`)) : a.isFIFO() ? r(new Error(`Cannot copy a FIFO pipe: ${t}`)) : r(new Error(`Unknown file: ${t}`)));
892
880
  }
893
881
  function _n(e, t, n, i, r, o) {
894
882
  return t ? In(e, n, i, r, o) : ht(e, n, i, r, o);
@@ -935,9 +923,9 @@ function St(e, t, n, i) {
935
923
  }
936
924
  function Ne(e, t, n, i, r) {
937
925
  const o = e.pop();
938
- return o ? Bn(e, o, t, n, i, r) : r();
926
+ return o ? Rn(e, o, t, n, i, r) : r();
939
927
  }
940
- function Bn(e, t, n, i, r, o) {
928
+ function Rn(e, t, n, i, r, o) {
941
929
  const c = ie.join(n, t), a = ie.join(i, t);
942
930
  dt(c, a, r, (f, p) => {
943
931
  if (f)
@@ -952,7 +940,7 @@ function Bn(e, t, n, i, r, o) {
952
940
  });
953
941
  });
954
942
  }
955
- function Rn(e, t, n, i, r) {
943
+ function Bn(e, t, n, i, r) {
956
944
  j.readlink(t, (o, c) => {
957
945
  if (o)
958
946
  return r(o);
@@ -966,8 +954,8 @@ function Jn(e, t, n) {
966
954
  j.unlink(t, (i) => i ? n(i) : j.symlink(e, t, n));
967
955
  }
968
956
  var bn = Cn;
969
- const x = B, ce = M, Un = b.mkdirsSync, qn = mt.utimesMillisSync, ue = K;
970
- function Gn(e, t, n) {
957
+ const x = R, ce = M, qn = b.mkdirsSync, Gn = mt.utimesMillisSync, ue = K;
958
+ function Un(e, t, n) {
971
959
  typeof n == "function" && (n = { filter: n }), n = n || {}, n.clobber = "clobber" in n ? !!n.clobber : !0, n.overwrite = "overwrite" in n ? !!n.overwrite : n.clobber, n.preserveTimestamps && process.arch === "ia32" && process.emitWarning(
972
960
  `Using the preserveTimestamps option in 32-bit node is not recommended;
973
961
 
@@ -979,7 +967,7 @@ function Gn(e, t, n) {
979
967
  if (ue.checkParentPathsSync(e, i, t, "copy"), n.filter && !n.filter(e, t))
980
968
  return;
981
969
  const o = ce.dirname(t);
982
- return x.existsSync(o) || Un(o), vt(r, e, t, n);
970
+ return x.existsSync(o) || qn(o), vt(r, e, t, n);
983
971
  }
984
972
  function vt(e, t, n, i) {
985
973
  const o = (i.dereference ? x.statSync : x.lstatSync)(t);
@@ -1017,15 +1005,15 @@ function je(e, t) {
1017
1005
  }
1018
1006
  function Xn(e, t) {
1019
1007
  const n = x.statSync(e);
1020
- return qn(t, n.atime, n.mtime);
1008
+ return Gn(t, n.atime, n.mtime);
1021
1009
  }
1022
1010
  function Zn(e, t, n, i, r) {
1023
- return t ? gt(n, i, r) : Tn(e.mode, n, i, r);
1011
+ return t ? $t(n, i, r) : Tn(e.mode, n, i, r);
1024
1012
  }
1025
1013
  function Tn(e, t, n, i) {
1026
- return x.mkdirSync(n), gt(t, n, i), je(n, e);
1014
+ return x.mkdirSync(n), $t(t, n, i), je(n, e);
1027
1015
  }
1028
- function gt(e, t, n) {
1016
+ function $t(e, t, n) {
1029
1017
  x.readdirSync(e).forEach((i) => Kn(i, e, t, n));
1030
1018
  }
1031
1019
  function Kn(e, t, n, i) {
@@ -1057,27 +1045,27 @@ function er(e, t, n, i) {
1057
1045
  function tr(e, t) {
1058
1046
  return x.unlinkSync(t), x.symlinkSync(e, t);
1059
1047
  }
1060
- var nr = Gn;
1048
+ var nr = Un;
1061
1049
  const rr = W.fromCallback;
1062
1050
  var Me = {
1063
1051
  copy: rr(bn),
1064
1052
  copySync: nr
1065
1053
  };
1066
- const kt = B, ir = W.fromCallback;
1054
+ const kt = R, ir = W.fromCallback;
1067
1055
  function or(e, t) {
1068
1056
  kt.rm(e, { recursive: !0, force: !0 }, t);
1069
1057
  }
1070
1058
  function cr(e) {
1071
1059
  kt.rmSync(e, { recursive: !0, force: !0 });
1072
1060
  }
1073
- var ge = {
1061
+ var $e = {
1074
1062
  remove: ir(or),
1075
1063
  removeSync: cr
1076
1064
  };
1077
- const ur = W.fromPromise, $t = z, Et = M, Ft = b, Dt = ge, Ve = ur(async function(t) {
1065
+ const ur = W.fromPromise, gt = z, Et = M, Ft = b, Dt = $e, Ve = ur(async function(t) {
1078
1066
  let n;
1079
1067
  try {
1080
- n = await $t.readdir(t);
1068
+ n = await gt.readdir(t);
1081
1069
  } catch {
1082
1070
  return Ft.mkdirs(t);
1083
1071
  }
@@ -1086,7 +1074,7 @@ const ur = W.fromPromise, $t = z, Et = M, Ft = b, Dt = ge, Ve = ur(async functio
1086
1074
  function ze(e) {
1087
1075
  let t;
1088
1076
  try {
1089
- t = $t.readdirSync(e);
1077
+ t = gt.readdirSync(e);
1090
1078
  } catch {
1091
1079
  return Ft.mkdirsSync(e);
1092
1080
  }
@@ -1100,27 +1088,27 @@ var ar = {
1100
1088
  emptyDir: Ve,
1101
1089
  emptydir: Ve
1102
1090
  };
1103
- const fr = W.fromCallback, Pt = M, G = B, Ot = b;
1091
+ const fr = W.fromCallback, Pt = M, U = R, Ot = b;
1104
1092
  function sr(e, t) {
1105
1093
  function n() {
1106
- G.writeFile(e, "", (i) => {
1094
+ U.writeFile(e, "", (i) => {
1107
1095
  if (i)
1108
1096
  return t(i);
1109
1097
  t();
1110
1098
  });
1111
1099
  }
1112
- G.stat(e, (i, r) => {
1100
+ U.stat(e, (i, r) => {
1113
1101
  if (!i && r.isFile())
1114
1102
  return t();
1115
1103
  const o = Pt.dirname(e);
1116
- G.stat(o, (c, a) => {
1104
+ U.stat(o, (c, a) => {
1117
1105
  if (c)
1118
1106
  return c.code === "ENOENT" ? Ot.mkdirs(o, (f) => {
1119
1107
  if (f)
1120
1108
  return t(f);
1121
1109
  n();
1122
1110
  }) : t(c);
1123
- a.isDirectory() ? n() : G.readdir(o, (f) => {
1111
+ a.isDirectory() ? n() : U.readdir(o, (f) => {
1124
1112
  if (f)
1125
1113
  return t(f);
1126
1114
  });
@@ -1130,37 +1118,37 @@ function sr(e, t) {
1130
1118
  function lr(e) {
1131
1119
  let t;
1132
1120
  try {
1133
- t = G.statSync(e);
1121
+ t = U.statSync(e);
1134
1122
  } catch {
1135
1123
  }
1136
1124
  if (t && t.isFile())
1137
1125
  return;
1138
1126
  const n = Pt.dirname(e);
1139
1127
  try {
1140
- G.statSync(n).isDirectory() || G.readdirSync(n);
1128
+ U.statSync(n).isDirectory() || U.readdirSync(n);
1141
1129
  } catch (i) {
1142
1130
  if (i && i.code === "ENOENT")
1143
1131
  Ot.mkdirsSync(n);
1144
1132
  else
1145
1133
  throw i;
1146
1134
  }
1147
- G.writeFileSync(e, "");
1135
+ U.writeFileSync(e, "");
1148
1136
  }
1149
1137
  var mr = {
1150
1138
  createFile: fr(sr),
1151
1139
  createFileSync: lr
1152
1140
  };
1153
- const yr = W.fromCallback, Ct = M, q = B, Nt = b, pr = Q.pathExists, { areIdentical: _t } = K;
1141
+ const yr = W.fromCallback, Ct = M, G = R, Nt = b, pr = Q.pathExists, { areIdentical: _t } = K;
1154
1142
  function dr(e, t, n) {
1155
1143
  function i(r, o) {
1156
- q.link(r, o, (c) => {
1144
+ G.link(r, o, (c) => {
1157
1145
  if (c)
1158
1146
  return n(c);
1159
1147
  n(null);
1160
1148
  });
1161
1149
  }
1162
- q.lstat(t, (r, o) => {
1163
- q.lstat(e, (c, a) => {
1150
+ G.lstat(t, (r, o) => {
1151
+ G.lstat(e, (c, a) => {
1164
1152
  if (c)
1165
1153
  return c.message = c.message.replace("lstat", "ensureLink"), n(c);
1166
1154
  if (o && _t(a, o))
@@ -1183,24 +1171,24 @@ function dr(e, t, n) {
1183
1171
  function hr(e, t) {
1184
1172
  let n;
1185
1173
  try {
1186
- n = q.lstatSync(t);
1174
+ n = G.lstatSync(t);
1187
1175
  } catch {
1188
1176
  }
1189
1177
  try {
1190
- const o = q.lstatSync(e);
1178
+ const o = G.lstatSync(e);
1191
1179
  if (n && _t(o, n))
1192
1180
  return;
1193
1181
  } catch (o) {
1194
1182
  throw o.message = o.message.replace("lstat", "ensureLink"), o;
1195
1183
  }
1196
1184
  const i = Ct.dirname(t);
1197
- return q.existsSync(i) || Nt.mkdirsSync(i), q.linkSync(e, t);
1185
+ return G.existsSync(i) || Nt.mkdirsSync(i), G.linkSync(e, t);
1198
1186
  }
1199
1187
  var Sr = {
1200
1188
  createLink: yr(dr),
1201
1189
  createLinkSync: hr
1202
1190
  };
1203
- const Y = M, ne = B, vr = Q.pathExists;
1191
+ const Y = M, ne = R, vr = Q.pathExists;
1204
1192
  function wr(e, t, n) {
1205
1193
  if (Y.isAbsolute(e))
1206
1194
  return ne.lstat(e, (i) => i ? (i.message = i.message.replace("lstat", "ensureSymlink"), n(i)) : n(null, {
@@ -1218,7 +1206,7 @@ function wr(e, t, n) {
1218
1206
  })));
1219
1207
  }
1220
1208
  }
1221
- function gr(e, t) {
1209
+ function $r(e, t) {
1222
1210
  let n;
1223
1211
  if (Y.isAbsolute(e)) {
1224
1212
  if (n = ne.existsSync(e), !n)
@@ -1244,10 +1232,10 @@ function gr(e, t) {
1244
1232
  }
1245
1233
  var kr = {
1246
1234
  symlinkPaths: wr,
1247
- symlinkPathsSync: gr
1235
+ symlinkPathsSync: $r
1248
1236
  };
1249
- const It = B;
1250
- function $r(e, t, n) {
1237
+ const It = R;
1238
+ function gr(e, t, n) {
1251
1239
  if (n = typeof t == "function" ? t : n, t = typeof t == "function" ? !1 : t, t)
1252
1240
  return n(null, t);
1253
1241
  It.lstat(e, (i, r) => {
@@ -1268,7 +1256,7 @@ function Er(e, t) {
1268
1256
  return n && n.isDirectory() ? "dir" : "file";
1269
1257
  }
1270
1258
  var Fr = {
1271
- symlinkType: $r,
1259
+ symlinkType: gr,
1272
1260
  symlinkTypeSync: Er
1273
1261
  };
1274
1262
  const Dr = W.fromCallback, At = M, J = z, xt = b, Pr = xt.mkdirs, Or = xt.mkdirsSync, Lt = kr, Cr = Lt.symlinkPaths, Nr = Lt.symlinkPathsSync, Wt = Fr, _r = Wt.symlinkType, Ir = Wt.symlinkTypeSync, Ar = Q.pathExists, { areIdentical: jt } = K;
@@ -1346,22 +1334,22 @@ function Mr(e, { EOL: t = `
1346
1334
  const o = n ? t : "";
1347
1335
  return JSON.stringify(e, i, r).replace(/\n/g, t) + o;
1348
1336
  }
1349
- function Br(e) {
1337
+ function Rr(e) {
1350
1338
  return Buffer.isBuffer(e) && (e = e.toString("utf8")), e.replace(/^\uFEFF/, "");
1351
1339
  }
1352
- var Be = { stringify: Mr, stripBom: Br };
1340
+ var Re = { stringify: Mr, stripBom: Rr };
1353
1341
  let T;
1354
1342
  try {
1355
- T = B;
1343
+ T = R;
1356
1344
  } catch {
1357
1345
  T = it;
1358
1346
  }
1359
- const ke = W, { stringify: Mt, stripBom: Bt } = Be;
1360
- async function Rr(e, t = {}) {
1347
+ const ke = W, { stringify: Mt, stripBom: Rt } = Re;
1348
+ async function Br(e, t = {}) {
1361
1349
  typeof t == "string" && (t = { encoding: t });
1362
1350
  const n = t.fs || T, i = "throws" in t ? t.throws : !0;
1363
1351
  let r = await ke.fromCallback(n.readFile)(e, t);
1364
- r = Bt(r);
1352
+ r = Rt(r);
1365
1353
  let o;
1366
1354
  try {
1367
1355
  o = JSON.parse(r, t ? t.reviver : null);
@@ -1372,33 +1360,33 @@ async function Rr(e, t = {}) {
1372
1360
  }
1373
1361
  return o;
1374
1362
  }
1375
- const Jr = ke.fromPromise(Rr);
1363
+ const Jr = ke.fromPromise(Br);
1376
1364
  function br(e, t = {}) {
1377
1365
  typeof t == "string" && (t = { encoding: t });
1378
1366
  const n = t.fs || T, i = "throws" in t ? t.throws : !0;
1379
1367
  try {
1380
1368
  let r = n.readFileSync(e, t);
1381
- return r = Bt(r), JSON.parse(r, t.reviver);
1369
+ return r = Rt(r), JSON.parse(r, t.reviver);
1382
1370
  } catch (r) {
1383
1371
  if (i)
1384
1372
  throw r.message = `${e}: ${r.message}`, r;
1385
1373
  return null;
1386
1374
  }
1387
1375
  }
1388
- async function Ur(e, t, n = {}) {
1376
+ async function qr(e, t, n = {}) {
1389
1377
  const i = n.fs || T, r = Mt(t, n);
1390
1378
  await ke.fromCallback(i.writeFile)(e, r, n);
1391
1379
  }
1392
- const qr = ke.fromPromise(Ur);
1393
- function Gr(e, t, n = {}) {
1380
+ const Gr = ke.fromPromise(qr);
1381
+ function Ur(e, t, n = {}) {
1394
1382
  const i = n.fs || T, r = Mt(t, n);
1395
1383
  return i.writeFileSync(e, r, n);
1396
1384
  }
1397
1385
  const Yr = {
1398
1386
  readFile: Jr,
1399
1387
  readFileSync: br,
1400
- writeFile: qr,
1401
- writeFileSync: Gr
1388
+ writeFile: Gr,
1389
+ writeFileSync: Ur
1402
1390
  };
1403
1391
  var Vr = Yr;
1404
1392
  const ye = Vr;
@@ -1408,10 +1396,10 @@ var zr = {
1408
1396
  writeJson: ye.writeFile,
1409
1397
  writeJsonSync: ye.writeFileSync
1410
1398
  };
1411
- const Qr = W.fromCallback, re = B, Rt = M, Jt = b, Hr = Q.pathExists;
1399
+ const Qr = W.fromCallback, re = R, Bt = M, Jt = b, Hr = Q.pathExists;
1412
1400
  function Xr(e, t, n, i) {
1413
1401
  typeof n == "function" && (i = n, n = "utf8");
1414
- const r = Rt.dirname(e);
1402
+ const r = Bt.dirname(e);
1415
1403
  Hr(r, (o, c) => {
1416
1404
  if (o)
1417
1405
  return i(o);
@@ -1425,22 +1413,22 @@ function Xr(e, t, n, i) {
1425
1413
  });
1426
1414
  }
1427
1415
  function Zr(e, ...t) {
1428
- const n = Rt.dirname(e);
1416
+ const n = Bt.dirname(e);
1429
1417
  if (re.existsSync(n))
1430
1418
  return re.writeFileSync(e, ...t);
1431
1419
  Jt.mkdirsSync(n), re.writeFileSync(e, ...t);
1432
1420
  }
1433
- var Re = {
1421
+ var Be = {
1434
1422
  outputFile: Qr(Xr),
1435
1423
  outputFileSync: Zr
1436
1424
  };
1437
- const { stringify: Tr } = Be, { outputFile: Kr } = Re;
1425
+ const { stringify: Tr } = Re, { outputFile: Kr } = Be;
1438
1426
  async function ei(e, t, n = {}) {
1439
1427
  const i = Tr(t, n);
1440
1428
  await Kr(e, i, n);
1441
1429
  }
1442
1430
  var ti = ei;
1443
- const { stringify: ni } = Be, { outputFileSync: ri } = Re;
1431
+ const { stringify: ni } = Re, { outputFileSync: ri } = Be;
1444
1432
  function ii(e, t, n) {
1445
1433
  const i = ni(t, n);
1446
1434
  ri(e, i, n);
@@ -1456,7 +1444,7 @@ L.writeJSONSync = L.writeJsonSync;
1456
1444
  L.readJSON = L.readJson;
1457
1445
  L.readJSONSync = L.readJsonSync;
1458
1446
  var ui = L;
1459
- const ai = B, _e = M, fi = Me.copy, bt = ge.remove, si = b.mkdirp, li = Q.pathExists, tt = K;
1447
+ const ai = R, _e = M, fi = Me.copy, bt = $e.remove, si = b.mkdirp, li = Q.pathExists, tt = K;
1460
1448
  function mi(e, t, n, i) {
1461
1449
  typeof n == "function" && (i = n, n = {}), n = n || {};
1462
1450
  const r = n.overwrite || n.clobber || !1;
@@ -1494,28 +1482,28 @@ function pi(e, t, n, i) {
1494
1482
  }, (o) => o ? i(o) : bt(e, i));
1495
1483
  }
1496
1484
  var di = mi;
1497
- const Ut = B, Ie = M, hi = Me.copySync, qt = ge.removeSync, Si = b.mkdirpSync, rt = K;
1485
+ const qt = R, Ie = M, hi = Me.copySync, Gt = $e.removeSync, Si = b.mkdirpSync, rt = K;
1498
1486
  function vi(e, t, n) {
1499
1487
  n = n || {};
1500
1488
  const i = n.overwrite || n.clobber || !1, { srcStat: r, isChangingCase: o = !1 } = rt.checkPathsSync(e, t, "move", n);
1501
- return rt.checkParentPathsSync(e, r, t, "move"), wi(t) || Si(Ie.dirname(t)), gi(e, t, i, o);
1489
+ return rt.checkParentPathsSync(e, r, t, "move"), wi(t) || Si(Ie.dirname(t)), $i(e, t, i, o);
1502
1490
  }
1503
1491
  function wi(e) {
1504
1492
  const t = Ie.dirname(e);
1505
1493
  return Ie.parse(t).root === t;
1506
1494
  }
1507
- function gi(e, t, n, i) {
1495
+ function $i(e, t, n, i) {
1508
1496
  if (i)
1509
1497
  return Pe(e, t, n);
1510
1498
  if (n)
1511
- return qt(t), Pe(e, t, n);
1512
- if (Ut.existsSync(t))
1499
+ return Gt(t), Pe(e, t, n);
1500
+ if (qt.existsSync(t))
1513
1501
  throw new Error("dest already exists.");
1514
1502
  return Pe(e, t, n);
1515
1503
  }
1516
1504
  function Pe(e, t, n) {
1517
1505
  try {
1518
- Ut.renameSync(e, t);
1506
+ qt.renameSync(e, t);
1519
1507
  } catch (i) {
1520
1508
  if (i.code !== "EXDEV")
1521
1509
  throw i;
@@ -1526,13 +1514,13 @@ function ki(e, t, n) {
1526
1514
  return hi(e, t, {
1527
1515
  overwrite: n,
1528
1516
  errorOnExist: !0
1529
- }), qt(e);
1517
+ }), Gt(e);
1530
1518
  }
1531
- var $i = vi;
1519
+ var gi = vi;
1532
1520
  const Ei = W.fromCallback;
1533
1521
  var Fi = {
1534
1522
  move: Ei(di),
1535
- moveSync: $i
1523
+ moveSync: gi
1536
1524
  }, Di = {
1537
1525
  ...z,
1538
1526
  ...Me,
@@ -1541,9 +1529,9 @@ var Fi = {
1541
1529
  ...ui,
1542
1530
  ...b,
1543
1531
  ...Fi,
1544
- ...Re,
1532
+ ...Be,
1545
1533
  ...Q,
1546
- ...ge
1534
+ ...$e
1547
1535
  };
1548
1536
  const pe = Di;
1549
1537
  function Ii(e, t) {