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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @telia-ace/alliance-utilities
2
2
 
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - c1ca5b5: Move translation and text manager to `@telia-ace/alliance-utilities`.
8
+ - 9312699: Update dependencies.
9
+
3
10
  ## 1.0.3-next.1
4
11
 
5
12
  ### Patch Changes
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ 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.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.DevServerPortDescription = 27] = "DevServerPortDescription", e[e.ApiGatewayPortDescription = 28] = "ApiGatewayPortDescription", e[e.ApiServerModeDescription = 29] = "ApiServerModeDescription", e[e.DevServerOpenDescription = 30] = "DevServerOpenDescription", e[e.BuildWatchDescription = 31] = "BuildWatchDescription", e[e.CouldNotStartGatewayInDocker = 32] = "CouldNotStartGatewayInDocker", e[e.PullingLatestImage = 33] = "PullingLatestImage", e[e.PullLatestImageError = 34] = "PullLatestImageError", e[e.AppEntryBuildOptionDescription = 35] = "AppEntryBuildOptionDescription", e[e.ManifestEntryBuildOptionDescription = 36] = "ManifestEntryBuildOptionDescription", e[e.BuildModeOptionDescription = 37] = "BuildModeOptionDescription", e[e.FetchPackageVersionError = 38] = "FetchPackageVersionError", e[e.UnknownArgumentDescription = 39] = "UnknownArgumentDescription", e[e.DockerNotStartedOrInstalled = 40] = "DockerNotStartedOrInstalled", e[e.PressAnyKeyToContinue = 41] = "PressAnyKeyToContinue", e[e.EnableDevAuthentication = 42] = "EnableDevAuthentication", e[e.NoAppNameFound = 43] = "NoAppNameFound", e[e.AppConfigurationPath = 44] = "AppConfigurationPath", e[e.ServerGatewayMode = 45] = "ServerGatewayMode", e[e.ServerProxyMode = 46] = "ServerProxyMode", e[e.ServerMode = 47] = "ServerMode", e))(ot || {});
8
8
  const Qt = {
9
9
  [0]: "Yes",
10
10
  [1]: "No",
@@ -34,30 +34,27 @@ const Qt = {
34
34
  `,
35
35
  [25]: "Select preferred language",
36
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"
37
+ [27]: "The port that the dev server should use.",
38
+ [28]: "The port that the api gateway should use.",
39
+ [29]: "Which components to start. [server|server-proxy|server-gateway].",
40
+ [30]: "Whether the dev server should automatically open in your browser or not.",
41
+ [31]: "Whether the build should start watching and rebuild when files change or not.",
42
+ [32]: "Could not start Docker container with Alliance gateway.",
43
+ [33]: "Pulling latest image...",
44
+ [34]: "Error when pulling latest image...",
45
+ [35]: "The entry file for the app (./src/app).",
46
+ [36]: "The entry file for the app manifest (./src/manifest).",
47
+ [37]: "Which mode to use when building the app. [production|development]",
48
+ [38]: "Failed to fetch package info from the NPM registry for package '${0}'!",
49
+ [39]: "Unknown value '{0}' for argument '{1}'",
50
+ [40]: "Docker not started or not installed.",
51
+ [41]: "Press any key to continue...",
52
+ [42]: "Whether user authentication should be enabled or not.",
53
+ [43]: "Could not find app name in manifest.",
54
+ [44]: "The path to the app configuration file.",
55
+ [47]: "Server",
56
+ [46]: "Server with proxy",
57
+ [45]: "Server with gateway"
61
58
  }, Se = class {
62
59
  };
63
60
  let te = Se;
@@ -123,7 +120,7 @@ const Xt = {}, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
123
120
  __proto__: null,
124
121
  default: Xt
125
122
  }, 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;
123
+ var q = ae, Tt = process.cwd, de = null, Kt = process.env.GRACEFUL_FS_PLATFORM || process.platform;
127
124
  process.cwd = function() {
128
125
  return de || (de = Tt.call(process)), de;
129
126
  };
@@ -132,14 +129,14 @@ try {
132
129
  } catch {
133
130
  }
134
131
  if (typeof process.chdir == "function") {
135
- var Ue = process.chdir;
132
+ var qe = process.chdir;
136
133
  process.chdir = function(e) {
137
- de = null, Ue.call(process, e);
138
- }, Object.setPrototypeOf && Object.setPrototypeOf(process.chdir, Ue);
134
+ de = null, qe.call(process, e);
135
+ }, Object.setPrototypeOf && Object.setPrototypeOf(process.chdir, qe);
139
136
  }
140
137
  var en = tn;
141
138
  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) {
139
+ 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
140
  m && process.nextTick(m);
144
141
  }, e.lchmodSync = function() {
145
142
  }), e.chown && !e.lchown && (e.lchown = function(u, s, m, l) {
@@ -148,31 +145,31 @@ function tn(e) {
148
145
  }), Kt === "win32" && (e.rename = typeof e.rename != "function" ? e.rename : function(u) {
149
146
  function s(m, l, y) {
150
147
  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) {
148
+ u(m, l, function $(B) {
149
+ if (B && (B.code === "EACCES" || B.code === "EPERM") && Date.now() - g < 6e4) {
153
150
  setTimeout(function() {
154
151
  e.stat(l, function(A, ee) {
155
- A && A.code === "ENOENT" ? u(m, l, $) : y(R);
152
+ A && A.code === "ENOENT" ? u(m, l, $) : y(B);
156
153
  });
157
154
  }, v), v < 100 && (v += 10);
158
155
  return;
159
156
  }
160
- y && y(R);
157
+ y && y(B);
161
158
  });
162
159
  }
163
160
  return Object.setPrototypeOf && Object.setPrototypeOf(s, u), s;
164
161
  }(e.rename)), e.read = typeof e.read != "function" ? e.read : function(u) {
165
162
  function s(m, l, y, g, v, $) {
166
- var R;
163
+ var B;
167
164
  if ($ && typeof $ == "function") {
168
165
  var A = 0;
169
- R = function(ee, Je, be) {
166
+ B = function(ee, Je, be) {
170
167
  if (ee && ee.code === "EAGAIN" && A < 10)
171
- return A++, u.call(e, m, l, y, g, v, R);
168
+ return A++, u.call(e, m, l, y, g, v, B);
172
169
  $.apply(this, arguments);
173
170
  };
174
171
  }
175
- return u.call(e, m, l, y, g, v, R);
172
+ return u.call(e, m, l, y, g, v, B);
176
173
  }
177
174
  return Object.setPrototypeOf && Object.setPrototypeOf(s, u), s;
178
175
  }(e.read), e.readSync = typeof e.readSync != "function" ? e.readSync : function(u) {
@@ -193,7 +190,7 @@ function tn(e) {
193
190
  u.lchmod = function(s, m, l) {
194
191
  u.open(
195
192
  s,
196
- U.O_WRONLY | U.O_SYMLINK,
193
+ q.O_WRONLY | q.O_SYMLINK,
197
194
  m,
198
195
  function(y, g) {
199
196
  if (y) {
@@ -208,7 +205,7 @@ function tn(e) {
208
205
  }
209
206
  );
210
207
  }, u.lchmodSync = function(s, m) {
211
- var l = u.openSync(s, U.O_WRONLY | U.O_SYMLINK, m), y = !0, g;
208
+ var l = u.openSync(s, q.O_WRONLY | q.O_SYMLINK, m), y = !0, g;
212
209
  try {
213
210
  g = u.fchmodSync(l, m), y = !1;
214
211
  } finally {
@@ -224,20 +221,20 @@ function tn(e) {
224
221
  };
225
222
  }
226
223
  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) {
224
+ q.hasOwnProperty("O_SYMLINK") && u.futimes ? (u.lutimes = function(s, m, l, y) {
225
+ u.open(s, q.O_SYMLINK, function(g, v) {
229
226
  if (g) {
230
227
  y && y(g);
231
228
  return;
232
229
  }
233
230
  u.futimes(v, m, l, function($) {
234
- u.close(v, function(R) {
235
- y && y($ || R);
231
+ u.close(v, function(B) {
232
+ y && y($ || B);
236
233
  });
237
234
  });
238
235
  });
239
236
  }, u.lutimesSync = function(s, m, l) {
240
- var y = u.openSync(s, U.O_SYMLINK), g, v = !0;
237
+ var y = u.openSync(s, q.O_SYMLINK), g, v = !0;
241
238
  try {
242
239
  g = u.futimesSync(y, m, l), v = !1;
243
240
  } finally {
@@ -311,7 +308,7 @@ function tn(e) {
311
308
  return !!(s && (u.code === "EINVAL" || u.code === "EPERM"));
312
309
  }
313
310
  }
314
- var qe = ae.Stream, nn = rn;
311
+ var Ue = ae.Stream, nn = rn;
315
312
  function rn(e) {
316
313
  return {
317
314
  ReadStream: t,
@@ -320,7 +317,7 @@ function rn(e) {
320
317
  function t(i, r) {
321
318
  if (!(this instanceof t))
322
319
  return new t(i, r);
323
- qe.call(this);
320
+ Ue.call(this);
324
321
  var o = this;
325
322
  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
323
  for (var c = Object.keys(r), a = 0, f = c.length; a < f; a++) {
@@ -355,7 +352,7 @@ function rn(e) {
355
352
  function n(i, r) {
356
353
  if (!(this instanceof n))
357
354
  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 || {};
355
+ Ue.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
356
  for (var o = Object.keys(r), c = 0, a = o.length; c < a; c++) {
360
357
  var f = o[c];
361
358
  this[f] = r[f];
@@ -424,8 +421,8 @@ if (!F[I]) {
424
421
  });
425
422
  }
426
423
  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);
424
+ var R = Ae(sn(F));
425
+ process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !F.__patched && (R = Ae(F), F.__patched = !0);
429
426
  function Ae(e) {
430
427
  an(e), e.gracefulify = Ae, e.createReadStream = Je, e.createWriteStream = be;
431
428
  var t = e.readFile;
@@ -506,7 +503,7 @@ function Ae(e) {
506
503
  $ = m.ReadStream, A = m.WriteStream;
507
504
  }
508
505
  var l = e.ReadStream;
509
- l && ($.prototype = Object.create(l.prototype), $.prototype.open = R);
506
+ l && ($.prototype = Object.create(l.prototype), $.prototype.open = B);
510
507
  var y = e.WriteStream;
511
508
  y && (A.prototype = Object.create(y.prototype), A.prototype.open = ee), Object.defineProperty(e, "ReadStream", {
512
509
  get: function() {
@@ -552,7 +549,7 @@ function Ae(e) {
552
549
  function $(d, S) {
553
550
  return this instanceof $ ? (l.apply(this, arguments), this) : $.apply(Object.create($.prototype), arguments);
554
551
  }
555
- function R() {
552
+ function B() {
556
553
  var d = this;
557
554
  $e(d.path, d.flags, d.mode, function(S, h) {
558
555
  S ? (d.autoClose && d.destroy(), d.emit("error", S)) : (d.fd = h, d.emit("open", h), d.read());
@@ -611,7 +608,7 @@ function xe() {
611
608
  }
612
609
  }
613
610
  (function(e) {
614
- const t = W.fromCallback, n = B, i = [
611
+ const t = W.fromCallback, n = R, i = [
615
612
  "access",
616
613
  "appendFile",
617
614
  "chmod",
@@ -726,7 +723,7 @@ var Q = {
726
723
  pathExists: hn(Sn),
727
724
  pathExistsSync: lt.existsSync
728
725
  };
729
- const X = B;
726
+ const X = R;
730
727
  function vn(e, t, n, i) {
731
728
  X.open(e, "r+", (r, o) => {
732
729
  if (r)
@@ -846,7 +843,7 @@ var K = {
846
843
  isSrcSubdir: We,
847
844
  areIdentical: fe
848
845
  };
849
- const j = B, ie = M, Dn = b.mkdirs, Pn = Q.pathExists, On = mt.utimesMillis, oe = K;
846
+ const j = R, ie = M, Dn = b.mkdirs, Pn = Q.pathExists, On = mt.utimesMillis, oe = K;
850
847
  function Cn(e, t, n, i) {
851
848
  typeof n == "function" && !i ? (i = n, n = {}) : typeof n == "function" && (n = { filter: n }), i = i || function() {
852
849
  }, 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 +885,7 @@ function dt(e, t, n, i) {
888
885
  Promise.resolve(n.filter(e, t)).then((r) => i(null, r), (r) => i(r));
889
886
  }
890
887
  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}`)));
