@telia-ace/alliance-utilities 1.0.4 → 1.0.5-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/CHANGELOG.md +6 -0
- package/dist/index.js +2223 -988
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,319 +1,438 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { pipeline as
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
[
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
[
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
[
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
[
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
[
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
var En = Object.defineProperty;
|
|
2
|
+
var $n = (e, t, r) => t in e ? En(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
|
+
var Le = (e, t, r) => ($n(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
+
import pr from "fs";
|
|
5
|
+
import Q from "path";
|
|
6
|
+
import { pipeline as Pn } from "stream/promises";
|
|
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))(dr || {});
|
|
8
|
+
const Fn = {
|
|
9
|
+
[
|
|
10
|
+
0
|
|
11
|
+
/* Done */
|
|
12
|
+
]: "Done",
|
|
13
|
+
[
|
|
14
|
+
1
|
|
15
|
+
/* NoWorkspaceName */
|
|
16
|
+
]: "No workspace name provided!",
|
|
17
|
+
[
|
|
18
|
+
2
|
|
19
|
+
/* NoAppName */
|
|
20
|
+
]: "No app name provided!",
|
|
21
|
+
[
|
|
22
|
+
3
|
|
23
|
+
/* AlreadyExists */
|
|
24
|
+
]: "File or directory '{0}' already exists!",
|
|
25
|
+
[
|
|
26
|
+
4
|
|
27
|
+
/* NoAppOrWorkspaceInCurrentDirectory */
|
|
28
|
+
]: "Could not find any app entry file at '{0}' or any apps under the alliance.apps property in '{1}'!",
|
|
29
|
+
[
|
|
30
|
+
5
|
|
31
|
+
/* UnrecognizedCommand */
|
|
32
|
+
]: "Unrecognized command(s) {0}!",
|
|
33
|
+
[
|
|
34
|
+
6
|
|
35
|
+
/* WorkspaceCreated */
|
|
36
|
+
]: "Workspace was created at path '{0}'!",
|
|
37
|
+
[
|
|
38
|
+
7
|
|
39
|
+
/* AppCreated */
|
|
40
|
+
]: "App was created at path '{0}'!",
|
|
41
|
+
[
|
|
42
|
+
8
|
|
43
|
+
/* ServedStopped */
|
|
44
|
+
]: "Server stopped.",
|
|
45
|
+
[
|
|
46
|
+
12
|
|
47
|
+
/* CreateWorkspaceDescription */
|
|
48
|
+
]: "Creates an Alliance Workspace in the current directory.",
|
|
49
|
+
[
|
|
50
|
+
13
|
|
51
|
+
/* CreateAppDescription */
|
|
52
|
+
]: "Creates an Alliance Application in the current directory or Alliance Workspace.",
|
|
53
|
+
[
|
|
54
|
+
14
|
|
55
|
+
/* ServeDescription */
|
|
56
|
+
]: "Starts a Alliance development server using the current directory package.json.",
|
|
57
|
+
[
|
|
58
|
+
15
|
|
59
|
+
/* BuildDescription */
|
|
60
|
+
]: "Builds an Alliance Application using Vite.",
|
|
61
|
+
[
|
|
62
|
+
9
|
|
63
|
+
/* WorkspaceNameInquiry */
|
|
64
|
+
]: "Enter the name of your workspace",
|
|
65
|
+
[
|
|
66
|
+
11
|
|
67
|
+
/* ServerModeInquiry */
|
|
68
|
+
]: "Which server mode do you want to use?",
|
|
69
|
+
[
|
|
70
|
+
10
|
|
71
|
+
/* AppNameInquiry */
|
|
72
|
+
]: "Enter the name of your app",
|
|
73
|
+
[
|
|
74
|
+
16
|
|
75
|
+
/* MissingTranslationKey */
|
|
76
|
+
]: "No translation key provided!",
|
|
77
|
+
[
|
|
78
|
+
17
|
|
79
|
+
/* OperationCancelled */
|
|
80
|
+
]: "Operation cancelled.",
|
|
81
|
+
[
|
|
82
|
+
18
|
|
83
|
+
/* StopServerInstructions */
|
|
84
|
+
]: `Press CTRL + C to stop the server.
|
|
28
85
|
`,
|
|
29
|
-
[
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
[
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
[
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
[
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
[
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
86
|
+
[
|
|
87
|
+
19
|
|
88
|
+
/* TemplateLanguageInquiry */
|
|
89
|
+
]: "Select preferred language",
|
|
90
|
+
[
|
|
91
|
+
20
|
|
92
|
+
/* TemplateFrameworkInquiry */
|
|
93
|
+
]: "Select preferred framework template",
|
|
94
|
+
[
|
|
95
|
+
21
|
|
96
|
+
/* DevServerPortDescription */
|
|
97
|
+
]: "The port that the dev server should use.",
|
|
98
|
+
[
|
|
99
|
+
22
|
|
100
|
+
/* ApiGatewayPortDescription */
|
|
101
|
+
]: "The port that the api gateway should use.",
|
|
102
|
+
[
|
|
103
|
+
23
|
|
104
|
+
/* ApiServerModeDescription */
|
|
105
|
+
]: "Which components to start. [server|server-proxy|server-gateway].",
|
|
106
|
+
[
|
|
107
|
+
24
|
|
108
|
+
/* DevServerOpenDescription */
|
|
109
|
+
]: "Whether the dev server should automatically open in your browser or not.",
|
|
110
|
+
[
|
|
111
|
+
25
|
|
112
|
+
/* BuildWatchDescription */
|
|
113
|
+
]: "Whether the build should start watching and rebuild when files change or not.",
|
|
114
|
+
[
|
|
115
|
+
26
|
|
116
|
+
/* CouldNotStartGatewayInDocker */
|
|
117
|
+
]: "Could not start Docker container with Alliance gateway.",
|
|
118
|
+
[
|
|
119
|
+
27
|
|
120
|
+
/* PullingLatestImage */
|
|
121
|
+
]: "Pulling latest image...",
|
|
122
|
+
[
|
|
123
|
+
28
|
|
124
|
+
/* AppEntryBuildOptionDescription */
|
|
125
|
+
]: "The entry file for the app (./src/app).",
|
|
126
|
+
[
|
|
127
|
+
29
|
|
128
|
+
/* ManifestEntryBuildOptionDescription */
|
|
129
|
+
]: "The entry file for the app manifest (./src/manifest).",
|
|
130
|
+
[
|
|
131
|
+
30
|
|
132
|
+
/* BuildModeOptionDescription */
|
|
133
|
+
]: "Which mode to use when building the app. [production|development]",
|
|
134
|
+
[
|
|
135
|
+
31
|
|
136
|
+
/* FetchPackageVersionError */
|
|
137
|
+
]: "Failed to fetch package info from the NPM registry for package '${0}'!",
|
|
138
|
+
[
|
|
139
|
+
32
|
|
140
|
+
/* DockerNotStartedOrInstalled */
|
|
141
|
+
]: "Docker not started or not installed.",
|
|
142
|
+
[
|
|
143
|
+
33
|
|
144
|
+
/* EnableDevAuthentication */
|
|
145
|
+
]: "Whether user authentication should be enabled or not.",
|
|
146
|
+
[
|
|
147
|
+
34
|
|
148
|
+
/* NoAppNameFound */
|
|
149
|
+
]: "Could not find app name in manifest.",
|
|
150
|
+
[
|
|
151
|
+
35
|
|
152
|
+
/* AppConfigurationPath */
|
|
153
|
+
]: "The path to the app configuration file.",
|
|
154
|
+
[
|
|
155
|
+
38
|
|
156
|
+
/* ServerMode */
|
|
157
|
+
]: "Server",
|
|
158
|
+
[
|
|
159
|
+
37
|
|
160
|
+
/* ServerProxyMode */
|
|
161
|
+
]: "Server with proxy",
|
|
162
|
+
[
|
|
163
|
+
36
|
|
164
|
+
/* ServerGatewayMode */
|
|
165
|
+
]: "Server with gateway"
|
|
166
|
+
}, et = class {
|
|
50
167
|
};
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
-
const
|
|
54
|
-
if (!
|
|
168
|
+
let je = et;
|
|
169
|
+
Le(je, "getTranslations", () => Fn), Le(je, "getTranslation", (t, ...r) => {
|
|
170
|
+
const i = et.getTranslations()[t];
|
|
171
|
+
if (!i)
|
|
55
172
|
throw new Error(`Could not find text with given key '${t}'.`);
|
|
56
|
-
return
|
|
57
|
-
(
|
|
58
|
-
|
|
173
|
+
return r.reduce(
|
|
174
|
+
(a, u, y) => a.toString().replace(`{${y}}`, u.toString()),
|
|
175
|
+
i
|
|
59
176
|
).toString();
|
|
60
|
-
}),
|
|
61
|
-
var
|
|
62
|
-
function
|
|
177
|
+
}), Le(je, "get", (t = dr.MissingTranslationKey, ...r) => et.getTranslation(t, ...r));
|
|
178
|
+
var Ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
179
|
+
function kn(e) {
|
|
180
|
+
if (e.__esModule)
|
|
181
|
+
return e;
|
|
63
182
|
var t = e.default;
|
|
64
183
|
if (typeof t == "function") {
|
|
65
|
-
var
|
|
66
|
-
if (this instanceof
|
|
67
|
-
var
|
|
68
|
-
|
|
69
|
-
var o = Function.bind.apply(t,
|
|
184
|
+
var r = function n() {
|
|
185
|
+
if (this instanceof n) {
|
|
186
|
+
var i = [null];
|
|
187
|
+
i.push.apply(i, arguments);
|
|
188
|
+
var o = Function.bind.apply(t, i);
|
|
70
189
|
return new o();
|
|
71
190
|
}
|
|
72
191
|
return t.apply(this, arguments);
|
|
73
192
|
};
|
|
74
|
-
|
|
193
|
+
r.prototype = t.prototype;
|
|
75
194
|
} else
|
|
76
|
-
|
|
77
|
-
return Object.defineProperty(
|
|
78
|
-
var
|
|
79
|
-
Object.defineProperty(n, i
|
|
195
|
+
r = {};
|
|
196
|
+
return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(e).forEach(function(n) {
|
|
197
|
+
var i = Object.getOwnPropertyDescriptor(e, n);
|
|
198
|
+
Object.defineProperty(r, n, i.get ? i : {
|
|
80
199
|
enumerable: !0,
|
|
81
200
|
get: function() {
|
|
82
|
-
return e[
|
|
201
|
+
return e[n];
|
|
83
202
|
}
|
|
84
203
|
});
|
|
85
|
-
}),
|
|
204
|
+
}), r;
|
|
86
205
|
}
|
|
87
|
-
var
|
|
88
|
-
|
|
206
|
+
var de = {}, q = {};
|
|
207
|
+
q.fromCallback = function(e) {
|
|
89
208
|
return Object.defineProperty(function(...t) {
|
|
90
209
|
if (typeof t[t.length - 1] == "function")
|
|
91
210
|
e.apply(this, t);
|
|
92
211
|
else
|
|
93
|
-
return new Promise((
|
|
212
|
+
return new Promise((r, n) => {
|
|
94
213
|
e.call(
|
|
95
214
|
this,
|
|
96
215
|
...t,
|
|
97
|
-
(
|
|
216
|
+
(i, o) => i != null ? n(i) : r(o)
|
|
98
217
|
);
|
|
99
218
|
});
|
|
100
219
|
}, "name", { value: e.name });
|
|
101
220
|
};
|
|
102
|
-
|
|
221
|
+
q.fromPromise = function(e) {
|
|
103
222
|
return Object.defineProperty(function(...t) {
|
|
104
|
-
const
|
|
105
|
-
if (typeof
|
|
223
|
+
const r = t[t.length - 1];
|
|
224
|
+
if (typeof r != "function")
|
|
106
225
|
return e.apply(this, t);
|
|
107
|
-
e.apply(this, t.slice(0, -1)).then((
|
|
226
|
+
e.apply(this, t.slice(0, -1)).then((n) => r(null, n), r);
|
|
108
227
|
}, "name", { value: e.name });
|
|
109
228
|
};
|
|
110
|
-
const
|
|
229
|
+
const jn = {}, Dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
111
230
|
__proto__: null,
|
|
112
|
-
default:
|
|
113
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
114
|
-
var
|
|
231
|
+
default: jn
|
|
232
|
+
}, Symbol.toStringTag, { value: "Module" })), It = /* @__PURE__ */ kn(Dn);
|
|
233
|
+
var oe = It, In = process.cwd, xe = null, Nn = process.env.GRACEFUL_FS_PLATFORM || process.platform;
|
|
115
234
|
process.cwd = function() {
|
|
116
|
-
return
|
|
235
|
+
return xe || (xe = In.call(process)), xe;
|
|
117
236
|
};
|
|
118
237
|
try {
|
|
119
238
|
process.cwd();
|
|
120
239
|
} catch {
|
|
121
240
|
}
|
|
122
241
|
if (typeof process.chdir == "function") {
|
|
123
|
-
var
|
|
242
|
+
var xt = process.chdir;
|
|
124
243
|
process.chdir = function(e) {
|
|
125
|
-
|
|
126
|
-
}, Object.setPrototypeOf && Object.setPrototypeOf(process.chdir,
|
|
244
|
+
xe = null, xt.call(process, e);
|
|
245
|
+
}, Object.setPrototypeOf && Object.setPrototypeOf(process.chdir, xt);
|
|
127
246
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
130
|
-
|
|
247
|
+
var Cn = Bn;
|
|
248
|
+
function Bn(e) {
|
|
249
|
+
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, d, m) {
|
|
131
250
|
m && process.nextTick(m);
|
|
132
251
|
}, e.lchmodSync = function() {
|
|
133
|
-
}), e.chown && !e.lchown && (e.lchown = function(
|
|
134
|
-
|
|
252
|
+
}), e.chown && !e.lchown && (e.lchown = function(f, d, m, h) {
|
|
253
|
+
h && process.nextTick(h);
|
|
135
254
|
}, e.lchownSync = function() {
|
|
136
|
-
}),
|
|
137
|
-
function
|
|
138
|
-
var $ = Date.now(),
|
|
139
|
-
|
|
140
|
-
if (
|
|
255
|
+
}), Nn === "win32" && (e.rename = typeof e.rename != "function" ? e.rename : function(f) {
|
|
256
|
+
function d(m, h, S) {
|
|
257
|
+
var $ = Date.now(), k = 0;
|
|
258
|
+
f(m, h, function I(L) {
|
|
259
|
+
if (L && (L.code === "EACCES" || L.code === "EPERM") && Date.now() - $ < 6e4) {
|
|
141
260
|
setTimeout(function() {
|
|
142
|
-
e.stat(
|
|
143
|
-
|
|
261
|
+
e.stat(h, function(G, te) {
|
|
262
|
+
G && G.code === "ENOENT" ? f(m, h, I) : S(L);
|
|
144
263
|
});
|
|
145
|
-
},
|
|
264
|
+
}, k), k < 100 && (k += 10);
|
|
146
265
|
return;
|
|
147
266
|
}
|
|
148
|
-
|
|
267
|
+
S && S(L);
|
|
149
268
|
});
|
|
150
269
|
}
|
|
151
|
-
return Object.setPrototypeOf && Object.setPrototypeOf(
|
|
152
|
-
}(e.rename)), e.read = typeof e.read != "function" ? e.read : function(
|
|
153
|
-
function
|
|
154
|
-
var
|
|
155
|
-
if (
|
|
156
|
-
var
|
|
157
|
-
|
|
158
|
-
if (
|
|
159
|
-
return
|
|
160
|
-
|
|
270
|
+
return Object.setPrototypeOf && Object.setPrototypeOf(d, f), d;
|
|
271
|
+
}(e.rename)), e.read = typeof e.read != "function" ? e.read : function(f) {
|
|
272
|
+
function d(m, h, S, $, k, I) {
|
|
273
|
+
var L;
|
|
274
|
+
if (I && typeof I == "function") {
|
|
275
|
+
var G = 0;
|
|
276
|
+
L = function(te, ie, he) {
|
|
277
|
+
if (te && te.code === "EAGAIN" && G < 10)
|
|
278
|
+
return G++, f.call(e, m, h, S, $, k, L);
|
|
279
|
+
I.apply(this, arguments);
|
|
161
280
|
};
|
|
162
281
|
}
|
|
163
|
-
return
|
|
282
|
+
return f.call(e, m, h, S, $, k, L);
|
|
164
283
|
}
|
|
165
|
-
return Object.setPrototypeOf && Object.setPrototypeOf(
|
|
166
|
-
}(e.read), e.readSync = typeof e.readSync != "function" ? e.readSync : function(
|
|
167
|
-
return function(
|
|
168
|
-
for (var
|
|
284
|
+
return Object.setPrototypeOf && Object.setPrototypeOf(d, f), d;
|
|
285
|
+
}(e.read), e.readSync = typeof e.readSync != "function" ? e.readSync : function(f) {
|
|
286
|
+
return function(d, m, h, S, $) {
|
|
287
|
+
for (var k = 0; ; )
|
|
169
288
|
try {
|
|
170
|
-
return
|
|
171
|
-
} catch (
|
|
172
|
-
if (
|
|
173
|
-
|
|
289
|
+
return f.call(e, d, m, h, S, $);
|
|
290
|
+
} catch (I) {
|
|
291
|
+
if (I.code === "EAGAIN" && k < 10) {
|
|
292
|
+
k++;
|
|
174
293
|
continue;
|
|
175
294
|
}
|
|
176
|
-
throw
|
|
295
|
+
throw I;
|
|
177
296
|
}
|
|
178
297
|
};
|
|
179
298
|
}(e.readSync);
|
|
180
|
-
function t(
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
299
|
+
function t(f) {
|
|
300
|
+
f.lchmod = function(d, m, h) {
|
|
301
|
+
f.open(
|
|
302
|
+
d,
|
|
303
|
+
oe.O_WRONLY | oe.O_SYMLINK,
|
|
185
304
|
m,
|
|
186
|
-
function(
|
|
187
|
-
if (
|
|
188
|
-
|
|
305
|
+
function(S, $) {
|
|
306
|
+
if (S) {
|
|
307
|
+
h && h(S);
|
|
189
308
|
return;
|
|
190
309
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
310
|
+
f.fchmod($, m, function(k) {
|
|
311
|
+
f.close($, function(I) {
|
|
312
|
+
h && h(k || I);
|
|
194
313
|
});
|
|
195
314
|
});
|
|
196
315
|
}
|
|
197
316
|
);
|
|
198
|
-
},
|
|
199
|
-
var
|
|
317
|
+
}, f.lchmodSync = function(d, m) {
|
|
318
|
+
var h = f.openSync(d, oe.O_WRONLY | oe.O_SYMLINK, m), S = !0, $;
|
|
200
319
|
try {
|
|
201
|
-
$ =
|
|
320
|
+
$ = f.fchmodSync(h, m), S = !1;
|
|
202
321
|
} finally {
|
|
203
|
-
if (
|
|
322
|
+
if (S)
|
|
204
323
|
try {
|
|
205
|
-
|
|
324
|
+
f.closeSync(h);
|
|
206
325
|
} catch {
|
|
207
326
|
}
|
|
208
327
|
else
|
|
209
|
-
|
|
328
|
+
f.closeSync(h);
|
|
210
329
|
}
|
|
211
330
|
return $;
|
|
212
331
|
};
|
|
213
332
|
}
|
|
214
|
-
function
|
|
215
|
-
|
|
216
|
-
|
|
333
|
+
function r(f) {
|
|
334
|
+
oe.hasOwnProperty("O_SYMLINK") && f.futimes ? (f.lutimes = function(d, m, h, S) {
|
|
335
|
+
f.open(d, oe.O_SYMLINK, function($, k) {
|
|
217
336
|
if ($) {
|
|
218
|
-
|
|
337
|
+
S && S($);
|
|
219
338
|
return;
|
|
220
339
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
340
|
+
f.futimes(k, m, h, function(I) {
|
|
341
|
+
f.close(k, function(L) {
|
|
342
|
+
S && S(I || L);
|
|
224
343
|
});
|
|
225
344
|
});
|
|
226
345
|
});
|
|
227
|
-
},
|
|
228
|
-
var
|
|
346
|
+
}, f.lutimesSync = function(d, m, h) {
|
|
347
|
+
var S = f.openSync(d, oe.O_SYMLINK), $, k = !0;
|
|
229
348
|
try {
|
|
230
|
-
$ =
|
|
349
|
+
$ = f.futimesSync(S, m, h), k = !1;
|
|
231
350
|
} finally {
|
|
232
|
-
if (
|
|
351
|
+
if (k)
|
|
233
352
|
try {
|
|
234
|
-
|
|
353
|
+
f.closeSync(S);
|
|
235
354
|
} catch {
|
|
236
355
|
}
|
|
237
356
|
else
|
|
238
|
-
|
|
357
|
+
f.closeSync(S);
|
|
239
358
|
}
|
|
240
359
|
return $;
|
|
241
|
-
}) :
|
|
242
|
-
|
|
243
|
-
},
|
|
360
|
+
}) : f.futimes && (f.lutimes = function(d, m, h, S) {
|
|
361
|
+
S && process.nextTick(S);
|
|
362
|
+
}, f.lutimesSync = function() {
|
|
244
363
|
});
|
|
245
364
|
}
|
|
246
|
-
function
|
|
247
|
-
return
|
|
248
|
-
return
|
|
249
|
-
|
|
365
|
+
function n(f) {
|
|
366
|
+
return f && function(d, m, h) {
|
|
367
|
+
return f.call(e, d, m, function(S) {
|
|
368
|
+
g(S) && (S = null), h && h.apply(this, arguments);
|
|
250
369
|
});
|
|
251
370
|
};
|
|
252
371
|
}
|
|
253
|
-
function
|
|
254
|
-
return
|
|
372
|
+
function i(f) {
|
|
373
|
+
return f && function(d, m) {
|
|
255
374
|
try {
|
|
256
|
-
return
|
|
257
|
-
} catch (
|
|
258
|
-
if (!
|
|
259
|
-
throw
|
|
375
|
+
return f.call(e, d, m);
|
|
376
|
+
} catch (h) {
|
|
377
|
+
if (!g(h))
|
|
378
|
+
throw h;
|
|
260
379
|
}
|
|
261
380
|
};
|
|
262
381
|
}
|
|
263
|
-
function o(
|
|
264
|
-
return
|
|
265
|
-
return
|
|
266
|
-
|
|
382
|
+
function o(f) {
|
|
383
|
+
return f && function(d, m, h, S) {
|
|
384
|
+
return f.call(e, d, m, h, function($) {
|
|
385
|
+
g($) && ($ = null), S && S.apply(this, arguments);
|
|
267
386
|
});
|
|
268
387
|
};
|
|
269
388
|
}
|
|
270
|
-
function
|
|
271
|
-
return
|
|
389
|
+
function a(f) {
|
|
390
|
+
return f && function(d, m, h) {
|
|
272
391
|
try {
|
|
273
|
-
return
|
|
274
|
-
} catch (
|
|
275
|
-
if (!
|
|
276
|
-
throw
|
|
392
|
+
return f.call(e, d, m, h);
|
|
393
|
+
} catch (S) {
|
|
394
|
+
if (!g(S))
|
|
395
|
+
throw S;
|
|
277
396
|
}
|
|
278
397
|
};
|
|
279
398
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
282
|
-
typeof m == "function" && (
|
|
283
|
-
function
|
|
284
|
-
|
|
399
|
+
function u(f) {
|
|
400
|
+
return f && function(d, m, h) {
|
|
401
|
+
typeof m == "function" && (h = m, m = null);
|
|
402
|
+
function S($, k) {
|
|
403
|
+
k && (k.uid < 0 && (k.uid += 4294967296), k.gid < 0 && (k.gid += 4294967296)), h && h.apply(this, arguments);
|
|
285
404
|
}
|
|
286
|
-
return m ?
|
|
405
|
+
return m ? f.call(e, d, m, S) : f.call(e, d, S);
|
|
287
406
|
};
|
|
288
407
|
}
|
|
289
|
-
function f
|
|
290
|
-
return
|
|
291
|
-
var
|
|
292
|
-
return
|
|
408
|
+
function y(f) {
|
|
409
|
+
return f && function(d, m) {
|
|
410
|
+
var h = m ? f.call(e, d, m) : f.call(e, d);
|
|
411
|
+
return h && (h.uid < 0 && (h.uid += 4294967296), h.gid < 0 && (h.gid += 4294967296)), h;
|
|
293
412
|
};
|
|
294
413
|
}
|
|
295
|
-
function
|
|
296
|
-
if (!
|
|
414
|
+
function g(f) {
|
|
415
|
+
if (!f || f.code === "ENOSYS")
|
|
297
416
|
return !0;
|
|
298
|
-
var
|
|
299
|
-
return !!(
|
|
417
|
+
var d = !process.getuid || process.getuid() !== 0;
|
|
418
|
+
return !!(d && (f.code === "EINVAL" || f.code === "EPERM"));
|
|
300
419
|
}
|
|
301
420
|
}
|
|
302
|
-
var
|
|
303
|
-
function
|
|
421
|
+
var qt = It.Stream, _n = Mn;
|
|
422
|
+
function Mn(e) {
|
|
304
423
|
return {
|
|
305
424
|
ReadStream: t,
|
|
306
|
-
WriteStream:
|
|
425
|
+
WriteStream: r
|
|
307
426
|
};
|
|
308
|
-
function t(
|
|
427
|
+
function t(n, i) {
|
|
309
428
|
if (!(this instanceof t))
|
|
310
|
-
return new t(
|
|
311
|
-
|
|
429
|
+
return new t(n, i);
|
|
430
|
+
qt.call(this);
|
|
312
431
|
var o = this;
|
|
313
|
-
this.path =
|
|
314
|
-
for (var
|
|
315
|
-
var
|
|
316
|
-
this[
|
|
432
|
+
this.path = n, this.fd = null, this.readable = !0, this.paused = !1, this.flags = "r", this.mode = 438, this.bufferSize = 64 * 1024, i = i || {};
|
|
433
|
+
for (var a = Object.keys(i), u = 0, y = a.length; u < y; u++) {
|
|
434
|
+
var g = a[u];
|
|
435
|
+
this[g] = i[g];
|
|
317
436
|
}
|
|
318
437
|
if (this.encoding && this.setEncoding(this.encoding), this.start !== void 0) {
|
|
319
438
|
if (typeof this.start != "number")
|
|
@@ -332,21 +451,21 @@ function rn(e) {
|
|
|
332
451
|
});
|
|
333
452
|
return;
|
|
334
453
|
}
|
|
335
|
-
e.open(this.path, this.flags, this.mode, function(
|
|
336
|
-
if (
|
|
337
|
-
o.emit("error",
|
|
454
|
+
e.open(this.path, this.flags, this.mode, function(f, d) {
|
|
455
|
+
if (f) {
|
|
456
|
+
o.emit("error", f), o.readable = !1;
|
|
338
457
|
return;
|
|
339
458
|
}
|
|
340
|
-
o.fd =
|
|
459
|
+
o.fd = d, o.emit("open", d), o._read();
|
|
341
460
|
});
|
|
342
461
|
}
|
|
343
|
-
function n
|
|
344
|
-
if (!(this instanceof
|
|
345
|
-
return new n
|
|
346
|
-
|
|
347
|
-
for (var o = Object.keys(
|
|
348
|
-
var
|
|
349
|
-
this[
|
|
462
|
+
function r(n, i) {
|
|
463
|
+
if (!(this instanceof r))
|
|
464
|
+
return new r(n, i);
|
|
465
|
+
qt.call(this), this.path = n, this.fd = null, this.writable = !0, this.flags = "w", this.encoding = "binary", this.mode = 438, this.bytesWritten = 0, i = i || {};
|
|
466
|
+
for (var o = Object.keys(i), a = 0, u = o.length; a < u; a++) {
|
|
467
|
+
var y = o[a];
|
|
468
|
+
this[y] = i[y];
|
|
350
469
|
}
|
|
351
470
|
if (this.start !== void 0) {
|
|
352
471
|
if (typeof this.start != "number")
|
|
@@ -358,248 +477,1357 @@ function rn(e) {
|
|
|
358
477
|
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());
|
|
359
478
|
}
|
|
360
479
|
}
|
|
361
|
-
var
|
|
480
|
+
var Rn = Wn, Tn = Object.getPrototypeOf || function(e) {
|
|
362
481
|
return e.__proto__;
|
|
363
482
|
};
|
|
364
|
-
function
|
|
483
|
+
function Wn(e) {
|
|
365
484
|
if (e === null || typeof e != "object")
|
|
366
485
|
return e;
|
|
367
486
|
if (e instanceof Object)
|
|
368
|
-
var t = { __proto__:
|
|
487
|
+
var t = { __proto__: Tn(e) };
|
|
369
488
|
else
|
|
370
489
|
var t = /* @__PURE__ */ Object.create(null);
|
|
371
|
-
return Object.getOwnPropertyNames(e).forEach(function(
|
|
372
|
-
Object.defineProperty(t,
|
|
490
|
+
return Object.getOwnPropertyNames(e).forEach(function(r) {
|
|
491
|
+
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
|
|
373
492
|
}), t;
|
|
374
493
|
}
|
|
375
|
-
var
|
|
376
|
-
typeof Symbol
|
|
377
|
-
|
|
494
|
+
var Nt = {}, mr = {}, hr = function() {
|
|
495
|
+
if (typeof Symbol != "function" || typeof Object.getOwnPropertySymbols != "function")
|
|
496
|
+
return !1;
|
|
497
|
+
if (typeof Symbol.iterator == "symbol")
|
|
498
|
+
return !0;
|
|
499
|
+
var t = {}, r = Symbol("test"), n = Object(r);
|
|
500
|
+
if (typeof r == "string" || Object.prototype.toString.call(r) !== "[object Symbol]" || Object.prototype.toString.call(n) !== "[object Symbol]")
|
|
501
|
+
return !1;
|
|
502
|
+
var i = 42;
|
|
503
|
+
t[r] = i;
|
|
504
|
+
for (r in t)
|
|
505
|
+
return !1;
|
|
506
|
+
if (typeof Object.keys == "function" && Object.keys(t).length !== 0 || typeof Object.getOwnPropertyNames == "function" && Object.getOwnPropertyNames(t).length !== 0)
|
|
507
|
+
return !1;
|
|
508
|
+
var o = Object.getOwnPropertySymbols(t);
|
|
509
|
+
if (o.length !== 1 || o[0] !== r || !Object.prototype.propertyIsEnumerable.call(t, r))
|
|
510
|
+
return !1;
|
|
511
|
+
if (typeof Object.getOwnPropertyDescriptor == "function") {
|
|
512
|
+
var a = Object.getOwnPropertyDescriptor(t, r);
|
|
513
|
+
if (a.value !== i || a.enumerable !== !0)
|
|
514
|
+
return !1;
|
|
515
|
+
}
|
|
516
|
+
return !0;
|
|
517
|
+
}, Un = hr, tt = function() {
|
|
518
|
+
return Un() && !!Symbol.toStringTag;
|
|
519
|
+
}, Ht = typeof Symbol < "u" && Symbol, Ln = hr, Gn = function() {
|
|
520
|
+
return typeof Ht != "function" || typeof Symbol != "function" || typeof Ht("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : Ln();
|
|
521
|
+
}, Jn = "Function.prototype.bind called on incompatible ", ct = Array.prototype.slice, Vn = Object.prototype.toString, zn = "[object Function]", xn = function(t) {
|
|
522
|
+
var r = this;
|
|
523
|
+
if (typeof r != "function" || Vn.call(r) !== zn)
|
|
524
|
+
throw new TypeError(Jn + r);
|
|
525
|
+
for (var n = ct.call(arguments, 1), i, o = function() {
|
|
526
|
+
if (this instanceof i) {
|
|
527
|
+
var f = r.apply(
|
|
528
|
+
this,
|
|
529
|
+
n.concat(ct.call(arguments))
|
|
530
|
+
);
|
|
531
|
+
return Object(f) === f ? f : this;
|
|
532
|
+
} else
|
|
533
|
+
return r.apply(
|
|
534
|
+
t,
|
|
535
|
+
n.concat(ct.call(arguments))
|
|
536
|
+
);
|
|
537
|
+
}, a = Math.max(0, r.length - n.length), u = [], y = 0; y < a; y++)
|
|
538
|
+
u.push("$" + y);
|
|
539
|
+
if (i = Function("binder", "return function (" + u.join(",") + "){ return binder.apply(this,arguments); }")(o), r.prototype) {
|
|
540
|
+
var g = function() {
|
|
541
|
+
};
|
|
542
|
+
g.prototype = r.prototype, i.prototype = new g(), g.prototype = null;
|
|
543
|
+
}
|
|
544
|
+
return i;
|
|
545
|
+
}, qn = xn, Ct = Function.prototype.bind || qn, Hn = Ct, Yn = Hn.call(Function.call, Object.prototype.hasOwnProperty), E, $e = SyntaxError, Sr = Function, Ae = TypeError, ut = function(e) {
|
|
546
|
+
try {
|
|
547
|
+
return Sr('"use strict"; return (' + e + ").constructor;")();
|
|
548
|
+
} catch {
|
|
549
|
+
}
|
|
550
|
+
}, le = Object.getOwnPropertyDescriptor;
|
|
551
|
+
if (le)
|
|
552
|
+
try {
|
|
553
|
+
le({}, "");
|
|
554
|
+
} catch {
|
|
555
|
+
le = null;
|
|
556
|
+
}
|
|
557
|
+
var ft = function() {
|
|
558
|
+
throw new Ae();
|
|
559
|
+
}, Qn = le ? function() {
|
|
560
|
+
try {
|
|
561
|
+
return arguments.callee, ft;
|
|
562
|
+
} catch {
|
|
563
|
+
try {
|
|
564
|
+
return le(arguments, "callee").get;
|
|
565
|
+
} catch {
|
|
566
|
+
return ft;
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}() : ft, ge = Gn(), re = Object.getPrototypeOf || function(e) {
|
|
570
|
+
return e.__proto__;
|
|
571
|
+
}, we = {}, Xn = typeof Uint8Array > "u" ? E : re(Uint8Array), ye = {
|
|
572
|
+
"%AggregateError%": typeof AggregateError > "u" ? E : AggregateError,
|
|
573
|
+
"%Array%": Array,
|
|
574
|
+
"%ArrayBuffer%": typeof ArrayBuffer > "u" ? E : ArrayBuffer,
|
|
575
|
+
"%ArrayIteratorPrototype%": ge ? re([][Symbol.iterator]()) : E,
|
|
576
|
+
"%AsyncFromSyncIteratorPrototype%": E,
|
|
577
|
+
"%AsyncFunction%": we,
|
|
578
|
+
"%AsyncGenerator%": we,
|
|
579
|
+
"%AsyncGeneratorFunction%": we,
|
|
580
|
+
"%AsyncIteratorPrototype%": we,
|
|
581
|
+
"%Atomics%": typeof Atomics > "u" ? E : Atomics,
|
|
582
|
+
"%BigInt%": typeof BigInt > "u" ? E : BigInt,
|
|
583
|
+
"%BigInt64Array%": typeof BigInt64Array > "u" ? E : BigInt64Array,
|
|
584
|
+
"%BigUint64Array%": typeof BigUint64Array > "u" ? E : BigUint64Array,
|
|
585
|
+
"%Boolean%": Boolean,
|
|
586
|
+
"%DataView%": typeof DataView > "u" ? E : DataView,
|
|
587
|
+
"%Date%": Date,
|
|
588
|
+
"%decodeURI%": decodeURI,
|
|
589
|
+
"%decodeURIComponent%": decodeURIComponent,
|
|
590
|
+
"%encodeURI%": encodeURI,
|
|
591
|
+
"%encodeURIComponent%": encodeURIComponent,
|
|
592
|
+
"%Error%": Error,
|
|
593
|
+
"%eval%": eval,
|
|
594
|
+
// eslint-disable-line no-eval
|
|
595
|
+
"%EvalError%": EvalError,
|
|
596
|
+
"%Float32Array%": typeof Float32Array > "u" ? E : Float32Array,
|
|
597
|
+
"%Float64Array%": typeof Float64Array > "u" ? E : Float64Array,
|
|
598
|
+
"%FinalizationRegistry%": typeof FinalizationRegistry > "u" ? E : FinalizationRegistry,
|
|
599
|
+
"%Function%": Sr,
|
|
600
|
+
"%GeneratorFunction%": we,
|
|
601
|
+
"%Int8Array%": typeof Int8Array > "u" ? E : Int8Array,
|
|
602
|
+
"%Int16Array%": typeof Int16Array > "u" ? E : Int16Array,
|
|
603
|
+
"%Int32Array%": typeof Int32Array > "u" ? E : Int32Array,
|
|
604
|
+
"%isFinite%": isFinite,
|
|
605
|
+
"%isNaN%": isNaN,
|
|
606
|
+
"%IteratorPrototype%": ge ? re(re([][Symbol.iterator]())) : E,
|
|
607
|
+
"%JSON%": typeof JSON == "object" ? JSON : E,
|
|
608
|
+
"%Map%": typeof Map > "u" ? E : Map,
|
|
609
|
+
"%MapIteratorPrototype%": typeof Map > "u" || !ge ? E : re((/* @__PURE__ */ new Map())[Symbol.iterator]()),
|
|
610
|
+
"%Math%": Math,
|
|
611
|
+
"%Number%": Number,
|
|
612
|
+
"%Object%": Object,
|
|
613
|
+
"%parseFloat%": parseFloat,
|
|
614
|
+
"%parseInt%": parseInt,
|
|
615
|
+
"%Promise%": typeof Promise > "u" ? E : Promise,
|
|
616
|
+
"%Proxy%": typeof Proxy > "u" ? E : Proxy,
|
|
617
|
+
"%RangeError%": RangeError,
|
|
618
|
+
"%ReferenceError%": ReferenceError,
|
|
619
|
+
"%Reflect%": typeof Reflect > "u" ? E : Reflect,
|
|
620
|
+
"%RegExp%": RegExp,
|
|
621
|
+
"%Set%": typeof Set > "u" ? E : Set,
|
|
622
|
+
"%SetIteratorPrototype%": typeof Set > "u" || !ge ? E : re((/* @__PURE__ */ new Set())[Symbol.iterator]()),
|
|
623
|
+
"%SharedArrayBuffer%": typeof SharedArrayBuffer > "u" ? E : SharedArrayBuffer,
|
|
624
|
+
"%String%": String,
|
|
625
|
+
"%StringIteratorPrototype%": ge ? re(""[Symbol.iterator]()) : E,
|
|
626
|
+
"%Symbol%": ge ? Symbol : E,
|
|
627
|
+
"%SyntaxError%": $e,
|
|
628
|
+
"%ThrowTypeError%": Qn,
|
|
629
|
+
"%TypedArray%": Xn,
|
|
630
|
+
"%TypeError%": Ae,
|
|
631
|
+
"%Uint8Array%": typeof Uint8Array > "u" ? E : Uint8Array,
|
|
632
|
+
"%Uint8ClampedArray%": typeof Uint8ClampedArray > "u" ? E : Uint8ClampedArray,
|
|
633
|
+
"%Uint16Array%": typeof Uint16Array > "u" ? E : Uint16Array,
|
|
634
|
+
"%Uint32Array%": typeof Uint32Array > "u" ? E : Uint32Array,
|
|
635
|
+
"%URIError%": URIError,
|
|
636
|
+
"%WeakMap%": typeof WeakMap > "u" ? E : WeakMap,
|
|
637
|
+
"%WeakRef%": typeof WeakRef > "u" ? E : WeakRef,
|
|
638
|
+
"%WeakSet%": typeof WeakSet > "u" ? E : WeakSet
|
|
639
|
+
};
|
|
640
|
+
try {
|
|
641
|
+
null.error;
|
|
642
|
+
} catch (e) {
|
|
643
|
+
var Zn = re(re(e));
|
|
644
|
+
ye["%Error.prototype%"] = Zn;
|
|
645
|
+
}
|
|
646
|
+
var Kn = function e(t) {
|
|
647
|
+
var r;
|
|
648
|
+
if (t === "%AsyncFunction%")
|
|
649
|
+
r = ut("async function () {}");
|
|
650
|
+
else if (t === "%GeneratorFunction%")
|
|
651
|
+
r = ut("function* () {}");
|
|
652
|
+
else if (t === "%AsyncGeneratorFunction%")
|
|
653
|
+
r = ut("async function* () {}");
|
|
654
|
+
else if (t === "%AsyncGenerator%") {
|
|
655
|
+
var n = e("%AsyncGeneratorFunction%");
|
|
656
|
+
n && (r = n.prototype);
|
|
657
|
+
} else if (t === "%AsyncIteratorPrototype%") {
|
|
658
|
+
var i = e("%AsyncGenerator%");
|
|
659
|
+
i && (r = re(i.prototype));
|
|
660
|
+
}
|
|
661
|
+
return ye[t] = r, r;
|
|
662
|
+
}, Yt = {
|
|
663
|
+
"%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
|
|
664
|
+
"%ArrayPrototype%": ["Array", "prototype"],
|
|
665
|
+
"%ArrayProto_entries%": ["Array", "prototype", "entries"],
|
|
666
|
+
"%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
|
|
667
|
+
"%ArrayProto_keys%": ["Array", "prototype", "keys"],
|
|
668
|
+
"%ArrayProto_values%": ["Array", "prototype", "values"],
|
|
669
|
+
"%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
|
|
670
|
+
"%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
|
|
671
|
+
"%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
|
|
672
|
+
"%BooleanPrototype%": ["Boolean", "prototype"],
|
|
673
|
+
"%DataViewPrototype%": ["DataView", "prototype"],
|
|
674
|
+
"%DatePrototype%": ["Date", "prototype"],
|
|
675
|
+
"%ErrorPrototype%": ["Error", "prototype"],
|
|
676
|
+
"%EvalErrorPrototype%": ["EvalError", "prototype"],
|
|
677
|
+
"%Float32ArrayPrototype%": ["Float32Array", "prototype"],
|
|
678
|
+
"%Float64ArrayPrototype%": ["Float64Array", "prototype"],
|
|
679
|
+
"%FunctionPrototype%": ["Function", "prototype"],
|
|
680
|
+
"%Generator%": ["GeneratorFunction", "prototype"],
|
|
681
|
+
"%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
|
|
682
|
+
"%Int8ArrayPrototype%": ["Int8Array", "prototype"],
|
|
683
|
+
"%Int16ArrayPrototype%": ["Int16Array", "prototype"],
|
|
684
|
+
"%Int32ArrayPrototype%": ["Int32Array", "prototype"],
|
|
685
|
+
"%JSONParse%": ["JSON", "parse"],
|
|
686
|
+
"%JSONStringify%": ["JSON", "stringify"],
|
|
687
|
+
"%MapPrototype%": ["Map", "prototype"],
|
|
688
|
+
"%NumberPrototype%": ["Number", "prototype"],
|
|
689
|
+
"%ObjectPrototype%": ["Object", "prototype"],
|
|
690
|
+
"%ObjProto_toString%": ["Object", "prototype", "toString"],
|
|
691
|
+
"%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
|
|
692
|
+
"%PromisePrototype%": ["Promise", "prototype"],
|
|
693
|
+
"%PromiseProto_then%": ["Promise", "prototype", "then"],
|
|
694
|
+
"%Promise_all%": ["Promise", "all"],
|
|
695
|
+
"%Promise_reject%": ["Promise", "reject"],
|
|
696
|
+
"%Promise_resolve%": ["Promise", "resolve"],
|
|
697
|
+
"%RangeErrorPrototype%": ["RangeError", "prototype"],
|
|
698
|
+
"%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
|
|
699
|
+
"%RegExpPrototype%": ["RegExp", "prototype"],
|
|
700
|
+
"%SetPrototype%": ["Set", "prototype"],
|
|
701
|
+
"%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
|
|
702
|
+
"%StringPrototype%": ["String", "prototype"],
|
|
703
|
+
"%SymbolPrototype%": ["Symbol", "prototype"],
|
|
704
|
+
"%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
|
|
705
|
+
"%TypedArrayPrototype%": ["TypedArray", "prototype"],
|
|
706
|
+
"%TypeErrorPrototype%": ["TypeError", "prototype"],
|
|
707
|
+
"%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
|
|
708
|
+
"%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
|
|
709
|
+
"%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
|
|
710
|
+
"%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
|
|
711
|
+
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
712
|
+
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
713
|
+
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
714
|
+
}, Me = Ct, Xe = Yn, ei = Me.call(Function.call, Array.prototype.concat), ti = Me.call(Function.apply, Array.prototype.splice), Qt = Me.call(Function.call, String.prototype.replace), Ze = Me.call(Function.call, String.prototype.slice), ri = Me.call(Function.call, RegExp.prototype.exec), ni = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, ii = /\\(\\)?/g, oi = function(t) {
|
|
715
|
+
var r = Ze(t, 0, 1), n = Ze(t, -1);
|
|
716
|
+
if (r === "%" && n !== "%")
|
|
717
|
+
throw new $e("invalid intrinsic syntax, expected closing `%`");
|
|
718
|
+
if (n === "%" && r !== "%")
|
|
719
|
+
throw new $e("invalid intrinsic syntax, expected opening `%`");
|
|
720
|
+
var i = [];
|
|
721
|
+
return Qt(t, ni, function(o, a, u, y) {
|
|
722
|
+
i[i.length] = u ? Qt(y, ii, "$1") : a || o;
|
|
723
|
+
}), i;
|
|
724
|
+
}, ai = function(t, r) {
|
|
725
|
+
var n = t, i;
|
|
726
|
+
if (Xe(Yt, n) && (i = Yt[n], n = "%" + i[0] + "%"), Xe(ye, n)) {
|
|
727
|
+
var o = ye[n];
|
|
728
|
+
if (o === we && (o = Kn(n)), typeof o > "u" && !r)
|
|
729
|
+
throw new Ae("intrinsic " + t + " exists, but is not available. Please file an issue!");
|
|
730
|
+
return {
|
|
731
|
+
alias: i,
|
|
732
|
+
name: n,
|
|
733
|
+
value: o
|
|
734
|
+
};
|
|
735
|
+
}
|
|
736
|
+
throw new $e("intrinsic " + t + " does not exist!");
|
|
737
|
+
}, Bt = function(t, r) {
|
|
738
|
+
if (typeof t != "string" || t.length === 0)
|
|
739
|
+
throw new Ae("intrinsic name must be a non-empty string");
|
|
740
|
+
if (arguments.length > 1 && typeof r != "boolean")
|
|
741
|
+
throw new Ae('"allowMissing" argument must be a boolean');
|
|
742
|
+
if (ri(/^%?[^%]*%?$/, t) === null)
|
|
743
|
+
throw new $e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
744
|
+
var n = oi(t), i = n.length > 0 ? n[0] : "", o = ai("%" + i + "%", r), a = o.name, u = o.value, y = !1, g = o.alias;
|
|
745
|
+
g && (i = g[0], ti(n, ei([0, 1], g)));
|
|
746
|
+
for (var f = 1, d = !0; f < n.length; f += 1) {
|
|
747
|
+
var m = n[f], h = Ze(m, 0, 1), S = Ze(m, -1);
|
|
748
|
+
if ((h === '"' || h === "'" || h === "`" || S === '"' || S === "'" || S === "`") && h !== S)
|
|
749
|
+
throw new $e("property names with quotes must have matching quotes");
|
|
750
|
+
if ((m === "constructor" || !d) && (y = !0), i += "." + m, a = "%" + i + "%", Xe(ye, a))
|
|
751
|
+
u = ye[a];
|
|
752
|
+
else if (u != null) {
|
|
753
|
+
if (!(m in u)) {
|
|
754
|
+
if (!r)
|
|
755
|
+
throw new Ae("base intrinsic for " + t + " exists, but the property is not available.");
|
|
756
|
+
return;
|
|
757
|
+
}
|
|
758
|
+
if (le && f + 1 >= n.length) {
|
|
759
|
+
var $ = le(u, m);
|
|
760
|
+
d = !!$, d && "get" in $ && !("originalValue" in $.get) ? u = $.get : u = u[m];
|
|
761
|
+
} else
|
|
762
|
+
d = Xe(u, m), u = u[m];
|
|
763
|
+
d && !y && (ye[a] = u);
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
return u;
|
|
767
|
+
}, bt = {}, ci = {
|
|
768
|
+
get exports() {
|
|
769
|
+
return bt;
|
|
770
|
+
},
|
|
771
|
+
set exports(e) {
|
|
772
|
+
bt = e;
|
|
773
|
+
}
|
|
774
|
+
};
|
|
775
|
+
(function(e) {
|
|
776
|
+
var t = Ct, r = Bt, n = r("%Function.prototype.apply%"), i = r("%Function.prototype.call%"), o = r("%Reflect.apply%", !0) || t.call(i, n), a = r("%Object.getOwnPropertyDescriptor%", !0), u = r("%Object.defineProperty%", !0), y = r("%Math.max%");
|
|
777
|
+
if (u)
|
|
778
|
+
try {
|
|
779
|
+
u({}, "a", { value: 1 });
|
|
780
|
+
} catch {
|
|
781
|
+
u = null;
|
|
782
|
+
}
|
|
783
|
+
e.exports = function(d) {
|
|
784
|
+
var m = o(t, i, arguments);
|
|
785
|
+
if (a && u) {
|
|
786
|
+
var h = a(m, "length");
|
|
787
|
+
h.configurable && u(
|
|
788
|
+
m,
|
|
789
|
+
"length",
|
|
790
|
+
{ value: 1 + y(0, d.length - (arguments.length - 1)) }
|
|
791
|
+
);
|
|
792
|
+
}
|
|
793
|
+
return m;
|
|
794
|
+
};
|
|
795
|
+
var g = function() {
|
|
796
|
+
return o(t, n, arguments);
|
|
797
|
+
};
|
|
798
|
+
u ? u(e.exports, "apply", { value: g }) : e.exports.apply = g;
|
|
799
|
+
})(ci);
|
|
800
|
+
var gr = Bt, vr = bt, ui = vr(gr("String.prototype.indexOf")), _t = function(t, r) {
|
|
801
|
+
var n = gr(t, !!r);
|
|
802
|
+
return typeof n == "function" && ui(t, ".prototype.") > -1 ? vr(n) : n;
|
|
803
|
+
}, fi = tt(), si = _t, At = si("Object.prototype.toString"), rt = function(t) {
|
|
804
|
+
return fi && t && typeof t == "object" && Symbol.toStringTag in t ? !1 : At(t) === "[object Arguments]";
|
|
805
|
+
}, wr = function(t) {
|
|
806
|
+
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]";
|
|
807
|
+
}, li = function() {
|
|
808
|
+
return rt(arguments);
|
|
809
|
+
}();
|
|
810
|
+
rt.isLegacyArguments = wr;
|
|
811
|
+
var yi = li ? rt : wr, pi = Object.prototype.toString, di = Function.prototype.toString, mi = /^\s*(?:function)?\*/, br = tt(), st = Object.getPrototypeOf, hi = function() {
|
|
812
|
+
if (!br)
|
|
813
|
+
return !1;
|
|
814
|
+
try {
|
|
815
|
+
return Function("return function*() {}")();
|
|
816
|
+
} catch {
|
|
817
|
+
}
|
|
818
|
+
}, lt, Si = function(t) {
|
|
819
|
+
if (typeof t != "function")
|
|
820
|
+
return !1;
|
|
821
|
+
if (mi.test(di.call(t)))
|
|
822
|
+
return !0;
|
|
823
|
+
if (!br) {
|
|
824
|
+
var r = pi.call(t);
|
|
825
|
+
return r === "[object GeneratorFunction]";
|
|
826
|
+
}
|
|
827
|
+
if (!st)
|
|
828
|
+
return !1;
|
|
829
|
+
if (typeof lt > "u") {
|
|
830
|
+
var n = hi();
|
|
831
|
+
lt = n ? st(n) : !1;
|
|
832
|
+
}
|
|
833
|
+
return st(t) === lt;
|
|
834
|
+
}, Ar = Function.prototype.toString, be = typeof Reflect == "object" && Reflect !== null && Reflect.apply, Ot, qe;
|
|
835
|
+
if (typeof be == "function" && typeof Object.defineProperty == "function")
|
|
836
|
+
try {
|
|
837
|
+
Ot = Object.defineProperty({}, "length", {
|
|
838
|
+
get: function() {
|
|
839
|
+
throw qe;
|
|
840
|
+
}
|
|
841
|
+
}), qe = {}, be(function() {
|
|
842
|
+
throw 42;
|
|
843
|
+
}, null, Ot);
|
|
844
|
+
} catch (e) {
|
|
845
|
+
e !== qe && (be = null);
|
|
846
|
+
}
|
|
847
|
+
else
|
|
848
|
+
be = null;
|
|
849
|
+
var gi = /^\s*class\b/, Et = function(t) {
|
|
850
|
+
try {
|
|
851
|
+
var r = Ar.call(t);
|
|
852
|
+
return gi.test(r);
|
|
853
|
+
} catch {
|
|
854
|
+
return !1;
|
|
855
|
+
}
|
|
856
|
+
}, yt = function(t) {
|
|
857
|
+
try {
|
|
858
|
+
return Et(t) ? !1 : (Ar.call(t), !0);
|
|
859
|
+
} catch {
|
|
860
|
+
return !1;
|
|
861
|
+
}
|
|
862
|
+
}, He = Object.prototype.toString, vi = "[object Object]", wi = "[object Function]", bi = "[object GeneratorFunction]", Ai = "[object HTMLAllCollection]", Oi = "[object HTML document.all class]", Ei = "[object HTMLCollection]", $i = typeof Symbol == "function" && !!Symbol.toStringTag, Pi = !(0 in [,]), $t = function() {
|
|
863
|
+
return !1;
|
|
864
|
+
};
|
|
865
|
+
if (typeof document == "object") {
|
|
866
|
+
var Fi = document.all;
|
|
867
|
+
He.call(Fi) === He.call(document.all) && ($t = function(t) {
|
|
868
|
+
if ((Pi || !t) && (typeof t > "u" || typeof t == "object"))
|
|
869
|
+
try {
|
|
870
|
+
var r = He.call(t);
|
|
871
|
+
return (r === Ai || r === Oi || r === Ei || r === vi) && t("") == null;
|
|
872
|
+
} catch {
|
|
873
|
+
}
|
|
874
|
+
return !1;
|
|
875
|
+
});
|
|
378
876
|
}
|
|
379
|
-
function
|
|
380
|
-
|
|
877
|
+
var ki = be ? function(t) {
|
|
878
|
+
if ($t(t))
|
|
879
|
+
return !0;
|
|
880
|
+
if (!t || typeof t != "function" && typeof t != "object")
|
|
881
|
+
return !1;
|
|
882
|
+
try {
|
|
883
|
+
be(t, null, Ot);
|
|
884
|
+
} catch (r) {
|
|
885
|
+
if (r !== qe)
|
|
886
|
+
return !1;
|
|
887
|
+
}
|
|
888
|
+
return !Et(t) && yt(t);
|
|
889
|
+
} : function(t) {
|
|
890
|
+
if ($t(t))
|
|
891
|
+
return !0;
|
|
892
|
+
if (!t || typeof t != "function" && typeof t != "object")
|
|
893
|
+
return !1;
|
|
894
|
+
if ($i)
|
|
895
|
+
return yt(t);
|
|
896
|
+
if (Et(t))
|
|
897
|
+
return !1;
|
|
898
|
+
var r = He.call(t);
|
|
899
|
+
return r !== wi && r !== bi && !/^\[object HTML/.test(r) ? !1 : yt(t);
|
|
900
|
+
}, ji = ki, Di = Object.prototype.toString, Or = Object.prototype.hasOwnProperty, Ii = function(t, r, n) {
|
|
901
|
+
for (var i = 0, o = t.length; i < o; i++)
|
|
902
|
+
Or.call(t, i) && (n == null ? r(t[i], i, t) : r.call(n, t[i], i, t));
|
|
903
|
+
}, Ni = function(t, r, n) {
|
|
904
|
+
for (var i = 0, o = t.length; i < o; i++)
|
|
905
|
+
n == null ? r(t.charAt(i), i, t) : r.call(n, t.charAt(i), i, t);
|
|
906
|
+
}, Ci = function(t, r, n) {
|
|
907
|
+
for (var i in t)
|
|
908
|
+
Or.call(t, i) && (n == null ? r(t[i], i, t) : r.call(n, t[i], i, t));
|
|
909
|
+
}, Bi = function(t, r, n) {
|
|
910
|
+
if (!ji(r))
|
|
911
|
+
throw new TypeError("iterator must be a function");
|
|
912
|
+
var i;
|
|
913
|
+
arguments.length >= 3 && (i = n), Di.call(t) === "[object Array]" ? Ii(t, r, i) : typeof t == "string" ? Ni(t, r, i) : Ci(t, r, i);
|
|
914
|
+
}, Er = Bi, pt = [
|
|
915
|
+
"BigInt64Array",
|
|
916
|
+
"BigUint64Array",
|
|
917
|
+
"Float32Array",
|
|
918
|
+
"Float64Array",
|
|
919
|
+
"Int16Array",
|
|
920
|
+
"Int32Array",
|
|
921
|
+
"Int8Array",
|
|
922
|
+
"Uint16Array",
|
|
923
|
+
"Uint32Array",
|
|
924
|
+
"Uint8Array",
|
|
925
|
+
"Uint8ClampedArray"
|
|
926
|
+
], _i = typeof globalThis > "u" ? Ee : globalThis, $r = function() {
|
|
927
|
+
for (var t = [], r = 0; r < pt.length; r++)
|
|
928
|
+
typeof _i[pt[r]] == "function" && (t[t.length] = pt[r]);
|
|
929
|
+
return t;
|
|
930
|
+
}, Mi = Bt, Ye = Mi("%Object.getOwnPropertyDescriptor%", !0);
|
|
931
|
+
if (Ye)
|
|
932
|
+
try {
|
|
933
|
+
Ye([], "length");
|
|
934
|
+
} catch {
|
|
935
|
+
Ye = null;
|
|
936
|
+
}
|
|
937
|
+
var Pr = Ye, Fr = Er, Ri = $r, Mt = _t, Ti = Mt("Object.prototype.toString"), kr = tt(), Qe = Pr, Wi = typeof globalThis > "u" ? Ee : globalThis, jr = Ri(), Ui = Mt("Array.prototype.indexOf", !0) || function(t, r) {
|
|
938
|
+
for (var n = 0; n < t.length; n += 1)
|
|
939
|
+
if (t[n] === r)
|
|
940
|
+
return n;
|
|
941
|
+
return -1;
|
|
942
|
+
}, Li = Mt("String.prototype.slice"), Dr = {}, dt = Object.getPrototypeOf;
|
|
943
|
+
kr && Qe && dt && Fr(jr, function(e) {
|
|
944
|
+
var t = new Wi[e]();
|
|
945
|
+
if (Symbol.toStringTag in t) {
|
|
946
|
+
var r = dt(t), n = Qe(r, Symbol.toStringTag);
|
|
947
|
+
if (!n) {
|
|
948
|
+
var i = dt(r);
|
|
949
|
+
n = Qe(i, Symbol.toStringTag);
|
|
950
|
+
}
|
|
951
|
+
Dr[e] = n.get;
|
|
952
|
+
}
|
|
953
|
+
});
|
|
954
|
+
var Gi = function(t) {
|
|
955
|
+
var r = !1;
|
|
956
|
+
return Fr(Dr, function(n, i) {
|
|
957
|
+
if (!r)
|
|
958
|
+
try {
|
|
959
|
+
r = n.call(t) === i;
|
|
960
|
+
} catch {
|
|
961
|
+
}
|
|
962
|
+
}), r;
|
|
963
|
+
}, Ir = function(t) {
|
|
964
|
+
if (!t || typeof t != "object")
|
|
965
|
+
return !1;
|
|
966
|
+
if (!kr || !(Symbol.toStringTag in t)) {
|
|
967
|
+
var r = Li(Ti(t), 8, -1);
|
|
968
|
+
return Ui(jr, r) > -1;
|
|
969
|
+
}
|
|
970
|
+
return Qe ? Gi(t) : !1;
|
|
971
|
+
}, Nr = Er, Ji = $r, Cr = _t, mt = Pr, Vi = Cr("Object.prototype.toString"), Br = tt(), Xt = typeof globalThis > "u" ? Ee : globalThis, zi = Ji(), xi = Cr("String.prototype.slice"), _r = {}, ht = Object.getPrototypeOf;
|
|
972
|
+
Br && mt && ht && Nr(zi, function(e) {
|
|
973
|
+
if (typeof Xt[e] == "function") {
|
|
974
|
+
var t = new Xt[e]();
|
|
975
|
+
if (Symbol.toStringTag in t) {
|
|
976
|
+
var r = ht(t), n = mt(r, Symbol.toStringTag);
|
|
977
|
+
if (!n) {
|
|
978
|
+
var i = ht(r);
|
|
979
|
+
n = mt(i, Symbol.toStringTag);
|
|
980
|
+
}
|
|
981
|
+
_r[e] = n.get;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
});
|
|
985
|
+
var qi = function(t) {
|
|
986
|
+
var r = !1;
|
|
987
|
+
return Nr(_r, function(n, i) {
|
|
988
|
+
if (!r)
|
|
989
|
+
try {
|
|
990
|
+
var o = n.call(t);
|
|
991
|
+
o === i && (r = o);
|
|
992
|
+
} catch {
|
|
993
|
+
}
|
|
994
|
+
}), r;
|
|
995
|
+
}, Hi = Ir, Yi = function(t) {
|
|
996
|
+
return Hi(t) ? !Br || !(Symbol.toStringTag in t) ? xi(Vi(t), 8, -1) : qi(t) : !1;
|
|
997
|
+
};
|
|
998
|
+
(function(e) {
|
|
999
|
+
var t = yi, r = Si, n = Yi, i = Ir;
|
|
1000
|
+
function o(l) {
|
|
1001
|
+
return l.call.bind(l);
|
|
1002
|
+
}
|
|
1003
|
+
var a = typeof BigInt < "u", u = typeof Symbol < "u", y = o(Object.prototype.toString), g = o(Number.prototype.valueOf), f = o(String.prototype.valueOf), d = o(Boolean.prototype.valueOf);
|
|
1004
|
+
if (a)
|
|
1005
|
+
var m = o(BigInt.prototype.valueOf);
|
|
1006
|
+
if (u)
|
|
1007
|
+
var h = o(Symbol.prototype.valueOf);
|
|
1008
|
+
function S(l, On) {
|
|
1009
|
+
if (typeof l != "object")
|
|
1010
|
+
return !1;
|
|
1011
|
+
try {
|
|
1012
|
+
return On(l), !0;
|
|
1013
|
+
} catch {
|
|
1014
|
+
return !1;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
e.isArgumentsObject = t, e.isGeneratorFunction = r, e.isTypedArray = i;
|
|
1018
|
+
function $(l) {
|
|
1019
|
+
return typeof Promise < "u" && l instanceof Promise || l !== null && typeof l == "object" && typeof l.then == "function" && typeof l.catch == "function";
|
|
1020
|
+
}
|
|
1021
|
+
e.isPromise = $;
|
|
1022
|
+
function k(l) {
|
|
1023
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(l) : i(l) || s(l);
|
|
1024
|
+
}
|
|
1025
|
+
e.isArrayBufferView = k;
|
|
1026
|
+
function I(l) {
|
|
1027
|
+
return n(l) === "Uint8Array";
|
|
1028
|
+
}
|
|
1029
|
+
e.isUint8Array = I;
|
|
1030
|
+
function L(l) {
|
|
1031
|
+
return n(l) === "Uint8ClampedArray";
|
|
1032
|
+
}
|
|
1033
|
+
e.isUint8ClampedArray = L;
|
|
1034
|
+
function G(l) {
|
|
1035
|
+
return n(l) === "Uint16Array";
|
|
1036
|
+
}
|
|
1037
|
+
e.isUint16Array = G;
|
|
1038
|
+
function te(l) {
|
|
1039
|
+
return n(l) === "Uint32Array";
|
|
1040
|
+
}
|
|
1041
|
+
e.isUint32Array = te;
|
|
1042
|
+
function ie(l) {
|
|
1043
|
+
return n(l) === "Int8Array";
|
|
1044
|
+
}
|
|
1045
|
+
e.isInt8Array = ie;
|
|
1046
|
+
function he(l) {
|
|
1047
|
+
return n(l) === "Int16Array";
|
|
1048
|
+
}
|
|
1049
|
+
e.isInt16Array = he;
|
|
1050
|
+
function Z(l) {
|
|
1051
|
+
return n(l) === "Int32Array";
|
|
1052
|
+
}
|
|
1053
|
+
e.isInt32Array = Z;
|
|
1054
|
+
function K(l) {
|
|
1055
|
+
return n(l) === "Float32Array";
|
|
1056
|
+
}
|
|
1057
|
+
e.isFloat32Array = K;
|
|
1058
|
+
function v(l) {
|
|
1059
|
+
return n(l) === "Float64Array";
|
|
1060
|
+
}
|
|
1061
|
+
e.isFloat64Array = v;
|
|
1062
|
+
function A(l) {
|
|
1063
|
+
return n(l) === "BigInt64Array";
|
|
1064
|
+
}
|
|
1065
|
+
e.isBigInt64Array = A;
|
|
1066
|
+
function b(l) {
|
|
1067
|
+
return n(l) === "BigUint64Array";
|
|
1068
|
+
}
|
|
1069
|
+
e.isBigUint64Array = b;
|
|
1070
|
+
function _(l) {
|
|
1071
|
+
return y(l) === "[object Map]";
|
|
1072
|
+
}
|
|
1073
|
+
_.working = typeof Map < "u" && _(/* @__PURE__ */ new Map());
|
|
1074
|
+
function U(l) {
|
|
1075
|
+
return typeof Map > "u" ? !1 : _.working ? _(l) : l instanceof Map;
|
|
1076
|
+
}
|
|
1077
|
+
e.isMap = U;
|
|
1078
|
+
function M(l) {
|
|
1079
|
+
return y(l) === "[object Set]";
|
|
1080
|
+
}
|
|
1081
|
+
M.working = typeof Set < "u" && M(/* @__PURE__ */ new Set());
|
|
1082
|
+
function N(l) {
|
|
1083
|
+
return typeof Set > "u" ? !1 : M.working ? M(l) : l instanceof Set;
|
|
1084
|
+
}
|
|
1085
|
+
e.isSet = N;
|
|
1086
|
+
function C(l) {
|
|
1087
|
+
return y(l) === "[object WeakMap]";
|
|
1088
|
+
}
|
|
1089
|
+
C.working = typeof WeakMap < "u" && C(/* @__PURE__ */ new WeakMap());
|
|
1090
|
+
function D(l) {
|
|
1091
|
+
return typeof WeakMap > "u" ? !1 : C.working ? C(l) : l instanceof WeakMap;
|
|
1092
|
+
}
|
|
1093
|
+
e.isWeakMap = D;
|
|
1094
|
+
function T(l) {
|
|
1095
|
+
return y(l) === "[object WeakSet]";
|
|
1096
|
+
}
|
|
1097
|
+
T.working = typeof WeakSet < "u" && T(/* @__PURE__ */ new WeakSet());
|
|
1098
|
+
function P(l) {
|
|
1099
|
+
return T(l);
|
|
1100
|
+
}
|
|
1101
|
+
e.isWeakSet = P;
|
|
1102
|
+
function fe(l) {
|
|
1103
|
+
return y(l) === "[object ArrayBuffer]";
|
|
1104
|
+
}
|
|
1105
|
+
fe.working = typeof ArrayBuffer < "u" && fe(new ArrayBuffer());
|
|
1106
|
+
function Te(l) {
|
|
1107
|
+
return typeof ArrayBuffer > "u" ? !1 : fe.working ? fe(l) : l instanceof ArrayBuffer;
|
|
1108
|
+
}
|
|
1109
|
+
e.isArrayBuffer = Te;
|
|
1110
|
+
function c(l) {
|
|
1111
|
+
return y(l) === "[object DataView]";
|
|
1112
|
+
}
|
|
1113
|
+
c.working = typeof ArrayBuffer < "u" && typeof DataView < "u" && c(new DataView(new ArrayBuffer(1), 0, 1));
|
|
1114
|
+
function s(l) {
|
|
1115
|
+
return typeof DataView > "u" ? !1 : c.working ? c(l) : l instanceof DataView;
|
|
1116
|
+
}
|
|
1117
|
+
e.isDataView = s;
|
|
1118
|
+
var p = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : void 0;
|
|
1119
|
+
function w(l) {
|
|
1120
|
+
return y(l) === "[object SharedArrayBuffer]";
|
|
1121
|
+
}
|
|
1122
|
+
function j(l) {
|
|
1123
|
+
return typeof p > "u" ? !1 : (typeof w.working > "u" && (w.working = w(new p())), w.working ? w(l) : l instanceof p);
|
|
1124
|
+
}
|
|
1125
|
+
e.isSharedArrayBuffer = j;
|
|
1126
|
+
function B(l) {
|
|
1127
|
+
return y(l) === "[object AsyncFunction]";
|
|
1128
|
+
}
|
|
1129
|
+
e.isAsyncFunction = B;
|
|
1130
|
+
function O(l) {
|
|
1131
|
+
return y(l) === "[object Map Iterator]";
|
|
1132
|
+
}
|
|
1133
|
+
e.isMapIterator = O;
|
|
1134
|
+
function F(l) {
|
|
1135
|
+
return y(l) === "[object Set Iterator]";
|
|
1136
|
+
}
|
|
1137
|
+
e.isSetIterator = F;
|
|
1138
|
+
function R(l) {
|
|
1139
|
+
return y(l) === "[object Generator]";
|
|
1140
|
+
}
|
|
1141
|
+
e.isGeneratorObject = R;
|
|
1142
|
+
function H(l) {
|
|
1143
|
+
return y(l) === "[object WebAssembly.Module]";
|
|
1144
|
+
}
|
|
1145
|
+
e.isWebAssemblyCompiledModule = H;
|
|
1146
|
+
function se(l) {
|
|
1147
|
+
return S(l, g);
|
|
1148
|
+
}
|
|
1149
|
+
e.isNumberObject = se;
|
|
1150
|
+
function We(l) {
|
|
1151
|
+
return S(l, f);
|
|
1152
|
+
}
|
|
1153
|
+
e.isStringObject = We;
|
|
1154
|
+
function Se(l) {
|
|
1155
|
+
return S(l, d);
|
|
1156
|
+
}
|
|
1157
|
+
e.isBooleanObject = Se;
|
|
1158
|
+
function Ue(l) {
|
|
1159
|
+
return a && S(l, m);
|
|
1160
|
+
}
|
|
1161
|
+
e.isBigIntObject = Ue;
|
|
1162
|
+
function zt(l) {
|
|
1163
|
+
return u && S(l, h);
|
|
1164
|
+
}
|
|
1165
|
+
e.isSymbolObject = zt;
|
|
1166
|
+
function bn(l) {
|
|
1167
|
+
return se(l) || We(l) || Se(l) || Ue(l) || zt(l);
|
|
1168
|
+
}
|
|
1169
|
+
e.isBoxedPrimitive = bn;
|
|
1170
|
+
function An(l) {
|
|
1171
|
+
return typeof Uint8Array < "u" && (Te(l) || j(l));
|
|
1172
|
+
}
|
|
1173
|
+
e.isAnyArrayBuffer = An, ["isProxy", "isExternal", "isModuleNamespaceObject"].forEach(function(l) {
|
|
1174
|
+
Object.defineProperty(e, l, {
|
|
1175
|
+
enumerable: !1,
|
|
1176
|
+
value: function() {
|
|
1177
|
+
throw new Error(l + " is not supported in userland");
|
|
1178
|
+
}
|
|
1179
|
+
});
|
|
1180
|
+
});
|
|
1181
|
+
})(mr);
|
|
1182
|
+
var Qi = function(t) {
|
|
1183
|
+
return t && typeof t == "object" && typeof t.copy == "function" && typeof t.fill == "function" && typeof t.readUInt8 == "function";
|
|
1184
|
+
}, Pt = {}, Zt = {
|
|
1185
|
+
get exports() {
|
|
1186
|
+
return Pt;
|
|
1187
|
+
},
|
|
1188
|
+
set exports(e) {
|
|
1189
|
+
Pt = e;
|
|
1190
|
+
}
|
|
1191
|
+
};
|
|
1192
|
+
typeof Object.create == "function" ? Zt.exports = function(t, r) {
|
|
1193
|
+
r && (t.super_ = r, t.prototype = Object.create(r.prototype, {
|
|
1194
|
+
constructor: {
|
|
1195
|
+
value: t,
|
|
1196
|
+
enumerable: !1,
|
|
1197
|
+
writable: !0,
|
|
1198
|
+
configurable: !0
|
|
1199
|
+
}
|
|
1200
|
+
}));
|
|
1201
|
+
} : Zt.exports = function(t, r) {
|
|
1202
|
+
if (r) {
|
|
1203
|
+
t.super_ = r;
|
|
1204
|
+
var n = function() {
|
|
1205
|
+
};
|
|
1206
|
+
n.prototype = r.prototype, t.prototype = new n(), t.prototype.constructor = t;
|
|
1207
|
+
}
|
|
1208
|
+
};
|
|
1209
|
+
(function(e) {
|
|
1210
|
+
var t = Object.getOwnPropertyDescriptors || function(s) {
|
|
1211
|
+
for (var p = Object.keys(s), w = {}, j = 0; j < p.length; j++)
|
|
1212
|
+
w[p[j]] = Object.getOwnPropertyDescriptor(s, p[j]);
|
|
1213
|
+
return w;
|
|
1214
|
+
}, r = /%[sdj%]/g;
|
|
1215
|
+
e.format = function(c) {
|
|
1216
|
+
if (!ie(c)) {
|
|
1217
|
+
for (var s = [], p = 0; p < arguments.length; p++)
|
|
1218
|
+
s.push(a(arguments[p]));
|
|
1219
|
+
return s.join(" ");
|
|
1220
|
+
}
|
|
1221
|
+
for (var p = 1, w = arguments, j = w.length, B = String(c).replace(r, function(F) {
|
|
1222
|
+
if (F === "%%")
|
|
1223
|
+
return "%";
|
|
1224
|
+
if (p >= j)
|
|
1225
|
+
return F;
|
|
1226
|
+
switch (F) {
|
|
1227
|
+
case "%s":
|
|
1228
|
+
return String(w[p++]);
|
|
1229
|
+
case "%d":
|
|
1230
|
+
return Number(w[p++]);
|
|
1231
|
+
case "%j":
|
|
1232
|
+
try {
|
|
1233
|
+
return JSON.stringify(w[p++]);
|
|
1234
|
+
} catch {
|
|
1235
|
+
return "[Circular]";
|
|
1236
|
+
}
|
|
1237
|
+
default:
|
|
1238
|
+
return F;
|
|
1239
|
+
}
|
|
1240
|
+
}), O = w[p]; p < j; O = w[++p])
|
|
1241
|
+
L(O) || !v(O) ? B += " " + O : B += " " + a(O);
|
|
1242
|
+
return B;
|
|
1243
|
+
}, e.deprecate = function(c, s) {
|
|
1244
|
+
if (typeof process < "u" && process.noDeprecation === !0)
|
|
1245
|
+
return c;
|
|
1246
|
+
if (typeof process > "u")
|
|
1247
|
+
return function() {
|
|
1248
|
+
return e.deprecate(c, s).apply(this, arguments);
|
|
1249
|
+
};
|
|
1250
|
+
var p = !1;
|
|
1251
|
+
function w() {
|
|
1252
|
+
if (!p) {
|
|
1253
|
+
if (process.throwDeprecation)
|
|
1254
|
+
throw new Error(s);
|
|
1255
|
+
process.traceDeprecation ? console.trace(s) : console.error(s), p = !0;
|
|
1256
|
+
}
|
|
1257
|
+
return c.apply(this, arguments);
|
|
1258
|
+
}
|
|
1259
|
+
return w;
|
|
1260
|
+
};
|
|
1261
|
+
var n = {}, i = /^$/;
|
|
1262
|
+
if (process.env.NODE_DEBUG) {
|
|
1263
|
+
var o = process.env.NODE_DEBUG;
|
|
1264
|
+
o = o.replace(/[|\\{}()[\]^$+?.]/g, "\\$&").replace(/\*/g, ".*").replace(/,/g, "$|^").toUpperCase(), i = new RegExp("^" + o + "$", "i");
|
|
1265
|
+
}
|
|
1266
|
+
e.debuglog = function(c) {
|
|
1267
|
+
if (c = c.toUpperCase(), !n[c])
|
|
1268
|
+
if (i.test(c)) {
|
|
1269
|
+
var s = process.pid;
|
|
1270
|
+
n[c] = function() {
|
|
1271
|
+
var p = e.format.apply(e, arguments);
|
|
1272
|
+
console.error("%s %d: %s", c, s, p);
|
|
1273
|
+
};
|
|
1274
|
+
} else
|
|
1275
|
+
n[c] = function() {
|
|
1276
|
+
};
|
|
1277
|
+
return n[c];
|
|
1278
|
+
};
|
|
1279
|
+
function a(c, s) {
|
|
1280
|
+
var p = {
|
|
1281
|
+
seen: [],
|
|
1282
|
+
stylize: y
|
|
1283
|
+
};
|
|
1284
|
+
return arguments.length >= 3 && (p.depth = arguments[2]), arguments.length >= 4 && (p.colors = arguments[3]), I(s) ? p.showHidden = s : s && e._extend(p, s), Z(p.showHidden) && (p.showHidden = !1), Z(p.depth) && (p.depth = 2), Z(p.colors) && (p.colors = !1), Z(p.customInspect) && (p.customInspect = !0), p.colors && (p.stylize = u), f(p, c, p.depth);
|
|
1285
|
+
}
|
|
1286
|
+
e.inspect = a, a.colors = {
|
|
1287
|
+
bold: [1, 22],
|
|
1288
|
+
italic: [3, 23],
|
|
1289
|
+
underline: [4, 24],
|
|
1290
|
+
inverse: [7, 27],
|
|
1291
|
+
white: [37, 39],
|
|
1292
|
+
grey: [90, 39],
|
|
1293
|
+
black: [30, 39],
|
|
1294
|
+
blue: [34, 39],
|
|
1295
|
+
cyan: [36, 39],
|
|
1296
|
+
green: [32, 39],
|
|
1297
|
+
magenta: [35, 39],
|
|
1298
|
+
red: [31, 39],
|
|
1299
|
+
yellow: [33, 39]
|
|
1300
|
+
}, a.styles = {
|
|
1301
|
+
special: "cyan",
|
|
1302
|
+
number: "yellow",
|
|
1303
|
+
boolean: "yellow",
|
|
1304
|
+
undefined: "grey",
|
|
1305
|
+
null: "bold",
|
|
1306
|
+
string: "green",
|
|
1307
|
+
date: "magenta",
|
|
1308
|
+
// "name": intentionally not styling
|
|
1309
|
+
regexp: "red"
|
|
1310
|
+
};
|
|
1311
|
+
function u(c, s) {
|
|
1312
|
+
var p = a.styles[s];
|
|
1313
|
+
return p ? "\x1B[" + a.colors[p][0] + "m" + c + "\x1B[" + a.colors[p][1] + "m" : c;
|
|
1314
|
+
}
|
|
1315
|
+
function y(c, s) {
|
|
1316
|
+
return c;
|
|
1317
|
+
}
|
|
1318
|
+
function g(c) {
|
|
1319
|
+
var s = {};
|
|
1320
|
+
return c.forEach(function(p, w) {
|
|
1321
|
+
s[p] = !0;
|
|
1322
|
+
}), s;
|
|
1323
|
+
}
|
|
1324
|
+
function f(c, s, p) {
|
|
1325
|
+
if (c.customInspect && s && _(s.inspect) && // Filter out the util module, it's inspect function is special
|
|
1326
|
+
s.inspect !== e.inspect && // Also filter out any prototype objects using the circular check.
|
|
1327
|
+
!(s.constructor && s.constructor.prototype === s)) {
|
|
1328
|
+
var w = s.inspect(p, c);
|
|
1329
|
+
return ie(w) || (w = f(c, w, p)), w;
|
|
1330
|
+
}
|
|
1331
|
+
var j = d(c, s);
|
|
1332
|
+
if (j)
|
|
1333
|
+
return j;
|
|
1334
|
+
var B = Object.keys(s), O = g(B);
|
|
1335
|
+
if (c.showHidden && (B = Object.getOwnPropertyNames(s)), b(s) && (B.indexOf("message") >= 0 || B.indexOf("description") >= 0))
|
|
1336
|
+
return m(s);
|
|
1337
|
+
if (B.length === 0) {
|
|
1338
|
+
if (_(s)) {
|
|
1339
|
+
var F = s.name ? ": " + s.name : "";
|
|
1340
|
+
return c.stylize("[Function" + F + "]", "special");
|
|
1341
|
+
}
|
|
1342
|
+
if (K(s))
|
|
1343
|
+
return c.stylize(RegExp.prototype.toString.call(s), "regexp");
|
|
1344
|
+
if (A(s))
|
|
1345
|
+
return c.stylize(Date.prototype.toString.call(s), "date");
|
|
1346
|
+
if (b(s))
|
|
1347
|
+
return m(s);
|
|
1348
|
+
}
|
|
1349
|
+
var R = "", H = !1, se = ["{", "}"];
|
|
1350
|
+
if (k(s) && (H = !0, se = ["[", "]"]), _(s)) {
|
|
1351
|
+
var We = s.name ? ": " + s.name : "";
|
|
1352
|
+
R = " [Function" + We + "]";
|
|
1353
|
+
}
|
|
1354
|
+
if (K(s) && (R = " " + RegExp.prototype.toString.call(s)), A(s) && (R = " " + Date.prototype.toUTCString.call(s)), b(s) && (R = " " + m(s)), B.length === 0 && (!H || s.length == 0))
|
|
1355
|
+
return se[0] + R + se[1];
|
|
1356
|
+
if (p < 0)
|
|
1357
|
+
return K(s) ? c.stylize(RegExp.prototype.toString.call(s), "regexp") : c.stylize("[Object]", "special");
|
|
1358
|
+
c.seen.push(s);
|
|
1359
|
+
var Se;
|
|
1360
|
+
return H ? Se = h(c, s, p, O, B) : Se = B.map(function(Ue) {
|
|
1361
|
+
return S(c, s, p, O, Ue, H);
|
|
1362
|
+
}), c.seen.pop(), $(Se, R, se);
|
|
1363
|
+
}
|
|
1364
|
+
function d(c, s) {
|
|
1365
|
+
if (Z(s))
|
|
1366
|
+
return c.stylize("undefined", "undefined");
|
|
1367
|
+
if (ie(s)) {
|
|
1368
|
+
var p = "'" + JSON.stringify(s).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
1369
|
+
return c.stylize(p, "string");
|
|
1370
|
+
}
|
|
1371
|
+
if (te(s))
|
|
1372
|
+
return c.stylize("" + s, "number");
|
|
1373
|
+
if (I(s))
|
|
1374
|
+
return c.stylize("" + s, "boolean");
|
|
1375
|
+
if (L(s))
|
|
1376
|
+
return c.stylize("null", "null");
|
|
1377
|
+
}
|
|
1378
|
+
function m(c) {
|
|
1379
|
+
return "[" + Error.prototype.toString.call(c) + "]";
|
|
1380
|
+
}
|
|
1381
|
+
function h(c, s, p, w, j) {
|
|
1382
|
+
for (var B = [], O = 0, F = s.length; O < F; ++O)
|
|
1383
|
+
T(s, String(O)) ? B.push(S(
|
|
1384
|
+
c,
|
|
1385
|
+
s,
|
|
1386
|
+
p,
|
|
1387
|
+
w,
|
|
1388
|
+
String(O),
|
|
1389
|
+
!0
|
|
1390
|
+
)) : B.push("");
|
|
1391
|
+
return j.forEach(function(R) {
|
|
1392
|
+
R.match(/^\d+$/) || B.push(S(
|
|
1393
|
+
c,
|
|
1394
|
+
s,
|
|
1395
|
+
p,
|
|
1396
|
+
w,
|
|
1397
|
+
R,
|
|
1398
|
+
!0
|
|
1399
|
+
));
|
|
1400
|
+
}), B;
|
|
1401
|
+
}
|
|
1402
|
+
function S(c, s, p, w, j, B) {
|
|
1403
|
+
var O, F, R;
|
|
1404
|
+
if (R = Object.getOwnPropertyDescriptor(s, j) || { value: s[j] }, R.get ? R.set ? F = c.stylize("[Getter/Setter]", "special") : F = c.stylize("[Getter]", "special") : R.set && (F = c.stylize("[Setter]", "special")), T(w, j) || (O = "[" + j + "]"), F || (c.seen.indexOf(R.value) < 0 ? (L(p) ? F = f(c, R.value, null) : F = f(c, R.value, p - 1), F.indexOf(`
|
|
1405
|
+
`) > -1 && (B ? F = F.split(`
|
|
1406
|
+
`).map(function(H) {
|
|
1407
|
+
return " " + H;
|
|
1408
|
+
}).join(`
|
|
1409
|
+
`).slice(2) : F = `
|
|
1410
|
+
` + F.split(`
|
|
1411
|
+
`).map(function(H) {
|
|
1412
|
+
return " " + H;
|
|
1413
|
+
}).join(`
|
|
1414
|
+
`))) : F = c.stylize("[Circular]", "special")), Z(O)) {
|
|
1415
|
+
if (B && j.match(/^\d+$/))
|
|
1416
|
+
return F;
|
|
1417
|
+
O = JSON.stringify("" + j), O.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (O = O.slice(1, -1), O = c.stylize(O, "name")) : (O = O.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), O = c.stylize(O, "string"));
|
|
1418
|
+
}
|
|
1419
|
+
return O + ": " + F;
|
|
1420
|
+
}
|
|
1421
|
+
function $(c, s, p) {
|
|
1422
|
+
var w = c.reduce(function(j, B) {
|
|
1423
|
+
return B.indexOf(`
|
|
1424
|
+
`) >= 0, j + B.replace(/\u001b\[\d\d?m/g, "").length + 1;
|
|
1425
|
+
}, 0);
|
|
1426
|
+
return w > 60 ? p[0] + (s === "" ? "" : s + `
|
|
1427
|
+
`) + " " + c.join(`,
|
|
1428
|
+
`) + " " + p[1] : p[0] + s + " " + c.join(", ") + " " + p[1];
|
|
1429
|
+
}
|
|
1430
|
+
e.types = mr;
|
|
1431
|
+
function k(c) {
|
|
1432
|
+
return Array.isArray(c);
|
|
1433
|
+
}
|
|
1434
|
+
e.isArray = k;
|
|
1435
|
+
function I(c) {
|
|
1436
|
+
return typeof c == "boolean";
|
|
1437
|
+
}
|
|
1438
|
+
e.isBoolean = I;
|
|
1439
|
+
function L(c) {
|
|
1440
|
+
return c === null;
|
|
1441
|
+
}
|
|
1442
|
+
e.isNull = L;
|
|
1443
|
+
function G(c) {
|
|
1444
|
+
return c == null;
|
|
1445
|
+
}
|
|
1446
|
+
e.isNullOrUndefined = G;
|
|
1447
|
+
function te(c) {
|
|
1448
|
+
return typeof c == "number";
|
|
1449
|
+
}
|
|
1450
|
+
e.isNumber = te;
|
|
1451
|
+
function ie(c) {
|
|
1452
|
+
return typeof c == "string";
|
|
1453
|
+
}
|
|
1454
|
+
e.isString = ie;
|
|
1455
|
+
function he(c) {
|
|
1456
|
+
return typeof c == "symbol";
|
|
1457
|
+
}
|
|
1458
|
+
e.isSymbol = he;
|
|
1459
|
+
function Z(c) {
|
|
1460
|
+
return c === void 0;
|
|
1461
|
+
}
|
|
1462
|
+
e.isUndefined = Z;
|
|
1463
|
+
function K(c) {
|
|
1464
|
+
return v(c) && M(c) === "[object RegExp]";
|
|
1465
|
+
}
|
|
1466
|
+
e.isRegExp = K, e.types.isRegExp = K;
|
|
1467
|
+
function v(c) {
|
|
1468
|
+
return typeof c == "object" && c !== null;
|
|
1469
|
+
}
|
|
1470
|
+
e.isObject = v;
|
|
1471
|
+
function A(c) {
|
|
1472
|
+
return v(c) && M(c) === "[object Date]";
|
|
1473
|
+
}
|
|
1474
|
+
e.isDate = A, e.types.isDate = A;
|
|
1475
|
+
function b(c) {
|
|
1476
|
+
return v(c) && (M(c) === "[object Error]" || c instanceof Error);
|
|
1477
|
+
}
|
|
1478
|
+
e.isError = b, e.types.isNativeError = b;
|
|
1479
|
+
function _(c) {
|
|
1480
|
+
return typeof c == "function";
|
|
1481
|
+
}
|
|
1482
|
+
e.isFunction = _;
|
|
1483
|
+
function U(c) {
|
|
1484
|
+
return c === null || typeof c == "boolean" || typeof c == "number" || typeof c == "string" || typeof c == "symbol" || // ES6 symbol
|
|
1485
|
+
typeof c > "u";
|
|
1486
|
+
}
|
|
1487
|
+
e.isPrimitive = U, e.isBuffer = Qi;
|
|
1488
|
+
function M(c) {
|
|
1489
|
+
return Object.prototype.toString.call(c);
|
|
1490
|
+
}
|
|
1491
|
+
function N(c) {
|
|
1492
|
+
return c < 10 ? "0" + c.toString(10) : c.toString(10);
|
|
1493
|
+
}
|
|
1494
|
+
var C = [
|
|
1495
|
+
"Jan",
|
|
1496
|
+
"Feb",
|
|
1497
|
+
"Mar",
|
|
1498
|
+
"Apr",
|
|
1499
|
+
"May",
|
|
1500
|
+
"Jun",
|
|
1501
|
+
"Jul",
|
|
1502
|
+
"Aug",
|
|
1503
|
+
"Sep",
|
|
1504
|
+
"Oct",
|
|
1505
|
+
"Nov",
|
|
1506
|
+
"Dec"
|
|
1507
|
+
];
|
|
1508
|
+
function D() {
|
|
1509
|
+
var c = new Date(), s = [
|
|
1510
|
+
N(c.getHours()),
|
|
1511
|
+
N(c.getMinutes()),
|
|
1512
|
+
N(c.getSeconds())
|
|
1513
|
+
].join(":");
|
|
1514
|
+
return [c.getDate(), C[c.getMonth()], s].join(" ");
|
|
1515
|
+
}
|
|
1516
|
+
e.log = function() {
|
|
1517
|
+
console.log("%s - %s", D(), e.format.apply(e, arguments));
|
|
1518
|
+
}, e.inherits = Pt, e._extend = function(c, s) {
|
|
1519
|
+
if (!s || !v(s))
|
|
1520
|
+
return c;
|
|
1521
|
+
for (var p = Object.keys(s), w = p.length; w--; )
|
|
1522
|
+
c[p[w]] = s[p[w]];
|
|
1523
|
+
return c;
|
|
1524
|
+
};
|
|
1525
|
+
function T(c, s) {
|
|
1526
|
+
return Object.prototype.hasOwnProperty.call(c, s);
|
|
1527
|
+
}
|
|
1528
|
+
var P = typeof Symbol < "u" ? Symbol("util.promisify.custom") : void 0;
|
|
1529
|
+
e.promisify = function(s) {
|
|
1530
|
+
if (typeof s != "function")
|
|
1531
|
+
throw new TypeError('The "original" argument must be of type Function');
|
|
1532
|
+
if (P && s[P]) {
|
|
1533
|
+
var p = s[P];
|
|
1534
|
+
if (typeof p != "function")
|
|
1535
|
+
throw new TypeError('The "util.promisify.custom" argument must be of type Function');
|
|
1536
|
+
return Object.defineProperty(p, P, {
|
|
1537
|
+
value: p,
|
|
1538
|
+
enumerable: !1,
|
|
1539
|
+
writable: !1,
|
|
1540
|
+
configurable: !0
|
|
1541
|
+
}), p;
|
|
1542
|
+
}
|
|
1543
|
+
function p() {
|
|
1544
|
+
for (var w, j, B = new Promise(function(R, H) {
|
|
1545
|
+
w = R, j = H;
|
|
1546
|
+
}), O = [], F = 0; F < arguments.length; F++)
|
|
1547
|
+
O.push(arguments[F]);
|
|
1548
|
+
O.push(function(R, H) {
|
|
1549
|
+
R ? j(R) : w(H);
|
|
1550
|
+
});
|
|
1551
|
+
try {
|
|
1552
|
+
s.apply(this, O);
|
|
1553
|
+
} catch (R) {
|
|
1554
|
+
j(R);
|
|
1555
|
+
}
|
|
1556
|
+
return B;
|
|
1557
|
+
}
|
|
1558
|
+
return Object.setPrototypeOf(p, Object.getPrototypeOf(s)), P && Object.defineProperty(p, P, {
|
|
1559
|
+
value: p,
|
|
1560
|
+
enumerable: !1,
|
|
1561
|
+
writable: !1,
|
|
1562
|
+
configurable: !0
|
|
1563
|
+
}), Object.defineProperties(
|
|
1564
|
+
p,
|
|
1565
|
+
t(s)
|
|
1566
|
+
);
|
|
1567
|
+
}, e.promisify.custom = P;
|
|
1568
|
+
function fe(c, s) {
|
|
1569
|
+
if (!c) {
|
|
1570
|
+
var p = new Error("Promise was rejected with a falsy value");
|
|
1571
|
+
p.reason = c, c = p;
|
|
1572
|
+
}
|
|
1573
|
+
return s(c);
|
|
1574
|
+
}
|
|
1575
|
+
function Te(c) {
|
|
1576
|
+
if (typeof c != "function")
|
|
1577
|
+
throw new TypeError('The "original" argument must be of type Function');
|
|
1578
|
+
function s() {
|
|
1579
|
+
for (var p = [], w = 0; w < arguments.length; w++)
|
|
1580
|
+
p.push(arguments[w]);
|
|
1581
|
+
var j = p.pop();
|
|
1582
|
+
if (typeof j != "function")
|
|
1583
|
+
throw new TypeError("The last argument must be of type Function");
|
|
1584
|
+
var B = this, O = function() {
|
|
1585
|
+
return j.apply(B, arguments);
|
|
1586
|
+
};
|
|
1587
|
+
c.apply(this, p).then(
|
|
1588
|
+
function(F) {
|
|
1589
|
+
process.nextTick(O.bind(null, null, F));
|
|
1590
|
+
},
|
|
1591
|
+
function(F) {
|
|
1592
|
+
process.nextTick(fe.bind(null, F, O));
|
|
1593
|
+
}
|
|
1594
|
+
);
|
|
1595
|
+
}
|
|
1596
|
+
return Object.setPrototypeOf(s, Object.getPrototypeOf(c)), Object.defineProperties(
|
|
1597
|
+
s,
|
|
1598
|
+
t(c)
|
|
1599
|
+
), s;
|
|
1600
|
+
}
|
|
1601
|
+
e.callbackify = Te;
|
|
1602
|
+
})(Nt);
|
|
1603
|
+
var W = pr, Xi = Cn, Zi = _n, Ki = Rn, Ge = Nt, V, Ke;
|
|
1604
|
+
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");
|
|
1605
|
+
function eo() {
|
|
1606
|
+
}
|
|
1607
|
+
function Mr(e, t) {
|
|
1608
|
+
Object.defineProperty(e, V, {
|
|
381
1609
|
get: function() {
|
|
382
1610
|
return t;
|
|
383
1611
|
}
|
|
384
1612
|
});
|
|
385
1613
|
}
|
|
386
|
-
var
|
|
387
|
-
|
|
388
|
-
var e =
|
|
1614
|
+
var pe = eo;
|
|
1615
|
+
Ge.debuglog ? pe = Ge.debuglog("gfs4") : /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && (pe = function() {
|
|
1616
|
+
var e = Ge.format.apply(Ge, arguments);
|
|
389
1617
|
e = "GFS4: " + e.split(/\n/).join(`
|
|
390
1618
|
GFS4: `), console.error(e);
|
|
391
1619
|
});
|
|
392
|
-
if (!
|
|
393
|
-
var
|
|
394
|
-
|
|
395
|
-
function t(
|
|
396
|
-
return e.call(
|
|
397
|
-
|
|
1620
|
+
if (!W[V]) {
|
|
1621
|
+
var to = Ee[V] || [];
|
|
1622
|
+
Mr(W, to), W.close = function(e) {
|
|
1623
|
+
function t(r, n) {
|
|
1624
|
+
return e.call(W, r, function(i) {
|
|
1625
|
+
i || Kt(), typeof n == "function" && n.apply(this, arguments);
|
|
398
1626
|
});
|
|
399
1627
|
}
|
|
400
|
-
return Object.defineProperty(t,
|
|
1628
|
+
return Object.defineProperty(t, Ke, {
|
|
401
1629
|
value: e
|
|
402
1630
|
}), t;
|
|
403
|
-
}(
|
|
404
|
-
function t(
|
|
405
|
-
e.apply(
|
|
1631
|
+
}(W.close), W.closeSync = function(e) {
|
|
1632
|
+
function t(r) {
|
|
1633
|
+
e.apply(W, arguments), Kt();
|
|
406
1634
|
}
|
|
407
|
-
return Object.defineProperty(t,
|
|
1635
|
+
return Object.defineProperty(t, Ke, {
|
|
408
1636
|
value: e
|
|
409
1637
|
}), t;
|
|
410
|
-
}(
|
|
411
|
-
|
|
1638
|
+
}(W.closeSync), /\bgfs4\b/i.test(process.env.NODE_DEBUG || "") && process.on("exit", function() {
|
|
1639
|
+
pe(W[V]), It.equal(W[V].length, 0);
|
|
412
1640
|
});
|
|
413
1641
|
}
|
|
414
|
-
|
|
415
|
-
var
|
|
416
|
-
process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
417
|
-
function
|
|
418
|
-
|
|
1642
|
+
Ee[V] || Mr(Ee, W[V]);
|
|
1643
|
+
var X = Rt(Ki(W));
|
|
1644
|
+
process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !W.__patched && (X = Rt(W), W.__patched = !0);
|
|
1645
|
+
function Rt(e) {
|
|
1646
|
+
Xi(e), e.gracefulify = Rt, e.createReadStream = ie, e.createWriteStream = he;
|
|
419
1647
|
var t = e.readFile;
|
|
420
|
-
e.readFile =
|
|
421
|
-
function
|
|
422
|
-
return typeof
|
|
423
|
-
function
|
|
424
|
-
return t(
|
|
425
|
-
|
|
1648
|
+
e.readFile = r;
|
|
1649
|
+
function r(v, A, b) {
|
|
1650
|
+
return typeof A == "function" && (b = A, A = null), _(v, A, b);
|
|
1651
|
+
function _(U, M, N, C) {
|
|
1652
|
+
return t(U, M, function(D) {
|
|
1653
|
+
D && (D.code === "EMFILE" || D.code === "ENFILE") ? ve([_, [U, M, N], D, C || Date.now(), Date.now()]) : typeof N == "function" && N.apply(this, arguments);
|
|
426
1654
|
});
|
|
427
1655
|
}
|
|
428
1656
|
}
|
|
429
|
-
var
|
|
430
|
-
e.writeFile =
|
|
431
|
-
function
|
|
432
|
-
return typeof
|
|
433
|
-
function
|
|
434
|
-
return
|
|
435
|
-
|
|
1657
|
+
var n = e.writeFile;
|
|
1658
|
+
e.writeFile = i;
|
|
1659
|
+
function i(v, A, b, _) {
|
|
1660
|
+
return typeof b == "function" && (_ = b, b = null), U(v, A, b, _);
|
|
1661
|
+
function U(M, N, C, D, T) {
|
|
1662
|
+
return n(M, N, C, function(P) {
|
|
1663
|
+
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([U, [M, N, C, D], P, T || Date.now(), Date.now()]) : typeof D == "function" && D.apply(this, arguments);
|
|
436
1664
|
});
|
|
437
1665
|
}
|
|
438
1666
|
}
|
|
439
1667
|
var o = e.appendFile;
|
|
440
|
-
o && (e.appendFile =
|
|
441
|
-
function
|
|
442
|
-
return typeof
|
|
443
|
-
function
|
|
444
|
-
return o(
|
|
445
|
-
|
|
1668
|
+
o && (e.appendFile = a);
|
|
1669
|
+
function a(v, A, b, _) {
|
|
1670
|
+
return typeof b == "function" && (_ = b, b = null), U(v, A, b, _);
|
|
1671
|
+
function U(M, N, C, D, T) {
|
|
1672
|
+
return o(M, N, C, function(P) {
|
|
1673
|
+
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([U, [M, N, C, D], P, T || Date.now(), Date.now()]) : typeof D == "function" && D.apply(this, arguments);
|
|
446
1674
|
});
|
|
447
1675
|
}
|
|
448
1676
|
}
|
|
449
|
-
var
|
|
450
|
-
|
|
451
|
-
function
|
|
452
|
-
return typeof
|
|
453
|
-
function
|
|
454
|
-
return
|
|
455
|
-
|
|
1677
|
+
var u = e.copyFile;
|
|
1678
|
+
u && (e.copyFile = y);
|
|
1679
|
+
function y(v, A, b, _) {
|
|
1680
|
+
return typeof b == "function" && (_ = b, b = 0), U(v, A, b, _);
|
|
1681
|
+
function U(M, N, C, D, T) {
|
|
1682
|
+
return u(M, N, C, function(P) {
|
|
1683
|
+
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([U, [M, N, C, D], P, T || Date.now(), Date.now()]) : typeof D == "function" && D.apply(this, arguments);
|
|
456
1684
|
});
|
|
457
1685
|
}
|
|
458
1686
|
}
|
|
459
|
-
var
|
|
460
|
-
e.readdir =
|
|
461
|
-
var
|
|
462
|
-
function
|
|
463
|
-
typeof
|
|
464
|
-
var
|
|
465
|
-
return
|
|
466
|
-
|
|
1687
|
+
var g = e.readdir;
|
|
1688
|
+
e.readdir = d;
|
|
1689
|
+
var f = /^v[0-5]\./;
|
|
1690
|
+
function d(v, A, b) {
|
|
1691
|
+
typeof A == "function" && (b = A, A = null);
|
|
1692
|
+
var _ = f.test(process.version) ? function(N, C, D, T) {
|
|
1693
|
+
return g(N, U(
|
|
1694
|
+
N,
|
|
1695
|
+
C,
|
|
467
1696
|
D,
|
|
468
|
-
|
|
469
|
-
_
|
|
1697
|
+
T
|
|
470
1698
|
));
|
|
471
|
-
} : function(
|
|
472
|
-
return
|
|
473
|
-
|
|
1699
|
+
} : function(N, C, D, T) {
|
|
1700
|
+
return g(N, C, U(
|
|
1701
|
+
N,
|
|
1702
|
+
C,
|
|
474
1703
|
D,
|
|
475
|
-
|
|
476
|
-
_
|
|
1704
|
+
T
|
|
477
1705
|
));
|
|
478
1706
|
};
|
|
479
|
-
return
|
|
480
|
-
function
|
|
481
|
-
return function(
|
|
482
|
-
|
|
483
|
-
C,
|
|
484
|
-
[P, E, D],
|
|
1707
|
+
return _(v, A, b);
|
|
1708
|
+
function U(M, N, C, D) {
|
|
1709
|
+
return function(T, P) {
|
|
1710
|
+
T && (T.code === "EMFILE" || T.code === "ENFILE") ? ve([
|
|
485
1711
|
_,
|
|
486
|
-
|
|
1712
|
+
[M, N, C],
|
|
1713
|
+
T,
|
|
1714
|
+
D || Date.now(),
|
|
487
1715
|
Date.now()
|
|
488
|
-
]) : (
|
|
1716
|
+
]) : (P && P.sort && P.sort(), typeof C == "function" && C.call(this, T, P));
|
|
489
1717
|
};
|
|
490
1718
|
}
|
|
491
1719
|
}
|
|
492
1720
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
493
|
-
var m =
|
|
494
|
-
|
|
1721
|
+
var m = Zi(e);
|
|
1722
|
+
I = m.ReadStream, G = m.WriteStream;
|
|
495
1723
|
}
|
|
496
|
-
var
|
|
497
|
-
|
|
498
|
-
var
|
|
499
|
-
|
|
1724
|
+
var h = e.ReadStream;
|
|
1725
|
+
h && (I.prototype = Object.create(h.prototype), I.prototype.open = L);
|
|
1726
|
+
var S = e.WriteStream;
|
|
1727
|
+
S && (G.prototype = Object.create(S.prototype), G.prototype.open = te), Object.defineProperty(e, "ReadStream", {
|
|
500
1728
|
get: function() {
|
|
501
|
-
return
|
|
1729
|
+
return I;
|
|
502
1730
|
},
|
|
503
|
-
set: function(
|
|
504
|
-
|
|
1731
|
+
set: function(v) {
|
|
1732
|
+
I = v;
|
|
505
1733
|
},
|
|
506
1734
|
enumerable: !0,
|
|
507
1735
|
configurable: !0
|
|
508
1736
|
}), Object.defineProperty(e, "WriteStream", {
|
|
509
1737
|
get: function() {
|
|
510
|
-
return
|
|
1738
|
+
return G;
|
|
511
1739
|
},
|
|
512
|
-
set: function(
|
|
513
|
-
|
|
1740
|
+
set: function(v) {
|
|
1741
|
+
G = v;
|
|
514
1742
|
},
|
|
515
1743
|
enumerable: !0,
|
|
516
1744
|
configurable: !0
|
|
517
1745
|
});
|
|
518
|
-
var $ =
|
|
1746
|
+
var $ = I;
|
|
519
1747
|
Object.defineProperty(e, "FileReadStream", {
|
|
520
1748
|
get: function() {
|
|
521
1749
|
return $;
|
|
522
1750
|
},
|
|
523
|
-
set: function(
|
|
524
|
-
$ =
|
|
1751
|
+
set: function(v) {
|
|
1752
|
+
$ = v;
|
|
525
1753
|
},
|
|
526
1754
|
enumerable: !0,
|
|
527
1755
|
configurable: !0
|
|
528
1756
|
});
|
|
529
|
-
var
|
|
1757
|
+
var k = G;
|
|
530
1758
|
Object.defineProperty(e, "FileWriteStream", {
|
|
531
1759
|
get: function() {
|
|
532
|
-
return
|
|
1760
|
+
return k;
|
|
533
1761
|
},
|
|
534
|
-
set: function(
|
|
535
|
-
|
|
1762
|
+
set: function(v) {
|
|
1763
|
+
k = v;
|
|
536
1764
|
},
|
|
537
1765
|
enumerable: !0,
|
|
538
1766
|
configurable: !0
|
|
539
1767
|
});
|
|
540
|
-
function
|
|
541
|
-
return this instanceof
|
|
1768
|
+
function I(v, A) {
|
|
1769
|
+
return this instanceof I ? (h.apply(this, arguments), this) : I.apply(Object.create(I.prototype), arguments);
|
|
542
1770
|
}
|
|
543
|
-
function
|
|
544
|
-
var
|
|
545
|
-
|
|
546
|
-
|
|
1771
|
+
function L() {
|
|
1772
|
+
var v = this;
|
|
1773
|
+
K(v.path, v.flags, v.mode, function(A, b) {
|
|
1774
|
+
A ? (v.autoClose && v.destroy(), v.emit("error", A)) : (v.fd = b, v.emit("open", b), v.read());
|
|
547
1775
|
});
|
|
548
1776
|
}
|
|
549
|
-
function
|
|
550
|
-
return this instanceof
|
|
1777
|
+
function G(v, A) {
|
|
1778
|
+
return this instanceof G ? (S.apply(this, arguments), this) : G.apply(Object.create(G.prototype), arguments);
|
|
551
1779
|
}
|
|
552
|
-
function
|
|
553
|
-
var
|
|
554
|
-
|
|
555
|
-
|
|
1780
|
+
function te() {
|
|
1781
|
+
var v = this;
|
|
1782
|
+
K(v.path, v.flags, v.mode, function(A, b) {
|
|
1783
|
+
A ? (v.destroy(), v.emit("error", A)) : (v.fd = b, v.emit("open", b));
|
|
556
1784
|
});
|
|
557
1785
|
}
|
|
558
|
-
function
|
|
559
|
-
return new e.ReadStream(
|
|
1786
|
+
function ie(v, A) {
|
|
1787
|
+
return new e.ReadStream(v, A);
|
|
560
1788
|
}
|
|
561
|
-
function
|
|
562
|
-
return new e.WriteStream(
|
|
1789
|
+
function he(v, A) {
|
|
1790
|
+
return new e.WriteStream(v, A);
|
|
563
1791
|
}
|
|
564
|
-
var
|
|
565
|
-
e.open =
|
|
566
|
-
function
|
|
567
|
-
return typeof
|
|
568
|
-
function
|
|
569
|
-
return
|
|
570
|
-
|
|
1792
|
+
var Z = e.open;
|
|
1793
|
+
e.open = K;
|
|
1794
|
+
function K(v, A, b, _) {
|
|
1795
|
+
return typeof b == "function" && (_ = b, b = null), U(v, A, b, _);
|
|
1796
|
+
function U(M, N, C, D, T) {
|
|
1797
|
+
return Z(M, N, C, function(P, fe) {
|
|
1798
|
+
P && (P.code === "EMFILE" || P.code === "ENFILE") ? ve([U, [M, N, C, D], P, T || Date.now(), Date.now()]) : typeof D == "function" && D.apply(this, arguments);
|
|
571
1799
|
});
|
|
572
1800
|
}
|
|
573
1801
|
}
|
|
574
1802
|
return e;
|
|
575
1803
|
}
|
|
576
|
-
function
|
|
577
|
-
|
|
578
|
-
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
581
|
-
for (var e = Date.now(), t = 0; t <
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
}
|
|
585
|
-
function
|
|
586
|
-
if (clearTimeout(
|
|
587
|
-
var e =
|
|
588
|
-
if (
|
|
589
|
-
|
|
590
|
-
else if (Date.now() -
|
|
591
|
-
|
|
592
|
-
var
|
|
593
|
-
typeof
|
|
1804
|
+
function ve(e) {
|
|
1805
|
+
pe("ENQUEUE", e[0].name, e[1]), W[V].push(e), Tt();
|
|
1806
|
+
}
|
|
1807
|
+
var Je;
|
|
1808
|
+
function Kt() {
|
|
1809
|
+
for (var e = Date.now(), t = 0; t < W[V].length; ++t)
|
|
1810
|
+
W[V][t].length > 2 && (W[V][t][3] = e, W[V][t][4] = e);
|
|
1811
|
+
Tt();
|
|
1812
|
+
}
|
|
1813
|
+
function Tt() {
|
|
1814
|
+
if (clearTimeout(Je), Je = void 0, W[V].length !== 0) {
|
|
1815
|
+
var e = W[V].shift(), t = e[0], r = e[1], n = e[2], i = e[3], o = e[4];
|
|
1816
|
+
if (i === void 0)
|
|
1817
|
+
pe("RETRY", t.name, r), t.apply(null, r);
|
|
1818
|
+
else if (Date.now() - i >= 6e4) {
|
|
1819
|
+
pe("TIMEOUT", t.name, r);
|
|
1820
|
+
var a = r.pop();
|
|
1821
|
+
typeof a == "function" && a.call(null, n);
|
|
594
1822
|
} else {
|
|
595
|
-
var
|
|
596
|
-
|
|
1823
|
+
var u = Date.now() - o, y = Math.max(o - i, 1), g = Math.min(y * 1.2, 100);
|
|
1824
|
+
u >= g ? (pe("RETRY", t.name, r), t.apply(null, r.concat([i]))) : W[V].push(e);
|
|
597
1825
|
}
|
|
598
|
-
|
|
1826
|
+
Je === void 0 && (Je = setTimeout(Tt, 0));
|
|
599
1827
|
}
|
|
600
1828
|
}
|
|
601
1829
|
(function(e) {
|
|
602
|
-
const t =
|
|
1830
|
+
const t = q.fromCallback, r = X, n = [
|
|
603
1831
|
"access",
|
|
604
1832
|
"appendFile",
|
|
605
1833
|
"chmod",
|
|
@@ -634,930 +1862,937 @@ function xe() {
|
|
|
634
1862
|
"unlink",
|
|
635
1863
|
"utimes",
|
|
636
1864
|
"writeFile"
|
|
637
|
-
].filter((
|
|
638
|
-
Object.assign(e,
|
|
639
|
-
e[
|
|
640
|
-
}), e.exists = function(
|
|
641
|
-
return typeof o == "function" ?
|
|
642
|
-
}, e.read = function(
|
|
643
|
-
return typeof
|
|
644
|
-
|
|
1865
|
+
].filter((i) => typeof r[i] == "function");
|
|
1866
|
+
Object.assign(e, r), n.forEach((i) => {
|
|
1867
|
+
e[i] = t(r[i]);
|
|
1868
|
+
}), e.exists = function(i, o) {
|
|
1869
|
+
return typeof o == "function" ? r.exists(i, o) : new Promise((a) => r.exists(i, a));
|
|
1870
|
+
}, e.read = function(i, o, a, u, y, g) {
|
|
1871
|
+
return typeof g == "function" ? r.read(i, o, a, u, y, g) : new Promise((f, d) => {
|
|
1872
|
+
r.read(i, o, a, u, y, (m, h, S) => {
|
|
645
1873
|
if (m)
|
|
646
|
-
return
|
|
647
|
-
|
|
1874
|
+
return d(m);
|
|
1875
|
+
f({ bytesRead: h, buffer: S });
|
|
648
1876
|
});
|
|
649
1877
|
});
|
|
650
|
-
}, e.write = function(
|
|
651
|
-
return typeof
|
|
652
|
-
|
|
653
|
-
if (
|
|
654
|
-
return
|
|
655
|
-
|
|
1878
|
+
}, e.write = function(i, o, ...a) {
|
|
1879
|
+
return typeof a[a.length - 1] == "function" ? r.write(i, o, ...a) : new Promise((u, y) => {
|
|
1880
|
+
r.write(i, o, ...a, (g, f, d) => {
|
|
1881
|
+
if (g)
|
|
1882
|
+
return y(g);
|
|
1883
|
+
u({ bytesWritten: f, buffer: d });
|
|
656
1884
|
});
|
|
657
1885
|
});
|
|
658
|
-
}, e.readv = function(
|
|
659
|
-
return typeof
|
|
660
|
-
|
|
661
|
-
if (
|
|
662
|
-
return
|
|
663
|
-
|
|
1886
|
+
}, e.readv = function(i, o, ...a) {
|
|
1887
|
+
return typeof a[a.length - 1] == "function" ? r.readv(i, o, ...a) : new Promise((u, y) => {
|
|
1888
|
+
r.readv(i, o, ...a, (g, f, d) => {
|
|
1889
|
+
if (g)
|
|
1890
|
+
return y(g);
|
|
1891
|
+
u({ bytesRead: f, buffers: d });
|
|
664
1892
|
});
|
|
665
1893
|
});
|
|
666
|
-
}, e.writev = function(
|
|
667
|
-
return typeof
|
|
668
|
-
|
|
669
|
-
if (
|
|
670
|
-
return
|
|
671
|
-
|
|
1894
|
+
}, e.writev = function(i, o, ...a) {
|
|
1895
|
+
return typeof a[a.length - 1] == "function" ? r.writev(i, o, ...a) : new Promise((u, y) => {
|
|
1896
|
+
r.writev(i, o, ...a, (g, f, d) => {
|
|
1897
|
+
if (g)
|
|
1898
|
+
return y(g);
|
|
1899
|
+
u({ bytesWritten: f, buffers: d });
|
|
672
1900
|
});
|
|
673
1901
|
});
|
|
674
|
-
}, typeof
|
|
1902
|
+
}, typeof r.realpath.native == "function" ? e.realpath.native = t(r.realpath.native) : process.emitWarning(
|
|
675
1903
|
"fs.realpath.native is not a function. Is fs being monkey-patched?",
|
|
676
1904
|
"Warning",
|
|
677
1905
|
"fs-extra-WARN0003"
|
|
678
1906
|
);
|
|
679
|
-
})(
|
|
680
|
-
var
|
|
681
|
-
const
|
|
682
|
-
|
|
683
|
-
if (process.platform === "win32" && /[<>:"|?*]/.test(t.replace(
|
|
684
|
-
const
|
|
685
|
-
throw
|
|
1907
|
+
})(de);
|
|
1908
|
+
var Wt = {}, Rr = {};
|
|
1909
|
+
const ro = Q;
|
|
1910
|
+
Rr.checkPath = function(t) {
|
|
1911
|
+
if (process.platform === "win32" && /[<>:"|?*]/.test(t.replace(ro.parse(t).root, ""))) {
|
|
1912
|
+
const n = new Error(`Path contains invalid characters: ${t}`);
|
|
1913
|
+
throw n.code = "EINVAL", n;
|
|
686
1914
|
}
|
|
687
1915
|
};
|
|
688
|
-
const
|
|
1916
|
+
const Tr = de, { checkPath: Wr } = Rr, Ur = (e) => {
|
|
689
1917
|
const t = { mode: 511 };
|
|
690
1918
|
return typeof e == "number" ? e : { ...t, ...e }.mode;
|
|
691
1919
|
};
|
|
692
|
-
|
|
693
|
-
mode:
|
|
1920
|
+
Wt.makeDir = async (e, t) => (Wr(e), Tr.mkdir(e, {
|
|
1921
|
+
mode: Ur(t),
|
|
694
1922
|
recursive: !0
|
|
695
1923
|
}));
|
|
696
|
-
|
|
697
|
-
mode:
|
|
1924
|
+
Wt.makeDirSync = (e, t) => (Wr(e), Tr.mkdirSync(e, {
|
|
1925
|
+
mode: Ur(t),
|
|
698
1926
|
recursive: !0
|
|
699
1927
|
}));
|
|
700
|
-
const
|
|
701
|
-
var
|
|
702
|
-
mkdirs:
|
|
703
|
-
mkdirsSync:
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
1928
|
+
const no = q.fromPromise, { makeDir: io, makeDirSync: St } = Wt, gt = no(io);
|
|
1929
|
+
var ne = {
|
|
1930
|
+
mkdirs: gt,
|
|
1931
|
+
mkdirsSync: St,
|
|
1932
|
+
// alias
|
|
1933
|
+
mkdirp: gt,
|
|
1934
|
+
mkdirpSync: St,
|
|
1935
|
+
ensureDir: gt,
|
|
1936
|
+
ensureDirSync: St
|
|
708
1937
|
};
|
|
709
|
-
const
|
|
710
|
-
function
|
|
711
|
-
return
|
|
1938
|
+
const oo = q.fromPromise, Lr = de;
|
|
1939
|
+
function ao(e) {
|
|
1940
|
+
return Lr.access(e).then(() => !0).catch(() => !1);
|
|
712
1941
|
}
|
|
713
|
-
var
|
|
714
|
-
pathExists:
|
|
715
|
-
pathExistsSync:
|
|
1942
|
+
var me = {
|
|
1943
|
+
pathExists: oo(ao),
|
|
1944
|
+
pathExistsSync: Lr.existsSync
|
|
716
1945
|
};
|
|
717
|
-
const
|
|
718
|
-
function
|
|
719
|
-
|
|
720
|
-
if (
|
|
721
|
-
return i
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
1946
|
+
const Oe = X;
|
|
1947
|
+
function co(e, t, r, n) {
|
|
1948
|
+
Oe.open(e, "r+", (i, o) => {
|
|
1949
|
+
if (i)
|
|
1950
|
+
return n(i);
|
|
1951
|
+
Oe.futimes(o, t, r, (a) => {
|
|
1952
|
+
Oe.close(o, (u) => {
|
|
1953
|
+
n && n(a || u);
|
|
725
1954
|
});
|
|
726
1955
|
});
|
|
727
1956
|
});
|
|
728
1957
|
}
|
|
729
|
-
function
|
|
730
|
-
const
|
|
731
|
-
return
|
|
1958
|
+
function uo(e, t, r) {
|
|
1959
|
+
const n = Oe.openSync(e, "r+");
|
|
1960
|
+
return Oe.futimesSync(n, t, r), Oe.closeSync(n);
|
|
732
1961
|
}
|
|
733
|
-
var
|
|
734
|
-
utimesMillis:
|
|
735
|
-
utimesMillisSync:
|
|
1962
|
+
var Gr = {
|
|
1963
|
+
utimesMillis: co,
|
|
1964
|
+
utimesMillisSync: uo
|
|
736
1965
|
};
|
|
737
|
-
const
|
|
738
|
-
function
|
|
739
|
-
const
|
|
1966
|
+
const Pe = de, J = Q, fo = Nt;
|
|
1967
|
+
function so(e, t, r) {
|
|
1968
|
+
const n = r.dereference ? (i) => Pe.stat(i, { bigint: !0 }) : (i) => Pe.lstat(i, { bigint: !0 });
|
|
740
1969
|
return Promise.all([
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
if (
|
|
1970
|
+
n(e),
|
|
1971
|
+
n(t).catch((i) => {
|
|
1972
|
+
if (i.code === "ENOENT")
|
|
744
1973
|
return null;
|
|
745
|
-
throw
|
|
1974
|
+
throw i;
|
|
746
1975
|
})
|
|
747
|
-
]).then(([
|
|
1976
|
+
]).then(([i, o]) => ({ srcStat: i, destStat: o }));
|
|
748
1977
|
}
|
|
749
|
-
function
|
|
750
|
-
let
|
|
751
|
-
const
|
|
1978
|
+
function lo(e, t, r) {
|
|
1979
|
+
let n;
|
|
1980
|
+
const i = r.dereference ? (a) => Pe.statSync(a, { bigint: !0 }) : (a) => Pe.lstatSync(a, { bigint: !0 }), o = i(e);
|
|
752
1981
|
try {
|
|
753
|
-
|
|
754
|
-
} catch (
|
|
755
|
-
if (
|
|
1982
|
+
n = i(t);
|
|
1983
|
+
} catch (a) {
|
|
1984
|
+
if (a.code === "ENOENT")
|
|
756
1985
|
return { srcStat: o, destStat: null };
|
|
757
|
-
throw
|
|
1986
|
+
throw a;
|
|
758
1987
|
}
|
|
759
|
-
return { srcStat: o, destStat:
|
|
1988
|
+
return { srcStat: o, destStat: n };
|
|
760
1989
|
}
|
|
761
|
-
function
|
|
762
|
-
|
|
1990
|
+
function yo(e, t, r, n, i) {
|
|
1991
|
+
fo.callbackify(so)(e, t, n, (o, a) => {
|
|
763
1992
|
if (o)
|
|
764
|
-
return
|
|
765
|
-
const { srcStat:
|
|
766
|
-
if (
|
|
767
|
-
if (
|
|
768
|
-
const
|
|
769
|
-
return
|
|
1993
|
+
return i(o);
|
|
1994
|
+
const { srcStat: u, destStat: y } = a;
|
|
1995
|
+
if (y) {
|
|
1996
|
+
if (Re(u, y)) {
|
|
1997
|
+
const g = J.basename(e), f = J.basename(t);
|
|
1998
|
+
return r === "move" && g !== f && g.toLowerCase() === f.toLowerCase() ? i(null, { srcStat: u, destStat: y, isChangingCase: !0 }) : i(new Error("Source and destination must not be the same."));
|
|
770
1999
|
}
|
|
771
|
-
if (
|
|
772
|
-
return
|
|
773
|
-
if (!
|
|
774
|
-
return
|
|
2000
|
+
if (u.isDirectory() && !y.isDirectory())
|
|
2001
|
+
return i(new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`));
|
|
2002
|
+
if (!u.isDirectory() && y.isDirectory())
|
|
2003
|
+
return i(new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`));
|
|
775
2004
|
}
|
|
776
|
-
return
|
|
2005
|
+
return u.isDirectory() && Ut(e, t) ? i(new Error(nt(e, t, r))) : i(null, { srcStat: u, destStat: y });
|
|
777
2006
|
});
|
|
778
2007
|
}
|
|
779
|
-
function
|
|
780
|
-
const { srcStat:
|
|
2008
|
+
function po(e, t, r, n) {
|
|
2009
|
+
const { srcStat: i, destStat: o } = lo(e, t, n);
|
|
781
2010
|
if (o) {
|
|
782
|
-
if (
|
|
783
|
-
const
|
|
784
|
-
if (
|
|
785
|
-
return { srcStat:
|
|
2011
|
+
if (Re(i, o)) {
|
|
2012
|
+
const a = J.basename(e), u = J.basename(t);
|
|
2013
|
+
if (r === "move" && a !== u && a.toLowerCase() === u.toLowerCase())
|
|
2014
|
+
return { srcStat: i, destStat: o, isChangingCase: !0 };
|
|
786
2015
|
throw new Error("Source and destination must not be the same.");
|
|
787
2016
|
}
|
|
788
|
-
if (
|
|
2017
|
+
if (i.isDirectory() && !o.isDirectory())
|
|
789
2018
|
throw new Error(`Cannot overwrite non-directory '${t}' with directory '${e}'.`);
|
|
790
|
-
if (!
|
|
2019
|
+
if (!i.isDirectory() && o.isDirectory())
|
|
791
2020
|
throw new Error(`Cannot overwrite directory '${t}' with non-directory '${e}'.`);
|
|
792
2021
|
}
|
|
793
|
-
if (
|
|
794
|
-
throw new Error(
|
|
795
|
-
return { srcStat:
|
|
796
|
-
}
|
|
797
|
-
function
|
|
798
|
-
const o =
|
|
799
|
-
if (
|
|
800
|
-
return
|
|
801
|
-
|
|
802
|
-
}
|
|
803
|
-
function
|
|
804
|
-
const
|
|
805
|
-
if (o ===
|
|
2022
|
+
if (i.isDirectory() && Ut(e, t))
|
|
2023
|
+
throw new Error(nt(e, t, r));
|
|
2024
|
+
return { srcStat: i, destStat: o };
|
|
2025
|
+
}
|
|
2026
|
+
function Jr(e, t, r, n, i) {
|
|
2027
|
+
const o = J.resolve(J.dirname(e)), a = J.resolve(J.dirname(r));
|
|
2028
|
+
if (a === o || a === J.parse(a).root)
|
|
2029
|
+
return i();
|
|
2030
|
+
Pe.stat(a, { bigint: !0 }, (u, y) => u ? u.code === "ENOENT" ? i() : i(u) : Re(t, y) ? i(new Error(nt(e, r, n))) : Jr(e, t, a, n, i));
|
|
2031
|
+
}
|
|
2032
|
+
function Vr(e, t, r, n) {
|
|
2033
|
+
const i = J.resolve(J.dirname(e)), o = J.resolve(J.dirname(r));
|
|
2034
|
+
if (o === i || o === J.parse(o).root)
|
|
806
2035
|
return;
|
|
807
|
-
let
|
|
2036
|
+
let a;
|
|
808
2037
|
try {
|
|
809
|
-
|
|
810
|
-
} catch (
|
|
811
|
-
if (
|
|
2038
|
+
a = Pe.statSync(o, { bigint: !0 });
|
|
2039
|
+
} catch (u) {
|
|
2040
|
+
if (u.code === "ENOENT")
|
|
812
2041
|
return;
|
|
813
|
-
throw
|
|
2042
|
+
throw u;
|
|
814
2043
|
}
|
|
815
|
-
if (
|
|
816
|
-
throw new Error(
|
|
817
|
-
return
|
|
2044
|
+
if (Re(t, a))
|
|
2045
|
+
throw new Error(nt(e, r, n));
|
|
2046
|
+
return Vr(e, t, o, n);
|
|
818
2047
|
}
|
|
819
|
-
function
|
|
2048
|
+
function Re(e, t) {
|
|
820
2049
|
return t.ino && t.dev && t.ino === e.ino && t.dev === e.dev;
|
|
821
2050
|
}
|
|
822
|
-
function
|
|
823
|
-
const
|
|
824
|
-
return
|
|
2051
|
+
function Ut(e, t) {
|
|
2052
|
+
const r = J.resolve(e).split(J.sep).filter((i) => i), n = J.resolve(t).split(J.sep).filter((i) => i);
|
|
2053
|
+
return r.reduce((i, o, a) => i && n[a] === o, !0);
|
|
825
2054
|
}
|
|
826
|
-
function
|
|
827
|
-
return `Cannot ${
|
|
2055
|
+
function nt(e, t, r) {
|
|
2056
|
+
return `Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`;
|
|
828
2057
|
}
|
|
829
|
-
var
|
|
830
|
-
checkPaths:
|
|
831
|
-
checkPathsSync:
|
|
832
|
-
checkParentPaths:
|
|
833
|
-
checkParentPathsSync:
|
|
834
|
-
isSrcSubdir:
|
|
835
|
-
areIdentical:
|
|
2058
|
+
var ke = {
|
|
2059
|
+
checkPaths: yo,
|
|
2060
|
+
checkPathsSync: po,
|
|
2061
|
+
checkParentPaths: Jr,
|
|
2062
|
+
checkParentPathsSync: Vr,
|
|
2063
|
+
isSrcSubdir: Ut,
|
|
2064
|
+
areIdentical: Re
|
|
836
2065
|
};
|
|
837
|
-
const
|
|
838
|
-
function
|
|
839
|
-
typeof
|
|
840
|
-
},
|
|
2066
|
+
const Y = X, Ne = Q, mo = ne.mkdirs, ho = me.pathExists, So = Gr.utimesMillis, Ce = ke;
|
|
2067
|
+
function go(e, t, r, n) {
|
|
2068
|
+
typeof r == "function" && !n ? (n = r, r = {}) : typeof r == "function" && (r = { filter: r }), n = n || function() {
|
|
2069
|
+
}, 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(
|
|
841
2070
|
`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
842
2071
|
|
|
843
2072
|
see https://github.com/jprichardson/node-fs-extra/issues/269`,
|
|
844
2073
|
"Warning",
|
|
845
2074
|
"fs-extra-WARN0001"
|
|
846
|
-
),
|
|
847
|
-
if (
|
|
848
|
-
return i
|
|
849
|
-
const { srcStat:
|
|
850
|
-
|
|
851
|
-
if (
|
|
852
|
-
return
|
|
853
|
-
|
|
854
|
-
if (
|
|
855
|
-
return
|
|
856
|
-
if (!
|
|
857
|
-
return
|
|
858
|
-
|
|
2075
|
+
), Ce.checkPaths(e, t, "copy", r, (i, o) => {
|
|
2076
|
+
if (i)
|
|
2077
|
+
return n(i);
|
|
2078
|
+
const { srcStat: a, destStat: u } = o;
|
|
2079
|
+
Ce.checkParentPaths(e, a, t, "copy", (y) => {
|
|
2080
|
+
if (y)
|
|
2081
|
+
return n(y);
|
|
2082
|
+
zr(e, t, r, (g, f) => {
|
|
2083
|
+
if (g)
|
|
2084
|
+
return n(g);
|
|
2085
|
+
if (!f)
|
|
2086
|
+
return n();
|
|
2087
|
+
vo(u, e, t, r, n);
|
|
859
2088
|
});
|
|
860
2089
|
});
|
|
861
2090
|
});
|
|
862
2091
|
}
|
|
863
|
-
function
|
|
864
|
-
const o =
|
|
865
|
-
|
|
866
|
-
if (c)
|
|
867
|
-
return r(c);
|
|
2092
|
+
function vo(e, t, r, n, i) {
|
|
2093
|
+
const o = Ne.dirname(r);
|
|
2094
|
+
ho(o, (a, u) => {
|
|
868
2095
|
if (a)
|
|
869
|
-
return
|
|
870
|
-
|
|
2096
|
+
return i(a);
|
|
2097
|
+
if (u)
|
|
2098
|
+
return Ft(e, t, r, n, i);
|
|
2099
|
+
mo(o, (y) => y ? i(y) : Ft(e, t, r, n, i));
|
|
871
2100
|
});
|
|
872
2101
|
}
|
|
873
|
-
function
|
|
874
|
-
if (!
|
|
875
|
-
return
|
|
876
|
-
Promise.resolve(
|
|
2102
|
+
function zr(e, t, r, n) {
|
|
2103
|
+
if (!r.filter)
|
|
2104
|
+
return n(null, !0);
|
|
2105
|
+
Promise.resolve(r.filter(e, t)).then((i) => n(null, i), (i) => n(i));
|
|
877
2106
|
}
|
|
878
|
-
function
|
|
879
|
-
(
|
|
2107
|
+
function Ft(e, t, r, n, i) {
|
|
2108
|
+
(n.dereference ? Y.stat : Y.lstat)(t, (a, u) => a ? i(a) : u.isDirectory() ? Po(u, e, t, r, n, i) : u.isFile() || u.isCharacterDevice() || u.isBlockDevice() ? wo(u, e, t, r, n, i) : u.isSymbolicLink() ? jo(e, t, r, n, i) : u.isSocket() ? i(new Error(`Cannot copy a socket file: ${t}`)) : u.isFIFO() ? i(new Error(`Cannot copy a FIFO pipe: ${t}`)) : i(new Error(`Unknown file: ${t}`)));
|
|
880
2109
|
}
|
|
881
|
-
function
|
|
882
|
-
return t ?
|
|
2110
|
+
function wo(e, t, r, n, i, o) {
|
|
2111
|
+
return t ? bo(e, r, n, i, o) : xr(e, r, n, i, o);
|
|
883
2112
|
}
|
|
884
|
-
function
|
|
885
|
-
if (
|
|
886
|
-
|
|
2113
|
+
function bo(e, t, r, n, i) {
|
|
2114
|
+
if (n.overwrite)
|
|
2115
|
+
Y.unlink(r, (o) => o ? i(o) : xr(e, t, r, n, i));
|
|
887
2116
|
else
|
|
888
|
-
return
|
|
2117
|
+
return n.errorOnExist ? i(new Error(`'${r}' already exists`)) : i();
|
|
889
2118
|
}
|
|
890
|
-
function
|
|
891
|
-
|
|
2119
|
+
function xr(e, t, r, n, i) {
|
|
2120
|
+
Y.copyFile(t, r, (o) => o ? i(o) : n.preserveTimestamps ? Ao(e.mode, t, r, i) : it(r, e.mode, i));
|
|
892
2121
|
}
|
|
893
|
-
function
|
|
894
|
-
return
|
|
2122
|
+
function Ao(e, t, r, n) {
|
|
2123
|
+
return Oo(e) ? Eo(r, e, (i) => i ? n(i) : er(e, t, r, n)) : er(e, t, r, n);
|
|
895
2124
|
}
|
|
896
|
-
function
|
|
2125
|
+
function Oo(e) {
|
|
897
2126
|
return (e & 128) === 0;
|
|
898
2127
|
}
|
|
899
|
-
function
|
|
900
|
-
return
|
|
2128
|
+
function Eo(e, t, r) {
|
|
2129
|
+
return it(e, t | 128, r);
|
|
901
2130
|
}
|
|
902
|
-
function
|
|
903
|
-
|
|
2131
|
+
function er(e, t, r, n) {
|
|
2132
|
+
$o(t, r, (i) => i ? n(i) : it(r, e, n));
|
|
904
2133
|
}
|
|
905
|
-
function
|
|
906
|
-
return
|
|
2134
|
+
function it(e, t, r) {
|
|
2135
|
+
return Y.chmod(e, t, r);
|
|
907
2136
|
}
|
|
908
|
-
function
|
|
909
|
-
|
|
2137
|
+
function $o(e, t, r) {
|
|
2138
|
+
Y.stat(e, (n, i) => n ? r(n) : So(t, i.atime, i.mtime, r));
|
|
910
2139
|
}
|
|
911
|
-
function
|
|
912
|
-
return t ?
|
|
2140
|
+
function Po(e, t, r, n, i, o) {
|
|
2141
|
+
return t ? qr(r, n, i, o) : Fo(e.mode, r, n, i, o);
|
|
913
2142
|
}
|
|
914
|
-
function
|
|
915
|
-
|
|
2143
|
+
function Fo(e, t, r, n, i) {
|
|
2144
|
+
Y.mkdir(r, (o) => {
|
|
916
2145
|
if (o)
|
|
917
|
-
return
|
|
918
|
-
|
|
2146
|
+
return i(o);
|
|
2147
|
+
qr(t, r, n, (a) => a ? i(a) : it(r, e, i));
|
|
919
2148
|
});
|
|
920
2149
|
}
|
|
921
|
-
function
|
|
922
|
-
|
|
2150
|
+
function qr(e, t, r, n) {
|
|
2151
|
+
Y.readdir(e, (i, o) => i ? n(i) : kt(o, e, t, r, n));
|
|
923
2152
|
}
|
|
924
|
-
function
|
|
2153
|
+
function kt(e, t, r, n, i) {
|
|
925
2154
|
const o = e.pop();
|
|
926
|
-
return o ?
|
|
927
|
-
}
|
|
928
|
-
function
|
|
929
|
-
const
|
|
930
|
-
|
|
931
|
-
if (
|
|
932
|
-
return o(
|
|
933
|
-
if (!
|
|
934
|
-
return
|
|
935
|
-
|
|
936
|
-
if (
|
|
937
|
-
return o(
|
|
938
|
-
const { destStat: m } =
|
|
939
|
-
|
|
2155
|
+
return o ? ko(e, o, t, r, n, i) : i();
|
|
2156
|
+
}
|
|
2157
|
+
function ko(e, t, r, n, i, o) {
|
|
2158
|
+
const a = Ne.join(r, t), u = Ne.join(n, t);
|
|
2159
|
+
zr(a, u, i, (y, g) => {
|
|
2160
|
+
if (y)
|
|
2161
|
+
return o(y);
|
|
2162
|
+
if (!g)
|
|
2163
|
+
return kt(e, r, n, i, o);
|
|
2164
|
+
Ce.checkPaths(a, u, "copy", i, (f, d) => {
|
|
2165
|
+
if (f)
|
|
2166
|
+
return o(f);
|
|
2167
|
+
const { destStat: m } = d;
|
|
2168
|
+
Ft(m, a, u, i, (h) => h ? o(h) : kt(e, r, n, i, o));
|
|
940
2169
|
});
|
|
941
2170
|
});
|
|
942
2171
|
}
|
|
943
|
-
function
|
|
944
|
-
|
|
2172
|
+
function jo(e, t, r, n, i) {
|
|
2173
|
+
Y.readlink(t, (o, a) => {
|
|
945
2174
|
if (o)
|
|
946
|
-
return
|
|
947
|
-
if (
|
|
948
|
-
|
|
2175
|
+
return i(o);
|
|
2176
|
+
if (n.dereference && (a = Ne.resolve(process.cwd(), a)), e)
|
|
2177
|
+
Y.readlink(r, (u, y) => u ? u.code === "EINVAL" || u.code === "UNKNOWN" ? Y.symlink(a, r, i) : i(u) : (n.dereference && (y = Ne.resolve(process.cwd(), y)), Ce.isSrcSubdir(a, y) ? i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${y}'.`)) : Ce.isSrcSubdir(y, a) ? i(new Error(`Cannot overwrite '${y}' with '${a}'.`)) : Do(a, r, i)));
|
|
949
2178
|
else
|
|
950
|
-
return
|
|
2179
|
+
return Y.symlink(a, r, i);
|
|
951
2180
|
});
|
|
952
2181
|
}
|
|
953
|
-
function
|
|
954
|
-
|
|
2182
|
+
function Do(e, t, r) {
|
|
2183
|
+
Y.unlink(t, (n) => n ? r(n) : Y.symlink(e, t, r));
|
|
955
2184
|
}
|
|
956
|
-
var
|
|
957
|
-
const
|
|
958
|
-
function
|
|
959
|
-
typeof
|
|
2185
|
+
var Io = go;
|
|
2186
|
+
const z = X, Be = Q, No = ne.mkdirsSync, Co = Gr.utimesMillisSync, _e = ke;
|
|
2187
|
+
function Bo(e, t, r) {
|
|
2188
|
+
typeof r == "function" && (r = { filter: r }), 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(
|
|
960
2189
|
`Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
961
2190
|
|
|
962
2191
|
see https://github.com/jprichardson/node-fs-extra/issues/269`,
|
|
963
2192
|
"Warning",
|
|
964
2193
|
"fs-extra-WARN0002"
|
|
965
2194
|
);
|
|
966
|
-
const { srcStat:
|
|
967
|
-
if (
|
|
2195
|
+
const { srcStat: n, destStat: i } = _e.checkPathsSync(e, t, "copy", r);
|
|
2196
|
+
if (_e.checkParentPathsSync(e, n, t, "copy"), r.filter && !r.filter(e, t))
|
|
968
2197
|
return;
|
|
969
|
-
const o =
|
|
970
|
-
return
|
|
2198
|
+
const o = Be.dirname(t);
|
|
2199
|
+
return z.existsSync(o) || No(o), Hr(i, e, t, r);
|
|
971
2200
|
}
|
|
972
|
-
function
|
|
973
|
-
const o = (
|
|
2201
|
+
function Hr(e, t, r, n) {
|
|
2202
|
+
const o = (n.dereference ? z.statSync : z.lstatSync)(t);
|
|
974
2203
|
if (o.isDirectory())
|
|
975
|
-
return
|
|
2204
|
+
return Lo(o, e, t, r, n);
|
|
976
2205
|
if (o.isFile() || o.isCharacterDevice() || o.isBlockDevice())
|
|
977
|
-
return
|
|
2206
|
+
return _o(o, e, t, r, n);
|
|
978
2207
|
if (o.isSymbolicLink())
|
|
979
|
-
return
|
|
2208
|
+
return Vo(e, t, r, n);
|
|
980
2209
|
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}`);
|
|
981
2210
|
}
|
|
982
|
-
function
|
|
983
|
-
return t ?
|
|
2211
|
+
function _o(e, t, r, n, i) {
|
|
2212
|
+
return t ? Mo(e, r, n, i) : Yr(e, r, n, i);
|
|
984
2213
|
}
|
|
985
|
-
function
|
|
986
|
-
if (
|
|
987
|
-
return
|
|
988
|
-
if (
|
|
989
|
-
throw new Error(`'${
|
|
2214
|
+
function Mo(e, t, r, n) {
|
|
2215
|
+
if (n.overwrite)
|
|
2216
|
+
return z.unlinkSync(r), Yr(e, t, r, n);
|
|
2217
|
+
if (n.errorOnExist)
|
|
2218
|
+
throw new Error(`'${r}' already exists`);
|
|
990
2219
|
}
|
|
991
|
-
function
|
|
992
|
-
return
|
|
2220
|
+
function Yr(e, t, r, n) {
|
|
2221
|
+
return z.copyFileSync(t, r), n.preserveTimestamps && Ro(e.mode, t, r), Lt(r, e.mode);
|
|
993
2222
|
}
|
|
994
|
-
function
|
|
995
|
-
return
|
|
2223
|
+
function Ro(e, t, r) {
|
|
2224
|
+
return To(e) && Wo(r, e), Uo(t, r);
|
|
996
2225
|
}
|
|
997
|
-
function
|
|
2226
|
+
function To(e) {
|
|
998
2227
|
return (e & 128) === 0;
|
|
999
2228
|
}
|
|
1000
|
-
function
|
|
1001
|
-
return
|
|
2229
|
+
function Wo(e, t) {
|
|
2230
|
+
return Lt(e, t | 128);
|
|
1002
2231
|
}
|
|
1003
|
-
function
|
|
1004
|
-
return
|
|
2232
|
+
function Lt(e, t) {
|
|
2233
|
+
return z.chmodSync(e, t);
|
|
1005
2234
|
}
|
|
1006
|
-
function
|
|
1007
|
-
const
|
|
1008
|
-
return
|
|
2235
|
+
function Uo(e, t) {
|
|
2236
|
+
const r = z.statSync(e);
|
|
2237
|
+
return Co(t, r.atime, r.mtime);
|
|
1009
2238
|
}
|
|
1010
|
-
function
|
|
1011
|
-
return t ?
|
|
2239
|
+
function Lo(e, t, r, n, i) {
|
|
2240
|
+
return t ? Qr(r, n, i) : Go(e.mode, r, n, i);
|
|
1012
2241
|
}
|
|
1013
|
-
function
|
|
1014
|
-
return
|
|
2242
|
+
function Go(e, t, r, n) {
|
|
2243
|
+
return z.mkdirSync(r), Qr(t, r, n), Lt(r, e);
|
|
1015
2244
|
}
|
|
1016
|
-
function
|
|
1017
|
-
|
|
2245
|
+
function Qr(e, t, r) {
|
|
2246
|
+
z.readdirSync(e).forEach((n) => Jo(n, e, t, r));
|
|
1018
2247
|
}
|
|
1019
|
-
function
|
|
1020
|
-
const
|
|
1021
|
-
if (
|
|
2248
|
+
function Jo(e, t, r, n) {
|
|
2249
|
+
const i = Be.join(t, e), o = Be.join(r, e);
|
|
2250
|
+
if (n.filter && !n.filter(i, o))
|
|
1022
2251
|
return;
|
|
1023
|
-
const { destStat:
|
|
1024
|
-
return
|
|
2252
|
+
const { destStat: a } = _e.checkPathsSync(i, o, "copy", n);
|
|
2253
|
+
return Hr(a, i, o, n);
|
|
1025
2254
|
}
|
|
1026
|
-
function
|
|
1027
|
-
let
|
|
1028
|
-
if (
|
|
2255
|
+
function Vo(e, t, r, n) {
|
|
2256
|
+
let i = z.readlinkSync(t);
|
|
2257
|
+
if (n.dereference && (i = Be.resolve(process.cwd(), i)), e) {
|
|
1029
2258
|
let o;
|
|
1030
2259
|
try {
|
|
1031
|
-
o =
|
|
1032
|
-
} catch (
|
|
1033
|
-
if (
|
|
1034
|
-
return
|
|
1035
|
-
throw
|
|
2260
|
+
o = z.readlinkSync(r);
|
|
2261
|
+
} catch (a) {
|
|
2262
|
+
if (a.code === "EINVAL" || a.code === "UNKNOWN")
|
|
2263
|
+
return z.symlinkSync(i, r);
|
|
2264
|
+
throw a;
|
|
1036
2265
|
}
|
|
1037
|
-
if (
|
|
1038
|
-
throw new Error(`Cannot copy '${
|
|
1039
|
-
if (
|
|
1040
|
-
throw new Error(`Cannot overwrite '${o}' with '${
|
|
1041
|
-
return
|
|
2266
|
+
if (n.dereference && (o = Be.resolve(process.cwd(), o)), _e.isSrcSubdir(i, o))
|
|
2267
|
+
throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${o}'.`);
|
|
2268
|
+
if (_e.isSrcSubdir(o, i))
|
|
2269
|
+
throw new Error(`Cannot overwrite '${o}' with '${i}'.`);
|
|
2270
|
+
return zo(i, r);
|
|
1042
2271
|
} else
|
|
1043
|
-
return
|
|
2272
|
+
return z.symlinkSync(i, r);
|
|
1044
2273
|
}
|
|
1045
|
-
function
|
|
1046
|
-
return
|
|
2274
|
+
function zo(e, t) {
|
|
2275
|
+
return z.unlinkSync(t), z.symlinkSync(e, t);
|
|
1047
2276
|
}
|
|
1048
|
-
var
|
|
1049
|
-
const
|
|
1050
|
-
var
|
|
1051
|
-
copy:
|
|
1052
|
-
copySync:
|
|
2277
|
+
var xo = Bo;
|
|
2278
|
+
const qo = q.fromCallback;
|
|
2279
|
+
var Gt = {
|
|
2280
|
+
copy: qo(Io),
|
|
2281
|
+
copySync: xo
|
|
1053
2282
|
};
|
|
1054
|
-
const
|
|
1055
|
-
function
|
|
1056
|
-
|
|
2283
|
+
const Xr = X, Ho = q.fromCallback;
|
|
2284
|
+
function Yo(e, t) {
|
|
2285
|
+
Xr.rm(e, { recursive: !0, force: !0 }, t);
|
|
1057
2286
|
}
|
|
1058
|
-
function
|
|
1059
|
-
|
|
2287
|
+
function Qo(e) {
|
|
2288
|
+
Xr.rmSync(e, { recursive: !0, force: !0 });
|
|
1060
2289
|
}
|
|
1061
|
-
var
|
|
1062
|
-
remove:
|
|
1063
|
-
removeSync:
|
|
2290
|
+
var ot = {
|
|
2291
|
+
remove: Ho(Yo),
|
|
2292
|
+
removeSync: Qo
|
|
1064
2293
|
};
|
|
1065
|
-
const
|
|
1066
|
-
let
|
|
2294
|
+
const Xo = q.fromPromise, Zr = de, Kr = Q, en = ne, tn = ot, tr = Xo(async function(t) {
|
|
2295
|
+
let r;
|
|
1067
2296
|
try {
|
|
1068
|
-
|
|
2297
|
+
r = await Zr.readdir(t);
|
|
1069
2298
|
} catch {
|
|
1070
|
-
return
|
|
2299
|
+
return en.mkdirs(t);
|
|
1071
2300
|
}
|
|
1072
|
-
return Promise.all(
|
|
2301
|
+
return Promise.all(r.map((n) => tn.remove(Kr.join(t, n))));
|
|
1073
2302
|
});
|
|
1074
|
-
function
|
|
2303
|
+
function rr(e) {
|
|
1075
2304
|
let t;
|
|
1076
2305
|
try {
|
|
1077
|
-
t =
|
|
2306
|
+
t = Zr.readdirSync(e);
|
|
1078
2307
|
} catch {
|
|
1079
|
-
return
|
|
2308
|
+
return en.mkdirsSync(e);
|
|
1080
2309
|
}
|
|
1081
|
-
t.forEach((
|
|
1082
|
-
|
|
2310
|
+
t.forEach((r) => {
|
|
2311
|
+
r = Kr.join(e, r), tn.removeSync(r);
|
|
1083
2312
|
});
|
|
1084
2313
|
}
|
|
1085
|
-
var
|
|
1086
|
-
emptyDirSync:
|
|
1087
|
-
emptydirSync:
|
|
1088
|
-
emptyDir:
|
|
1089
|
-
emptydir:
|
|
2314
|
+
var Zo = {
|
|
2315
|
+
emptyDirSync: rr,
|
|
2316
|
+
emptydirSync: rr,
|
|
2317
|
+
emptyDir: tr,
|
|
2318
|
+
emptydir: tr
|
|
1090
2319
|
};
|
|
1091
|
-
const
|
|
1092
|
-
function
|
|
1093
|
-
function
|
|
1094
|
-
|
|
1095
|
-
if (
|
|
1096
|
-
return t(
|
|
2320
|
+
const Ko = q.fromCallback, rn = Q, ce = X, nn = ne;
|
|
2321
|
+
function ea(e, t) {
|
|
2322
|
+
function r() {
|
|
2323
|
+
ce.writeFile(e, "", (n) => {
|
|
2324
|
+
if (n)
|
|
2325
|
+
return t(n);
|
|
1097
2326
|
t();
|
|
1098
2327
|
});
|
|
1099
2328
|
}
|
|
1100
|
-
|
|
1101
|
-
if (!
|
|
2329
|
+
ce.stat(e, (n, i) => {
|
|
2330
|
+
if (!n && i.isFile())
|
|
1102
2331
|
return t();
|
|
1103
|
-
const o =
|
|
1104
|
-
|
|
1105
|
-
if (
|
|
1106
|
-
return
|
|
1107
|
-
if (
|
|
1108
|
-
return t(
|
|
1109
|
-
|
|
1110
|
-
}) : t(
|
|
1111
|
-
|
|
1112
|
-
if (
|
|
1113
|
-
return t(
|
|
2332
|
+
const o = rn.dirname(e);
|
|
2333
|
+
ce.stat(o, (a, u) => {
|
|
2334
|
+
if (a)
|
|
2335
|
+
return a.code === "ENOENT" ? nn.mkdirs(o, (y) => {
|
|
2336
|
+
if (y)
|
|
2337
|
+
return t(y);
|
|
2338
|
+
r();
|
|
2339
|
+
}) : t(a);
|
|
2340
|
+
u.isDirectory() ? r() : ce.readdir(o, (y) => {
|
|
2341
|
+
if (y)
|
|
2342
|
+
return t(y);
|
|
1114
2343
|
});
|
|
1115
2344
|
});
|
|
1116
2345
|
});
|
|
1117
2346
|
}
|
|
1118
|
-
function
|
|
2347
|
+
function ta(e) {
|
|
1119
2348
|
let t;
|
|
1120
2349
|
try {
|
|
1121
|
-
t =
|
|
2350
|
+
t = ce.statSync(e);
|
|
1122
2351
|
} catch {
|
|
1123
2352
|
}
|
|
1124
2353
|
if (t && t.isFile())
|
|
1125
2354
|
return;
|
|
1126
|
-
const
|
|
2355
|
+
const r = rn.dirname(e);
|
|
1127
2356
|
try {
|
|
1128
|
-
|
|
1129
|
-
} catch (
|
|
1130
|
-
if (
|
|
1131
|
-
|
|
2357
|
+
ce.statSync(r).isDirectory() || ce.readdirSync(r);
|
|
2358
|
+
} catch (n) {
|
|
2359
|
+
if (n && n.code === "ENOENT")
|
|
2360
|
+
nn.mkdirsSync(r);
|
|
1132
2361
|
else
|
|
1133
|
-
throw
|
|
2362
|
+
throw n;
|
|
1134
2363
|
}
|
|
1135
|
-
|
|
2364
|
+
ce.writeFileSync(e, "");
|
|
1136
2365
|
}
|
|
1137
|
-
var
|
|
1138
|
-
createFile:
|
|
1139
|
-
createFileSync:
|
|
2366
|
+
var ra = {
|
|
2367
|
+
createFile: Ko(ea),
|
|
2368
|
+
createFileSync: ta
|
|
1140
2369
|
};
|
|
1141
|
-
const
|
|
1142
|
-
function
|
|
1143
|
-
function i
|
|
1144
|
-
|
|
1145
|
-
if (
|
|
1146
|
-
return
|
|
1147
|
-
|
|
2370
|
+
const na = q.fromCallback, on = Q, ae = X, an = ne, ia = me.pathExists, { areIdentical: cn } = ke;
|
|
2371
|
+
function oa(e, t, r) {
|
|
2372
|
+
function n(i, o) {
|
|
2373
|
+
ae.link(i, o, (a) => {
|
|
2374
|
+
if (a)
|
|
2375
|
+
return r(a);
|
|
2376
|
+
r(null);
|
|
1148
2377
|
});
|
|
1149
2378
|
}
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
if (
|
|
1153
|
-
return
|
|
1154
|
-
if (o &&
|
|
1155
|
-
return
|
|
1156
|
-
const
|
|
1157
|
-
|
|
1158
|
-
if (
|
|
1159
|
-
return
|
|
1160
|
-
if (
|
|
1161
|
-
return
|
|
1162
|
-
|
|
1163
|
-
if (
|
|
1164
|
-
return
|
|
1165
|
-
|
|
2379
|
+
ae.lstat(t, (i, o) => {
|
|
2380
|
+
ae.lstat(e, (a, u) => {
|
|
2381
|
+
if (a)
|
|
2382
|
+
return a.message = a.message.replace("lstat", "ensureLink"), r(a);
|
|
2383
|
+
if (o && cn(u, o))
|
|
2384
|
+
return r(null);
|
|
2385
|
+
const y = on.dirname(t);
|
|
2386
|
+
ia(y, (g, f) => {
|
|
2387
|
+
if (g)
|
|
2388
|
+
return r(g);
|
|
2389
|
+
if (f)
|
|
2390
|
+
return n(e, t);
|
|
2391
|
+
an.mkdirs(y, (d) => {
|
|
2392
|
+
if (d)
|
|
2393
|
+
return r(d);
|
|
2394
|
+
n(e, t);
|
|
1166
2395
|
});
|
|
1167
2396
|
});
|
|
1168
2397
|
});
|
|
1169
2398
|
});
|
|
1170
2399
|
}
|
|
1171
|
-
function
|
|
1172
|
-
let
|
|
2400
|
+
function aa(e, t) {
|
|
2401
|
+
let r;
|
|
1173
2402
|
try {
|
|
1174
|
-
|
|
2403
|
+
r = ae.lstatSync(t);
|
|
1175
2404
|
} catch {
|
|
1176
2405
|
}
|
|
1177
2406
|
try {
|
|
1178
|
-
const o =
|
|
1179
|
-
if (
|
|
2407
|
+
const o = ae.lstatSync(e);
|
|
2408
|
+
if (r && cn(o, r))
|
|
1180
2409
|
return;
|
|
1181
2410
|
} catch (o) {
|
|
1182
2411
|
throw o.message = o.message.replace("lstat", "ensureLink"), o;
|
|
1183
2412
|
}
|
|
1184
|
-
const
|
|
1185
|
-
return
|
|
2413
|
+
const n = on.dirname(t);
|
|
2414
|
+
return ae.existsSync(n) || an.mkdirsSync(n), ae.linkSync(e, t);
|
|
1186
2415
|
}
|
|
1187
|
-
var
|
|
1188
|
-
createLink:
|
|
1189
|
-
createLinkSync:
|
|
2416
|
+
var ca = {
|
|
2417
|
+
createLink: na(oa),
|
|
2418
|
+
createLinkSync: aa
|
|
1190
2419
|
};
|
|
1191
|
-
const
|
|
1192
|
-
function
|
|
1193
|
-
if (
|
|
1194
|
-
return
|
|
2420
|
+
const ue = Q, De = X, ua = me.pathExists;
|
|
2421
|
+
function fa(e, t, r) {
|
|
2422
|
+
if (ue.isAbsolute(e))
|
|
2423
|
+
return De.lstat(e, (n) => n ? (n.message = n.message.replace("lstat", "ensureSymlink"), r(n)) : r(null, {
|
|
1195
2424
|
toCwd: e,
|
|
1196
2425
|
toDst: e
|
|
1197
2426
|
}));
|
|
1198
2427
|
{
|
|
1199
|
-
const
|
|
1200
|
-
return
|
|
1201
|
-
toCwd:
|
|
2428
|
+
const n = ue.dirname(t), i = ue.join(n, e);
|
|
2429
|
+
return ua(i, (o, a) => o ? r(o) : a ? r(null, {
|
|
2430
|
+
toCwd: i,
|
|
1202
2431
|
toDst: e
|
|
1203
|
-
}) :
|
|
2432
|
+
}) : De.lstat(e, (u) => u ? (u.message = u.message.replace("lstat", "ensureSymlink"), r(u)) : r(null, {
|
|
1204
2433
|
toCwd: e,
|
|
1205
|
-
toDst:
|
|
2434
|
+
toDst: ue.relative(n, e)
|
|
1206
2435
|
})));
|
|
1207
2436
|
}
|
|
1208
2437
|
}
|
|
1209
|
-
function
|
|
1210
|
-
let
|
|
1211
|
-
if (
|
|
1212
|
-
if (
|
|
2438
|
+
function sa(e, t) {
|
|
2439
|
+
let r;
|
|
2440
|
+
if (ue.isAbsolute(e)) {
|
|
2441
|
+
if (r = De.existsSync(e), !r)
|
|
1213
2442
|
throw new Error("absolute srcpath does not exist");
|
|
1214
2443
|
return {
|
|
1215
2444
|
toCwd: e,
|
|
1216
2445
|
toDst: e
|
|
1217
2446
|
};
|
|
1218
2447
|
} else {
|
|
1219
|
-
const
|
|
1220
|
-
if (
|
|
2448
|
+
const n = ue.dirname(t), i = ue.join(n, e);
|
|
2449
|
+
if (r = De.existsSync(i), r)
|
|
1221
2450
|
return {
|
|
1222
|
-
toCwd:
|
|
2451
|
+
toCwd: i,
|
|
1223
2452
|
toDst: e
|
|
1224
2453
|
};
|
|
1225
|
-
if (
|
|
2454
|
+
if (r = De.existsSync(e), !r)
|
|
1226
2455
|
throw new Error("relative srcpath does not exist");
|
|
1227
2456
|
return {
|
|
1228
2457
|
toCwd: e,
|
|
1229
|
-
toDst:
|
|
2458
|
+
toDst: ue.relative(n, e)
|
|
1230
2459
|
};
|
|
1231
2460
|
}
|
|
1232
2461
|
}
|
|
1233
|
-
var
|
|
1234
|
-
symlinkPaths:
|
|
1235
|
-
symlinkPathsSync:
|
|
2462
|
+
var la = {
|
|
2463
|
+
symlinkPaths: fa,
|
|
2464
|
+
symlinkPathsSync: sa
|
|
1236
2465
|
};
|
|
1237
|
-
const
|
|
1238
|
-
function
|
|
1239
|
-
if (
|
|
1240
|
-
return
|
|
1241
|
-
|
|
1242
|
-
if (
|
|
1243
|
-
return
|
|
1244
|
-
t =
|
|
2466
|
+
const un = X;
|
|
2467
|
+
function ya(e, t, r) {
|
|
2468
|
+
if (r = typeof t == "function" ? t : r, t = typeof t == "function" ? !1 : t, t)
|
|
2469
|
+
return r(null, t);
|
|
2470
|
+
un.lstat(e, (n, i) => {
|
|
2471
|
+
if (n)
|
|
2472
|
+
return r(null, "file");
|
|
2473
|
+
t = i && i.isDirectory() ? "dir" : "file", r(null, t);
|
|
1245
2474
|
});
|
|
1246
2475
|
}
|
|
1247
|
-
function
|
|
1248
|
-
let
|
|
2476
|
+
function pa(e, t) {
|
|
2477
|
+
let r;
|
|
1249
2478
|
if (t)
|
|
1250
2479
|
return t;
|
|
1251
2480
|
try {
|
|
1252
|
-
|
|
2481
|
+
r = un.lstatSync(e);
|
|
1253
2482
|
} catch {
|
|
1254
2483
|
return "file";
|
|
1255
2484
|
}
|
|
1256
|
-
return
|
|
2485
|
+
return r && r.isDirectory() ? "dir" : "file";
|
|
1257
2486
|
}
|
|
1258
|
-
var
|
|
1259
|
-
symlinkType:
|
|
1260
|
-
symlinkTypeSync:
|
|
2487
|
+
var da = {
|
|
2488
|
+
symlinkType: ya,
|
|
2489
|
+
symlinkTypeSync: pa
|
|
1261
2490
|
};
|
|
1262
|
-
const
|
|
1263
|
-
function
|
|
1264
|
-
|
|
1265
|
-
!
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
]).then(([
|
|
1269
|
-
if (
|
|
1270
|
-
return
|
|
1271
|
-
|
|
1272
|
-
}) :
|
|
2491
|
+
const ma = q.fromCallback, fn = Q, ee = de, sn = ne, ha = sn.mkdirs, Sa = sn.mkdirsSync, ln = la, ga = ln.symlinkPaths, va = ln.symlinkPathsSync, yn = da, wa = yn.symlinkType, ba = yn.symlinkTypeSync, Aa = me.pathExists, { areIdentical: pn } = ke;
|
|
2492
|
+
function Oa(e, t, r, n) {
|
|
2493
|
+
n = typeof r == "function" ? r : n, r = typeof r == "function" ? !1 : r, ee.lstat(t, (i, o) => {
|
|
2494
|
+
!i && o.isSymbolicLink() ? Promise.all([
|
|
2495
|
+
ee.stat(e),
|
|
2496
|
+
ee.stat(t)
|
|
2497
|
+
]).then(([a, u]) => {
|
|
2498
|
+
if (pn(a, u))
|
|
2499
|
+
return n(null);
|
|
2500
|
+
nr(e, t, r, n);
|
|
2501
|
+
}) : nr(e, t, r, n);
|
|
1273
2502
|
});
|
|
1274
2503
|
}
|
|
1275
|
-
function
|
|
1276
|
-
|
|
1277
|
-
if (
|
|
1278
|
-
return i
|
|
1279
|
-
e = o.toDst,
|
|
1280
|
-
if (
|
|
1281
|
-
return
|
|
1282
|
-
const
|
|
1283
|
-
|
|
1284
|
-
if (
|
|
1285
|
-
return
|
|
1286
|
-
if (
|
|
1287
|
-
return
|
|
1288
|
-
|
|
1289
|
-
if (
|
|
1290
|
-
return
|
|
1291
|
-
|
|
2504
|
+
function nr(e, t, r, n) {
|
|
2505
|
+
ga(e, t, (i, o) => {
|
|
2506
|
+
if (i)
|
|
2507
|
+
return n(i);
|
|
2508
|
+
e = o.toDst, wa(o.toCwd, r, (a, u) => {
|
|
2509
|
+
if (a)
|
|
2510
|
+
return n(a);
|
|
2511
|
+
const y = fn.dirname(t);
|
|
2512
|
+
Aa(y, (g, f) => {
|
|
2513
|
+
if (g)
|
|
2514
|
+
return n(g);
|
|
2515
|
+
if (f)
|
|
2516
|
+
return ee.symlink(e, t, u, n);
|
|
2517
|
+
ha(y, (d) => {
|
|
2518
|
+
if (d)
|
|
2519
|
+
return n(d);
|
|
2520
|
+
ee.symlink(e, t, u, n);
|
|
1292
2521
|
});
|
|
1293
2522
|
});
|
|
1294
2523
|
});
|
|
1295
2524
|
});
|
|
1296
2525
|
}
|
|
1297
|
-
function
|
|
1298
|
-
let
|
|
2526
|
+
function Ea(e, t, r) {
|
|
2527
|
+
let n;
|
|
1299
2528
|
try {
|
|
1300
|
-
|
|
2529
|
+
n = ee.lstatSync(t);
|
|
1301
2530
|
} catch {
|
|
1302
2531
|
}
|
|
1303
|
-
if (
|
|
1304
|
-
const
|
|
1305
|
-
if (
|
|
2532
|
+
if (n && n.isSymbolicLink()) {
|
|
2533
|
+
const u = ee.statSync(e), y = ee.statSync(t);
|
|
2534
|
+
if (pn(u, y))
|
|
1306
2535
|
return;
|
|
1307
2536
|
}
|
|
1308
|
-
const
|
|
1309
|
-
e =
|
|
1310
|
-
const o =
|
|
1311
|
-
return
|
|
1312
|
-
}
|
|
1313
|
-
var
|
|
1314
|
-
createSymlink:
|
|
1315
|
-
createSymlinkSync:
|
|
2537
|
+
const i = va(e, t);
|
|
2538
|
+
e = i.toDst, r = ba(i.toCwd, r);
|
|
2539
|
+
const o = fn.dirname(t);
|
|
2540
|
+
return ee.existsSync(o) || Sa(o), ee.symlinkSync(e, t, r);
|
|
2541
|
+
}
|
|
2542
|
+
var $a = {
|
|
2543
|
+
createSymlink: ma(Oa),
|
|
2544
|
+
createSymlinkSync: Ea
|
|
1316
2545
|
};
|
|
1317
|
-
const { createFile:
|
|
1318
|
-
var
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
2546
|
+
const { createFile: ir, createFileSync: or } = ra, { createLink: ar, createLinkSync: cr } = ca, { createSymlink: ur, createSymlinkSync: fr } = $a;
|
|
2547
|
+
var Pa = {
|
|
2548
|
+
// file
|
|
2549
|
+
createFile: ir,
|
|
2550
|
+
createFileSync: or,
|
|
2551
|
+
ensureFile: ir,
|
|
2552
|
+
ensureFileSync: or,
|
|
2553
|
+
// link
|
|
2554
|
+
createLink: ar,
|
|
2555
|
+
createLinkSync: cr,
|
|
2556
|
+
ensureLink: ar,
|
|
2557
|
+
ensureLinkSync: cr,
|
|
2558
|
+
// symlink
|
|
2559
|
+
createSymlink: ur,
|
|
2560
|
+
createSymlinkSync: fr,
|
|
2561
|
+
ensureSymlink: ur,
|
|
2562
|
+
ensureSymlinkSync: fr
|
|
1331
2563
|
};
|
|
1332
|
-
function
|
|
1333
|
-
`, finalEOL:
|
|
1334
|
-
const o =
|
|
1335
|
-
return JSON.stringify(e,
|
|
2564
|
+
function Fa(e, { EOL: t = `
|
|
2565
|
+
`, finalEOL: r = !0, replacer: n = null, spaces: i } = {}) {
|
|
2566
|
+
const o = r ? t : "";
|
|
2567
|
+
return JSON.stringify(e, n, i).replace(/\n/g, t) + o;
|
|
1336
2568
|
}
|
|
1337
|
-
function
|
|
2569
|
+
function ka(e) {
|
|
1338
2570
|
return Buffer.isBuffer(e) && (e = e.toString("utf8")), e.replace(/^\uFEFF/, "");
|
|
1339
2571
|
}
|
|
1340
|
-
var
|
|
1341
|
-
let
|
|
2572
|
+
var Jt = { stringify: Fa, stripBom: ka };
|
|
2573
|
+
let Fe;
|
|
1342
2574
|
try {
|
|
1343
|
-
|
|
2575
|
+
Fe = X;
|
|
1344
2576
|
} catch {
|
|
1345
|
-
|
|
2577
|
+
Fe = pr;
|
|
1346
2578
|
}
|
|
1347
|
-
const
|
|
1348
|
-
async function
|
|
2579
|
+
const at = q, { stringify: dn, stripBom: mn } = Jt;
|
|
2580
|
+
async function ja(e, t = {}) {
|
|
1349
2581
|
typeof t == "string" && (t = { encoding: t });
|
|
1350
|
-
const
|
|
1351
|
-
let
|
|
1352
|
-
|
|
2582
|
+
const r = t.fs || Fe, n = "throws" in t ? t.throws : !0;
|
|
2583
|
+
let i = await at.fromCallback(r.readFile)(e, t);
|
|
2584
|
+
i = mn(i);
|
|
1353
2585
|
let o;
|
|
1354
2586
|
try {
|
|
1355
|
-
o = JSON.parse(
|
|
1356
|
-
} catch (
|
|
1357
|
-
if (
|
|
1358
|
-
throw
|
|
2587
|
+
o = JSON.parse(i, t ? t.reviver : null);
|
|
2588
|
+
} catch (a) {
|
|
2589
|
+
if (n)
|
|
2590
|
+
throw a.message = `${e}: ${a.message}`, a;
|
|
1359
2591
|
return null;
|
|
1360
2592
|
}
|
|
1361
2593
|
return o;
|
|
1362
2594
|
}
|
|
1363
|
-
const
|
|
1364
|
-
function
|
|
2595
|
+
const Da = at.fromPromise(ja);
|
|
2596
|
+
function Ia(e, t = {}) {
|
|
1365
2597
|
typeof t == "string" && (t = { encoding: t });
|
|
1366
|
-
const
|
|
2598
|
+
const r = t.fs || Fe, n = "throws" in t ? t.throws : !0;
|
|
1367
2599
|
try {
|
|
1368
|
-
let
|
|
1369
|
-
return
|
|
1370
|
-
} catch (
|
|
1371
|
-
if (
|
|
1372
|
-
throw
|
|
2600
|
+
let i = r.readFileSync(e, t);
|
|
2601
|
+
return i = mn(i), JSON.parse(i, t.reviver);
|
|
2602
|
+
} catch (i) {
|
|
2603
|
+
if (n)
|
|
2604
|
+
throw i.message = `${e}: ${i.message}`, i;
|
|
1373
2605
|
return null;
|
|
1374
2606
|
}
|
|
1375
2607
|
}
|
|
1376
|
-
async function
|
|
1377
|
-
const
|
|
1378
|
-
await
|
|
2608
|
+
async function Na(e, t, r = {}) {
|
|
2609
|
+
const n = r.fs || Fe, i = dn(t, r);
|
|
2610
|
+
await at.fromCallback(n.writeFile)(e, i, r);
|
|
1379
2611
|
}
|
|
1380
|
-
const
|
|
1381
|
-
function
|
|
1382
|
-
const
|
|
1383
|
-
return
|
|
2612
|
+
const Ca = at.fromPromise(Na);
|
|
2613
|
+
function Ba(e, t, r = {}) {
|
|
2614
|
+
const n = r.fs || Fe, i = dn(t, r);
|
|
2615
|
+
return n.writeFileSync(e, i, r);
|
|
1384
2616
|
}
|
|
1385
|
-
const
|
|
1386
|
-
readFile:
|
|
1387
|
-
readFileSync:
|
|
1388
|
-
writeFile:
|
|
1389
|
-
writeFileSync:
|
|
2617
|
+
const _a = {
|
|
2618
|
+
readFile: Da,
|
|
2619
|
+
readFileSync: Ia,
|
|
2620
|
+
writeFile: Ca,
|
|
2621
|
+
writeFileSync: Ba
|
|
1390
2622
|
};
|
|
1391
|
-
var
|
|
1392
|
-
const
|
|
1393
|
-
var
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
2623
|
+
var Ma = _a;
|
|
2624
|
+
const Ve = Ma;
|
|
2625
|
+
var Ra = {
|
|
2626
|
+
// jsonfile exports
|
|
2627
|
+
readJson: Ve.readFile,
|
|
2628
|
+
readJsonSync: Ve.readFileSync,
|
|
2629
|
+
writeJson: Ve.writeFile,
|
|
2630
|
+
writeJsonSync: Ve.writeFileSync
|
|
1398
2631
|
};
|
|
1399
|
-
const
|
|
1400
|
-
function
|
|
1401
|
-
typeof
|
|
1402
|
-
const
|
|
1403
|
-
|
|
2632
|
+
const Ta = q.fromCallback, Ie = X, hn = Q, Sn = ne, Wa = me.pathExists;
|
|
2633
|
+
function Ua(e, t, r, n) {
|
|
2634
|
+
typeof r == "function" && (n = r, r = "utf8");
|
|
2635
|
+
const i = hn.dirname(e);
|
|
2636
|
+
Wa(i, (o, a) => {
|
|
1404
2637
|
if (o)
|
|
1405
|
-
return
|
|
1406
|
-
if (
|
|
1407
|
-
return
|
|
1408
|
-
|
|
1409
|
-
if (
|
|
1410
|
-
return
|
|
1411
|
-
|
|
2638
|
+
return n(o);
|
|
2639
|
+
if (a)
|
|
2640
|
+
return Ie.writeFile(e, t, r, n);
|
|
2641
|
+
Sn.mkdirs(i, (u) => {
|
|
2642
|
+
if (u)
|
|
2643
|
+
return n(u);
|
|
2644
|
+
Ie.writeFile(e, t, r, n);
|
|
1412
2645
|
});
|
|
1413
2646
|
});
|
|
1414
2647
|
}
|
|
1415
|
-
function
|
|
1416
|
-
const
|
|
1417
|
-
if (
|
|
1418
|
-
return
|
|
1419
|
-
|
|
2648
|
+
function La(e, ...t) {
|
|
2649
|
+
const r = hn.dirname(e);
|
|
2650
|
+
if (Ie.existsSync(r))
|
|
2651
|
+
return Ie.writeFileSync(e, ...t);
|
|
2652
|
+
Sn.mkdirsSync(r), Ie.writeFileSync(e, ...t);
|
|
1420
2653
|
}
|
|
1421
|
-
var
|
|
1422
|
-
outputFile:
|
|
1423
|
-
outputFileSync:
|
|
2654
|
+
var Vt = {
|
|
2655
|
+
outputFile: Ta(Ua),
|
|
2656
|
+
outputFileSync: La
|
|
1424
2657
|
};
|
|
1425
|
-
const { stringify:
|
|
1426
|
-
async function
|
|
1427
|
-
const
|
|
1428
|
-
await
|
|
1429
|
-
}
|
|
1430
|
-
var
|
|
1431
|
-
const { stringify:
|
|
1432
|
-
function
|
|
1433
|
-
const
|
|
1434
|
-
|
|
1435
|
-
}
|
|
1436
|
-
var
|
|
1437
|
-
const
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
var
|
|
1447
|
-
const
|
|
1448
|
-
function
|
|
1449
|
-
typeof
|
|
1450
|
-
const
|
|
1451
|
-
|
|
2658
|
+
const { stringify: Ga } = Jt, { outputFile: Ja } = Vt;
|
|
2659
|
+
async function Va(e, t, r = {}) {
|
|
2660
|
+
const n = Ga(t, r);
|
|
2661
|
+
await Ja(e, n, r);
|
|
2662
|
+
}
|
|
2663
|
+
var za = Va;
|
|
2664
|
+
const { stringify: xa } = Jt, { outputFileSync: qa } = Vt;
|
|
2665
|
+
function Ha(e, t, r) {
|
|
2666
|
+
const n = xa(t, r);
|
|
2667
|
+
qa(e, n, r);
|
|
2668
|
+
}
|
|
2669
|
+
var Ya = Ha;
|
|
2670
|
+
const Qa = q.fromPromise, x = Ra;
|
|
2671
|
+
x.outputJson = Qa(za);
|
|
2672
|
+
x.outputJsonSync = Ya;
|
|
2673
|
+
x.outputJSON = x.outputJson;
|
|
2674
|
+
x.outputJSONSync = x.outputJsonSync;
|
|
2675
|
+
x.writeJSON = x.writeJson;
|
|
2676
|
+
x.writeJSONSync = x.writeJsonSync;
|
|
2677
|
+
x.readJSON = x.readJson;
|
|
2678
|
+
x.readJSONSync = x.readJsonSync;
|
|
2679
|
+
var Xa = x;
|
|
2680
|
+
const Za = X, jt = Q, Ka = Gt.copy, gn = ot.remove, ec = ne.mkdirp, tc = me.pathExists, sr = ke;
|
|
2681
|
+
function rc(e, t, r, n) {
|
|
2682
|
+
typeof r == "function" && (n = r, r = {}), r = r || {};
|
|
2683
|
+
const i = r.overwrite || r.clobber || !1;
|
|
2684
|
+
sr.checkPaths(e, t, "move", r, (o, a) => {
|
|
1452
2685
|
if (o)
|
|
1453
|
-
return
|
|
1454
|
-
const { srcStat:
|
|
1455
|
-
|
|
1456
|
-
if (
|
|
1457
|
-
return
|
|
1458
|
-
if (
|
|
1459
|
-
return
|
|
1460
|
-
|
|
2686
|
+
return n(o);
|
|
2687
|
+
const { srcStat: u, isChangingCase: y = !1 } = a;
|
|
2688
|
+
sr.checkParentPaths(e, u, t, "move", (g) => {
|
|
2689
|
+
if (g)
|
|
2690
|
+
return n(g);
|
|
2691
|
+
if (nc(t))
|
|
2692
|
+
return lr(e, t, i, y, n);
|
|
2693
|
+
ec(jt.dirname(t), (f) => f ? n(f) : lr(e, t, i, y, n));
|
|
1461
2694
|
});
|
|
1462
2695
|
});
|
|
1463
2696
|
}
|
|
1464
|
-
function
|
|
1465
|
-
const t =
|
|
1466
|
-
return
|
|
2697
|
+
function nc(e) {
|
|
2698
|
+
const t = jt.dirname(e);
|
|
2699
|
+
return jt.parse(t).root === t;
|
|
1467
2700
|
}
|
|
1468
|
-
function
|
|
1469
|
-
if (i)
|
|
1470
|
-
return De(e, t, n, r);
|
|
2701
|
+
function lr(e, t, r, n, i) {
|
|
1471
2702
|
if (n)
|
|
1472
|
-
return
|
|
1473
|
-
|
|
2703
|
+
return vt(e, t, r, i);
|
|
2704
|
+
if (r)
|
|
2705
|
+
return gn(t, (o) => o ? i(o) : vt(e, t, r, i));
|
|
2706
|
+
tc(t, (o, a) => o ? i(o) : a ? i(new Error("dest already exists.")) : vt(e, t, r, i));
|
|
1474
2707
|
}
|
|
1475
|
-
function
|
|
1476
|
-
|
|
2708
|
+
function vt(e, t, r, n) {
|
|
2709
|
+
Za.rename(e, t, (i) => i ? i.code !== "EXDEV" ? n(i) : ic(e, t, r, n) : n());
|
|
1477
2710
|
}
|
|
1478
|
-
function
|
|
1479
|
-
|
|
1480
|
-
overwrite:
|
|
2711
|
+
function ic(e, t, r, n) {
|
|
2712
|
+
Ka(e, t, {
|
|
2713
|
+
overwrite: r,
|
|
1481
2714
|
errorOnExist: !0
|
|
1482
|
-
}, (o) => o ?
|
|
1483
|
-
}
|
|
1484
|
-
var
|
|
1485
|
-
const
|
|
1486
|
-
function
|
|
1487
|
-
|
|
1488
|
-
const
|
|
1489
|
-
return
|
|
1490
|
-
}
|
|
1491
|
-
function
|
|
1492
|
-
const t =
|
|
1493
|
-
return
|
|
1494
|
-
}
|
|
1495
|
-
function
|
|
1496
|
-
if (i)
|
|
1497
|
-
return Pe(e, t, n);
|
|
2715
|
+
}, (o) => o ? n(o) : gn(e, n));
|
|
2716
|
+
}
|
|
2717
|
+
var oc = rc;
|
|
2718
|
+
const vn = X, Dt = Q, ac = Gt.copySync, wn = ot.removeSync, cc = ne.mkdirpSync, yr = ke;
|
|
2719
|
+
function uc(e, t, r) {
|
|
2720
|
+
r = r || {};
|
|
2721
|
+
const n = r.overwrite || r.clobber || !1, { srcStat: i, isChangingCase: o = !1 } = yr.checkPathsSync(e, t, "move", r);
|
|
2722
|
+
return yr.checkParentPathsSync(e, i, t, "move"), fc(t) || cc(Dt.dirname(t)), sc(e, t, n, o);
|
|
2723
|
+
}
|
|
2724
|
+
function fc(e) {
|
|
2725
|
+
const t = Dt.dirname(e);
|
|
2726
|
+
return Dt.parse(t).root === t;
|
|
2727
|
+
}
|
|
2728
|
+
function sc(e, t, r, n) {
|
|
1498
2729
|
if (n)
|
|
1499
|
-
return
|
|
1500
|
-
if (
|
|
2730
|
+
return wt(e, t, r);
|
|
2731
|
+
if (r)
|
|
2732
|
+
return wn(t), wt(e, t, r);
|
|
2733
|
+
if (vn.existsSync(t))
|
|
1501
2734
|
throw new Error("dest already exists.");
|
|
1502
|
-
return
|
|
2735
|
+
return wt(e, t, r);
|
|
1503
2736
|
}
|
|
1504
|
-
function
|
|
2737
|
+
function wt(e, t, r) {
|
|
1505
2738
|
try {
|
|
1506
|
-
|
|
1507
|
-
} catch (
|
|
1508
|
-
if (
|
|
1509
|
-
throw
|
|
1510
|
-
return
|
|
2739
|
+
vn.renameSync(e, t);
|
|
2740
|
+
} catch (n) {
|
|
2741
|
+
if (n.code !== "EXDEV")
|
|
2742
|
+
throw n;
|
|
2743
|
+
return lc(e, t, r);
|
|
1511
2744
|
}
|
|
1512
2745
|
}
|
|
1513
|
-
function
|
|
1514
|
-
return
|
|
1515
|
-
overwrite:
|
|
2746
|
+
function lc(e, t, r) {
|
|
2747
|
+
return ac(e, t, {
|
|
2748
|
+
overwrite: r,
|
|
1516
2749
|
errorOnExist: !0
|
|
1517
|
-
}),
|
|
1518
|
-
}
|
|
1519
|
-
var
|
|
1520
|
-
const
|
|
1521
|
-
var
|
|
1522
|
-
move:
|
|
1523
|
-
moveSync:
|
|
1524
|
-
},
|
|
1525
|
-
|
|
1526
|
-
...
|
|
1527
|
-
|
|
1528
|
-
...
|
|
1529
|
-
...
|
|
1530
|
-
...
|
|
1531
|
-
...
|
|
1532
|
-
...
|
|
1533
|
-
...
|
|
1534
|
-
|
|
2750
|
+
}), wn(e);
|
|
2751
|
+
}
|
|
2752
|
+
var yc = uc;
|
|
2753
|
+
const pc = q.fromCallback;
|
|
2754
|
+
var dc = {
|
|
2755
|
+
move: pc(oc),
|
|
2756
|
+
moveSync: yc
|
|
2757
|
+
}, mc = {
|
|
2758
|
+
// Export promiseified graceful-fs:
|
|
2759
|
+
...de,
|
|
2760
|
+
// Export extra methods:
|
|
2761
|
+
...Gt,
|
|
2762
|
+
...Zo,
|
|
2763
|
+
...Pa,
|
|
2764
|
+
...Xa,
|
|
2765
|
+
...ne,
|
|
2766
|
+
...dc,
|
|
2767
|
+
...Vt,
|
|
2768
|
+
...me,
|
|
2769
|
+
...ot
|
|
1535
2770
|
};
|
|
1536
|
-
const
|
|
1537
|
-
function
|
|
2771
|
+
const ze = mc;
|
|
2772
|
+
function bc(e, t) {
|
|
1538
2773
|
return {
|
|
1539
2774
|
name: "vite-plugin-css-import",
|
|
1540
2775
|
apply: "build",
|
|
1541
2776
|
enforce: "post",
|
|
1542
|
-
writeBundle: async (
|
|
1543
|
-
const
|
|
1544
|
-
if (!
|
|
2777
|
+
writeBundle: async (r, n) => {
|
|
2778
|
+
const i = Object.keys(n).filter((f) => f.endsWith(".css"));
|
|
2779
|
+
if (!i.length)
|
|
1545
2780
|
return;
|
|
1546
|
-
const o =
|
|
1547
|
-
`, ""),
|
|
2781
|
+
const o = i.reduce((f, d) => `${f}import "./${d}";
|
|
2782
|
+
`, ""), a = Q.resolve(
|
|
1548
2783
|
process.cwd(),
|
|
1549
2784
|
e,
|
|
1550
2785
|
`${t}-temp.js`
|
|
1551
|
-
),
|
|
1552
|
-
|
|
1553
|
-
const
|
|
1554
|
-
await
|
|
2786
|
+
), u = Q.resolve(process.cwd(), e, `${t}.js`), y = ze.createWriteStream(a);
|
|
2787
|
+
y.write(o, "utf8");
|
|
2788
|
+
const g = ze.createReadStream(u);
|
|
2789
|
+
await Pn(g, y), await ze.remove(u), await ze.rename(a, u), y.end();
|
|
1555
2790
|
}
|
|
1556
2791
|
};
|
|
1557
2792
|
}
|
|
1558
2793
|
export {
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
2794
|
+
je as Texts,
|
|
2795
|
+
dr as TranslationsKey,
|
|
2796
|
+
bc as viteCssImportPlugin
|
|
1562
2797
|
};
|
|
1563
2798
|
//# sourceMappingURL=index.js.map
|