@telia-ace/alliance-utilities 1.0.8-next.0 → 1.0.8
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 +13 -0
- package/dist/index.js +228 -226
- package/dist/index.js.map +1 -1
- package/dist/texts.d.ts +1 -1
- package/dist/translations.d.ts +1 -1
- package/package.json +5 -5
- package/typescript-config.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var $n = Object.defineProperty;
|
|
2
2
|
var Pn = (e, t, r) => t in e ? $n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var Le = (e, t, r) => (Pn(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
-
import
|
|
4
|
+
import mr from "fs";
|
|
5
5
|
import X, { resolve as xt, dirname as kn, relative as Fn } from "path";
|
|
6
6
|
import { pipeline as jn } from "stream/promises";
|
|
7
|
-
var
|
|
7
|
+
var dr = /* @__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[e.DevLoginUrl = 39] = "DevLoginUrl", e))(dr || {});
|
|
8
8
|
const Dn = {
|
|
9
9
|
[
|
|
10
10
|
0
|
|
@@ -178,7 +178,7 @@ Le(je, "getTranslations", () => Dn), Le(je, "getTranslation", (t, ...r) => {
|
|
|
178
178
|
(a, u, y) => a.toString().replace(`{${y}}`, u.toString()),
|
|
179
179
|
i
|
|
180
180
|
).toString();
|
|
181
|
-
}), Le(je, "get", (t =
|
|
181
|
+
}), Le(je, "get", (t = dr.MissingTranslationKey, ...r) => et.getTranslation(t, ...r));
|
|
182
182
|
var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
183
183
|
function In(e) {
|
|
184
184
|
if (e.__esModule)
|
|
@@ -207,7 +207,7 @@ function In(e) {
|
|
|
207
207
|
});
|
|
208
208
|
}), r;
|
|
209
209
|
}
|
|
210
|
-
var
|
|
210
|
+
var me = {}, q = {};
|
|
211
211
|
q.fromCallback = function(e) {
|
|
212
212
|
return Object.defineProperty(function(...t) {
|
|
213
213
|
if (typeof t[t.length - 1] == "function")
|
|
@@ -250,47 +250,47 @@ if (typeof process.chdir == "function") {
|
|
|
250
250
|
}
|
|
251
251
|
var Mn = Rn;
|
|
252
252
|
function Rn(e) {
|
|
253
|
-
oe.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./) && t(e), e.lutimes || r(e), e.chown = o(e.chown), e.fchown = o(e.fchown), e.lchown = o(e.lchown), e.chmod = n(e.chmod), e.fchmod = n(e.fchmod), e.lchmod = n(e.lchmod), e.chownSync = a(e.chownSync), e.fchownSync = a(e.fchownSync), e.lchownSync = a(e.lchownSync), e.chmodSync = i(e.chmodSync), e.fchmodSync = i(e.fchmodSync), e.lchmodSync = i(e.lchmodSync), e.stat = u(e.stat), e.fstat = u(e.fstat), e.lstat = u(e.lstat), e.statSync = y(e.statSync), e.fstatSync = y(e.fstatSync), e.lstatSync = y(e.lstatSync), e.chmod && !e.lchmod && (e.lchmod = function(f,
|
|
254
|
-
|
|
253
|
+
oe.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./) && t(e), e.lutimes || r(e), e.chown = o(e.chown), e.fchown = o(e.fchown), e.lchown = o(e.lchown), e.chmod = n(e.chmod), e.fchmod = n(e.fchmod), e.lchmod = n(e.lchmod), e.chownSync = a(e.chownSync), e.fchownSync = a(e.fchownSync), e.lchownSync = a(e.lchownSync), e.chmodSync = i(e.chmodSync), e.fchmodSync = i(e.fchmodSync), e.lchmodSync = i(e.lchmodSync), e.stat = u(e.stat), e.fstat = u(e.fstat), e.lstat = u(e.lstat), e.statSync = y(e.statSync), e.fstatSync = y(e.fstatSync), e.lstatSync = y(e.lstatSync), e.chmod && !e.lchmod && (e.lchmod = function(f, m, d) {
|
|
254
|
+
d && process.nextTick(d);
|
|
255
255
|
}, e.lchmodSync = function() {
|
|
256
|
-
}), e.chown && !e.lchown && (e.lchown = function(f,
|
|
256
|
+
}), e.chown && !e.lchown && (e.lchown = function(f, m, d, h) {
|
|
257
257
|
h && process.nextTick(h);
|
|
258
258
|
}, e.lchownSync = function() {
|
|
259
259
|
}), _n === "win32" && (e.rename = typeof e.rename != "function" ? e.rename : function(f) {
|
|
260
|
-
function d
|
|
260
|
+
function m(d, h, g) {
|
|
261
261
|
var $ = Date.now(), F = 0;
|
|
262
|
-
f(
|
|
263
|
-
if (
|
|
262
|
+
f(d, h, function I(W) {
|
|
263
|
+
if (W && (W.code === "EACCES" || W.code === "EPERM" || W.code === "EBUSY") && Date.now() - $ < 6e4) {
|
|
264
264
|
setTimeout(function() {
|
|
265
265
|
e.stat(h, function(G, te) {
|
|
266
|
-
G && G.code === "ENOENT" ? f(
|
|
266
|
+
G && G.code === "ENOENT" ? f(d, h, I) : g(W);
|
|
267
267
|
});
|
|
268
268
|
}, F), F < 100 && (F += 10);
|
|
269
269
|
return;
|
|
270
270
|
}
|
|
271
|
-
g && g(
|
|
271
|
+
g && g(W);
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
|
-
return Object.setPrototypeOf && Object.setPrototypeOf(
|
|
274
|
+
return Object.setPrototypeOf && Object.setPrototypeOf(m, f), m;
|
|
275
275
|
}(e.rename)), e.read = typeof e.read != "function" ? e.read : function(f) {
|
|
276
|
-
function d
|
|
277
|
-
var
|
|
276
|
+
function m(d, h, g, $, F, I) {
|
|
277
|
+
var W;
|
|
278
278
|
if (I && typeof I == "function") {
|
|
279
279
|
var G = 0;
|
|
280
|
-
|
|
280
|
+
W = function(te, ie, he) {
|
|
281
281
|
if (te && te.code === "EAGAIN" && G < 10)
|
|
282
|
-
return G++, f.call(e,
|
|
282
|
+
return G++, f.call(e, d, h, g, $, F, W);
|
|
283
283
|
I.apply(this, arguments);
|
|
284
284
|
};
|
|
285
285
|
}
|
|
286
|
-
return f.call(e,
|
|
286
|
+
return f.call(e, d, h, g, $, F, W);
|
|
287
287
|
}
|
|
288
|
-
return Object.setPrototypeOf && Object.setPrototypeOf(
|
|
288
|
+
return Object.setPrototypeOf && Object.setPrototypeOf(m, f), m;
|
|
289
289
|
}(e.read), e.readSync = typeof e.readSync != "function" ? e.readSync : function(f) {
|
|
290
|
-
return function(
|
|
290
|
+
return function(m, d, h, g, $) {
|
|
291
291
|
for (var F = 0; ; )
|
|
292
292
|
try {
|
|
293
|
-
return f.call(e,
|
|
293
|
+
return f.call(e, m, d, h, g, $);
|
|
294
294
|
} catch (I) {
|
|
295
295
|
if (I.code === "EAGAIN" && F < 10) {
|
|
296
296
|
F++;
|
|
@@ -301,27 +301,27 @@ function Rn(e) {
|
|
|
301
301
|
};
|
|
302
302
|
}(e.readSync);
|
|
303
303
|
function t(f) {
|
|
304
|
-
f.lchmod = function(
|
|
304
|
+
f.lchmod = function(m, d, h) {
|
|
305
305
|
f.open(
|
|
306
|
-
d,
|
|
307
|
-
oe.O_WRONLY | oe.O_SYMLINK,
|
|
308
306
|
m,
|
|
307
|
+
oe.O_WRONLY | oe.O_SYMLINK,
|
|
308
|
+
d,
|
|
309
309
|
function(g, $) {
|
|
310
310
|
if (g) {
|
|
311
311
|
h && h(g);
|
|
312
312
|
return;
|
|
313
313
|
}
|
|
314
|
-
f.fchmod($,
|
|
314
|
+
f.fchmod($, d, function(F) {
|
|
315
315
|
f.close($, function(I) {
|
|
316
316
|
h && h(F || I);
|
|
317
317
|
});
|
|
318
318
|
});
|
|
319
319
|
}
|
|
320
320
|
);
|
|
321
|
-
}, f.lchmodSync = function(
|
|
322
|
-
var h = f.openSync(
|
|
321
|
+
}, f.lchmodSync = function(m, d) {
|
|
322
|
+
var h = f.openSync(m, oe.O_WRONLY | oe.O_SYMLINK, d), g = !0, $;
|
|
323
323
|
try {
|
|
324
|
-
$ = f.fchmodSync(h,
|
|
324
|
+
$ = f.fchmodSync(h, d), g = !1;
|
|
325
325
|
} finally {
|
|
326
326
|
if (g)
|
|
327
327
|
try {
|
|
@@ -335,22 +335,22 @@ function Rn(e) {
|
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
337
|
function r(f) {
|
|
338
|
-
oe.hasOwnProperty("O_SYMLINK") && f.futimes ? (f.lutimes = function(
|
|
339
|
-
f.open(
|
|
338
|
+
oe.hasOwnProperty("O_SYMLINK") && f.futimes ? (f.lutimes = function(m, d, h, g) {
|
|
339
|
+
f.open(m, oe.O_SYMLINK, function($, F) {
|
|
340
340
|
if ($) {
|
|
341
341
|
g && g($);
|
|
342
342
|
return;
|
|
343
343
|
}
|
|
344
|
-
f.futimes(F,
|
|
345
|
-
f.close(F, function(
|
|
346
|
-
g && g(I ||
|
|
344
|
+
f.futimes(F, d, h, function(I) {
|
|
345
|
+
f.close(F, function(W) {
|
|
346
|
+
g && g(I || W);
|
|
347
347
|
});
|
|
348
348
|
});
|
|
349
349
|
});
|
|
350
|
-
}, f.lutimesSync = function(
|
|
351
|
-
var g = f.openSync(
|
|
350
|
+
}, f.lutimesSync = function(m, d, h) {
|
|
351
|
+
var g = f.openSync(m, oe.O_SYMLINK), $, F = !0;
|
|
352
352
|
try {
|
|
353
|
-
$ = f.futimesSync(g,
|
|
353
|
+
$ = f.futimesSync(g, d, h), F = !1;
|
|
354
354
|
} finally {
|
|
355
355
|
if (F)
|
|
356
356
|
try {
|
|
@@ -361,22 +361,22 @@ function Rn(e) {
|
|
|
361
361
|
f.closeSync(g);
|
|
362
362
|
}
|
|
363
363
|
return $;
|
|
364
|
-
}) : f.futimes && (f.lutimes = function(
|
|
364
|
+
}) : f.futimes && (f.lutimes = function(m, d, h, g) {
|
|
365
365
|
g && process.nextTick(g);
|
|
366
366
|
}, f.lutimesSync = function() {
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
369
|
function n(f) {
|
|
370
|
-
return f && function(
|
|
371
|
-
return f.call(e,
|
|
370
|
+
return f && function(m, d, h) {
|
|
371
|
+
return f.call(e, m, d, function(g) {
|
|
372
372
|
S(g) && (g = null), h && h.apply(this, arguments);
|
|
373
373
|
});
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
376
|
function i(f) {
|
|
377
|
-
return f && function(
|
|
377
|
+
return f && function(m, d) {
|
|
378
378
|
try {
|
|
379
|
-
return f.call(e,
|
|
379
|
+
return f.call(e, m, d);
|
|
380
380
|
} catch (h) {
|
|
381
381
|
if (!S(h))
|
|
382
382
|
throw h;
|
|
@@ -384,16 +384,16 @@ function Rn(e) {
|
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
386
|
function o(f) {
|
|
387
|
-
return f && function(
|
|
388
|
-
return f.call(e,
|
|
387
|
+
return f && function(m, d, h, g) {
|
|
388
|
+
return f.call(e, m, d, h, function($) {
|
|
389
389
|
S($) && ($ = null), g && g.apply(this, arguments);
|
|
390
390
|
});
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
393
|
function a(f) {
|
|
394
|
-
return f && function(
|
|
394
|
+
return f && function(m, d, h) {
|
|
395
395
|
try {
|
|
396
|
-
return f.call(e,
|
|
396
|
+
return f.call(e, m, d, h);
|
|
397
397
|
} catch (g) {
|
|
398
398
|
if (!S(g))
|
|
399
399
|
throw g;
|
|
@@ -401,28 +401,28 @@ function Rn(e) {
|
|
|
401
401
|
};
|
|
402
402
|
}
|
|
403
403
|
function u(f) {
|
|
404
|
-
return f && function(
|
|
405
|
-
typeof
|
|
404
|
+
return f && function(m, d, h) {
|
|
405
|
+
typeof d == "function" && (h = d, d = null);
|
|
406
406
|
function g($, F) {
|
|
407
407
|
F && (F.uid < 0 && (F.uid += 4294967296), F.gid < 0 && (F.gid += 4294967296)), h && h.apply(this, arguments);
|
|
408
408
|
}
|
|
409
|
-
return
|
|
409
|
+
return d ? f.call(e, m, d, g) : f.call(e, m, g);
|
|
410
410
|
};
|
|
411
411
|
}
|
|
412
412
|
function y(f) {
|
|
413
|
-
return f && function(
|
|
414
|
-
var h =
|
|
413
|
+
return f && function(m, d) {
|
|
414
|
+
var h = d ? f.call(e, m, d) : f.call(e, m);
|
|
415
415
|
return h && (h.uid < 0 && (h.uid += 4294967296), h.gid < 0 && (h.gid += 4294967296)), h;
|
|
416
416
|
};
|
|
417
417
|
}
|
|
418
418
|
function S(f) {
|
|
419
419
|
if (!f || f.code === "ENOSYS")
|
|
420
420
|
return !0;
|
|
421
|
-
var
|
|
422
|
-
return !!(
|
|
421
|
+
var m = !process.getuid || process.getuid() !== 0;
|
|
422
|
+
return !!(m && (f.code === "EINVAL" || f.code === "EPERM"));
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
var Ht = It.Stream,
|
|
425
|
+
var Ht = It.Stream, Tn = Un;
|
|
426
426
|
function Un(e) {
|
|
427
427
|
return {
|
|
428
428
|
ReadStream: t,
|
|
@@ -455,12 +455,12 @@ function Un(e) {
|
|
|
455
455
|
});
|
|
456
456
|
return;
|
|
457
457
|
}
|
|
458
|
-
e.open(this.path, this.flags, this.mode, function(f,
|
|
458
|
+
e.open(this.path, this.flags, this.mode, function(f, m) {
|
|
459
459
|
if (f) {
|
|
460
460
|
o.emit("error", f), o.readable = !1;
|
|
461
461
|
return;
|
|
462
462
|
}
|
|
463
|
-
o.fd =
|
|
463
|
+
o.fd = m, o.emit("open", m), o._read();
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
466
|
function r(n, i) {
|
|
@@ -481,7 +481,7 @@ function Un(e) {
|
|
|
481
481
|
this.busy = !1, this._queue = [], this.fd === null && (this._open = e.open, this._queue.push([this._open, this.path, this.flags, this.mode, void 0]), this.flush());
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
var
|
|
484
|
+
var Wn = Gn, Ln = Object.getPrototypeOf || function(e) {
|
|
485
485
|
return e.__proto__;
|
|
486
486
|
};
|
|
487
487
|
function Gn(e) {
|
|
@@ -747,24 +747,24 @@ var ri = function e(t) {
|
|
|
747
747
|
throw new $e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
748
748
|
var n = ui(t), i = n.length > 0 ? n[0] : "", o = fi("%" + i + "%", r), a = o.name, u = o.value, y = !1, S = o.alias;
|
|
749
749
|
S && (i = S[0], ii(n, ni([0, 1], S)));
|
|
750
|
-
for (var f = 1,
|
|
751
|
-
var
|
|
750
|
+
for (var f = 1, m = !0; f < n.length; f += 1) {
|
|
751
|
+
var d = n[f], h = Ze(d, 0, 1), g = Ze(d, -1);
|
|
752
752
|
if ((h === '"' || h === "'" || h === "`" || g === '"' || g === "'" || g === "`") && h !== g)
|
|
753
753
|
throw new $e("property names with quotes must have matching quotes");
|
|
754
|
-
if ((
|
|
754
|
+
if ((d === "constructor" || !m) && (y = !0), i += "." + d, a = "%" + i + "%", Xe(ye, a))
|
|
755
755
|
u = ye[a];
|
|
756
756
|
else if (u != null) {
|
|
757
|
-
if (!(
|
|
757
|
+
if (!(d in u)) {
|
|
758
758
|
if (!r)
|
|
759
759
|
throw new Ae("base intrinsic for " + t + " exists, but the property is not available.");
|
|
760
760
|
return;
|
|
761
761
|
}
|
|
762
762
|
if (le && f + 1 >= n.length) {
|
|
763
|
-
var $ = le(u,
|
|
764
|
-
|
|
763
|
+
var $ = le(u, d);
|
|
764
|
+
m = !!$, m && "get" in $ && !("originalValue" in $.get) ? u = $.get : u = u[d];
|
|
765
765
|
} else
|
|
766
|
-
|
|
767
|
-
|
|
766
|
+
m = Xe(u, d), u = u[d];
|
|
767
|
+
m && !y && (ye[a] = u);
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
return u;
|
|
@@ -784,17 +784,17 @@ var ri = function e(t) {
|
|
|
784
784
|
} catch {
|
|
785
785
|
u = null;
|
|
786
786
|
}
|
|
787
|
-
e.exports = function(
|
|
788
|
-
var
|
|
787
|
+
e.exports = function(m) {
|
|
788
|
+
var d = o(t, i, arguments);
|
|
789
789
|
if (a && u) {
|
|
790
|
-
var h = a(
|
|
790
|
+
var h = a(d, "length");
|
|
791
791
|
h.configurable && u(
|
|
792
|
-
|
|
792
|
+
d,
|
|
793
793
|
"length",
|
|
794
|
-
{ value: 1 + y(0,
|
|
794
|
+
{ value: 1 + y(0, m.length - (arguments.length - 1)) }
|
|
795
795
|
);
|
|
796
796
|
}
|
|
797
|
-
return
|
|
797
|
+
return d;
|
|
798
798
|
};
|
|
799
799
|
var S = function() {
|
|
800
800
|
return o(t, n, arguments);
|
|
@@ -808,11 +808,11 @@ var vr = Bt, wr = bt, li = wr(vr("String.prototype.indexOf")), _t = function(t,
|
|
|
808
808
|
return yi && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : At(t) === "[object Arguments]";
|
|
809
809
|
}, br = function(t) {
|
|
810
810
|
return rt(t) ? !0 : t !== null && typeof t == "object" && typeof t.length == "number" && t.length >= 0 && At(t) !== "[object Array]" && At(t.callee) === "[object Function]";
|
|
811
|
-
},
|
|
811
|
+
}, mi = function() {
|
|
812
812
|
return rt(arguments);
|
|
813
813
|
}();
|
|
814
814
|
rt.isLegacyArguments = br;
|
|
815
|
-
var
|
|
815
|
+
var di = mi ? rt : br, hi = Object.prototype.toString, gi = Function.prototype.toString, Si = /^\s*(?:function)?\*/, Ar = tt(), st = Object.getPrototypeOf, vi = function() {
|
|
816
816
|
if (!Ar)
|
|
817
817
|
return !1;
|
|
818
818
|
try {
|
|
@@ -927,9 +927,9 @@ var Ii = be ? function(t) {
|
|
|
927
927
|
"Uint32Array",
|
|
928
928
|
"Uint8Array",
|
|
929
929
|
"Uint8ClampedArray"
|
|
930
|
-
],
|
|
930
|
+
], Ti = typeof globalThis > "u" ? Ee : globalThis, Pr = function() {
|
|
931
931
|
for (var t = [], r = 0; r < pt.length; r++)
|
|
932
|
-
typeof
|
|
932
|
+
typeof Ti[pt[r]] == "function" && (t[t.length] = pt[r]);
|
|
933
933
|
return t;
|
|
934
934
|
}, Ui = Bt, Ye = Ui("%Object.getOwnPropertyDescriptor%", !0);
|
|
935
935
|
if (Ye)
|
|
@@ -938,18 +938,18 @@ if (Ye)
|
|
|
938
938
|
} catch {
|
|
939
939
|
Ye = null;
|
|
940
940
|
}
|
|
941
|
-
var kr = Ye, Fr = $r,
|
|
941
|
+
var kr = Ye, Fr = $r, Wi = Pr, Mt = _t, Li = Mt("Object.prototype.toString"), jr = tt(), Qe = kr, Gi = typeof globalThis > "u" ? Ee : globalThis, Dr = Wi(), Ji = Mt("Array.prototype.indexOf", !0) || function(t, r) {
|
|
942
942
|
for (var n = 0; n < t.length; n += 1)
|
|
943
943
|
if (t[n] === r)
|
|
944
944
|
return n;
|
|
945
945
|
return -1;
|
|
946
|
-
}, Vi = Mt("String.prototype.slice"), Ir = {},
|
|
947
|
-
jr && Qe &&
|
|
946
|
+
}, Vi = Mt("String.prototype.slice"), Ir = {}, mt = Object.getPrototypeOf;
|
|
947
|
+
jr && Qe && mt && Fr(Dr, function(e) {
|
|
948
948
|
var t = new Gi[e]();
|
|
949
949
|
if (Symbol.toStringTag in t) {
|
|
950
|
-
var r =
|
|
950
|
+
var r = mt(t), n = Qe(r, Symbol.toStringTag);
|
|
951
951
|
if (!n) {
|
|
952
|
-
var i =
|
|
952
|
+
var i = mt(r);
|
|
953
953
|
n = Qe(i, Symbol.toStringTag);
|
|
954
954
|
}
|
|
955
955
|
Ir[e] = n.get;
|
|
@@ -972,15 +972,15 @@ var zi = function(t) {
|
|
|
972
972
|
return Ji(Dr, r) > -1;
|
|
973
973
|
}
|
|
974
974
|
return Qe ? zi(t) : !1;
|
|
975
|
-
}, Cr = $r, xi = Pr, Br = _t,
|
|
976
|
-
_r &&
|
|
975
|
+
}, Cr = $r, xi = Pr, Br = _t, dt = kr, qi = Br("Object.prototype.toString"), _r = tt(), Zt = typeof globalThis > "u" ? Ee : globalThis, Hi = xi(), Yi = Br("String.prototype.slice"), Mr = {}, ht = Object.getPrototypeOf;
|
|
976
|
+
_r && dt && ht && Cr(Hi, function(e) {
|
|
977
977
|
if (typeof Zt[e] == "function") {
|
|
978
978
|
var t = new Zt[e]();
|
|
979
979
|
if (Symbol.toStringTag in t) {
|
|
980
|
-
var r = ht(t), n =
|
|
980
|
+
var r = ht(t), n = dt(r, Symbol.toStringTag);
|
|
981
981
|
if (!n) {
|
|
982
982
|
var i = ht(r);
|
|
983
|
-
n =
|
|
983
|
+
n = dt(i, Symbol.toStringTag);
|
|
984
984
|
}
|
|
985
985
|
Mr[e] = n.get;
|
|
986
986
|
}
|
|
@@ -1000,13 +1000,13 @@ var Qi = function(t) {
|
|
|
1000
1000
|
return Xi(t) ? !_r || !(Symbol.toStringTag in t) ? Yi(qi(t), 8, -1) : Qi(t) : !1;
|
|
1001
1001
|
};
|
|
1002
1002
|
(function(e) {
|
|
1003
|
-
var t =
|
|
1003
|
+
var t = di, r = wi, n = Zi, i = Nr;
|
|
1004
1004
|
function o(l) {
|
|
1005
1005
|
return l.call.bind(l);
|
|
1006
1006
|
}
|
|
1007
|
-
var a = typeof BigInt < "u", u = typeof Symbol < "u", y = o(Object.prototype.toString), S = o(Number.prototype.valueOf), f = o(String.prototype.valueOf),
|
|
1007
|
+
var a = typeof BigInt < "u", u = typeof Symbol < "u", y = o(Object.prototype.toString), S = o(Number.prototype.valueOf), f = o(String.prototype.valueOf), m = o(Boolean.prototype.valueOf);
|
|
1008
1008
|
if (a)
|
|
1009
|
-
var
|
|
1009
|
+
var d = o(BigInt.prototype.valueOf);
|
|
1010
1010
|
if (u)
|
|
1011
1011
|
var h = o(Symbol.prototype.valueOf);
|
|
1012
1012
|
function g(l, En) {
|
|
@@ -1031,10 +1031,10 @@ var Qi = function(t) {
|
|
|
1031
1031
|
return n(l) === "Uint8Array";
|
|
1032
1032
|
}
|
|
1033
1033
|
e.isUint8Array = I;
|
|
1034
|
-
function
|
|
1034
|
+
function W(l) {
|
|
1035
1035
|
return n(l) === "Uint8ClampedArray";
|
|
1036
1036
|
}
|
|
1037
|
-
e.isUint8ClampedArray =
|
|
1037
|
+
e.isUint8ClampedArray = W;
|
|
1038
1038
|
function G(l) {
|
|
1039
1039
|
return n(l) === "Uint16Array";
|
|
1040
1040
|
}
|
|
@@ -1075,10 +1075,10 @@ var Qi = function(t) {
|
|
|
1075
1075
|
return y(l) === "[object Map]";
|
|
1076
1076
|
}
|
|
1077
1077
|
_.working = typeof Map < "u" && _(/* @__PURE__ */ new Map());
|
|
1078
|
-
function
|
|
1078
|
+
function L(l) {
|
|
1079
1079
|
return typeof Map > "u" ? !1 : _.working ? _(l) : l instanceof Map;
|
|
1080
1080
|
}
|
|
1081
|
-
e.isMap =
|
|
1081
|
+
e.isMap = L;
|
|
1082
1082
|
function M(l) {
|
|
1083
1083
|
return y(l) === "[object Set]";
|
|
1084
1084
|
}
|
|
@@ -1095,22 +1095,22 @@ var Qi = function(t) {
|
|
|
1095
1095
|
return typeof WeakMap > "u" ? !1 : C.working ? C(l) : l instanceof WeakMap;
|
|
1096
1096
|
}
|
|
1097
1097
|
e.isWeakMap = D;
|
|
1098
|
-
function
|
|
1098
|
+
function T(l) {
|
|
1099
1099
|
return y(l) === "[object WeakSet]";
|
|
1100
1100
|
}
|
|
1101
|
-
|
|
1101
|
+
T.working = typeof WeakSet < "u" && T(/* @__PURE__ */ new WeakSet());
|
|
1102
1102
|
function P(l) {
|
|
1103
|
-
return
|
|
1103
|
+
return T(l);
|
|
1104
1104
|
}
|
|
1105
1105
|
e.isWeakSet = P;
|
|
1106
1106
|
function fe(l) {
|
|
1107
1107
|
return y(l) === "[object ArrayBuffer]";
|
|
1108
1108
|
}
|
|
1109
1109
|
fe.working = typeof ArrayBuffer < "u" && fe(new ArrayBuffer());
|
|
1110
|
-
function
|
|
1110
|
+
function Te(l) {
|
|
1111
1111
|
return typeof ArrayBuffer > "u" ? !1 : fe.working ? fe(l) : l instanceof ArrayBuffer;
|
|
1112
1112
|
}
|
|
1113
|
-
e.isArrayBuffer =
|
|
1113
|
+
e.isArrayBuffer = Te;
|
|
1114
1114
|
function c(l) {
|
|
1115
1115
|
return y(l) === "[object DataView]";
|
|
1116
1116
|
}
|
|
@@ -1156,23 +1156,23 @@ var Qi = function(t) {
|
|
|
1156
1156
|
}
|
|
1157
1157
|
e.isStringObject = Ue;
|
|
1158
1158
|
function ge(l) {
|
|
1159
|
-
return g(l,
|
|
1159
|
+
return g(l, m);
|
|
1160
1160
|
}
|
|
1161
1161
|
e.isBooleanObject = ge;
|
|
1162
|
-
function
|
|
1163
|
-
return a && g(l,
|
|
1162
|
+
function We(l) {
|
|
1163
|
+
return a && g(l, d);
|
|
1164
1164
|
}
|
|
1165
|
-
e.isBigIntObject =
|
|
1165
|
+
e.isBigIntObject = We;
|
|
1166
1166
|
function zt(l) {
|
|
1167
1167
|
return u && g(l, h);
|
|
1168
1168
|
}
|
|
1169
1169
|
e.isSymbolObject = zt;
|
|
1170
1170
|
function An(l) {
|
|
1171
|
-
return se(l) || Ue(l) || ge(l) ||
|
|
1171
|
+
return se(l) || Ue(l) || ge(l) || We(l) || zt(l);
|
|
1172
1172
|
}
|
|
1173
1173
|
e.isBoxedPrimitive = An;
|
|
1174
1174
|
function On(l) {
|
|
1175
|
-
return typeof Uint8Array < "u" && (
|
|
1175
|
+
return typeof Uint8Array < "u" && (Te(l) || j(l));
|
|
1176
1176
|
}
|
|
1177
1177
|
e.isAnyArrayBuffer = On, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(l) {
|
|
1178
1178
|
Object.defineProperty(e, l, {
|
|
@@ -1242,7 +1242,7 @@ typeof Object.create == "function" ? Kt.exports = function(t, r) {
|
|
|
1242
1242
|
return k;
|
|
1243
1243
|
}
|
|
1244
1244
|
}), O = w[p]; p < j; O = w[++p])
|
|
1245
|
-
|
|
1245
|
+
W(O) || !v(O) ? B += " " + O : B += " " + a(O);
|
|
1246
1246
|
return B;
|
|
1247
1247
|
}, e.deprecate = function(c, s) {
|
|
1248
1248
|
if (typeof process < "u" && process.noDeprecation === !0)
|
|
@@ -1332,12 +1332,12 @@ typeof Object.create == "function" ? Kt.exports = function(t, r) {
|
|
|
1332
1332
|
var w = s.inspect(p, c);
|
|
1333
1333
|
return ie(w) || (w = f(c, w, p)), w;
|
|
1334
1334
|
}
|
|
1335
|
-
var j =
|
|
1335
|
+
var j = m(c, s);
|
|
1336
1336
|
if (j)
|
|
1337
1337
|
return j;
|
|
1338
1338
|
var B = Object.keys(s), O = S(B);
|
|
1339
1339
|
if (c.showHidden && (B = Object.getOwnPropertyNames(s)), b(s) && (B.indexOf("message") >= 0 || B.indexOf("description") >= 0))
|
|
1340
|
-
return
|
|
1340
|
+
return d(s);
|
|
1341
1341
|
if (B.length === 0) {
|
|
1342
1342
|
if (_(s)) {
|
|
1343
1343
|
var k = s.name ? ": " + s.name : "";
|
|
@@ -1348,24 +1348,24 @@ typeof Object.create == "function" ? Kt.exports = function(t, r) {
|
|
|
1348
1348
|
if (A(s))
|
|
1349
1349
|
return c.stylize(Date.prototype.toString.call(s), "date");
|
|
1350
1350
|
if (b(s))
|
|
1351
|
-
return
|
|
1351
|
+
return d(s);
|
|
1352
1352
|
}
|
|
1353
1353
|
var R = "", H = !1, se = ["{", "}"];
|
|
1354
1354
|
if (F(s) && (H = !0, se = ["[", "]"]), _(s)) {
|
|
1355
1355
|
var Ue = s.name ? ": " + s.name : "";
|
|
1356
1356
|
R = " [Function" + Ue + "]";
|
|
1357
1357
|
}
|
|
1358
|
-
if (K(s) && (R = " " + RegExp.prototype.toString.call(s)), A(s) && (R = " " + Date.prototype.toUTCString.call(s)), b(s) && (R = " " +
|
|
1358
|
+
if (K(s) && (R = " " + RegExp.prototype.toString.call(s)), A(s) && (R = " " + Date.prototype.toUTCString.call(s)), b(s) && (R = " " + d(s)), B.length === 0 && (!H || s.length == 0))
|
|
1359
1359
|
return se[0] + R + se[1];
|
|
1360
1360
|
if (p < 0)
|
|
1361
1361
|
return K(s) ? c.stylize(RegExp.prototype.toString.call(s), "regexp") : c.stylize("[Object]", "special");
|
|
1362
1362
|
c.seen.push(s);
|
|
1363
1363
|
var ge;
|
|
1364
|
-
return H ? ge = h(c, s, p, O, B) : ge = B.map(function(
|
|
1365
|
-
return g(c, s, p, O,
|
|
1364
|
+
return H ? ge = h(c, s, p, O, B) : ge = B.map(function(We) {
|
|
1365
|
+
return g(c, s, p, O, We, H);
|
|
1366
1366
|
}), c.seen.pop(), $(ge, R, se);
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function m(c, s) {
|
|
1369
1369
|
if (Z(s))
|
|
1370
1370
|
return c.stylize("undefined", "undefined");
|
|
1371
1371
|
if (ie(s)) {
|
|
@@ -1376,15 +1376,15 @@ typeof Object.create == "function" ? Kt.exports = function(t, r) {
|
|
|
1376
1376
|
return c.stylize("" + s, "number");
|
|
1377
1377
|
if (I(s))
|
|
1378
1378
|
return c.stylize("" + s, "boolean");
|
|
1379
|
-
if (
|
|
1379
|
+
if (W(s))
|
|
1380
1380
|
return c.stylize("null", "null");
|
|
1381
1381
|
}
|
|
1382
|
-
function
|
|
1382
|
+
function d(c) {
|
|
1383
1383
|
return "[" + Error.prototype.toString.call(c) + "]";
|
|
1384
1384
|
}
|
|
1385
1385
|
function h(c, s, p, w, j) {
|
|
1386
1386
|
for (var B = [], O = 0, k = s.length; O < k; ++O)
|
|
1387
|
-
|
|
1387
|
+
T(s, String(O)) ? B.push(g(
|
|
1388
1388
|
c,
|
|
1389
1389
|
s,
|
|
1390
1390
|
p,
|
|
@@ -1405,7 +1405,7 @@ typeof Object.create == "function" ? Kt.exports = function(t, r) {
|
|
|
1405
1405
|
}
|
|
1406
1406
|
function g(c, s, p, w, j, B) {
|
|
1407
1407
|
var O, k, R;
|
|
1408
|
-
if (R = Object.getOwnPropertyDescriptor(s, j) || { value: s[j] }, R.get ? R.set ? k = c.stylize("[Getter/Setter]", "special") : k = c.stylize("[Getter]", "special") : R.set && (k = c.stylize("[Setter]", "special")),
|
|
1408
|
+
if (R = Object.getOwnPropertyDescriptor(s, j) || { value: s[j] }, R.get ? R.set ? k = c.stylize("[Getter/Setter]", "special") : k = c.stylize("[Getter]", "special") : R.set && (k = c.stylize("[Setter]", "special")), T(w, j) || (O = "[" + j + "]"), k || (c.seen.indexOf(R.value) < 0 ? (W(p) ? k = f(c, R.value, null) : k = f(c, R.value, p - 1), k.indexOf(`
|
|
1409
1409
|
`) > -1 && (B ? k = k.split(`
|
|
1410
1410
|
`).map(function(H) {
|
|
1411
1411
|
return " " + H;
|
|
@@ -1440,10 +1440,10 @@ typeof Object.create == "function" ? Kt.exports = function(t, r) {
|
|
|
1440
1440
|
return typeof c == "boolean";
|
|
1441
1441
|
}
|
|
1442
1442
|
e.isBoolean = I;
|
|
1443
|
-
function
|
|
1443
|
+
function W(c) {
|
|
1444
1444
|
return c === null;
|
|
1445
1445
|
}
|
|
1446
|
-
e.isNull =
|
|
1446
|
+
e.isNull = W;
|
|
1447
1447
|
function G(c) {
|
|
1448
1448
|
return c == null;
|
|
1449
1449
|
}
|
|
@@ -1484,11 +1484,11 @@ typeof Object.create == "function" ? Kt.exports = function(t, r) {
|
|
|
1484
1484
|
return typeof c == "function";
|
|
1485
1485
|
}
|
|
1486
1486
|
e.isFunction = _;
|
|
1487
|
-
function
|
|
1487
|
+
function L(c) {
|
|
1488
1488
|
return c === null || typeof c == "boolean" || typeof c == "number" || typeof c == "string" || typeof c == "symbol" || // ES6 symbol
|
|
1489
1489
|
typeof c > "u";
|
|
1490
1490
|
}
|
|
1491
|
-
e.isPrimitive =
|
|
1491
|
+
e.isPrimitive = L, e.isBuffer = Ki;
|
|
1492
1492
|
function M(c) {
|
|
1493
1493
|
return Object.prototype.toString.call(c);
|
|
1494
1494
|
}
|
|
@@ -1510,7 +1510,7 @@ typeof Object.create == "function" ? Kt.exports = function(t, r) {
|
|
|
1510
1510
|
"Dec"
|
|
1511
1511
|
];
|
|
1512
1512
|
function D() {
|
|
1513
|
-
var c = new Date(), s = [
|
|
1513
|
+
var c = /* @__PURE__ */ new Date(), s = [
|
|
1514
1514
|
N(c.getHours()),
|
|
1515
1515
|
N(c.getMinutes()),
|
|
1516
1516
|
N(c.getSeconds())
|
|
@@ -1526,7 +1526,7 @@ typeof Object.create == "function" ? Kt.exports = function(t, r) {
|
|
|
1526
1526
|
c[p[w]] = s[p[w]];
|
|
1527
1527
|
return c;
|
|
1528
1528
|
};
|
|
1529
|
-
function
|
|
1529
|
+
function T(c, s) {
|
|
1530
1530
|
return Object.prototype.hasOwnProperty.call(c, s);
|
|
1531
1531
|
}
|
|
1532
1532
|
var P = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
@@ -1576,7 +1576,7 @@ typeof Object.create == "function" ? Kt.exports = function(t, r) {
|
|
|
1576
1576
|
}
|
|
1577
1577
|
return s(c);
|
|
1578
1578
|
}
|
|
1579
|
-
function
|
|
1579
|
+
function Te(c) {
|
|
1580
1580
|
if (typeof c != "function")
|
|
1581
1581
|
throw new TypeError('The "original" argument must be of type Function');
|
|
1582
1582
|
function s() {
|
|
@@ -1602,9 +1602,9 @@ typeof Object.create == "function" ? Kt.exports = function(t, r) {
|
|
|
1602
1602
|
t(c)
|
|
1603
1603
|
), s;
|
|
1604
1604
|
}
|
|
1605
|
-
e.callbackify =
|
|
1605
|
+
e.callbackify = Te;
|
|
1606
1606
|
})(Nt);
|
|
1607
|
-
var U =
|
|
1607
|
+
var U = mr, eo = Mn, to = Tn, ro = Wn, Ge = Nt, V, Ke;
|
|
1608
1608
|
typeof Symbol == "function" && typeof Symbol.for == "function" ? (V = Symbol.for("graceful-fs.queue"), Ke = Symbol.for("graceful-fs.previous")) : (V = "___graceful-fs.queue", Ke = "___graceful-fs.previous");
|
|
1609
1609
|
function no() {
|
|
1610
1610
|
}
|
|
@@ -1652,81 +1652,81 @@ function Rt(e) {
|
|
|
1652
1652
|
e.readFile = r;
|
|
1653
1653
|
function r(v, A, b) {
|
|
1654
1654
|
return typeof A == "function" && (b = A, A = null), _(v, A, b);
|
|
1655
|
-
function _(
|
|
1656
|
-
return t(
|
|
1657
|
-
D && (D.code === "EMFILE" || D.code === "ENFILE") ? ve([_, [
|
|
1655
|
+
function _(L, M, N, C) {
|
|
1656
|
+
return t(L, M, function(D) {
|
|
1657
|
+
D && (D.code === "EMFILE" || D.code === "ENFILE") ? ve([_, [L, M, N], D, C || Date.now(), Date.now()]) : typeof N == "function" && N.apply(this, arguments);
|
|
1658
1658
|
});
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
var n = e.writeFile;
|
|
1662
1662
|
e.writeFile = i;
|
|
1663
1663
|
function i(v, A, b, _) {
|
|
1664
|
-
return typeof b == "function" && (_ = b, b = null),
|
|
1665
|
-
function
|
|
1664
|
+
return typeof b == "function" && (_ = b, b = null), L(v, A, b, _);
|
|
1665
|
+
function L(M, N, C, D, T) {
|
|
1666
1666
|
return n(M, N, C, function(P) {
|
|
1667
|
-
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([
|
|
1667
|
+
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([L, [M, N, C, D], P, T || Date.now(), Date.now()]) : typeof D == "function" && D.apply(this, arguments);
|
|
1668
1668
|
});
|
|
1669
1669
|
}
|
|
1670
1670
|
}
|
|
1671
1671
|
var o = e.appendFile;
|
|
1672
1672
|
o && (e.appendFile = a);
|
|
1673
1673
|
function a(v, A, b, _) {
|
|
1674
|
-
return typeof b == "function" && (_ = b, b = null),
|
|
1675
|
-
function
|
|
1674
|
+
return typeof b == "function" && (_ = b, b = null), L(v, A, b, _);
|
|
1675
|
+
function L(M, N, C, D, T) {
|
|
1676
1676
|
return o(M, N, C, function(P) {
|
|
1677
|
-
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([
|
|
1677
|
+
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([L, [M, N, C, D], P, T || Date.now(), Date.now()]) : typeof D == "function" && D.apply(this, arguments);
|
|
1678
1678
|
});
|
|
1679
1679
|
}
|
|
1680
1680
|
}
|
|
1681
1681
|
var u = e.copyFile;
|
|
1682
1682
|
u && (e.copyFile = y);
|
|
1683
1683
|
function y(v, A, b, _) {
|
|
1684
|
-
return typeof b == "function" && (_ = b, b = 0),
|
|
1685
|
-
function
|
|
1684
|
+
return typeof b == "function" && (_ = b, b = 0), L(v, A, b, _);
|
|
1685
|
+
function L(M, N, C, D, T) {
|
|
1686
1686
|
return u(M, N, C, function(P) {
|
|
1687
|
-
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([
|
|
1687
|
+
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([L, [M, N, C, D], P, T || Date.now(), Date.now()]) : typeof D == "function" && D.apply(this, arguments);
|
|
1688
1688
|
});
|
|
1689
1689
|
}
|
|
1690
1690
|
}
|
|
1691
1691
|
var S = e.readdir;
|
|
1692
|
-
e.readdir =
|
|
1692
|
+
e.readdir = m;
|
|
1693
1693
|
var f = /^v[0-5]\./;
|
|
1694
|
-
function
|
|
1694
|
+
function m(v, A, b) {
|
|
1695
1695
|
typeof A == "function" && (b = A, A = null);
|
|
1696
|
-
var _ = f.test(process.version) ? function(N, C, D,
|
|
1697
|
-
return S(N,
|
|
1696
|
+
var _ = f.test(process.version) ? function(N, C, D, T) {
|
|
1697
|
+
return S(N, L(
|
|
1698
1698
|
N,
|
|
1699
1699
|
C,
|
|
1700
1700
|
D,
|
|
1701
|
-
|
|
1701
|
+
T
|
|
1702
1702
|
));
|
|
1703
|
-
} : function(N, C, D,
|
|
1704
|
-
return S(N, C,
|
|
1703
|
+
} : function(N, C, D, T) {
|
|
1704
|
+
return S(N, C, L(
|
|
1705
1705
|
N,
|
|
1706
1706
|
C,
|
|
1707
1707
|
D,
|
|
1708
|
-
|
|
1708
|
+
T
|
|
1709
1709
|
));
|
|
1710
1710
|
};
|
|
1711
1711
|
return _(v, A, b);
|
|
1712
|
-
function
|
|
1713
|
-
return function(
|
|
1714
|
-
|
|
1712
|
+
function L(M, N, C, D) {
|
|
1713
|
+
return function(T, P) {
|
|
1714
|
+
T && (T.code === "EMFILE" || T.code === "ENFILE") ? ve([
|
|
1715
1715
|
_,
|
|
1716
1716
|
[M, N, C],
|
|
1717
|
-
|
|
1717
|
+
T,
|
|
1718
1718
|
D || Date.now(),
|
|
1719
1719
|
Date.now()
|
|
1720
|
-
]) : (P && P.sort && P.sort(), typeof C == "function" && C.call(this,
|
|
1720
|
+
]) : (P && P.sort && P.sort(), typeof C == "function" && C.call(this, T, P));
|
|
1721
1721
|
};
|
|
1722
1722
|
}
|
|
1723
1723
|
}
|
|
1724
1724
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
1725
|
-
var
|
|
1726
|
-
I =
|
|
1725
|
+
var d = to(e);
|
|
1726
|
+
I = d.ReadStream, G = d.WriteStream;
|
|
1727
1727
|
}
|
|
1728
1728
|
var h = e.ReadStream;
|
|
1729
|
-
h && (I.prototype = Object.create(h.prototype), I.prototype.open =
|
|
1729
|
+
h && (I.prototype = Object.create(h.prototype), I.prototype.open = W);
|
|
1730
1730
|
var g = e.WriteStream;
|
|
1731
1731
|
g && (G.prototype = Object.create(g.prototype), G.prototype.open = te), Object.defineProperty(e, "ReadStream", {
|
|
1732
1732
|
get: function() {
|
|
@@ -1772,7 +1772,7 @@ function Rt(e) {
|
|
|
1772
1772
|
function I(v, A) {
|
|
1773
1773
|
return this instanceof I ? (h.apply(this, arguments), this) : I.apply(Object.create(I.prototype), arguments);
|
|
1774
1774
|
}
|
|
1775
|
-
function
|
|
1775
|
+
function W() {
|
|
1776
1776
|
var v = this;
|
|
1777
1777
|
K(v.path, v.flags, v.mode, function(A, b) {
|
|
1778
1778
|
A ? (v.autoClose && v.destroy(), v.emit("error", A)) : (v.fd = b, v.emit("open", b), v.read());
|
|
@@ -1796,25 +1796,25 @@ function Rt(e) {
|
|
|
1796
1796
|
var Z = e.open;
|
|
1797
1797
|
e.open = K;
|
|
1798
1798
|
function K(v, A, b, _) {
|
|
1799
|
-
return typeof b == "function" && (_ = b, b = null),
|
|
1800
|
-
function
|
|
1799
|
+
return typeof b == "function" && (_ = b, b = null), L(v, A, b, _);
|
|
1800
|
+
function L(M, N, C, D, T) {
|
|
1801
1801
|
return Z(M, N, C, function(P, fe) {
|
|
1802
|
-
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([
|
|
1802
|
+
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([L, [M, N, C, D], P, T || Date.now(), Date.now()]) : typeof D == "function" && D.apply(this, arguments);
|
|
1803
1803
|
});
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
1806
|
return e;
|
|
1807
1807
|
}
|
|
1808
1808
|
function ve(e) {
|
|
1809
|
-
pe("ENQUEUE", e[0].name, e[1]), U[V].push(e),
|
|
1809
|
+
pe("ENQUEUE", e[0].name, e[1]), U[V].push(e), Tt();
|
|
1810
1810
|
}
|
|
1811
1811
|
var Je;
|
|
1812
1812
|
function er() {
|
|
1813
1813
|
for (var e = Date.now(), t = 0; t < U[V].length; ++t)
|
|
1814
1814
|
U[V][t].length > 2 && (U[V][t][3] = e, U[V][t][4] = e);
|
|
1815
|
-
|
|
1815
|
+
Tt();
|
|
1816
1816
|
}
|
|
1817
|
-
function
|
|
1817
|
+
function Tt() {
|
|
1818
1818
|
if (clearTimeout(Je), Je = void 0, U[V].length !== 0) {
|
|
1819
1819
|
var e = U[V].shift(), t = e[0], r = e[1], n = e[2], i = e[3], o = e[4];
|
|
1820
1820
|
if (i === void 0)
|
|
@@ -1827,7 +1827,7 @@ function Wt() {
|
|
|
1827
1827
|
var u = Date.now() - o, y = Math.max(o - i, 1), S = Math.min(y * 1.2, 100);
|
|
1828
1828
|
u >= S ? (pe("RETRY", t.name, r), t.apply(null, r.concat([i]))) : U[V].push(e);
|
|
1829
1829
|
}
|
|
1830
|
-
Je === void 0 && (Je = setTimeout(
|
|
1830
|
+
Je === void 0 && (Je = setTimeout(Tt, 0));
|
|
1831
1831
|
}
|
|
1832
1832
|
}
|
|
1833
1833
|
(function(e) {
|
|
@@ -1872,35 +1872,35 @@ function Wt() {
|
|
|
1872
1872
|
}), e.exists = function(i, o) {
|
|
1873
1873
|
return typeof o == "function" ? r.exists(i, o) : new Promise((a) => r.exists(i, a));
|
|
1874
1874
|
}, e.read = function(i, o, a, u, y, S) {
|
|
1875
|
-
return typeof S == "function" ? r.read(i, o, a, u, y, S) : new Promise((f,
|
|
1876
|
-
r.read(i, o, a, u, y, (
|
|
1877
|
-
if (
|
|
1878
|
-
return d
|
|
1875
|
+
return typeof S == "function" ? r.read(i, o, a, u, y, S) : new Promise((f, m) => {
|
|
1876
|
+
r.read(i, o, a, u, y, (d, h, g) => {
|
|
1877
|
+
if (d)
|
|
1878
|
+
return m(d);
|
|
1879
1879
|
f({ bytesRead: h, buffer: g });
|
|
1880
1880
|
});
|
|
1881
1881
|
});
|
|
1882
1882
|
}, e.write = function(i, o, ...a) {
|
|
1883
1883
|
return typeof a[a.length - 1] == "function" ? r.write(i, o, ...a) : new Promise((u, y) => {
|
|
1884
|
-
r.write(i, o, ...a, (S, f,
|
|
1884
|
+
r.write(i, o, ...a, (S, f, m) => {
|
|
1885
1885
|
if (S)
|
|
1886
1886
|
return y(S);
|
|
1887
|
-
u({ bytesWritten: f, buffer:
|
|
1887
|
+
u({ bytesWritten: f, buffer: m });
|
|
1888
1888
|
});
|
|
1889
1889
|
});
|
|
1890
1890
|
}, e.readv = function(i, o, ...a) {
|
|
1891
1891
|
return typeof a[a.length - 1] == "function" ? r.readv(i, o, ...a) : new Promise((u, y) => {
|
|
1892
|
-
r.readv(i, o, ...a, (S, f,
|
|
1892
|
+
r.readv(i, o, ...a, (S, f, m) => {
|
|
1893
1893
|
if (S)
|
|
1894
1894
|
return y(S);
|
|
1895
|
-
u({ bytesRead: f, buffers:
|
|
1895
|
+
u({ bytesRead: f, buffers: m });
|
|
1896
1896
|
});
|
|
1897
1897
|
});
|
|
1898
1898
|
}, e.writev = function(i, o, ...a) {
|
|
1899
1899
|
return typeof a[a.length - 1] == "function" ? r.writev(i, o, ...a) : new Promise((u, y) => {
|
|
1900
|
-
r.writev(i, o, ...a, (S, f,
|
|
1900
|
+
r.writev(i, o, ...a, (S, f, m) => {
|
|
1901
1901
|
if (S)
|
|
1902
1902
|
return y(S);
|
|
1903
|
-
u({ bytesWritten: f, buffers:
|
|
1903
|
+
u({ bytesWritten: f, buffers: m });
|
|
1904
1904
|
});
|
|
1905
1905
|
});
|
|
1906
1906
|
}, typeof r.realpath.native == "function" ? e.realpath.native = t(r.realpath.native) : process.emitWarning(
|
|
@@ -1908,24 +1908,24 @@ function Wt() {
|
|
|
1908
1908
|
"Warning",
|
|
1909
1909
|
"fs-extra-WARN0003"
|
|
1910
1910
|
);
|
|
1911
|
-
})(
|
|
1912
|
-
var Ut = {},
|
|
1911
|
+
})(me);
|
|
1912
|
+
var Ut = {}, Tr = {};
|
|
1913
1913
|
const oo = X;
|
|
1914
|
-
|
|
1914
|
+
Tr.checkPath = function(t) {
|
|
1915
1915
|
if (process.platform === "win32" && /[<>:"|?*]/.test(t.replace(oo.parse(t).root, ""))) {
|
|
1916
1916
|
const n = new Error(`Path contains invalid characters: ${t}`);
|
|
1917
1917
|
throw n.code = "EINVAL", n;
|
|
1918
1918
|
}
|
|
1919
1919
|
};
|
|
1920
|
-
const Ur =
|
|
1920
|
+
const Ur = me, { checkPath: Wr } = Tr, Lr = (e) => {
|
|
1921
1921
|
const t = { mode: 511 };
|
|
1922
1922
|
return typeof e == "number" ? e : { ...t, ...e }.mode;
|
|
1923
1923
|
};
|
|
1924
|
-
Ut.makeDir = async (e, t) => (
|
|
1924
|
+
Ut.makeDir = async (e, t) => (Wr(e), Ur.mkdir(e, {
|
|
1925
1925
|
mode: Lr(t),
|
|
1926
1926
|
recursive: !0
|
|
1927
1927
|
}));
|
|
1928
|
-
Ut.makeDirSync = (e, t) => (
|
|
1928
|
+
Ut.makeDirSync = (e, t) => (Wr(e), Ur.mkdirSync(e, {
|
|
1929
1929
|
mode: Lr(t),
|
|
1930
1930
|
recursive: !0
|
|
1931
1931
|
}));
|
|
@@ -1939,11 +1939,11 @@ var ne = {
|
|
|
1939
1939
|
ensureDir: St,
|
|
1940
1940
|
ensureDirSync: gt
|
|
1941
1941
|
};
|
|
1942
|
-
const uo = q.fromPromise, Gr =
|
|
1942
|
+
const uo = q.fromPromise, Gr = me;
|
|
1943
1943
|
function fo(e) {
|
|
1944
1944
|
return Gr.access(e).then(() => !0).catch(() => !1);
|
|
1945
1945
|
}
|
|
1946
|
-
var
|
|
1946
|
+
var de = {
|
|
1947
1947
|
pathExists: uo(fo),
|
|
1948
1948
|
pathExistsSync: Gr.existsSync
|
|
1949
1949
|
};
|
|
@@ -1967,7 +1967,7 @@ var Jr = {
|
|
|
1967
1967
|
utimesMillis: so,
|
|
1968
1968
|
utimesMillisSync: lo
|
|
1969
1969
|
};
|
|
1970
|
-
const Pe =
|
|
1970
|
+
const Pe = me, J = X, yo = Nt;
|
|
1971
1971
|
function po(e, t, r) {
|
|
1972
1972
|
const n = r.dereference ? (i) => Pe.stat(i, { bigint: !0 }) : (i) => Pe.lstat(i, { bigint: !0 });
|
|
1973
1973
|
return Promise.all([
|
|
@@ -2006,7 +2006,7 @@ function ho(e, t, r, n, i) {
|
|
|
2006
2006
|
if (!u.isDirectory() && y.isDirectory())
|
|
2007
2007
|
return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`));
|
|
2008
2008
|
}
|
|
2009
|
-
return u.isDirectory() &&
|
|
2009
|
+
return u.isDirectory() && Wt(e, t) ? i(new Error(nt(e, t, r))) : i(null, { srcStat: u, destStat: y });
|
|
2010
2010
|
});
|
|
2011
2011
|
}
|
|
2012
2012
|
function go(e, t, r, n) {
|
|
@@ -2023,7 +2023,7 @@ function go(e, t, r, n) {
|
|
|
2023
2023
|
if (!i.isDirectory() && o.isDirectory())
|
|
2024
2024
|
throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`);
|
|
2025
2025
|
}
|
|
2026
|
-
if (i.isDirectory() &&
|
|
2026
|
+
if (i.isDirectory() && Wt(e, t))
|
|
2027
2027
|
throw new Error(nt(e, t, r));
|
|
2028
2028
|
return { srcStat: i, destStat: o };
|
|
2029
2029
|
}
|
|
@@ -2052,7 +2052,7 @@ function zr(e, t, r, n) {
|
|
|
2052
2052
|
function Re(e, t) {
|
|
2053
2053
|
return t.ino && t.dev && t.ino === e.ino && t.dev === e.dev;
|
|
2054
2054
|
}
|
|
2055
|
-
function
|
|
2055
|
+
function Wt(e, t) {
|
|
2056
2056
|
const r = J.resolve(e).split(J.sep).filter((i) => i), n = J.resolve(t).split(J.sep).filter((i) => i);
|
|
2057
2057
|
return r.reduce((i, o, a) => i && n[a] === o, !0);
|
|
2058
2058
|
}
|
|
@@ -2064,10 +2064,10 @@ var Fe = {
|
|
|
2064
2064
|
checkPathsSync: go,
|
|
2065
2065
|
checkParentPaths: Vr,
|
|
2066
2066
|
checkParentPathsSync: zr,
|
|
2067
|
-
isSrcSubdir:
|
|
2067
|
+
isSrcSubdir: Wt,
|
|
2068
2068
|
areIdentical: Re
|
|
2069
2069
|
};
|
|
2070
|
-
const Y = Q, Ne = X, So = ne.mkdirs, vo =
|
|
2070
|
+
const Y = Q, Ne = X, So = ne.mkdirs, vo = de.pathExists, wo = Jr.utimesMillis, Ce = Fe;
|
|
2071
2071
|
function bo(e, t, r, n) {
|
|
2072
2072
|
typeof r == "function" && !n ? (n = r, r = {}) : typeof r == "function" && (r = { filter: r }), n = n || function() {
|
|
2073
2073
|
}, r = r || {}, r.clobber = "clobber" in r ? !!r.clobber : !0, r.overwrite = "overwrite" in r ? !!r.overwrite : r.clobber, r.preserveTimestamps && process.arch === "ia32" && process.emitWarning(
|
|
@@ -2165,11 +2165,11 @@ function Io(e, t, r, n, i, o) {
|
|
|
2165
2165
|
return o(y);
|
|
2166
2166
|
if (!S)
|
|
2167
2167
|
return Ft(e, r, n, i, o);
|
|
2168
|
-
Ce.checkPaths(a, u, "copy", i, (f,
|
|
2168
|
+
Ce.checkPaths(a, u, "copy", i, (f, m) => {
|
|
2169
2169
|
if (f)
|
|
2170
2170
|
return o(f);
|
|
2171
|
-
const { destStat:
|
|
2172
|
-
kt(
|
|
2171
|
+
const { destStat: d } = m;
|
|
2172
|
+
kt(d, a, u, i, (h) => h ? o(h) : Ft(e, r, n, i, o));
|
|
2173
2173
|
});
|
|
2174
2174
|
});
|
|
2175
2175
|
}
|
|
@@ -2207,12 +2207,12 @@ function Yr(e, t, r, n) {
|
|
|
2207
2207
|
if (o.isDirectory())
|
|
2208
2208
|
return Vo(o, e, t, r, n);
|
|
2209
2209
|
if (o.isFile() || o.isCharacterDevice() || o.isBlockDevice())
|
|
2210
|
-
return
|
|
2210
|
+
return To(o, e, t, r, n);
|
|
2211
2211
|
if (o.isSymbolicLink())
|
|
2212
2212
|
return qo(e, t, r, n);
|
|
2213
2213
|
throw o.isSocket() ? new Error(`Cannot copy a socket file: ${t}`) : o.isFIFO() ? new Error(`Cannot copy a FIFO pipe: ${t}`) : new Error(`Unknown file: ${t}`);
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2215
|
+
function To(e, t, r, n, i) {
|
|
2216
2216
|
return t ? Uo(e, r, n, i) : Qr(e, r, n, i);
|
|
2217
2217
|
}
|
|
2218
2218
|
function Uo(e, t, r, n) {
|
|
@@ -2222,9 +2222,9 @@ function Uo(e, t, r, n) {
|
|
|
2222
2222
|
throw new Error(`'${r}' already exists`);
|
|
2223
2223
|
}
|
|
2224
2224
|
function Qr(e, t, r, n) {
|
|
2225
|
-
return z.copyFileSync(t, r), n.preserveTimestamps &&
|
|
2225
|
+
return z.copyFileSync(t, r), n.preserveTimestamps && Wo(e.mode, t, r), Lt(r, e.mode);
|
|
2226
2226
|
}
|
|
2227
|
-
function
|
|
2227
|
+
function Wo(e, t, r) {
|
|
2228
2228
|
return Lo(e) && Go(r, e), Jo(t, r);
|
|
2229
2229
|
}
|
|
2230
2230
|
function Lo(e) {
|
|
@@ -2295,7 +2295,7 @@ var ot = {
|
|
|
2295
2295
|
remove: Xo(Zo),
|
|
2296
2296
|
removeSync: Ko
|
|
2297
2297
|
};
|
|
2298
|
-
const ea = q.fromPromise, Kr =
|
|
2298
|
+
const ea = q.fromPromise, Kr = me, en = X, tn = ne, rn = ot, rr = ea(async function(t) {
|
|
2299
2299
|
let r;
|
|
2300
2300
|
try {
|
|
2301
2301
|
r = await Kr.readdir(t);
|
|
@@ -2371,7 +2371,7 @@ var oa = {
|
|
|
2371
2371
|
createFile: ra(na),
|
|
2372
2372
|
createFileSync: ia
|
|
2373
2373
|
};
|
|
2374
|
-
const aa = q.fromCallback, an = X, ae = Q, cn = ne, ca =
|
|
2374
|
+
const aa = q.fromCallback, an = X, ae = Q, cn = ne, ca = de.pathExists, { areIdentical: un } = Fe;
|
|
2375
2375
|
function ua(e, t, r) {
|
|
2376
2376
|
function n(i, o) {
|
|
2377
2377
|
ae.link(i, o, (a) => {
|
|
@@ -2392,9 +2392,9 @@ function ua(e, t, r) {
|
|
|
2392
2392
|
return r(S);
|
|
2393
2393
|
if (f)
|
|
2394
2394
|
return n(e, t);
|
|
2395
|
-
cn.mkdirs(y, (
|
|
2396
|
-
if (
|
|
2397
|
-
return r(
|
|
2395
|
+
cn.mkdirs(y, (m) => {
|
|
2396
|
+
if (m)
|
|
2397
|
+
return r(m);
|
|
2398
2398
|
n(e, t);
|
|
2399
2399
|
});
|
|
2400
2400
|
});
|
|
@@ -2421,7 +2421,7 @@ var sa = {
|
|
|
2421
2421
|
createLink: aa(ua),
|
|
2422
2422
|
createLinkSync: fa
|
|
2423
2423
|
};
|
|
2424
|
-
const ue = X, De = Q, la =
|
|
2424
|
+
const ue = X, De = Q, la = de.pathExists;
|
|
2425
2425
|
function ya(e, t, r) {
|
|
2426
2426
|
if (ue.isAbsolute(e))
|
|
2427
2427
|
return De.lstat(e, (n) => n ? (n.message = n.message.replace("lstat", "ensureSymlink"), r(n)) : r(null, {
|
|
@@ -2463,12 +2463,12 @@ function pa(e, t) {
|
|
|
2463
2463
|
};
|
|
2464
2464
|
}
|
|
2465
2465
|
}
|
|
2466
|
-
var
|
|
2466
|
+
var ma = {
|
|
2467
2467
|
symlinkPaths: ya,
|
|
2468
2468
|
symlinkPathsSync: pa
|
|
2469
2469
|
};
|
|
2470
2470
|
const fn = Q;
|
|
2471
|
-
function
|
|
2471
|
+
function da(e, t, r) {
|
|
2472
2472
|
if (r = typeof t == "function" ? t : r, t = typeof t == "function" ? !1 : t, t)
|
|
2473
2473
|
return r(null, t);
|
|
2474
2474
|
fn.lstat(e, (n, i) => {
|
|
@@ -2489,17 +2489,17 @@ function ha(e, t) {
|
|
|
2489
2489
|
return r && r.isDirectory() ? "dir" : "file";
|
|
2490
2490
|
}
|
|
2491
2491
|
var ga = {
|
|
2492
|
-
symlinkType:
|
|
2492
|
+
symlinkType: da,
|
|
2493
2493
|
symlinkTypeSync: ha
|
|
2494
2494
|
};
|
|
2495
|
-
const Sa = q.fromCallback, sn = X, ee =
|
|
2495
|
+
const Sa = q.fromCallback, sn = X, ee = me, ln = ne, va = ln.mkdirs, wa = ln.mkdirsSync, yn = ma, ba = yn.symlinkPaths, Aa = yn.symlinkPathsSync, pn = ga, Oa = pn.symlinkType, Ea = pn.symlinkTypeSync, $a = de.pathExists, { areIdentical: mn } = Fe;
|
|
2496
2496
|
function Pa(e, t, r, n) {
|
|
2497
2497
|
n = typeof r == "function" ? r : n, r = typeof r == "function" ? !1 : r, ee.lstat(t, (i, o) => {
|
|
2498
2498
|
!i && o.isSymbolicLink() ? Promise.all([
|
|
2499
2499
|
ee.stat(e),
|
|
2500
2500
|
ee.stat(t)
|
|
2501
2501
|
]).then(([a, u]) => {
|
|
2502
|
-
if (
|
|
2502
|
+
if (mn(a, u))
|
|
2503
2503
|
return n(null);
|
|
2504
2504
|
ir(e, t, r, n);
|
|
2505
2505
|
}) : ir(e, t, r, n);
|
|
@@ -2518,9 +2518,9 @@ function ir(e, t, r, n) {
|
|
|
2518
2518
|
return n(S);
|
|
2519
2519
|
if (f)
|
|
2520
2520
|
return ee.symlink(e, t, u, n);
|
|
2521
|
-
va(y, (
|
|
2522
|
-
if (
|
|
2523
|
-
return n(
|
|
2521
|
+
va(y, (m) => {
|
|
2522
|
+
if (m)
|
|
2523
|
+
return n(m);
|
|
2524
2524
|
ee.symlink(e, t, u, n);
|
|
2525
2525
|
});
|
|
2526
2526
|
});
|
|
@@ -2535,7 +2535,7 @@ function ka(e, t, r) {
|
|
|
2535
2535
|
}
|
|
2536
2536
|
if (n && n.isSymbolicLink()) {
|
|
2537
2537
|
const u = ee.statSync(e), y = ee.statSync(t);
|
|
2538
|
-
if (
|
|
2538
|
+
if (mn(u, y))
|
|
2539
2539
|
return;
|
|
2540
2540
|
}
|
|
2541
2541
|
const i = Aa(e, t);
|
|
@@ -2578,9 +2578,9 @@ let ke;
|
|
|
2578
2578
|
try {
|
|
2579
2579
|
ke = Q;
|
|
2580
2580
|
} catch {
|
|
2581
|
-
ke =
|
|
2581
|
+
ke = mr;
|
|
2582
2582
|
}
|
|
2583
|
-
const at = q, { stringify:
|
|
2583
|
+
const at = q, { stringify: dn, stripBom: hn } = Jt;
|
|
2584
2584
|
async function Na(e, t = {}) {
|
|
2585
2585
|
typeof t == "string" && (t = { encoding: t });
|
|
2586
2586
|
const r = t.fs || ke, n = "throws" in t ? t.throws : !0;
|
|
@@ -2610,30 +2610,30 @@ function Ba(e, t = {}) {
|
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
2612
|
async function _a(e, t, r = {}) {
|
|
2613
|
-
const n = r.fs || ke, i =
|
|
2613
|
+
const n = r.fs || ke, i = dn(t, r);
|
|
2614
2614
|
await at.fromCallback(n.writeFile)(e, i, r);
|
|
2615
2615
|
}
|
|
2616
2616
|
const Ma = at.fromPromise(_a);
|
|
2617
2617
|
function Ra(e, t, r = {}) {
|
|
2618
|
-
const n = r.fs || ke, i =
|
|
2618
|
+
const n = r.fs || ke, i = dn(t, r);
|
|
2619
2619
|
return n.writeFileSync(e, i, r);
|
|
2620
2620
|
}
|
|
2621
|
-
const
|
|
2621
|
+
const Ta = {
|
|
2622
2622
|
readFile: Ca,
|
|
2623
2623
|
readFileSync: Ba,
|
|
2624
2624
|
writeFile: Ma,
|
|
2625
2625
|
writeFileSync: Ra
|
|
2626
2626
|
};
|
|
2627
|
-
var Ua =
|
|
2627
|
+
var Ua = Ta;
|
|
2628
2628
|
const Ve = Ua;
|
|
2629
|
-
var
|
|
2629
|
+
var Wa = {
|
|
2630
2630
|
// jsonfile exports
|
|
2631
2631
|
readJson: Ve.readFile,
|
|
2632
2632
|
readJsonSync: Ve.readFileSync,
|
|
2633
2633
|
writeJson: Ve.writeFile,
|
|
2634
2634
|
writeJsonSync: Ve.writeFileSync
|
|
2635
2635
|
};
|
|
2636
|
-
const La = q.fromCallback, Ie = Q, gn = X, Sn = ne, Ga =
|
|
2636
|
+
const La = q.fromCallback, Ie = Q, gn = X, Sn = ne, Ga = de.pathExists;
|
|
2637
2637
|
function Ja(e, t, r, n) {
|
|
2638
2638
|
typeof r == "function" && (n = r, r = "utf8");
|
|
2639
2639
|
const i = gn.dirname(e);
|
|
@@ -2671,7 +2671,7 @@ function Xa(e, t, r) {
|
|
|
2671
2671
|
Qa(e, n, r);
|
|
2672
2672
|
}
|
|
2673
2673
|
var Za = Xa;
|
|
2674
|
-
const Ka = q.fromPromise, x =
|
|
2674
|
+
const Ka = q.fromPromise, x = Wa;
|
|
2675
2675
|
x.outputJson = Ka(Ha);
|
|
2676
2676
|
x.outputJsonSync = Za;
|
|
2677
2677
|
x.outputJSON = x.outputJson;
|
|
@@ -2681,7 +2681,7 @@ x.writeJSONSync = x.writeJsonSync;
|
|
|
2681
2681
|
x.readJSON = x.readJson;
|
|
2682
2682
|
x.readJSONSync = x.readJsonSync;
|
|
2683
2683
|
var ec = x;
|
|
2684
|
-
const tc = Q, jt = X, rc = Gt.copy, vn = ot.remove, nc = ne.mkdirp, ic =
|
|
2684
|
+
const tc = Q, jt = X, rc = Gt.copy, vn = ot.remove, nc = ne.mkdirp, ic = de.pathExists, lr = Fe;
|
|
2685
2685
|
function oc(e, t, r, n) {
|
|
2686
2686
|
typeof r == "function" && (n = r, r = {}), r = r || {};
|
|
2687
2687
|
const i = r.overwrite || r.clobber || !1;
|
|
@@ -2715,7 +2715,8 @@ function vt(e, t, r, n) {
|
|
|
2715
2715
|
function cc(e, t, r, n) {
|
|
2716
2716
|
rc(e, t, {
|
|
2717
2717
|
overwrite: r,
|
|
2718
|
-
errorOnExist: !0
|
|
2718
|
+
errorOnExist: !0,
|
|
2719
|
+
preserveTimestamps: !0
|
|
2719
2720
|
}, (o) => o ? n(o) : vn(e, n));
|
|
2720
2721
|
}
|
|
2721
2722
|
var uc = oc;
|
|
@@ -2744,23 +2745,24 @@ function wt(e, t, r) {
|
|
|
2744
2745
|
} catch (n) {
|
|
2745
2746
|
if (n.code !== "EXDEV")
|
|
2746
2747
|
throw n;
|
|
2747
|
-
return
|
|
2748
|
+
return mc(e, t, r);
|
|
2748
2749
|
}
|
|
2749
2750
|
}
|
|
2750
|
-
function
|
|
2751
|
+
function mc(e, t, r) {
|
|
2751
2752
|
return fc(e, t, {
|
|
2752
2753
|
overwrite: r,
|
|
2753
|
-
errorOnExist: !0
|
|
2754
|
+
errorOnExist: !0,
|
|
2755
|
+
preserveTimestamps: !0
|
|
2754
2756
|
}), bn(e);
|
|
2755
2757
|
}
|
|
2756
|
-
var
|
|
2758
|
+
var dc = lc;
|
|
2757
2759
|
const hc = q.fromCallback;
|
|
2758
2760
|
var gc = {
|
|
2759
2761
|
move: hc(uc),
|
|
2760
|
-
moveSync:
|
|
2762
|
+
moveSync: dc
|
|
2761
2763
|
}, Sc = {
|
|
2762
2764
|
// Export promiseified graceful-fs:
|
|
2763
|
-
...
|
|
2765
|
+
...me,
|
|
2764
2766
|
// Export extra methods:
|
|
2765
2767
|
...Gt,
|
|
2766
2768
|
...ta,
|
|
@@ -2769,7 +2771,7 @@ var gc = {
|
|
|
2769
2771
|
...ne,
|
|
2770
2772
|
...gc,
|
|
2771
2773
|
...Vt,
|
|
2772
|
-
...
|
|
2774
|
+
...de,
|
|
2773
2775
|
...ot
|
|
2774
2776
|
};
|
|
2775
2777
|
const ze = Sc;
|
|
@@ -2782,13 +2784,13 @@ function Ec(e, t = !1) {
|
|
|
2782
2784
|
const i = Object.keys(n).filter((f) => f.endsWith(".css"));
|
|
2783
2785
|
if (!i.length)
|
|
2784
2786
|
return;
|
|
2785
|
-
const o = xt(process.cwd(), `${e}-temp.js`), a = xt(process.cwd(), `${e}.js`), u = i.reduce((f,
|
|
2787
|
+
const o = xt(process.cwd(), `${e}-temp.js`), a = xt(process.cwd(), `${e}.js`), u = i.reduce((f, m) => {
|
|
2786
2788
|
if (t) {
|
|
2787
|
-
const
|
|
2789
|
+
const d = kn(a), h = Fn(d, m);
|
|
2788
2790
|
return `${f}import "${h.replaceAll("\\", "/")}";
|
|
2789
2791
|
`;
|
|
2790
2792
|
}
|
|
2791
|
-
return `${f}import "./${
|
|
2793
|
+
return `${f}import "./${m}";
|
|
2792
2794
|
`;
|
|
2793
2795
|
}, ""), y = ze.createWriteStream(o);
|
|
2794
2796
|
y.write(u, "utf8");
|
|
@@ -2799,7 +2801,7 @@ function Ec(e, t = !1) {
|
|
|
2799
2801
|
}
|
|
2800
2802
|
export {
|
|
2801
2803
|
je as Texts,
|
|
2802
|
-
|
|
2804
|
+
dr as TranslationsKey,
|
|
2803
2805
|
Ec as viteCssImportPlugin
|
|
2804
2806
|
};
|
|
2805
2807
|
//# sourceMappingURL=index.js.map
|