888
+ (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
889
  }
893
890
  function _n(e, t, n, i, r, o) {
894
891
  return t ? In(e, n, i, r, o) : ht(e, n, i, r, o);
@@ -935,9 +932,9 @@ function St(e, t, n, i) {
935
932
  }
936
933
  function Ne(e, t, n, i, r) {
937
934
  const o = e.pop();
938
- return o ? Bn(e, o, t, n, i, r) : r();
935
+ return o ? Rn(e, o, t, n, i, r) : r();
939
936
  }
940
- function Bn(e, t, n, i, r, o) {
937
+ function Rn(e, t, n, i, r, o) {
941
938
  const c = ie.join(n, t), a = ie.join(i, t);
942
939
  dt(c, a, r, (f, p) => {
943
940
  if (f)
@@ -952,7 +949,7 @@ function Bn(e, t, n, i, r, o) {
952
949
  });
953
950
  });
954
951
  }
955
- function Rn(e, t, n, i, r) {
952
+ function Bn(e, t, n, i, r) {
956
953
  j.readlink(t, (o, c) => {
957
954
  if (o)
958
955
  return r(o);
@@ -966,7 +963,7 @@ function Jn(e, t, n) {
966
963
  j.unlink(t, (i) => i ? n(i) : j.symlink(e, t, n));
967
964
  }
968
965
  var bn = Cn;
969
- const x = B, ce = M, Un = b.mkdirsSync, qn = mt.utimesMillisSync, ue = K;
966
+ const x = R, ce = M, qn = b.mkdirsSync, Un = mt.utimesMillisSync, ue = K;
970
967
  function Gn(e, t, n) {
971
968
  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
969
  `Using the preserveTimestamps option in 32-bit node is not recommended;
@@ -979,7 +976,7 @@ function Gn(e, t, n) {
979
976
  if (ue.checkParentPathsSync(e, i, t, "copy"), n.filter && !n.filter(e, t))
980
977
  return;
981
978
  const o = ce.dirname(t);
982
- return x.existsSync(o) || Un(o), vt(r, e, t, n);
979
+ return x.existsSync(o) || qn(o), vt(r, e, t, n);
983
980
  }
984
981
  function vt(e, t, n, i) {
985
982
  const o = (i.dereference ? x.statSync : x.lstatSync)(t);
@@ -1017,7 +1014,7 @@ function je(e, t) {
1017
1014
  }
1018
1015
  function Xn(e, t) {
1019
1016
  const n = x.statSync(e);
1020
- return qn(t, n.atime, n.mtime);
1017
+ return Un(t, n.atime, n.mtime);
1021
1018
  }
1022
1019
  function Zn(e, t, n, i, r) {
1023
1020
  return t ? gt(n, i, r) : Tn(e.mode, n, i, r);
@@ -1063,7 +1060,7 @@ var Me = {
1063
1060
  copy: rr(bn),
1064
1061
  copySync: nr
1065
1062
  };
1066
- const kt = B, ir = W.fromCallback;
1063
+ const kt = R, ir = W.fromCallback;
1067
1064
  function or(e, t) {
1068
1065
  kt.rm(e, { recursive: !0, force: !0 }, t);
1069
1066
  }
@@ -1100,7 +1097,7 @@ var ar = {
1100
1097
  emptyDir: Ve,
1101
1098
  emptydir: Ve
1102
1099
  };
1103
- const fr = W.fromCallback, Pt = M, G = B, Ot = b;
1100
+ const fr = W.fromCallback, Pt = M, G = R, Ot = b;
1104
1101
  function sr(e, t) {
1105
1102
  function n() {
1106
1103
  G.writeFile(e, "", (i) => {
@@ -1150,17 +1147,17 @@ var mr = {
1150
1147
  createFile: fr(sr),
1151
1148
  createFileSync: lr
1152
1149
  };
1153
- const yr = W.fromCallback, Ct = M, q = B, Nt = b, pr = Q.pathExists, { areIdentical: _t } = K;
1150
+ const yr = W.fromCallback, Ct = M, U = R, Nt = b, pr = Q.pathExists, { areIdentical: _t } = K;
1154
1151
  function dr(e, t, n) {
1155
1152
  function i(r, o) {
1156
- q.link(r, o, (c) => {
1153
+ U.link(r, o, (c) => {
1157
1154
  if (c)
1158
1155
  return n(c);
1159
1156
  n(null);
1160
1157
  });
1161
1158
  }
1162
- q.lstat(t, (r, o) => {
1163
- q.lstat(e, (c, a) => {
1159
+ U.lstat(t, (r, o) => {
1160
+ U.lstat(e, (c, a) => {
1164
1161
  if (c)
1165
1162
  return c.message = c.message.replace("lstat", "ensureLink"), n(c);
1166
1163
  if (o && _t(a, o))
@@ -1183,24 +1180,24 @@ function dr(e, t, n) {
1183
1180
  function hr(e, t) {
1184
1181
  let n;
1185
1182
  try {
1186
- n = q.lstatSync(t);
1183
+ n = U.lstatSync(t);
1187
1184
  } catch {
1188
1185
  }
1189
1186
  try {
1190
- const o = q.lstatSync(e);
1187
+ const o = U.lstatSync(e);
1191
1188
  if (n && _t(o, n))
1192
1189
  return;
1193
1190
  } catch (o) {
1194
1191
  throw o.message = o.message.replace("lstat", "ensureLink"), o;
1195
1192
  }
1196
1193
  const i = Ct.dirname(t);
1197
- return q.existsSync(i) || Nt.mkdirsSync(i), q.linkSync(e, t);
1194
+ return U.existsSync(i) || Nt.mkdirsSync(i), U.linkSync(e, t);
1198
1195
  }
1199
1196
  var Sr = {
1200
1197
  createLink: yr(dr),
1201
1198
  createLinkSync: hr
1202
1199
  };
1203
- const Y = M, ne = B, vr = Q.pathExists;
1200
+ const Y = M, ne = R, vr = Q.pathExists;
1204
1201
  function wr(e, t, n) {
1205
1202
  if (Y.isAbsolute(e))
1206
1203
  return ne.lstat(e, (i) => i ? (i.message = i.message.replace("lstat", "ensureSymlink"), n(i)) : n(null, {
@@ -1246,7 +1243,7 @@ var kr = {
1246
1243
  symlinkPaths: wr,
1247
1244
  symlinkPathsSync: gr
1248
1245
  };
1249
- const It = B;
1246
+ const It = R;
1250
1247
  function $r(e, t, n) {
1251
1248
  if (n = typeof t == "function" ? t : n, t = typeof t == "function" ? !1 : t, t)
1252
1249
  return n(null, t);
@@ -1346,22 +1343,22 @@ function Mr(e, { EOL: t = `
1346
1343
  const o = n ? t : "";
1347
1344
  return JSON.stringify(e, i, r).replace(/\n/g, t) + o;
1348
1345
  }
1349
- function Br(e) {
1346
+ function Rr(e) {
1350
1347
  return Buffer.isBuffer(e) && (e = e.toString("utf8")), e.replace(/^\uFEFF/, "");
1351
1348
  }
1352
- var Be = { stringify: Mr, stripBom: Br };
1349
+ var Re = { stringify: Mr, stripBom: Rr };
1353
1350
  let T;
1354
1351
  try {
1355
- T = B;
1352
+ T = R;
1356
1353
  } catch {
1357
1354
  T = it;
1358
1355
  }
1359
- const ke = W, { stringify: Mt, stripBom: Bt } = Be;
1360
- async function Rr(e, t = {}) {
1356
+ const ke = W, { stringify: Mt, stripBom: Rt } = Re;
1357
+ async function Br(e, t = {}) {
1361
1358
  typeof t == "string" && (t = { encoding: t });
1362
1359
  const n = t.fs || T, i = "throws" in t ? t.throws : !0;
1363
1360
  let r = await ke.fromCallback(n.readFile)(e, t);
1364
- r = Bt(r);
1361
+ r = Rt(r);
1365
1362
  let o;
1366
1363
  try {
1367
1364
  o = JSON.parse(r, t ? t.reviver : null);
@@ -1372,24 +1369,24 @@ async function Rr(e, t = {}) {
1372
1369
  }
1373
1370
  return o;
1374
1371
  }
1375
- const Jr = ke.fromPromise(Rr);
1372
+ const Jr = ke.fromPromise(Br);
1376
1373
  function br(e, t = {}) {
1377
1374
  typeof t == "string" && (t = { encoding: t });
1378
1375
  const n = t.fs || T, i = "throws" in t ? t.throws : !0;
1379
1376
  try {
1380
1377
  let r = n.readFileSync(e, t);
1381
- return r = Bt(r), JSON.parse(r, t.reviver);
1378
+ return r = Rt(r), JSON.parse(r, t.reviver);
1382
1379
  } catch (r) {
1383
1380
  if (i)
1384
1381
  throw r.message = `${e}: ${r.message}`, r;
1385
1382
  return null;
1386
1383
  }
1387
1384
  }
1388
- async function Ur(e, t, n = {}) {
1385
+ async function qr(e, t, n = {}) {
1389
1386
  const i = n.fs || T, r = Mt(t, n);
1390
1387
  await ke.fromCallback(i.writeFile)(e, r, n);
1391
1388
  }
1392
- const qr = ke.fromPromise(Ur);
1389
+ const Ur = ke.fromPromise(qr);
1393
1390
  function Gr(e, t, n = {}) {
1394
1391
  const i = n.fs || T, r = Mt(t, n);
1395
1392
  return i.writeFileSync(e, r, n);
@@ -1397,7 +1394,7 @@ function Gr(e, t, n = {}) {
1397
1394
  const Yr = {
1398
1395
  readFile: Jr,
1399
1396
  readFileSync: br,
1400
- writeFile: qr,
1397
+ writeFile: Ur,
1401
1398
  writeFileSync: Gr
1402
1399
  };
1403
1400
  var Vr = Yr;
@@ -1408,10 +1405,10 @@ var zr = {
1408
1405
  writeJson: ye.writeFile,
1409
1406
  writeJsonSync: ye.writeFileSync
1410
1407
  };
1411
- const Qr = W.fromCallback, re = B, Rt = M, Jt = b, Hr = Q.pathExists;
1408
+ const Qr = W.fromCallback, re = R, Bt = M, Jt = b, Hr = Q.pathExists;
1412
1409
  function Xr(e, t, n, i) {
1413
1410
  typeof n == "function" && (i = n, n = "utf8");
1414
- const r = Rt.dirname(e);
1411
+ const r = Bt.dirname(e);
1415
1412
  Hr(r, (o, c) => {
1416
1413
  if (o)
1417
1414
  return i(o);
@@ -1425,22 +1422,22 @@ function Xr(e, t, n, i) {
1425
1422
  });
1426
1423
  }
1427
1424
  function Zr(e, ...t) {
1428
- const n = Rt.dirname(e);
1425
+ const n = Bt.dirname(e);
1429
1426
  if (re.existsSync(n))
1430
1427
  return re.writeFileSync(e, ...t);
1431
1428
  Jt.mkdirsSync(n), re.writeFileSync(e, ...t);
1432
1429
  }
1433
- var Re = {
1430
+ var Be = {
1434
1431
  outputFile: Qr(Xr),
1435
1432
  outputFileSync: Zr
1436
1433
  };
1437
- const { stringify: Tr } = Be, { outputFile: Kr } = Re;
1434
+ const { stringify: Tr } = Re, { outputFile: Kr } = Be;
1438
1435
  async function ei(e, t, n = {}) {
1439
1436
  const i = Tr(t, n);
1440
1437
  await Kr(e, i, n);
1441
1438
  }
1442
1439
  var ti = ei;
1443
- const { stringify: ni } = Be, { outputFileSync: ri } = Re;
1440
+ const { stringify: ni } = Re, { outputFileSync: ri } = Be;
1444
1441
  function ii(e, t, n) {
1445
1442
  const i = ni(t, n);
1446
1443
  ri(e, i, n);
@@ -1456,7 +1453,7 @@ L.writeJSONSync = L.writeJsonSync;
1456
1453
  L.readJSON = L.readJson;
1457
1454
  L.readJSONSync = L.readJsonSync;
1458
1455
  var ui = L;
1459
- const ai = B, _e = M, fi = Me.copy, bt = ge.remove, si = b.mkdirp, li = Q.pathExists, tt = K;
1456
+ const ai = R, _e = M, fi = Me.copy, bt = ge.remove, si = b.mkdirp, li = Q.pathExists, tt = K;
1460
1457
  function mi(e, t, n, i) {
1461
1458
  typeof n == "function" && (i = n, n = {}), n = n || {};
1462
1459
  const r = n.overwrite || n.clobber || !1;
@@ -1494,7 +1491,7 @@ function pi(e, t, n, i) {
1494
1491
  }, (o) => o ? i(o) : bt(e, i));
1495
1492
  }
1496
1493
  var di = mi;
1497
- const Ut = B, Ie = M, hi = Me.copySync, qt = ge.removeSync, Si = b.mkdirpSync, rt = K;
1494
+ const qt = R, Ie = M, hi = Me.copySync, Ut = ge.removeSync, Si = b.mkdirpSync, rt = K;
1498
1495
  function vi(e, t, n) {
1499
1496
  n = n || {};
1500
1497
  const i = n.overwrite || n.clobber || !1, { srcStat: r, isChangingCase: o = !1 } = rt.checkPathsSync(e, t, "move", n);
@@ -1508,14 +1505,14 @@ function gi(e, t, n, i) {
1508
1505
  if (i)
1509
1506
  return Pe(e, t, n);
1510
1507
  if (n)
1511
- return qt(t), Pe(e, t, n);
1512
- if (Ut.existsSync(t))
1508
+ return Ut(t), Pe(e, t, n);
1509
+ if (qt.existsSync(t))
1513
1510
  throw new Error("dest already exists.");
1514
1511
  return Pe(e, t, n);
1515
1512
  }
1516
1513
  function Pe(e, t, n) {
1517
1514
  try {
1518
- Ut.renameSync(e, t);
1515
+ qt.renameSync(e, t);
1519
1516
  } catch (i) {
1520
1517
  if (i.code !== "EXDEV")
1521
1518
  throw i;
@@ -1526,7 +1523,7 @@ function ki(e, t, n) {
1526
1523
  return hi(e, t, {
1527
1524
  overwrite: n,
1528
1525
  errorOnExist: !0
1529
- }), qt(e);
1526
+ }), Ut(e);
1530
1527
  }
1531
1528
  var $i = vi;
1532
1529
  const Ei = W.fromCallback;
@@ -1541,7 +1538,7 @@ var Fi = {
1541
1538
  ...ui,
1542
1539
  ...b,
1543
1540
  ...Fi,
1544
- ...Re,
1541
+ ...Be,
1545
1542
  ...Q,
1546
1543
  ...ge
1547
1544
  };