@platforma-sdk/block-tools 2.5.81 → 2.5.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +61 -56
- package/dist/cli.mjs.map +1 -1
- package/dist/cmd/build-meta.d.ts +0 -1
- package/dist/cmd/build-model.d.ts +0 -1
- package/dist/cmd/index.d.ts +0 -1
- package/dist/cmd/mark-stable.d.ts +0 -1
- package/dist/cmd/pack.d.ts +0 -1
- package/dist/cmd/publish.d.ts +1 -1
- package/dist/cmd/refresh-registry.d.ts +0 -1
- package/dist/cmd/upload-package-v1.d.ts +0 -1
- package/dist/common_types.d.ts +0 -1
- package/dist/{config-DwOM2V6u.mjs → config-VnABe7ki.mjs} +489 -483
- package/dist/config-VnABe7ki.mjs.map +1 -0
- package/dist/config-t7F2nAAr.js +3 -0
- package/dist/config-t7F2nAAr.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +47 -45
- package/dist/index.mjs.map +1 -1
- package/dist/io/folder_reader.d.ts +0 -1
- package/dist/io/index.d.ts +0 -1
- package/dist/io/storage.d.ts +0 -1
- package/dist/lib.d.ts +0 -1
- package/dist/registry_v1/config.d.ts +0 -1
- package/dist/registry_v1/config_schema.d.ts +0 -1
- package/dist/registry_v1/flags.d.ts +0 -1
- package/dist/registry_v1/index.d.ts +0 -1
- package/dist/registry_v1/registry.d.ts +0 -1
- package/dist/registry_v1/v1_repo_schema.d.ts +0 -1
- package/dist/util.d.ts +0 -1
- package/dist/v2/build_dist.d.ts +0 -1
- package/dist/v2/index.d.ts +0 -1
- package/dist/v2/model/block_components.d.ts +0 -1
- package/dist/v2/model/block_description.d.ts +0 -1
- package/dist/v2/model/block_meta.d.ts +0 -1
- package/dist/v2/model/content_conversion.d.ts +0 -1
- package/dist/v2/model/index.d.ts +0 -1
- package/dist/v2/registry/index.d.ts +0 -1
- package/dist/v2/registry/registry.d.ts +1 -1
- package/dist/v2/registry/registry_reader.d.ts +0 -1
- package/dist/v2/registry/schema_internal.d.ts +0 -1
- package/dist/v2/registry/schema_public.d.ts +2 -1
- package/dist/v2/source_package.d.ts +0 -1
- package/package.json +13 -12
- package/src/cmd/publish.ts +12 -1
- package/src/registry_v1/registry.test.ts +3 -2
- package/src/v2/registry/registry.ts +16 -7
- package/src/v2/registry/schema_public.ts +2 -0
- package/dist/cmd/build-meta.d.ts.map +0 -1
- package/dist/cmd/build-model.d.ts.map +0 -1
- package/dist/cmd/index.d.ts.map +0 -1
- package/dist/cmd/mark-stable.d.ts.map +0 -1
- package/dist/cmd/pack.d.ts.map +0 -1
- package/dist/cmd/publish.d.ts.map +0 -1
- package/dist/cmd/refresh-registry.d.ts.map +0 -1
- package/dist/cmd/upload-package-v1.d.ts.map +0 -1
- package/dist/common_types.d.ts.map +0 -1
- package/dist/config-26zalc5o.js +0 -3
- package/dist/config-26zalc5o.js.map +0 -1
- package/dist/config-DwOM2V6u.mjs.map +0 -1
- package/dist/io/folder_reader.d.ts.map +0 -1
- package/dist/io/index.d.ts.map +0 -1
- package/dist/io/storage.d.ts.map +0 -1
- package/dist/lib.d.ts.map +0 -1
- package/dist/registry_v1/config.d.ts.map +0 -1
- package/dist/registry_v1/config_schema.d.ts.map +0 -1
- package/dist/registry_v1/flags.d.ts.map +0 -1
- package/dist/registry_v1/index.d.ts.map +0 -1
- package/dist/registry_v1/registry.d.ts.map +0 -1
- package/dist/registry_v1/v1_repo_schema.d.ts.map +0 -1
- package/dist/util.d.ts.map +0 -1
- package/dist/v2/build_dist.d.ts.map +0 -1
- package/dist/v2/index.d.ts.map +0 -1
- package/dist/v2/model/block_components.d.ts.map +0 -1
- package/dist/v2/model/block_description.d.ts.map +0 -1
- package/dist/v2/model/block_meta.d.ts.map +0 -1
- package/dist/v2/model/content_conversion.d.ts.map +0 -1
- package/dist/v2/model/index.d.ts.map +0 -1
- package/dist/v2/registry/index.d.ts.map +0 -1
- package/dist/v2/registry/registry.d.ts.map +0 -1
- package/dist/v2/registry/registry_reader.d.ts.map +0 -1
- package/dist/v2/registry/schema_internal.d.ts.map +0 -1
- package/dist/v2/registry/schema_public.d.ts.map +0 -1
- package/dist/v2/source_package.d.ts.map +0 -1
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
var as = Object.defineProperty;
|
|
2
2
|
var os = (t, e, r) => e in t ? as(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
-
var
|
|
4
|
-
import { BlockPackMeta as
|
|
3
|
+
var Z = (t, e, r) => os(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
import { BlockPackMeta as z, ContentAbsoluteTextLocal as Nt, ContentAbsoluteBinaryLocal as ce, BlockPackMetaEmbeddedBase64 as cs, BlockPackMetaEmbeddedBytes as Gr, DescriptionContentText as ls, DescriptionContentBinary as fs, ContentRelativeText as ee, ContentRelativeBinary as te, BlockComponents as le, ContentAbsoluteFolder as us, BlockComponentsManifest as fe, ContentRelative as ae, mapRemoteToAbsolute as _t, addPrefixToRelative as hs, BlockPackDescriptionManifest as X, CreateBlockPackDescriptionSchema as J, BlockPackManifest as xr, BlockPackManifestFile as ps, SemVer as kt, BlockPackDescriptionFromPackageJsonRaw as Ur, Sha256Schema as wt, BlockPackIdNoVersion as ds, VersionWithChannels as gs, AnyChannel as oe, blockPackIdToString as Se } from "@milaboratories/pl-model-middle-layer";
|
|
5
5
|
import { z as L } from "zod";
|
|
6
6
|
import B from "node:path";
|
|
7
7
|
import U from "node:fs/promises";
|
|
8
|
-
import * as
|
|
8
|
+
import * as ue from "mime-types";
|
|
9
9
|
import * as ms from "tar";
|
|
10
10
|
import { tryResolve as Vr } from "@milaboratories/resolve-helper";
|
|
11
|
-
import { notEmpty as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
11
|
+
import { notEmpty as zr, ConsoleLoggerAdapter as Es } from "@milaboratories/ts-helpers";
|
|
12
|
+
import { gzip as vs } from "node:zlib";
|
|
13
|
+
import { promisify as $s } from "node:util";
|
|
14
|
+
import { extractConfigGeneric as ws } from "@milaboratories/pl-model-common";
|
|
15
|
+
import { randomUUID as Mr } from "node:crypto";
|
|
16
|
+
import Rs from "yaml";
|
|
15
17
|
import * as Gt from "node:os";
|
|
16
18
|
import V from "node:path/posix";
|
|
17
|
-
import { S3 as
|
|
18
|
-
import * as
|
|
19
|
-
function
|
|
19
|
+
import { S3 as ys, paginateListObjectsV2 as Ss } from "@aws-sdk/client-s3";
|
|
20
|
+
import * as Q from "node:fs";
|
|
21
|
+
function Is(t) {
|
|
20
22
|
return L.string().transform((e, r) => {
|
|
21
23
|
const s = Vr(t, e);
|
|
22
24
|
return s === void 0 ? (r.addIssue({
|
|
@@ -28,17 +30,17 @@ function Ss(t) {
|
|
|
28
30
|
};
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
|
-
function
|
|
33
|
+
function Os(t, ...e) {
|
|
32
34
|
return L.string().transform((r, s) => {
|
|
33
35
|
const a = r.endsWith("/") ? r : `${r}/`;
|
|
34
|
-
for (const
|
|
35
|
-
const c = Vr(t, a +
|
|
36
|
+
for (const f of e) {
|
|
37
|
+
const c = Vr(t, a + f);
|
|
36
38
|
if (c !== void 0) {
|
|
37
|
-
if (!c.endsWith(
|
|
38
|
-
throw new Error(`Unexpected resolve result ${c} with index file ${
|
|
39
|
+
if (!c.endsWith(f))
|
|
40
|
+
throw new Error(`Unexpected resolve result ${c} with index file ${f}`);
|
|
39
41
|
return {
|
|
40
42
|
type: "absolute-folder",
|
|
41
|
-
folder: c.slice(0, c.length -
|
|
43
|
+
folder: c.slice(0, c.length - f.length)
|
|
42
44
|
};
|
|
43
45
|
}
|
|
44
46
|
}
|
|
@@ -54,10 +56,10 @@ function xt(t) {
|
|
|
54
56
|
function Xr() {
|
|
55
57
|
return async (t) => t.type === "absolute-file" ? await U.readFile(t.file, { encoding: "utf-8" }) : t.content;
|
|
56
58
|
}
|
|
57
|
-
function
|
|
59
|
+
function Ps() {
|
|
58
60
|
return async (t) => {
|
|
59
61
|
if (t.type === "absolute-file") {
|
|
60
|
-
const e =
|
|
62
|
+
const e = ue.lookup(t.file);
|
|
61
63
|
if (!e) throw new Error(`Can't recognize mime type of the file: ${t.file}.`);
|
|
62
64
|
return {
|
|
63
65
|
type: "explicit-base64",
|
|
@@ -67,10 +69,10 @@ function Is() {
|
|
|
67
69
|
} else return t;
|
|
68
70
|
};
|
|
69
71
|
}
|
|
70
|
-
function
|
|
72
|
+
function Ns() {
|
|
71
73
|
return async (t) => {
|
|
72
74
|
if (t.type === "absolute-file") {
|
|
73
|
-
const e =
|
|
75
|
+
const e = ue.lookup(t.file);
|
|
74
76
|
if (!e) throw new Error(`Can't recognize mime type of the file: ${t.file}.`);
|
|
75
77
|
return {
|
|
76
78
|
type: "explicit-bytes",
|
|
@@ -92,7 +94,7 @@ function Rt(t, e) {
|
|
|
92
94
|
} else return r;
|
|
93
95
|
};
|
|
94
96
|
}
|
|
95
|
-
function
|
|
97
|
+
function ks(t, e, r) {
|
|
96
98
|
if (!e.endsWith(".tgz")) throw new Error(`Unexpected tgz file name: ${e}`);
|
|
97
99
|
return async (s) => {
|
|
98
100
|
const a = B.resolve(t, e);
|
|
@@ -109,13 +111,13 @@ function Ps(t, e, r) {
|
|
|
109
111
|
function Lt(t) {
|
|
110
112
|
return async (e) => e.type === "explicit-string" ? e : { type: "explicit-string", content: (await t(e.path)).toString("utf8") };
|
|
111
113
|
}
|
|
112
|
-
function
|
|
114
|
+
function Ls(t) {
|
|
113
115
|
return async (e) => e.type === "explicit-string" ? e.content : (await t(e.path)).toString("utf8");
|
|
114
116
|
}
|
|
115
|
-
function
|
|
117
|
+
function Kn(t) {
|
|
116
118
|
return async (e) => {
|
|
117
119
|
if (e.type === "explicit-base64") return e;
|
|
118
|
-
const r =
|
|
120
|
+
const r = ue.lookup(e.path);
|
|
119
121
|
if (!r) throw new Error(`Can't recognize mime type of the file: ${e.path}.`);
|
|
120
122
|
return {
|
|
121
123
|
type: "explicit-base64",
|
|
@@ -132,7 +134,7 @@ function he(t) {
|
|
|
132
134
|
mimeType: e.mimeType,
|
|
133
135
|
content: Buffer.from(e.content, "base64")
|
|
134
136
|
};
|
|
135
|
-
const r =
|
|
137
|
+
const r = ue.lookup(e.path);
|
|
136
138
|
if (!r) throw new Error(`Can't recognize mime type of the file: ${e.path}.`);
|
|
137
139
|
return {
|
|
138
140
|
type: "explicit-bytes",
|
|
@@ -141,65 +143,65 @@ function he(t) {
|
|
|
141
143
|
};
|
|
142
144
|
};
|
|
143
145
|
}
|
|
144
|
-
function
|
|
145
|
-
return
|
|
146
|
+
function Cs(t) {
|
|
147
|
+
return z(
|
|
146
148
|
ls.transform(xt(t)),
|
|
147
|
-
|
|
149
|
+
fs.transform(xt(t))
|
|
148
150
|
);
|
|
149
151
|
}
|
|
150
|
-
function
|
|
151
|
-
return
|
|
152
|
+
function Ts(t, e) {
|
|
153
|
+
return z(
|
|
152
154
|
Nt.transform(Rt(t, e)),
|
|
153
155
|
ce.transform(Rt(t, e))
|
|
154
156
|
);
|
|
155
157
|
}
|
|
156
|
-
const
|
|
158
|
+
const Zn = z(
|
|
157
159
|
Nt.transform(Xr()),
|
|
158
|
-
ce.transform(
|
|
159
|
-
).pipe(cs),
|
|
160
|
+
ce.transform(Ps())
|
|
161
|
+
).pipe(cs), Qn = z(
|
|
160
162
|
Nt.transform(Xr()),
|
|
161
|
-
ce.transform(
|
|
163
|
+
ce.transform(Ns())
|
|
162
164
|
).pipe(Gr);
|
|
163
|
-
function
|
|
164
|
-
return
|
|
165
|
-
|
|
166
|
-
|
|
165
|
+
function ei(t) {
|
|
166
|
+
return z(
|
|
167
|
+
ee.transform(Ls(t)),
|
|
168
|
+
te.transform(he(t))
|
|
167
169
|
).pipe(Gr);
|
|
168
170
|
}
|
|
169
|
-
function
|
|
171
|
+
function As(t) {
|
|
170
172
|
return le(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
+
Is(t),
|
|
174
|
+
Os(t, "index.html")
|
|
173
175
|
);
|
|
174
176
|
}
|
|
175
|
-
function
|
|
177
|
+
function Fs(t, e) {
|
|
176
178
|
return le(
|
|
177
179
|
ce.transform(Rt(t, e)),
|
|
178
|
-
|
|
179
|
-
).pipe(
|
|
180
|
+
us.transform(ks(t, "ui.tgz", e))
|
|
181
|
+
).pipe(fe);
|
|
180
182
|
}
|
|
181
|
-
function
|
|
183
|
+
function ti(t) {
|
|
182
184
|
return le(
|
|
183
|
-
ae.transform(
|
|
184
|
-
ae.transform(
|
|
185
|
+
ae.transform(_t(t)),
|
|
186
|
+
ae.transform(_t(t))
|
|
185
187
|
);
|
|
186
188
|
}
|
|
187
189
|
function Jr(t) {
|
|
188
190
|
return J(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
+
As(t),
|
|
192
|
+
Cs(t)
|
|
191
193
|
).transform(async (e, r) => {
|
|
192
|
-
const a =
|
|
194
|
+
const a = ws(JSON.parse(await U.readFile(e.components.model.file, "utf-8"))).featureFlags;
|
|
193
195
|
return {
|
|
194
196
|
...e,
|
|
195
197
|
featureFlags: a
|
|
196
198
|
};
|
|
197
199
|
});
|
|
198
200
|
}
|
|
199
|
-
function
|
|
201
|
+
function bs(t, e) {
|
|
200
202
|
return J(
|
|
201
|
-
|
|
202
|
-
|
|
203
|
+
Fs(t, e),
|
|
204
|
+
Ts(t, e)
|
|
203
205
|
).pipe(X);
|
|
204
206
|
}
|
|
205
207
|
function Ut(t) {
|
|
@@ -210,9 +212,9 @@ function Ut(t) {
|
|
|
210
212
|
ae.transform(e),
|
|
211
213
|
ae.transform(e)
|
|
212
214
|
),
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
215
|
+
z(
|
|
216
|
+
ee.transform(e),
|
|
217
|
+
te.transform(e)
|
|
216
218
|
)
|
|
217
219
|
)
|
|
218
220
|
).pipe(X);
|
|
@@ -225,17 +227,17 @@ async function Ct(t, e) {
|
|
|
225
227
|
throw new Error("", { cause: r });
|
|
226
228
|
}
|
|
227
229
|
}
|
|
228
|
-
async function
|
|
230
|
+
async function yt(t) {
|
|
229
231
|
return Buffer.from(await crypto.subtle.digest("sha-256", t)).toString("hex").toUpperCase();
|
|
230
232
|
}
|
|
231
|
-
async function
|
|
233
|
+
async function ri(t, e) {
|
|
232
234
|
await U.mkdir(e, { recursive: !0 });
|
|
233
|
-
const r = [], s = await
|
|
235
|
+
const r = [], s = await bs(e, r).parseAsync(t), a = await Promise.all(
|
|
234
236
|
r.map(async (c) => {
|
|
235
|
-
const h = await U.readFile(B.resolve(e, c)), o = await
|
|
237
|
+
const h = await U.readFile(B.resolve(e, c)), o = await yt(h);
|
|
236
238
|
return { name: c, size: h.length, sha256: o };
|
|
237
239
|
})
|
|
238
|
-
),
|
|
240
|
+
), f = xr.parse({
|
|
239
241
|
schema: "v2",
|
|
240
242
|
description: {
|
|
241
243
|
...s
|
|
@@ -243,11 +245,11 @@ async function Yn(t, e) {
|
|
|
243
245
|
files: a,
|
|
244
246
|
timestamp: Date.now()
|
|
245
247
|
});
|
|
246
|
-
return await U.writeFile(B.resolve(e, ps), JSON.stringify(
|
|
248
|
+
return await U.writeFile(B.resolve(e, ps), JSON.stringify(f)), f;
|
|
247
249
|
}
|
|
248
|
-
const
|
|
250
|
+
const St = "block", qs = /(?:@[a-zA-Z0-9-.]+\/)?(?<organization>[a-zA-Z0-9-]+)\.(?<name>[a-zA-Z0-9-]+)/;
|
|
249
251
|
function Wr(t) {
|
|
250
|
-
const e = t.match(
|
|
252
|
+
const e = t.match(qs);
|
|
251
253
|
if (!e)
|
|
252
254
|
throw new Error(
|
|
253
255
|
`Malformed package name (${t}), can't infer organization and block pack name.`
|
|
@@ -255,7 +257,7 @@ function Wr(t) {
|
|
|
255
257
|
const { name: r, organization: s } = e.groups;
|
|
256
258
|
return { name: r, organization: s };
|
|
257
259
|
}
|
|
258
|
-
async function
|
|
260
|
+
async function si(t, e) {
|
|
259
261
|
const r = B.resolve(t, "package.json");
|
|
260
262
|
try {
|
|
261
263
|
const s = await Ct(
|
|
@@ -263,17 +265,17 @@ async function Kn(t, e) {
|
|
|
263
265
|
(h) => JSON.parse(h.toString("utf-8"))
|
|
264
266
|
);
|
|
265
267
|
if (s === void 0) return;
|
|
266
|
-
const a = s[
|
|
268
|
+
const a = s[St];
|
|
267
269
|
if (a === void 0) return;
|
|
268
|
-
const
|
|
270
|
+
const f = {
|
|
269
271
|
...Ur.parse(a),
|
|
270
272
|
id: {
|
|
271
273
|
...Wr(
|
|
272
|
-
|
|
274
|
+
zr(s.name, `"name" not found in ${r}`)
|
|
273
275
|
),
|
|
274
276
|
version: kt.parse(s.version)
|
|
275
277
|
}
|
|
276
|
-
}, c = await Jr(t).safeParseAsync(
|
|
278
|
+
}, c = await Jr(t).safeParseAsync(f);
|
|
277
279
|
if (c.success) return c.data;
|
|
278
280
|
e == null || e.warn(c.error);
|
|
279
281
|
return;
|
|
@@ -282,28 +284,28 @@ async function Kn(t, e) {
|
|
|
282
284
|
return;
|
|
283
285
|
}
|
|
284
286
|
}
|
|
285
|
-
async function
|
|
286
|
-
const e = B.resolve(t, "package.json"), r = JSON.parse(await U.readFile(e, { encoding: "utf-8" })), s = r[
|
|
287
|
+
async function Ds(t) {
|
|
288
|
+
const e = B.resolve(t, "package.json"), r = JSON.parse(await U.readFile(e, { encoding: "utf-8" })), s = r[St];
|
|
287
289
|
if (s === void 0)
|
|
288
290
|
throw new Error(
|
|
289
|
-
`Block description (field ${
|
|
291
|
+
`Block description (field ${St}) not found in ${e}.`
|
|
290
292
|
);
|
|
291
293
|
return {
|
|
292
294
|
...Ur.parse(s),
|
|
293
295
|
id: {
|
|
294
296
|
...Wr(
|
|
295
|
-
|
|
297
|
+
zr(r.name, `"name" not found in ${e}`)
|
|
296
298
|
),
|
|
297
299
|
version: kt.parse(r.version)
|
|
298
300
|
},
|
|
299
301
|
featureFlags: {}
|
|
300
302
|
};
|
|
301
303
|
}
|
|
302
|
-
async function
|
|
303
|
-
const e = await
|
|
304
|
+
async function ni(t) {
|
|
305
|
+
const e = await Ds(t);
|
|
304
306
|
return await Jr(t).parseAsync(e);
|
|
305
307
|
}
|
|
306
|
-
function
|
|
308
|
+
function Bs(t) {
|
|
307
309
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
308
310
|
}
|
|
309
311
|
var se = { exports: {} }, Ie, Vt;
|
|
@@ -331,35 +333,35 @@ function pe() {
|
|
|
331
333
|
FLAG_LOOSE: 2
|
|
332
334
|
}, Ie;
|
|
333
335
|
}
|
|
334
|
-
var Oe,
|
|
336
|
+
var Oe, zt;
|
|
335
337
|
function de() {
|
|
336
|
-
return
|
|
338
|
+
return zt || (zt = 1, Oe = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...e) => console.error("SEMVER", ...e) : () => {
|
|
337
339
|
}), Oe;
|
|
338
340
|
}
|
|
339
|
-
var
|
|
340
|
-
function
|
|
341
|
-
return
|
|
341
|
+
var Mt;
|
|
342
|
+
function re() {
|
|
343
|
+
return Mt || (Mt = 1, function(t, e) {
|
|
342
344
|
const {
|
|
343
345
|
MAX_SAFE_COMPONENT_LENGTH: r,
|
|
344
346
|
MAX_SAFE_BUILD_LENGTH: s,
|
|
345
347
|
MAX_LENGTH: a
|
|
346
|
-
} = pe(),
|
|
348
|
+
} = pe(), f = de();
|
|
347
349
|
e = t.exports = {};
|
|
348
350
|
const c = e.re = [], h = e.safeRe = [], o = e.src = [], i = e.safeSrc = [], n = e.t = {};
|
|
349
351
|
let l = 0;
|
|
350
|
-
const
|
|
352
|
+
const u = "[a-zA-Z0-9-]", d = [
|
|
351
353
|
["\\s", 1],
|
|
352
354
|
["\\d", a],
|
|
353
|
-
[
|
|
355
|
+
[u, s]
|
|
354
356
|
], R = (E) => {
|
|
355
357
|
for (const [v, N] of d)
|
|
356
358
|
E = E.split(`${v}*`).join(`${v}{0,${N}}`).split(`${v}+`).join(`${v}{1,${N}}`);
|
|
357
359
|
return E;
|
|
358
360
|
}, p = (E, v, N) => {
|
|
359
361
|
const I = R(v), F = l++;
|
|
360
|
-
|
|
362
|
+
f(E, F, v), n[E] = F, o[F] = v, i[F] = I, c[F] = new RegExp(v, N ? "g" : void 0), h[F] = new RegExp(I, N ? "g" : void 0);
|
|
361
363
|
};
|
|
362
|
-
p("NUMERICIDENTIFIER", "0|[1-9]\\d*"), p("NUMERICIDENTIFIERLOOSE", "\\d+"), p("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${
|
|
364
|
+
p("NUMERICIDENTIFIER", "0|[1-9]\\d*"), p("NUMERICIDENTIFIERLOOSE", "\\d+"), p("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${u}*`), p("MAINVERSION", `(${o[n.NUMERICIDENTIFIER]})\\.(${o[n.NUMERICIDENTIFIER]})\\.(${o[n.NUMERICIDENTIFIER]})`), p("MAINVERSIONLOOSE", `(${o[n.NUMERICIDENTIFIERLOOSE]})\\.(${o[n.NUMERICIDENTIFIERLOOSE]})\\.(${o[n.NUMERICIDENTIFIERLOOSE]})`), p("PRERELEASEIDENTIFIER", `(?:${o[n.NONNUMERICIDENTIFIER]}|${o[n.NUMERICIDENTIFIER]})`), p("PRERELEASEIDENTIFIERLOOSE", `(?:${o[n.NONNUMERICIDENTIFIER]}|${o[n.NUMERICIDENTIFIERLOOSE]})`), p("PRERELEASE", `(?:-(${o[n.PRERELEASEIDENTIFIER]}(?:\\.${o[n.PRERELEASEIDENTIFIER]})*))`), p("PRERELEASELOOSE", `(?:-?(${o[n.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[n.PRERELEASEIDENTIFIERLOOSE]})*))`), p("BUILDIDENTIFIER", `${u}+`), p("BUILD", `(?:\\+(${o[n.BUILDIDENTIFIER]}(?:\\.${o[n.BUILDIDENTIFIER]})*))`), p("FULLPLAIN", `v?${o[n.MAINVERSION]}${o[n.PRERELEASE]}?${o[n.BUILD]}?`), p("FULL", `^${o[n.FULLPLAIN]}$`), p("LOOSEPLAIN", `[v=\\s]*${o[n.MAINVERSIONLOOSE]}${o[n.PRERELEASELOOSE]}?${o[n.BUILD]}?`), p("LOOSE", `^${o[n.LOOSEPLAIN]}$`), p("GTLT", "((?:<|>)?=?)"), p("XRANGEIDENTIFIERLOOSE", `${o[n.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), p("XRANGEIDENTIFIER", `${o[n.NUMERICIDENTIFIER]}|x|X|\\*`), p("XRANGEPLAIN", `[v=\\s]*(${o[n.XRANGEIDENTIFIER]})(?:\\.(${o[n.XRANGEIDENTIFIER]})(?:\\.(${o[n.XRANGEIDENTIFIER]})(?:${o[n.PRERELEASE]})?${o[n.BUILD]}?)?)?`), p("XRANGEPLAINLOOSE", `[v=\\s]*(${o[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[n.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[n.XRANGEIDENTIFIERLOOSE]})(?:${o[n.PRERELEASELOOSE]})?${o[n.BUILD]}?)?)?`), p("XRANGE", `^${o[n.GTLT]}\\s*${o[n.XRANGEPLAIN]}$`), p("XRANGELOOSE", `^${o[n.GTLT]}\\s*${o[n.XRANGEPLAINLOOSE]}$`), p("COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`), p("COERCE", `${o[n.COERCEPLAIN]}(?:$|[^\\d])`), p("COERCEFULL", o[n.COERCEPLAIN] + `(?:${o[n.PRERELEASE]})?(?:${o[n.BUILD]})?(?:$|[^\\d])`), p("COERCERTL", o[n.COERCE], !0), p("COERCERTLFULL", o[n.COERCEFULL], !0), p("LONETILDE", "(?:~>?)"), p("TILDETRIM", `(\\s*)${o[n.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", p("TILDE", `^${o[n.LONETILDE]}${o[n.XRANGEPLAIN]}$`), p("TILDELOOSE", `^${o[n.LONETILDE]}${o[n.XRANGEPLAINLOOSE]}$`), p("LONECARET", "(?:\\^)"), p("CARETTRIM", `(\\s*)${o[n.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", p("CARET", `^${o[n.LONECARET]}${o[n.XRANGEPLAIN]}$`), p("CARETLOOSE", `^${o[n.LONECARET]}${o[n.XRANGEPLAINLOOSE]}$`), p("COMPARATORLOOSE", `^${o[n.GTLT]}\\s*(${o[n.LOOSEPLAIN]})$|^$`), p("COMPARATOR", `^${o[n.GTLT]}\\s*(${o[n.FULLPLAIN]})$|^$`), p("COMPARATORTRIM", `(\\s*)${o[n.GTLT]}\\s*(${o[n.LOOSEPLAIN]}|${o[n.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", p("HYPHENRANGE", `^\\s*(${o[n.XRANGEPLAIN]})\\s+-\\s+(${o[n.XRANGEPLAIN]})\\s*$`), p("HYPHENRANGELOOSE", `^\\s*(${o[n.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[n.XRANGEPLAINLOOSE]})\\s*$`), p("STAR", "(<|>)?=?\\s*\\*"), p("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), p("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
363
365
|
}(se, se.exports)), se.exports;
|
|
364
366
|
}
|
|
365
367
|
var Pe, Xt;
|
|
@@ -374,8 +376,8 @@ function Hr() {
|
|
|
374
376
|
if (Jt) return Ne;
|
|
375
377
|
Jt = 1;
|
|
376
378
|
const t = /^[0-9]+$/, e = (s, a) => {
|
|
377
|
-
const
|
|
378
|
-
return
|
|
379
|
+
const f = t.test(s), c = t.test(a);
|
|
380
|
+
return f && c && (s = +s, a = +a), s === a ? 0 : f && !c ? -1 : c && !f ? 1 : s < a ? -1 : 1;
|
|
379
381
|
};
|
|
380
382
|
return Ne = {
|
|
381
383
|
compareIdentifiers: e,
|
|
@@ -383,13 +385,13 @@ function Hr() {
|
|
|
383
385
|
}, Ne;
|
|
384
386
|
}
|
|
385
387
|
var ke, Wt;
|
|
386
|
-
function
|
|
388
|
+
function _() {
|
|
387
389
|
if (Wt) return ke;
|
|
388
390
|
Wt = 1;
|
|
389
|
-
const t = de(), { MAX_LENGTH: e, MAX_SAFE_INTEGER: r } = pe(), { safeRe: s, t: a } =
|
|
391
|
+
const t = de(), { MAX_LENGTH: e, MAX_SAFE_INTEGER: r } = pe(), { safeRe: s, t: a } = re(), f = Tt(), { compareIdentifiers: c } = Hr();
|
|
390
392
|
class h {
|
|
391
393
|
constructor(i, n) {
|
|
392
|
-
if (n =
|
|
394
|
+
if (n = f(n), i instanceof h) {
|
|
393
395
|
if (i.loose === !!n.loose && i.includePrerelease === !!n.includePrerelease)
|
|
394
396
|
return i;
|
|
395
397
|
i = i.version;
|
|
@@ -409,13 +411,13 @@ function j() {
|
|
|
409
411
|
throw new TypeError("Invalid minor version");
|
|
410
412
|
if (this.patch > r || this.patch < 0)
|
|
411
413
|
throw new TypeError("Invalid patch version");
|
|
412
|
-
l[4] ? this.prerelease = l[4].split(".").map((
|
|
413
|
-
if (/^[0-9]+$/.test(
|
|
414
|
-
const d = +
|
|
414
|
+
l[4] ? this.prerelease = l[4].split(".").map((u) => {
|
|
415
|
+
if (/^[0-9]+$/.test(u)) {
|
|
416
|
+
const d = +u;
|
|
415
417
|
if (d >= 0 && d < r)
|
|
416
418
|
return d;
|
|
417
419
|
}
|
|
418
|
-
return
|
|
420
|
+
return u;
|
|
419
421
|
}) : this.prerelease = [], this.build = l[5] ? l[5].split(".") : [], this.format();
|
|
420
422
|
}
|
|
421
423
|
format() {
|
|
@@ -444,32 +446,32 @@ function j() {
|
|
|
444
446
|
return 0;
|
|
445
447
|
let n = 0;
|
|
446
448
|
do {
|
|
447
|
-
const l = this.prerelease[n],
|
|
448
|
-
if (t("prerelease compare", n, l,
|
|
449
|
+
const l = this.prerelease[n], u = i.prerelease[n];
|
|
450
|
+
if (t("prerelease compare", n, l, u), l === void 0 && u === void 0)
|
|
449
451
|
return 0;
|
|
450
|
-
if (
|
|
452
|
+
if (u === void 0)
|
|
451
453
|
return 1;
|
|
452
454
|
if (l === void 0)
|
|
453
455
|
return -1;
|
|
454
|
-
if (l ===
|
|
456
|
+
if (l === u)
|
|
455
457
|
continue;
|
|
456
|
-
return c(l,
|
|
458
|
+
return c(l, u);
|
|
457
459
|
} while (++n);
|
|
458
460
|
}
|
|
459
461
|
compareBuild(i) {
|
|
460
462
|
i instanceof h || (i = new h(i, this.options));
|
|
461
463
|
let n = 0;
|
|
462
464
|
do {
|
|
463
|
-
const l = this.build[n],
|
|
464
|
-
if (t("build compare", n, l,
|
|
465
|
+
const l = this.build[n], u = i.build[n];
|
|
466
|
+
if (t("build compare", n, l, u), l === void 0 && u === void 0)
|
|
465
467
|
return 0;
|
|
466
|
-
if (
|
|
468
|
+
if (u === void 0)
|
|
467
469
|
return 1;
|
|
468
470
|
if (l === void 0)
|
|
469
471
|
return -1;
|
|
470
|
-
if (l ===
|
|
472
|
+
if (l === u)
|
|
471
473
|
continue;
|
|
472
|
-
return c(l,
|
|
474
|
+
return c(l, u);
|
|
473
475
|
} while (++n);
|
|
474
476
|
}
|
|
475
477
|
// preminor will bump the version up to the next minor release, and immediately
|
|
@@ -479,8 +481,8 @@ function j() {
|
|
|
479
481
|
if (!n && l === !1)
|
|
480
482
|
throw new Error("invalid increment argument: identifier is empty");
|
|
481
483
|
if (n) {
|
|
482
|
-
const
|
|
483
|
-
if (!
|
|
484
|
+
const u = `-${n}`.match(this.options.loose ? s[a.PRERELEASELOOSE] : s[a.PRERELEASE]);
|
|
485
|
+
if (!u || u[1] !== n)
|
|
484
486
|
throw new Error(`invalid identifier: ${n}`);
|
|
485
487
|
}
|
|
486
488
|
}
|
|
@@ -516,9 +518,9 @@ function j() {
|
|
|
516
518
|
// This probably shouldn't be used publicly.
|
|
517
519
|
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
518
520
|
case "pre": {
|
|
519
|
-
const
|
|
521
|
+
const u = Number(l) ? 1 : 0;
|
|
520
522
|
if (this.prerelease.length === 0)
|
|
521
|
-
this.prerelease = [
|
|
523
|
+
this.prerelease = [u];
|
|
522
524
|
else {
|
|
523
525
|
let d = this.prerelease.length;
|
|
524
526
|
for (; --d >= 0; )
|
|
@@ -526,11 +528,11 @@ function j() {
|
|
|
526
528
|
if (d === -1) {
|
|
527
529
|
if (n === this.prerelease.join(".") && l === !1)
|
|
528
530
|
throw new Error("invalid increment argument: identifier already exists");
|
|
529
|
-
this.prerelease.push(
|
|
531
|
+
this.prerelease.push(u);
|
|
530
532
|
}
|
|
531
533
|
}
|
|
532
534
|
if (n) {
|
|
533
|
-
let d = [n,
|
|
535
|
+
let d = [n, u];
|
|
534
536
|
l === !1 && (d = [n]), c(this.prerelease[0], n) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = d) : this.prerelease = d;
|
|
535
537
|
}
|
|
536
538
|
break;
|
|
@@ -547,21 +549,21 @@ var Le, Ht;
|
|
|
547
549
|
function W() {
|
|
548
550
|
if (Ht) return Le;
|
|
549
551
|
Ht = 1;
|
|
550
|
-
const t =
|
|
552
|
+
const t = _();
|
|
551
553
|
return Le = (r, s, a = !1) => {
|
|
552
554
|
if (r instanceof t)
|
|
553
555
|
return r;
|
|
554
556
|
try {
|
|
555
557
|
return new t(r, s);
|
|
556
|
-
} catch (
|
|
558
|
+
} catch (f) {
|
|
557
559
|
if (!a)
|
|
558
560
|
return null;
|
|
559
|
-
throw
|
|
561
|
+
throw f;
|
|
560
562
|
}
|
|
561
563
|
}, Le;
|
|
562
564
|
}
|
|
563
565
|
var Ce, Yt;
|
|
564
|
-
function
|
|
566
|
+
function js() {
|
|
565
567
|
if (Yt) return Ce;
|
|
566
568
|
Yt = 1;
|
|
567
569
|
const t = W();
|
|
@@ -571,7 +573,7 @@ function Ds() {
|
|
|
571
573
|
}, Ce;
|
|
572
574
|
}
|
|
573
575
|
var Te, Kt;
|
|
574
|
-
function
|
|
576
|
+
function _s() {
|
|
575
577
|
if (Kt) return Te;
|
|
576
578
|
Kt = 1;
|
|
577
579
|
const t = W();
|
|
@@ -581,65 +583,65 @@ function Bs() {
|
|
|
581
583
|
}, Te;
|
|
582
584
|
}
|
|
583
585
|
var Ae, Zt;
|
|
584
|
-
function
|
|
586
|
+
function Gs() {
|
|
585
587
|
if (Zt) return Ae;
|
|
586
588
|
Zt = 1;
|
|
587
|
-
const t =
|
|
588
|
-
return Ae = (r, s, a,
|
|
589
|
-
typeof a == "string" && (c =
|
|
589
|
+
const t = _();
|
|
590
|
+
return Ae = (r, s, a, f, c) => {
|
|
591
|
+
typeof a == "string" && (c = f, f = a, a = void 0);
|
|
590
592
|
try {
|
|
591
593
|
return new t(
|
|
592
594
|
r instanceof t ? r.version : r,
|
|
593
595
|
a
|
|
594
|
-
).inc(s,
|
|
596
|
+
).inc(s, f, c).version;
|
|
595
597
|
} catch {
|
|
596
598
|
return null;
|
|
597
599
|
}
|
|
598
600
|
}, Ae;
|
|
599
601
|
}
|
|
600
602
|
var Fe, Qt;
|
|
601
|
-
function
|
|
603
|
+
function xs() {
|
|
602
604
|
if (Qt) return Fe;
|
|
603
605
|
Qt = 1;
|
|
604
606
|
const t = W();
|
|
605
607
|
return Fe = (r, s) => {
|
|
606
|
-
const a = t(r, null, !0),
|
|
608
|
+
const a = t(r, null, !0), f = t(s, null, !0), c = a.compare(f);
|
|
607
609
|
if (c === 0)
|
|
608
610
|
return null;
|
|
609
|
-
const h = c > 0, o = h ? a :
|
|
611
|
+
const h = c > 0, o = h ? a : f, i = h ? f : a, n = !!o.prerelease.length;
|
|
610
612
|
if (!!i.prerelease.length && !n) {
|
|
611
613
|
if (!i.patch && !i.minor)
|
|
612
614
|
return "major";
|
|
613
615
|
if (i.compareMain(o) === 0)
|
|
614
616
|
return i.minor && !i.patch ? "minor" : "patch";
|
|
615
617
|
}
|
|
616
|
-
const
|
|
617
|
-
return a.major !==
|
|
618
|
+
const u = n ? "pre" : "";
|
|
619
|
+
return a.major !== f.major ? u + "major" : a.minor !== f.minor ? u + "minor" : a.patch !== f.patch ? u + "patch" : "prerelease";
|
|
618
620
|
}, Fe;
|
|
619
621
|
}
|
|
620
622
|
var be, er;
|
|
621
|
-
function
|
|
623
|
+
function Us() {
|
|
622
624
|
if (er) return be;
|
|
623
625
|
er = 1;
|
|
624
|
-
const t =
|
|
626
|
+
const t = _();
|
|
625
627
|
return be = (r, s) => new t(r, s).major, be;
|
|
626
628
|
}
|
|
627
629
|
var qe, tr;
|
|
628
|
-
function
|
|
630
|
+
function Vs() {
|
|
629
631
|
if (tr) return qe;
|
|
630
632
|
tr = 1;
|
|
631
|
-
const t =
|
|
633
|
+
const t = _();
|
|
632
634
|
return qe = (r, s) => new t(r, s).minor, qe;
|
|
633
635
|
}
|
|
634
636
|
var De, rr;
|
|
635
|
-
function
|
|
637
|
+
function zs() {
|
|
636
638
|
if (rr) return De;
|
|
637
639
|
rr = 1;
|
|
638
|
-
const t =
|
|
640
|
+
const t = _();
|
|
639
641
|
return De = (r, s) => new t(r, s).patch, De;
|
|
640
642
|
}
|
|
641
643
|
var Be, sr;
|
|
642
|
-
function
|
|
644
|
+
function Ms() {
|
|
643
645
|
if (sr) return Be;
|
|
644
646
|
sr = 1;
|
|
645
647
|
const t = W();
|
|
@@ -648,22 +650,22 @@ function Vs() {
|
|
|
648
650
|
return a && a.prerelease.length ? a.prerelease : null;
|
|
649
651
|
}, Be;
|
|
650
652
|
}
|
|
651
|
-
var
|
|
653
|
+
var je, nr;
|
|
652
654
|
function G() {
|
|
653
|
-
if (nr) return
|
|
655
|
+
if (nr) return je;
|
|
654
656
|
nr = 1;
|
|
655
|
-
const t =
|
|
656
|
-
return
|
|
657
|
+
const t = _();
|
|
658
|
+
return je = (r, s, a) => new t(r, a).compare(new t(s, a)), je;
|
|
657
659
|
}
|
|
658
|
-
var
|
|
659
|
-
function
|
|
660
|
-
if (ir) return
|
|
660
|
+
var _e, ir;
|
|
661
|
+
function Xs() {
|
|
662
|
+
if (ir) return _e;
|
|
661
663
|
ir = 1;
|
|
662
664
|
const t = G();
|
|
663
|
-
return
|
|
665
|
+
return _e = (r, s, a) => t(s, r, a), _e;
|
|
664
666
|
}
|
|
665
667
|
var Ge, ar;
|
|
666
|
-
function
|
|
668
|
+
function Js() {
|
|
667
669
|
if (ar) return Ge;
|
|
668
670
|
ar = 1;
|
|
669
671
|
const t = G();
|
|
@@ -673,39 +675,39 @@ var xe, or;
|
|
|
673
675
|
function At() {
|
|
674
676
|
if (or) return xe;
|
|
675
677
|
or = 1;
|
|
676
|
-
const t =
|
|
678
|
+
const t = _();
|
|
677
679
|
return xe = (r, s, a) => {
|
|
678
|
-
const
|
|
679
|
-
return
|
|
680
|
+
const f = new t(r, a), c = new t(s, a);
|
|
681
|
+
return f.compare(c) || f.compareBuild(c);
|
|
680
682
|
}, xe;
|
|
681
683
|
}
|
|
682
684
|
var Ue, cr;
|
|
683
|
-
function
|
|
685
|
+
function Ws() {
|
|
684
686
|
if (cr) return Ue;
|
|
685
687
|
cr = 1;
|
|
686
688
|
const t = At();
|
|
687
|
-
return Ue = (r, s) => r.sort((a,
|
|
689
|
+
return Ue = (r, s) => r.sort((a, f) => t(a, f, s)), Ue;
|
|
688
690
|
}
|
|
689
691
|
var Ve, lr;
|
|
690
|
-
function
|
|
692
|
+
function Hs() {
|
|
691
693
|
if (lr) return Ve;
|
|
692
694
|
lr = 1;
|
|
693
695
|
const t = At();
|
|
694
|
-
return Ve = (r, s) => r.sort((a,
|
|
696
|
+
return Ve = (r, s) => r.sort((a, f) => t(f, a, s)), Ve;
|
|
695
697
|
}
|
|
696
|
-
var
|
|
698
|
+
var ze, fr;
|
|
697
699
|
function ge() {
|
|
698
|
-
if (
|
|
699
|
-
|
|
700
|
+
if (fr) return ze;
|
|
701
|
+
fr = 1;
|
|
700
702
|
const t = G();
|
|
701
|
-
return
|
|
703
|
+
return ze = (r, s, a) => t(r, s, a) > 0, ze;
|
|
702
704
|
}
|
|
703
|
-
var
|
|
705
|
+
var Me, ur;
|
|
704
706
|
function Ft() {
|
|
705
|
-
if (
|
|
706
|
-
|
|
707
|
+
if (ur) return Me;
|
|
708
|
+
ur = 1;
|
|
707
709
|
const t = G();
|
|
708
|
-
return
|
|
710
|
+
return Me = (r, s, a) => t(r, s, a) < 0, Me;
|
|
709
711
|
}
|
|
710
712
|
var Xe, hr;
|
|
711
713
|
function Yr() {
|
|
@@ -739,7 +741,7 @@ var Ye, mr;
|
|
|
739
741
|
function Zr() {
|
|
740
742
|
if (mr) return Ye;
|
|
741
743
|
mr = 1;
|
|
742
|
-
const t = Yr(), e = Kr(), r = ge(), s = bt(), a = Ft(),
|
|
744
|
+
const t = Yr(), e = Kr(), r = ge(), s = bt(), a = Ft(), f = qt();
|
|
743
745
|
return Ye = (h, o, i, n) => {
|
|
744
746
|
switch (o) {
|
|
745
747
|
case "===":
|
|
@@ -759,41 +761,41 @@ function Zr() {
|
|
|
759
761
|
case "<":
|
|
760
762
|
return a(h, i, n);
|
|
761
763
|
case "<=":
|
|
762
|
-
return
|
|
764
|
+
return f(h, i, n);
|
|
763
765
|
default:
|
|
764
766
|
throw new TypeError(`Invalid operator: ${o}`);
|
|
765
767
|
}
|
|
766
768
|
}, Ye;
|
|
767
769
|
}
|
|
768
770
|
var Ke, Er;
|
|
769
|
-
function
|
|
771
|
+
function Ys() {
|
|
770
772
|
if (Er) return Ke;
|
|
771
773
|
Er = 1;
|
|
772
|
-
const t =
|
|
773
|
-
return Ke = (
|
|
774
|
-
if (
|
|
775
|
-
return
|
|
776
|
-
if (typeof
|
|
774
|
+
const t = _(), e = W(), { safeRe: r, t: s } = re();
|
|
775
|
+
return Ke = (f, c) => {
|
|
776
|
+
if (f instanceof t)
|
|
777
|
+
return f;
|
|
778
|
+
if (typeof f == "number" && (f = String(f)), typeof f != "string")
|
|
777
779
|
return null;
|
|
778
780
|
c = c || {};
|
|
779
781
|
let h = null;
|
|
780
782
|
if (!c.rtl)
|
|
781
|
-
h =
|
|
783
|
+
h = f.match(c.includePrerelease ? r[s.COERCEFULL] : r[s.COERCE]);
|
|
782
784
|
else {
|
|
783
785
|
const d = c.includePrerelease ? r[s.COERCERTLFULL] : r[s.COERCERTL];
|
|
784
786
|
let R;
|
|
785
|
-
for (; (R = d.exec(
|
|
787
|
+
for (; (R = d.exec(f)) && (!h || h.index + h[0].length !== f.length); )
|
|
786
788
|
(!h || R.index + R[0].length !== h.index + h[0].length) && (h = R), d.lastIndex = R.index + R[1].length + R[2].length;
|
|
787
789
|
d.lastIndex = -1;
|
|
788
790
|
}
|
|
789
791
|
if (h === null)
|
|
790
792
|
return null;
|
|
791
|
-
const o = h[2], i = h[3] || "0", n = h[4] || "0", l = c.includePrerelease && h[5] ? `-${h[5]}` : "",
|
|
792
|
-
return e(`${o}.${i}.${n}${l}${
|
|
793
|
+
const o = h[2], i = h[3] || "0", n = h[4] || "0", l = c.includePrerelease && h[5] ? `-${h[5]}` : "", u = c.includePrerelease && h[6] ? `+${h[6]}` : "";
|
|
794
|
+
return e(`${o}.${i}.${n}${l}${u}`, c);
|
|
793
795
|
}, Ke;
|
|
794
796
|
}
|
|
795
797
|
var Ze, vr;
|
|
796
|
-
function
|
|
798
|
+
function Ks() {
|
|
797
799
|
if (vr) return Ze;
|
|
798
800
|
vr = 1;
|
|
799
801
|
class t {
|
|
@@ -811,8 +813,8 @@ function Hs() {
|
|
|
811
813
|
set(r, s) {
|
|
812
814
|
if (!this.delete(r) && s !== void 0) {
|
|
813
815
|
if (this.map.size >= this.max) {
|
|
814
|
-
const
|
|
815
|
-
this.delete(
|
|
816
|
+
const f = this.map.keys().next().value;
|
|
817
|
+
this.delete(f);
|
|
816
818
|
}
|
|
817
819
|
this.map.set(r, s);
|
|
818
820
|
}
|
|
@@ -827,21 +829,21 @@ function x() {
|
|
|
827
829
|
$r = 1;
|
|
828
830
|
const t = /\s+/g;
|
|
829
831
|
class e {
|
|
830
|
-
constructor(g,
|
|
831
|
-
if (
|
|
832
|
-
return g.loose === !!
|
|
833
|
-
if (g instanceof
|
|
832
|
+
constructor(g, y) {
|
|
833
|
+
if (y = a(y), g instanceof e)
|
|
834
|
+
return g.loose === !!y.loose && g.includePrerelease === !!y.includePrerelease ? g : new e(g.raw, y);
|
|
835
|
+
if (g instanceof f)
|
|
834
836
|
return this.raw = g.value, this.set = [[g]], this.formatted = void 0, this;
|
|
835
|
-
if (this.options =
|
|
837
|
+
if (this.options = y, this.loose = !!y.loose, this.includePrerelease = !!y.includePrerelease, this.raw = g.trim().replace(t, " "), this.set = this.raw.split("||").map(($) => this.parseRange($.trim())).filter(($) => $.length), !this.set.length)
|
|
836
838
|
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
837
839
|
if (this.set.length > 1) {
|
|
838
840
|
const $ = this.set[0];
|
|
839
|
-
if (this.set = this.set.filter((
|
|
841
|
+
if (this.set = this.set.filter((S) => !p(S[0])), this.set.length === 0)
|
|
840
842
|
this.set = [$];
|
|
841
843
|
else if (this.set.length > 1) {
|
|
842
|
-
for (const
|
|
843
|
-
if (
|
|
844
|
-
this.set = [
|
|
844
|
+
for (const S of this.set)
|
|
845
|
+
if (S.length === 1 && E(S[0])) {
|
|
846
|
+
this.set = [S];
|
|
845
847
|
break;
|
|
846
848
|
}
|
|
847
849
|
}
|
|
@@ -853,9 +855,9 @@ function x() {
|
|
|
853
855
|
this.formatted = "";
|
|
854
856
|
for (let g = 0; g < this.set.length; g++) {
|
|
855
857
|
g > 0 && (this.formatted += "||");
|
|
856
|
-
const
|
|
857
|
-
for (let $ = 0; $ <
|
|
858
|
-
$ > 0 && (this.formatted += " "), this.formatted +=
|
|
858
|
+
const y = this.set[g];
|
|
859
|
+
for (let $ = 0; $ < y.length; $++)
|
|
860
|
+
$ > 0 && (this.formatted += " "), this.formatted += y[$].toString().trim();
|
|
859
861
|
}
|
|
860
862
|
}
|
|
861
863
|
return this.formatted;
|
|
@@ -867,27 +869,27 @@ function x() {
|
|
|
867
869
|
return this.range;
|
|
868
870
|
}
|
|
869
871
|
parseRange(g) {
|
|
870
|
-
const $ = ((this.options.includePrerelease && d) | (this.options.loose && R)) + ":" + g,
|
|
871
|
-
if (
|
|
872
|
-
return
|
|
872
|
+
const $ = ((this.options.includePrerelease && d) | (this.options.loose && R)) + ":" + g, S = s.get($);
|
|
873
|
+
if (S)
|
|
874
|
+
return S;
|
|
873
875
|
const w = this.options.loose, O = w ? o[i.HYPHENRANGELOOSE] : o[i.HYPHENRANGE];
|
|
874
|
-
g = g.replace(O, Re(this.options.includePrerelease)), c("hyphen replace", g), g = g.replace(o[i.COMPARATORTRIM], n), c("comparator trim", g), g = g.replace(o[i.TILDETRIM], l), c("tilde trim", g), g = g.replace(o[i.CARETTRIM],
|
|
876
|
+
g = g.replace(O, Re(this.options.includePrerelease)), c("hyphen replace", g), g = g.replace(o[i.COMPARATORTRIM], n), c("comparator trim", g), g = g.replace(o[i.TILDETRIM], l), c("tilde trim", g), g = g.replace(o[i.CARETTRIM], u), c("caret trim", g);
|
|
875
877
|
let C = g.split(" ").map((q) => N(q, this.options)).join(" ").split(/\s+/).map((q) => we(q, this.options));
|
|
876
878
|
w && (C = C.filter((q) => (c("loose invalid filter", q, this.options), !!q.match(o[i.COMPARATORLOOSE])))), c("range list", C);
|
|
877
|
-
const k = /* @__PURE__ */ new Map(), A = C.map((q) => new
|
|
879
|
+
const k = /* @__PURE__ */ new Map(), A = C.map((q) => new f(q, this.options));
|
|
878
880
|
for (const q of A) {
|
|
879
881
|
if (p(q))
|
|
880
882
|
return [q];
|
|
881
883
|
k.set(q.value, q);
|
|
882
884
|
}
|
|
883
885
|
k.size > 1 && k.has("") && k.delete("");
|
|
884
|
-
const
|
|
885
|
-
return s.set($,
|
|
886
|
+
const j = [...k.values()];
|
|
887
|
+
return s.set($, j), j;
|
|
886
888
|
}
|
|
887
|
-
intersects(g,
|
|
889
|
+
intersects(g, y) {
|
|
888
890
|
if (!(g instanceof e))
|
|
889
891
|
throw new TypeError("a Range is required");
|
|
890
|
-
return this.set.some(($) => v($,
|
|
892
|
+
return this.set.some(($) => v($, y) && g.set.some((S) => v(S, y) && $.every((w) => S.every((O) => w.intersects(O, y)))));
|
|
891
893
|
}
|
|
892
894
|
// if ANY of the sets match ALL of its comparators, then pass
|
|
893
895
|
test(g) {
|
|
@@ -899,58 +901,58 @@ function x() {
|
|
|
899
901
|
} catch {
|
|
900
902
|
return !1;
|
|
901
903
|
}
|
|
902
|
-
for (let
|
|
903
|
-
if (
|
|
904
|
+
for (let y = 0; y < this.set.length; y++)
|
|
905
|
+
if (ye(this.set[y], g, this.options))
|
|
904
906
|
return !0;
|
|
905
907
|
return !1;
|
|
906
908
|
}
|
|
907
909
|
}
|
|
908
910
|
Qe = e;
|
|
909
|
-
const r =
|
|
911
|
+
const r = Ks(), s = new r(), a = Tt(), f = me(), c = de(), h = _(), {
|
|
910
912
|
safeRe: o,
|
|
911
913
|
t: i,
|
|
912
914
|
comparatorTrimReplace: n,
|
|
913
915
|
tildeTrimReplace: l,
|
|
914
|
-
caretTrimReplace:
|
|
915
|
-
} =
|
|
916
|
-
let
|
|
916
|
+
caretTrimReplace: u
|
|
917
|
+
} = re(), { FLAG_INCLUDE_PRERELEASE: d, FLAG_LOOSE: R } = pe(), p = (m) => m.value === "<0.0.0-0", E = (m) => m.value === "", v = (m, g) => {
|
|
918
|
+
let y = !0;
|
|
917
919
|
const $ = m.slice();
|
|
918
|
-
let
|
|
919
|
-
for (;
|
|
920
|
-
|
|
921
|
-
return
|
|
922
|
-
}, N = (m, g) => (c("comp", m, g), m = T(m, g), c("caret", m), m = F(m, g), c("tildes", m), m = P(m, g), c("xrange", m), m = $e(m, g), c("stars", m), m), I = (m) => !m || m.toLowerCase() === "x" || m === "*", F = (m, g) => m.trim().split(/\s+/).map((
|
|
923
|
-
const
|
|
924
|
-
return m.replace(
|
|
925
|
-
c("tilde", m, $,
|
|
920
|
+
let S = $.pop();
|
|
921
|
+
for (; y && $.length; )
|
|
922
|
+
y = $.every((w) => S.intersects(w, g)), S = $.pop();
|
|
923
|
+
return y;
|
|
924
|
+
}, N = (m, g) => (c("comp", m, g), m = T(m, g), c("caret", m), m = F(m, g), c("tildes", m), m = P(m, g), c("xrange", m), m = $e(m, g), c("stars", m), m), I = (m) => !m || m.toLowerCase() === "x" || m === "*", F = (m, g) => m.trim().split(/\s+/).map((y) => b(y, g)).join(" "), b = (m, g) => {
|
|
925
|
+
const y = g.loose ? o[i.TILDELOOSE] : o[i.TILDE];
|
|
926
|
+
return m.replace(y, ($, S, w, O, C) => {
|
|
927
|
+
c("tilde", m, $, S, w, O, C);
|
|
926
928
|
let k;
|
|
927
|
-
return I(
|
|
929
|
+
return I(S) ? k = "" : I(w) ? k = `>=${S}.0.0 <${+S + 1}.0.0-0` : I(O) ? k = `>=${S}.${w}.0 <${S}.${+w + 1}.0-0` : C ? (c("replaceTilde pr", C), k = `>=${S}.${w}.${O}-${C} <${S}.${+w + 1}.0-0`) : k = `>=${S}.${w}.${O} <${S}.${+w + 1}.0-0`, c("tilde return", k), k;
|
|
928
930
|
});
|
|
929
|
-
}, T = (m, g) => m.trim().split(/\s+/).map((
|
|
931
|
+
}, T = (m, g) => m.trim().split(/\s+/).map((y) => D(y, g)).join(" "), D = (m, g) => {
|
|
930
932
|
c("caret", m, g);
|
|
931
|
-
const
|
|
932
|
-
return m.replace(
|
|
933
|
-
c("caret", m,
|
|
933
|
+
const y = g.loose ? o[i.CARETLOOSE] : o[i.CARET], $ = g.includePrerelease ? "-0" : "";
|
|
934
|
+
return m.replace(y, (S, w, O, C, k) => {
|
|
935
|
+
c("caret", m, S, w, O, C, k);
|
|
934
936
|
let A;
|
|
935
937
|
return I(w) ? A = "" : I(O) ? A = `>=${w}.0.0${$} <${+w + 1}.0.0-0` : I(C) ? w === "0" ? A = `>=${w}.${O}.0${$} <${w}.${+O + 1}.0-0` : A = `>=${w}.${O}.0${$} <${+w + 1}.0.0-0` : k ? (c("replaceCaret pr", k), w === "0" ? O === "0" ? A = `>=${w}.${O}.${C}-${k} <${w}.${O}.${+C + 1}-0` : A = `>=${w}.${O}.${C}-${k} <${w}.${+O + 1}.0-0` : A = `>=${w}.${O}.${C}-${k} <${+w + 1}.0.0-0`) : (c("no pr"), w === "0" ? O === "0" ? A = `>=${w}.${O}.${C}${$} <${w}.${O}.${+C + 1}-0` : A = `>=${w}.${O}.${C}${$} <${w}.${+O + 1}.0-0` : A = `>=${w}.${O}.${C} <${+w + 1}.0.0-0`), c("caret return", A), A;
|
|
936
938
|
});
|
|
937
|
-
}, P = (m, g) => (c("replaceXRanges", m, g), m.split(/\s+/).map((
|
|
939
|
+
}, P = (m, g) => (c("replaceXRanges", m, g), m.split(/\s+/).map((y) => Y(y, g)).join(" ")), Y = (m, g) => {
|
|
938
940
|
m = m.trim();
|
|
939
|
-
const
|
|
940
|
-
return m.replace(
|
|
941
|
-
c("xRange", m, $,
|
|
942
|
-
const A = I(w),
|
|
943
|
-
return
|
|
941
|
+
const y = g.loose ? o[i.XRANGELOOSE] : o[i.XRANGE];
|
|
942
|
+
return m.replace(y, ($, S, w, O, C, k) => {
|
|
943
|
+
c("xRange", m, $, S, w, O, C, k);
|
|
944
|
+
const A = I(w), j = A || I(O), q = j || I(C), K = q;
|
|
945
|
+
return S === "=" && K && (S = ""), k = g.includePrerelease ? "-0" : "", A ? S === ">" || S === "<" ? $ = "<0.0.0-0" : $ = "*" : S && K ? (j && (O = 0), C = 0, S === ">" ? (S = ">=", j ? (w = +w + 1, O = 0, C = 0) : (O = +O + 1, C = 0)) : S === "<=" && (S = "<", j ? w = +w + 1 : O = +O + 1), S === "<" && (k = "-0"), $ = `${S + w}.${O}.${C}${k}`) : j ? $ = `>=${w}.0.0${k} <${+w + 1}.0.0-0` : q && ($ = `>=${w}.${O}.0${k} <${w}.${+O + 1}.0-0`), c("xRange return", $), $;
|
|
944
946
|
});
|
|
945
|
-
}, $e = (m, g) => (c("replaceStars", m, g), m.trim().replace(o[i.STAR], "")), we = (m, g) => (c("replaceGTE0", m, g), m.trim().replace(o[g.includePrerelease ? i.GTE0PRE : i.GTE0], "")), Re = (m) => (g,
|
|
947
|
+
}, $e = (m, g) => (c("replaceStars", m, g), m.trim().replace(o[i.STAR], "")), we = (m, g) => (c("replaceGTE0", m, g), m.trim().replace(o[g.includePrerelease ? i.GTE0PRE : i.GTE0], "")), Re = (m) => (g, y, $, S, w, O, C, k, A, j, q, K) => (I($) ? y = "" : I(S) ? y = `>=${$}.0.0${m ? "-0" : ""}` : I(w) ? y = `>=${$}.${S}.0${m ? "-0" : ""}` : O ? y = `>=${y}` : y = `>=${y}${m ? "-0" : ""}`, I(A) ? k = "" : I(j) ? k = `<${+A + 1}.0.0-0` : I(q) ? k = `<${A}.${+j + 1}.0-0` : K ? k = `<=${A}.${j}.${q}-${K}` : m ? k = `<${A}.${j}.${+q + 1}-0` : k = `<=${k}`, `${y} ${k}`.trim()), ye = (m, g, y) => {
|
|
946
948
|
for (let $ = 0; $ < m.length; $++)
|
|
947
949
|
if (!m[$].test(g))
|
|
948
950
|
return !1;
|
|
949
|
-
if (g.prerelease.length && !
|
|
951
|
+
if (g.prerelease.length && !y.includePrerelease) {
|
|
950
952
|
for (let $ = 0; $ < m.length; $++)
|
|
951
|
-
if (c(m[$].semver), m[$].semver !==
|
|
952
|
-
const
|
|
953
|
-
if (
|
|
953
|
+
if (c(m[$].semver), m[$].semver !== f.ANY && m[$].semver.prerelease.length > 0) {
|
|
954
|
+
const S = m[$].semver;
|
|
955
|
+
if (S.major === g.major && S.minor === g.minor && S.patch === g.patch)
|
|
954
956
|
return !0;
|
|
955
957
|
}
|
|
956
958
|
return !1;
|
|
@@ -977,10 +979,10 @@ function me() {
|
|
|
977
979
|
n = n.trim().split(/\s+/).join(" "), c("comparator", n, l), this.options = l, this.loose = !!l.loose, this.parse(n), this.semver === t ? this.value = "" : this.value = this.operator + this.semver.version, c("comp", this);
|
|
978
980
|
}
|
|
979
981
|
parse(n) {
|
|
980
|
-
const l = this.options.loose ? s[a.COMPARATORLOOSE] : s[a.COMPARATOR],
|
|
981
|
-
if (!
|
|
982
|
+
const l = this.options.loose ? s[a.COMPARATORLOOSE] : s[a.COMPARATOR], u = n.match(l);
|
|
983
|
+
if (!u)
|
|
982
984
|
throw new TypeError(`Invalid comparator: ${n}`);
|
|
983
|
-
this.operator =
|
|
985
|
+
this.operator = u[1] !== void 0 ? u[1] : "", this.operator === "=" && (this.operator = ""), u[2] ? this.semver = new h(u[2], this.options.loose) : this.semver = t;
|
|
984
986
|
}
|
|
985
987
|
toString() {
|
|
986
988
|
return this.value;
|
|
@@ -994,16 +996,16 @@ function me() {
|
|
|
994
996
|
} catch {
|
|
995
997
|
return !1;
|
|
996
998
|
}
|
|
997
|
-
return
|
|
999
|
+
return f(n, this.operator, this.semver, this.options);
|
|
998
1000
|
}
|
|
999
1001
|
intersects(n, l) {
|
|
1000
1002
|
if (!(n instanceof e))
|
|
1001
1003
|
throw new TypeError("a Comparator is required");
|
|
1002
|
-
return this.operator === "" ? this.value === "" ? !0 : new o(n.value, l).test(this.value) : n.operator === "" ? n.value === "" ? !0 : new o(this.value, l).test(n.semver) : (l = r(l), l.includePrerelease && (this.value === "<0.0.0-0" || n.value === "<0.0.0-0") || !l.includePrerelease && (this.value.startsWith("<0.0.0") || n.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && n.operator.startsWith(">") || this.operator.startsWith("<") && n.operator.startsWith("<") || this.semver.version === n.semver.version && this.operator.includes("=") && n.operator.includes("=") ||
|
|
1004
|
+
return this.operator === "" ? this.value === "" ? !0 : new o(n.value, l).test(this.value) : n.operator === "" ? n.value === "" ? !0 : new o(this.value, l).test(n.semver) : (l = r(l), l.includePrerelease && (this.value === "<0.0.0-0" || n.value === "<0.0.0-0") || !l.includePrerelease && (this.value.startsWith("<0.0.0") || n.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && n.operator.startsWith(">") || this.operator.startsWith("<") && n.operator.startsWith("<") || this.semver.version === n.semver.version && this.operator.includes("=") && n.operator.includes("=") || f(this.semver, "<", n.semver, l) && this.operator.startsWith(">") && n.operator.startsWith("<") || f(this.semver, ">", n.semver, l) && this.operator.startsWith("<") && n.operator.startsWith(">")));
|
|
1003
1005
|
}
|
|
1004
1006
|
}
|
|
1005
1007
|
et = e;
|
|
1006
|
-
const r = Tt(), { safeRe: s, t: a } =
|
|
1008
|
+
const r = Tt(), { safeRe: s, t: a } = re(), f = Zr(), c = de(), h = _(), o = x();
|
|
1007
1009
|
return et;
|
|
1008
1010
|
}
|
|
1009
1011
|
var tt, Rr;
|
|
@@ -1020,54 +1022,54 @@ function Ee() {
|
|
|
1020
1022
|
return s.test(r);
|
|
1021
1023
|
}, tt;
|
|
1022
1024
|
}
|
|
1023
|
-
var rt,
|
|
1024
|
-
function
|
|
1025
|
-
if (
|
|
1026
|
-
|
|
1025
|
+
var rt, yr;
|
|
1026
|
+
function Zs() {
|
|
1027
|
+
if (yr) return rt;
|
|
1028
|
+
yr = 1;
|
|
1027
1029
|
const t = x();
|
|
1028
|
-
return rt = (r, s) => new t(r, s).set.map((a) => a.map((
|
|
1030
|
+
return rt = (r, s) => new t(r, s).set.map((a) => a.map((f) => f.value).join(" ").trim().split(" ")), rt;
|
|
1029
1031
|
}
|
|
1030
|
-
var st,
|
|
1031
|
-
function
|
|
1032
|
-
if (
|
|
1033
|
-
|
|
1034
|
-
const t =
|
|
1035
|
-
return st = (s, a,
|
|
1032
|
+
var st, Sr;
|
|
1033
|
+
function Qs() {
|
|
1034
|
+
if (Sr) return st;
|
|
1035
|
+
Sr = 1;
|
|
1036
|
+
const t = _(), e = x();
|
|
1037
|
+
return st = (s, a, f) => {
|
|
1036
1038
|
let c = null, h = null, o = null;
|
|
1037
1039
|
try {
|
|
1038
|
-
o = new e(a,
|
|
1040
|
+
o = new e(a, f);
|
|
1039
1041
|
} catch {
|
|
1040
1042
|
return null;
|
|
1041
1043
|
}
|
|
1042
1044
|
return s.forEach((i) => {
|
|
1043
|
-
o.test(i) && (!c || h.compare(i) === -1) && (c = i, h = new t(c,
|
|
1045
|
+
o.test(i) && (!c || h.compare(i) === -1) && (c = i, h = new t(c, f));
|
|
1044
1046
|
}), c;
|
|
1045
1047
|
}, st;
|
|
1046
1048
|
}
|
|
1047
1049
|
var nt, Ir;
|
|
1048
|
-
function
|
|
1050
|
+
function en() {
|
|
1049
1051
|
if (Ir) return nt;
|
|
1050
1052
|
Ir = 1;
|
|
1051
|
-
const t =
|
|
1052
|
-
return nt = (s, a,
|
|
1053
|
+
const t = _(), e = x();
|
|
1054
|
+
return nt = (s, a, f) => {
|
|
1053
1055
|
let c = null, h = null, o = null;
|
|
1054
1056
|
try {
|
|
1055
|
-
o = new e(a,
|
|
1057
|
+
o = new e(a, f);
|
|
1056
1058
|
} catch {
|
|
1057
1059
|
return null;
|
|
1058
1060
|
}
|
|
1059
1061
|
return s.forEach((i) => {
|
|
1060
|
-
o.test(i) && (!c || h.compare(i) === 1) && (c = i, h = new t(c,
|
|
1062
|
+
o.test(i) && (!c || h.compare(i) === 1) && (c = i, h = new t(c, f));
|
|
1061
1063
|
}), c;
|
|
1062
1064
|
}, nt;
|
|
1063
1065
|
}
|
|
1064
1066
|
var it, Or;
|
|
1065
|
-
function
|
|
1067
|
+
function tn() {
|
|
1066
1068
|
if (Or) return it;
|
|
1067
1069
|
Or = 1;
|
|
1068
|
-
const t =
|
|
1069
|
-
return it = (a,
|
|
1070
|
-
a = new e(a,
|
|
1070
|
+
const t = _(), e = x(), r = ge();
|
|
1071
|
+
return it = (a, f) => {
|
|
1072
|
+
a = new e(a, f);
|
|
1071
1073
|
let c = new t("0.0.0");
|
|
1072
1074
|
if (a.test(c) || (c = new t("0.0.0-0"), a.test(c)))
|
|
1073
1075
|
return c;
|
|
@@ -1098,7 +1100,7 @@ function Qs() {
|
|
|
1098
1100
|
}, it;
|
|
1099
1101
|
}
|
|
1100
1102
|
var at, Pr;
|
|
1101
|
-
function
|
|
1103
|
+
function rn() {
|
|
1102
1104
|
if (Pr) return at;
|
|
1103
1105
|
Pr = 1;
|
|
1104
1106
|
const t = x();
|
|
@@ -1114,16 +1116,16 @@ var ot, Nr;
|
|
|
1114
1116
|
function Dt() {
|
|
1115
1117
|
if (Nr) return ot;
|
|
1116
1118
|
Nr = 1;
|
|
1117
|
-
const t =
|
|
1118
|
-
return ot = (n, l,
|
|
1119
|
+
const t = _(), e = me(), { ANY: r } = e, s = x(), a = Ee(), f = ge(), c = Ft(), h = qt(), o = bt();
|
|
1120
|
+
return ot = (n, l, u, d) => {
|
|
1119
1121
|
n = new t(n, d), l = new s(l, d);
|
|
1120
1122
|
let R, p, E, v, N;
|
|
1121
|
-
switch (
|
|
1123
|
+
switch (u) {
|
|
1122
1124
|
case ">":
|
|
1123
|
-
R =
|
|
1125
|
+
R = f, p = h, E = c, v = ">", N = ">=";
|
|
1124
1126
|
break;
|
|
1125
1127
|
case "<":
|
|
1126
|
-
R = c, p = o, E =
|
|
1128
|
+
R = c, p = o, E = f, v = "<", N = "<=";
|
|
1127
1129
|
break;
|
|
1128
1130
|
default:
|
|
1129
1131
|
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
|
@@ -1144,56 +1146,56 @@ function Dt() {
|
|
|
1144
1146
|
}, ot;
|
|
1145
1147
|
}
|
|
1146
1148
|
var ct, kr;
|
|
1147
|
-
function
|
|
1149
|
+
function sn() {
|
|
1148
1150
|
if (kr) return ct;
|
|
1149
1151
|
kr = 1;
|
|
1150
1152
|
const t = Dt();
|
|
1151
1153
|
return ct = (r, s, a) => t(r, s, ">", a), ct;
|
|
1152
1154
|
}
|
|
1153
1155
|
var lt, Lr;
|
|
1154
|
-
function
|
|
1156
|
+
function nn() {
|
|
1155
1157
|
if (Lr) return lt;
|
|
1156
1158
|
Lr = 1;
|
|
1157
1159
|
const t = Dt();
|
|
1158
1160
|
return lt = (r, s, a) => t(r, s, "<", a), lt;
|
|
1159
1161
|
}
|
|
1160
|
-
var
|
|
1161
|
-
function
|
|
1162
|
-
if (Cr) return
|
|
1162
|
+
var ft, Cr;
|
|
1163
|
+
function an() {
|
|
1164
|
+
if (Cr) return ft;
|
|
1163
1165
|
Cr = 1;
|
|
1164
1166
|
const t = x();
|
|
1165
|
-
return
|
|
1167
|
+
return ft = (r, s, a) => (r = new t(r, a), s = new t(s, a), r.intersects(s, a)), ft;
|
|
1166
1168
|
}
|
|
1167
|
-
var
|
|
1168
|
-
function
|
|
1169
|
-
if (Tr) return
|
|
1169
|
+
var ut, Tr;
|
|
1170
|
+
function on() {
|
|
1171
|
+
if (Tr) return ut;
|
|
1170
1172
|
Tr = 1;
|
|
1171
1173
|
const t = Ee(), e = G();
|
|
1172
|
-
return
|
|
1173
|
-
const
|
|
1174
|
+
return ut = (r, s, a) => {
|
|
1175
|
+
const f = [];
|
|
1174
1176
|
let c = null, h = null;
|
|
1175
|
-
const o = r.sort((
|
|
1176
|
-
for (const
|
|
1177
|
-
t(
|
|
1178
|
-
c &&
|
|
1177
|
+
const o = r.sort((u, d) => e(u, d, a));
|
|
1178
|
+
for (const u of o)
|
|
1179
|
+
t(u, s, a) ? (h = u, c || (c = u)) : (h && f.push([c, h]), h = null, c = null);
|
|
1180
|
+
c && f.push([c, null]);
|
|
1179
1181
|
const i = [];
|
|
1180
|
-
for (const [
|
|
1181
|
-
|
|
1182
|
+
for (const [u, d] of f)
|
|
1183
|
+
u === d ? i.push(u) : !d && u === o[0] ? i.push("*") : d ? u === o[0] ? i.push(`<=${d}`) : i.push(`${u} - ${d}`) : i.push(`>=${u}`);
|
|
1182
1184
|
const n = i.join(" || "), l = typeof s.raw == "string" ? s.raw : String(s);
|
|
1183
1185
|
return n.length < l.length ? n : s;
|
|
1184
|
-
},
|
|
1186
|
+
}, ut;
|
|
1185
1187
|
}
|
|
1186
1188
|
var ht, Ar;
|
|
1187
|
-
function
|
|
1189
|
+
function cn() {
|
|
1188
1190
|
if (Ar) return ht;
|
|
1189
1191
|
Ar = 1;
|
|
1190
|
-
const t = x(), e = me(), { ANY: r } = e, s = Ee(), a = G(),
|
|
1191
|
-
if (l ===
|
|
1192
|
+
const t = x(), e = me(), { ANY: r } = e, s = Ee(), a = G(), f = (l, u, d = {}) => {
|
|
1193
|
+
if (l === u)
|
|
1192
1194
|
return !0;
|
|
1193
|
-
l = new t(l, d),
|
|
1195
|
+
l = new t(l, d), u = new t(u, d);
|
|
1194
1196
|
let R = !1;
|
|
1195
1197
|
e: for (const p of l.set) {
|
|
1196
|
-
for (const E of
|
|
1198
|
+
for (const E of u.set) {
|
|
1197
1199
|
const v = o(p, E, d);
|
|
1198
1200
|
if (R = R || v !== null, v)
|
|
1199
1201
|
continue e;
|
|
@@ -1202,18 +1204,18 @@ function an() {
|
|
|
1202
1204
|
return !1;
|
|
1203
1205
|
}
|
|
1204
1206
|
return !0;
|
|
1205
|
-
}, c = [new e(">=0.0.0-0")], h = [new e(">=0.0.0")], o = (l,
|
|
1206
|
-
if (l ===
|
|
1207
|
+
}, c = [new e(">=0.0.0-0")], h = [new e(">=0.0.0")], o = (l, u, d) => {
|
|
1208
|
+
if (l === u)
|
|
1207
1209
|
return !0;
|
|
1208
1210
|
if (l.length === 1 && l[0].semver === r) {
|
|
1209
|
-
if (
|
|
1211
|
+
if (u.length === 1 && u[0].semver === r)
|
|
1210
1212
|
return !0;
|
|
1211
1213
|
d.includePrerelease ? l = c : l = h;
|
|
1212
1214
|
}
|
|
1213
|
-
if (
|
|
1215
|
+
if (u.length === 1 && u[0].semver === r) {
|
|
1214
1216
|
if (d.includePrerelease)
|
|
1215
1217
|
return !0;
|
|
1216
|
-
|
|
1218
|
+
u = h;
|
|
1217
1219
|
}
|
|
1218
1220
|
const R = /* @__PURE__ */ new Set();
|
|
1219
1221
|
let p, E;
|
|
@@ -1231,14 +1233,14 @@ function an() {
|
|
|
1231
1233
|
for (const P of R) {
|
|
1232
1234
|
if (p && !s(P, String(p), d) || E && !s(P, String(E), d))
|
|
1233
1235
|
return null;
|
|
1234
|
-
for (const
|
|
1235
|
-
if (!s(P, String(
|
|
1236
|
+
for (const Y of u)
|
|
1237
|
+
if (!s(P, String(Y), d))
|
|
1236
1238
|
return !1;
|
|
1237
1239
|
return !0;
|
|
1238
1240
|
}
|
|
1239
1241
|
let N, I, F, b, T = E && !d.includePrerelease && E.semver.prerelease.length ? E.semver : !1, D = p && !d.includePrerelease && p.semver.prerelease.length ? p.semver : !1;
|
|
1240
1242
|
T && T.prerelease.length === 1 && E.operator === "<" && T.prerelease[0] === 0 && (T = !1);
|
|
1241
|
-
for (const P of
|
|
1243
|
+
for (const P of u) {
|
|
1242
1244
|
if (b = b || P.operator === ">" || P.operator === ">=", F = F || P.operator === "<" || P.operator === "<=", p) {
|
|
1243
1245
|
if (D && P.semver.prerelease && P.semver.prerelease.length && P.semver.major === D.major && P.semver.minor === D.minor && P.semver.patch === D.patch && (D = !1), P.operator === ">" || P.operator === ">=") {
|
|
1244
1246
|
if (N = i(p, P, d), N === P && N !== p)
|
|
@@ -1257,34 +1259,34 @@ function an() {
|
|
|
1257
1259
|
return !1;
|
|
1258
1260
|
}
|
|
1259
1261
|
return !(p && F && !E && v !== 0 || E && b && !p && v !== 0 || D || T);
|
|
1260
|
-
}, i = (l,
|
|
1262
|
+
}, i = (l, u, d) => {
|
|
1261
1263
|
if (!l)
|
|
1262
|
-
return
|
|
1263
|
-
const R = a(l.semver,
|
|
1264
|
-
return R > 0 ? l : R < 0 ||
|
|
1265
|
-
}, n = (l,
|
|
1264
|
+
return u;
|
|
1265
|
+
const R = a(l.semver, u.semver, d);
|
|
1266
|
+
return R > 0 ? l : R < 0 || u.operator === ">" && l.operator === ">=" ? u : l;
|
|
1267
|
+
}, n = (l, u, d) => {
|
|
1266
1268
|
if (!l)
|
|
1267
|
-
return
|
|
1268
|
-
const R = a(l.semver,
|
|
1269
|
-
return R < 0 ? l : R > 0 ||
|
|
1269
|
+
return u;
|
|
1270
|
+
const R = a(l.semver, u.semver, d);
|
|
1271
|
+
return R < 0 ? l : R > 0 || u.operator === "<" && l.operator === "<=" ? u : l;
|
|
1270
1272
|
};
|
|
1271
|
-
return ht =
|
|
1273
|
+
return ht = f, ht;
|
|
1272
1274
|
}
|
|
1273
1275
|
var pt, Fr;
|
|
1274
|
-
function
|
|
1276
|
+
function ln() {
|
|
1275
1277
|
if (Fr) return pt;
|
|
1276
1278
|
Fr = 1;
|
|
1277
|
-
const t =
|
|
1279
|
+
const t = re(), e = pe(), r = _(), s = Hr(), a = W(), f = js(), c = _s(), h = Gs(), o = xs(), i = Us(), n = Vs(), l = zs(), u = Ms(), d = G(), R = Xs(), p = Js(), E = At(), v = Ws(), N = Hs(), I = ge(), F = Ft(), b = Yr(), T = Kr(), D = bt(), P = qt(), Y = Zr(), $e = Ys(), we = me(), Re = x(), ye = Ee(), m = Zs(), g = Qs(), y = en(), $ = tn(), S = rn(), w = Dt(), O = sn(), C = nn(), k = an(), A = on(), j = cn();
|
|
1278
1280
|
return pt = {
|
|
1279
1281
|
parse: a,
|
|
1280
|
-
valid:
|
|
1282
|
+
valid: f,
|
|
1281
1283
|
clean: c,
|
|
1282
1284
|
inc: h,
|
|
1283
1285
|
diff: o,
|
|
1284
1286
|
major: i,
|
|
1285
1287
|
minor: n,
|
|
1286
1288
|
patch: l,
|
|
1287
|
-
prerelease:
|
|
1289
|
+
prerelease: u,
|
|
1288
1290
|
compare: d,
|
|
1289
1291
|
rcompare: R,
|
|
1290
1292
|
compareLoose: p,
|
|
@@ -1297,22 +1299,22 @@ function on() {
|
|
|
1297
1299
|
neq: T,
|
|
1298
1300
|
gte: D,
|
|
1299
1301
|
lte: P,
|
|
1300
|
-
cmp:
|
|
1302
|
+
cmp: Y,
|
|
1301
1303
|
coerce: $e,
|
|
1302
1304
|
Comparator: we,
|
|
1303
1305
|
Range: Re,
|
|
1304
|
-
satisfies:
|
|
1306
|
+
satisfies: ye,
|
|
1305
1307
|
toComparators: m,
|
|
1306
1308
|
maxSatisfying: g,
|
|
1307
|
-
minSatisfying:
|
|
1309
|
+
minSatisfying: y,
|
|
1308
1310
|
minVersion: $,
|
|
1309
|
-
validRange:
|
|
1311
|
+
validRange: S,
|
|
1310
1312
|
outside: w,
|
|
1311
1313
|
gtr: O,
|
|
1312
1314
|
ltr: C,
|
|
1313
1315
|
intersects: k,
|
|
1314
1316
|
simplifyRange: A,
|
|
1315
|
-
subset:
|
|
1317
|
+
subset: j,
|
|
1316
1318
|
SemVer: r,
|
|
1317
1319
|
re: t.re,
|
|
1318
1320
|
src: t.src,
|
|
@@ -1323,39 +1325,39 @@ function on() {
|
|
|
1323
1325
|
rcompareIdentifiers: s.rcompareIdentifiers
|
|
1324
1326
|
}, pt;
|
|
1325
1327
|
}
|
|
1326
|
-
var Qr =
|
|
1327
|
-
const
|
|
1328
|
-
function
|
|
1328
|
+
var Qr = ln();
|
|
1329
|
+
const fn = /* @__PURE__ */ Bs(Qr), It = "_updates_v2/per_package_version/";
|
|
1330
|
+
function un(t, e) {
|
|
1329
1331
|
return `${It}${t.organization}/${t.name}/${t.version}/${e}`;
|
|
1330
1332
|
}
|
|
1331
|
-
const
|
|
1333
|
+
const hn = /(?<packageKeyWithoutVersion>(?<organization>[^\/]+)\/(?<name>[^\/]+))\/(?<version>[^\/]+)\/(?<seed>[^\/]+)$/, dt = "_updates_v2/_global_update_in", br = "_updates_v2/_global_update_out", H = "v2/", pn = "overview.json", dn = "overview.json.gz", gn = "overview.json", ie = "manifest.json", Ot = "channels", gt = /^[-a-z0-9]+$/;
|
|
1332
1334
|
function es(t) {
|
|
1333
1335
|
return `${t.organization}/${t.name}/${t.version}`;
|
|
1334
1336
|
}
|
|
1335
1337
|
function ne(t) {
|
|
1336
|
-
return `${
|
|
1338
|
+
return `${H}${es(t)}`;
|
|
1337
1339
|
}
|
|
1338
|
-
const
|
|
1340
|
+
const mn = "/" + ie, En = L.object({
|
|
1339
1341
|
description: X,
|
|
1340
1342
|
channels: L.array(L.string()).default(() => []),
|
|
1341
1343
|
manifestSha256: wt
|
|
1342
1344
|
}), qr = L.object({
|
|
1343
1345
|
schema: L.literal("v2"),
|
|
1344
|
-
versions: L.array(
|
|
1346
|
+
versions: L.array(En)
|
|
1345
1347
|
});
|
|
1346
|
-
function
|
|
1347
|
-
return `${t.organization}/${t.name}/${
|
|
1348
|
+
function vn(t) {
|
|
1349
|
+
return `${t.organization}/${t.name}/${gn}`;
|
|
1348
1350
|
}
|
|
1349
1351
|
function Dr(t) {
|
|
1350
|
-
return `${
|
|
1352
|
+
return `${H}${vn(t)}`;
|
|
1351
1353
|
}
|
|
1352
|
-
function
|
|
1354
|
+
function $n(t) {
|
|
1353
1355
|
return `${es(t)}/${Ot}/`;
|
|
1354
1356
|
}
|
|
1355
|
-
function
|
|
1356
|
-
return `${
|
|
1357
|
+
function wn(t) {
|
|
1358
|
+
return `${H}${$n(t)}`;
|
|
1357
1359
|
}
|
|
1358
|
-
const
|
|
1360
|
+
const Rn = /(?<packageKeyWithoutVersion>(?<organization>[^\/]+)\/(?<name>[^\/]+))\/(?<version>[^\/]+)\/manifest\.json$/, mt = `${H}${pn}`, yn = `${H}${dn}`;
|
|
1359
1361
|
function ts(t) {
|
|
1360
1362
|
const e = L.object({
|
|
1361
1363
|
id: ds,
|
|
@@ -1387,7 +1389,7 @@ function ts(t) {
|
|
|
1387
1389
|
}
|
|
1388
1390
|
).pipe(e.required({ allVersionsWithChannels: !0 }));
|
|
1389
1391
|
}
|
|
1390
|
-
const
|
|
1392
|
+
const ii = ts(X);
|
|
1391
1393
|
function Bt(t) {
|
|
1392
1394
|
return L.object({
|
|
1393
1395
|
schema: L.literal("v2"),
|
|
@@ -1395,50 +1397,51 @@ function Bt(t) {
|
|
|
1395
1397
|
});
|
|
1396
1398
|
}
|
|
1397
1399
|
const Br = Bt(X);
|
|
1398
|
-
function
|
|
1400
|
+
function ai(t) {
|
|
1399
1401
|
return J(
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1402
|
+
fe,
|
|
1403
|
+
z(
|
|
1404
|
+
ee.transform(Lt(t)),
|
|
1405
|
+
te.transform(he(t))
|
|
1404
1406
|
)
|
|
1405
1407
|
);
|
|
1406
1408
|
}
|
|
1407
|
-
function
|
|
1409
|
+
function oi(t) {
|
|
1408
1410
|
return Bt(
|
|
1409
1411
|
J(
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1412
|
+
fe,
|
|
1413
|
+
z(
|
|
1414
|
+
ee.transform(Lt(t)),
|
|
1415
|
+
te.transform(he(t))
|
|
1414
1416
|
)
|
|
1415
1417
|
)
|
|
1416
1418
|
);
|
|
1417
1419
|
}
|
|
1418
|
-
function
|
|
1420
|
+
function ci(t) {
|
|
1419
1421
|
return Bt(
|
|
1420
1422
|
J(
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1423
|
+
fe,
|
|
1424
|
+
z(
|
|
1425
|
+
ee.transform(Lt(t)),
|
|
1426
|
+
te.transform(he(t))
|
|
1425
1427
|
)
|
|
1426
1428
|
)
|
|
1427
1429
|
);
|
|
1428
1430
|
}
|
|
1429
|
-
class
|
|
1431
|
+
class li {
|
|
1430
1432
|
constructor(e, r = new Es()) {
|
|
1433
|
+
Z(this, "gzipAsync", $s(vs));
|
|
1431
1434
|
this.storage = e, this.logger = r;
|
|
1432
1435
|
}
|
|
1433
1436
|
async updateRegistry(e = "normal") {
|
|
1434
1437
|
this.logger.info("Initiating registry refresh...");
|
|
1435
|
-
const r = /* @__PURE__ */ new Map(), s = [], a = await this.storage.listFiles(It),
|
|
1436
|
-
const
|
|
1437
|
-
let d = r.get(
|
|
1438
|
+
const r = /* @__PURE__ */ new Map(), s = [], a = await this.storage.listFiles(It), f = ({ organization: i, name: n, version: l }) => {
|
|
1439
|
+
const u = `${i}:${n}`;
|
|
1440
|
+
let d = r.get(u);
|
|
1438
1441
|
if (d) {
|
|
1439
1442
|
if (!d.versions.has(l))
|
|
1440
1443
|
return d.versions.add(l), !0;
|
|
1441
|
-
} else return r.set(
|
|
1444
|
+
} else return r.set(u, {
|
|
1442
1445
|
package: { organization: i, name: n },
|
|
1443
1446
|
versions: /* @__PURE__ */ new Set([l])
|
|
1444
1447
|
}), !0;
|
|
@@ -1446,30 +1449,30 @@ class si {
|
|
|
1446
1449
|
};
|
|
1447
1450
|
this.logger.info("Packages to be updated:");
|
|
1448
1451
|
for (const i of a) {
|
|
1449
|
-
const n = i.match(
|
|
1452
|
+
const n = i.match(hn);
|
|
1450
1453
|
if (!n) continue;
|
|
1451
1454
|
s.push(i);
|
|
1452
|
-
const { organization: l, name:
|
|
1453
|
-
this.logger.info(` - ${l}:${
|
|
1455
|
+
const { organization: l, name: u, version: d, seed: R } = n.groups, p = f({ organization: l, name: u, version: d });
|
|
1456
|
+
this.logger.info(` - ${l}:${u}:${d} added:${p}`);
|
|
1454
1457
|
}
|
|
1455
1458
|
if (e === "force") {
|
|
1456
|
-
const i = await this.storage.listFiles(
|
|
1459
|
+
const i = await this.storage.listFiles(H);
|
|
1457
1460
|
for (const n of i) {
|
|
1458
|
-
const l = n.match(
|
|
1461
|
+
const l = n.match(Rn);
|
|
1459
1462
|
if (!l) continue;
|
|
1460
|
-
const { organization:
|
|
1461
|
-
this.logger.info(` - ${
|
|
1463
|
+
const { organization: u, name: d, version: R } = l.groups, p = f({ organization: u, name: d, version: R });
|
|
1464
|
+
this.logger.info(` - ${u}:${d}:${R} force_added:${p}`);
|
|
1462
1465
|
}
|
|
1463
1466
|
}
|
|
1464
1467
|
const c = await this.storage.getFile(mt);
|
|
1465
1468
|
let o = (c === void 0 ? { packages: [] } : Br.parse(JSON.parse(c.toString()))).packages;
|
|
1466
1469
|
this.logger.info(`Global overview loaded, ${o.length} records`);
|
|
1467
1470
|
for (const [, i] of r.entries()) {
|
|
1468
|
-
const n = Dr(i.package), l = await this.storage.getFile(n),
|
|
1471
|
+
const n = Dr(i.package), l = await this.storage.getFile(n), u = l === void 0 ? { versions: [] } : qr.parse(JSON.parse(l.toString()));
|
|
1469
1472
|
this.logger.info(
|
|
1470
|
-
`Updating ${i.package.organization}:${i.package.name} overview, ${
|
|
1473
|
+
`Updating ${i.package.organization}:${i.package.name} overview, ${u.versions.length} records`
|
|
1471
1474
|
);
|
|
1472
|
-
const d =
|
|
1475
|
+
const d = u.versions.filter(
|
|
1473
1476
|
(E) => !i.versions.has(E.description.id.version)
|
|
1474
1477
|
);
|
|
1475
1478
|
for (const [E] of i.versions.entries()) {
|
|
@@ -1477,10 +1480,10 @@ class si {
|
|
|
1477
1480
|
...i.package,
|
|
1478
1481
|
version: v
|
|
1479
1482
|
}, I = await this.storage.getFile(
|
|
1480
|
-
ne(N) +
|
|
1483
|
+
ne(N) + mn
|
|
1481
1484
|
);
|
|
1482
1485
|
if (!I) continue;
|
|
1483
|
-
const F = await
|
|
1486
|
+
const F = await yt(I), b = (await this.storage.listFiles(wn(N))).filter((T) => T.match(gt) ? !0 : (this.logger.warn(`Unexpected channel in ${Se(N)}: ${T}`), !1));
|
|
1484
1487
|
d.push({
|
|
1485
1488
|
description: Ut(v).parse(
|
|
1486
1489
|
xr.parse(JSON.parse(I.toString("utf8"))).description
|
|
@@ -1532,12 +1535,13 @@ class si {
|
|
|
1532
1535
|
)
|
|
1533
1536
|
});
|
|
1534
1537
|
}
|
|
1535
|
-
e !== "dry-run"
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
)
|
|
1540
|
-
|
|
1538
|
+
if (e !== "dry-run") {
|
|
1539
|
+
const i = JSON.stringify({ schema: "v2", packages: o }), n = Buffer.from(i);
|
|
1540
|
+
await this.storage.putFile(mt, n);
|
|
1541
|
+
const l = await this.gzipAsync(i);
|
|
1542
|
+
await this.storage.putFile(yn, Buffer.from(l));
|
|
1543
|
+
}
|
|
1544
|
+
this.logger.info(`Global overview updated (${o.length} records)`), e !== "dry-run" && await this.storage.deleteFiles(...s.map((i) => `${It}${i}`)), this.logger.info("Version update requests cleared");
|
|
1541
1545
|
}
|
|
1542
1546
|
async updateIfNeeded(e = "normal") {
|
|
1543
1547
|
this.logger.info("Checking if registry requires refresh...");
|
|
@@ -1563,7 +1567,7 @@ class si {
|
|
|
1563
1567
|
return Br.parse(JSON.parse(e.toString()));
|
|
1564
1568
|
}
|
|
1565
1569
|
async marchChanged(e) {
|
|
1566
|
-
const r =
|
|
1570
|
+
const r = Mr(), s = un(e, r);
|
|
1567
1571
|
this.logger.info(`Creating update seed at ${s} ...`), await this.storage.putFile(s, Buffer.from(r)), this.logger.info(`Touching global update seed ${dt} ...`), await this.storage.putFile(dt, Buffer.from(r));
|
|
1568
1572
|
}
|
|
1569
1573
|
async addPackageToChannel(e, r) {
|
|
@@ -1571,7 +1575,7 @@ class si {
|
|
|
1571
1575
|
throw new Error(`Illegal characters in channel name: ${r}`);
|
|
1572
1576
|
const s = ne(e);
|
|
1573
1577
|
if (await this.storage.getFile(`${s}/${ie}`) === void 0)
|
|
1574
|
-
throw new Error(`Package ${
|
|
1578
|
+
throw new Error(`Package ${Se(e)} not found in the registry.`);
|
|
1575
1579
|
await this.storage.putFile(`${s}/${Ot}/${r}`, Buffer.from(r)), await this.marchChanged(e);
|
|
1576
1580
|
}
|
|
1577
1581
|
async removePackageFromChannel(e, r) {
|
|
@@ -1579,30 +1583,30 @@ class si {
|
|
|
1579
1583
|
throw new Error(`Illegal characters in channel name: ${r}`);
|
|
1580
1584
|
const s = ne(e);
|
|
1581
1585
|
if (await this.storage.getFile(`${s}/${ie}`) === void 0)
|
|
1582
|
-
throw new Error(`Package ${
|
|
1586
|
+
throw new Error(`Package ${Se(e)} not found in the registry.`);
|
|
1583
1587
|
await this.storage.deleteFiles(`${s}/${Ot}/${r}`), await this.marchChanged(e);
|
|
1584
1588
|
}
|
|
1585
1589
|
async publishPackage(e, r) {
|
|
1586
1590
|
const s = ne(e.description.id);
|
|
1587
|
-
for (const
|
|
1588
|
-
const c = await r(
|
|
1589
|
-
if (c.length !==
|
|
1591
|
+
for (const f of e.files) {
|
|
1592
|
+
const c = await r(f.name);
|
|
1593
|
+
if (c.length !== f.size)
|
|
1590
1594
|
throw new Error(
|
|
1591
|
-
`Actual file size don't match file size from the manifest file for ${
|
|
1595
|
+
`Actual file size don't match file size from the manifest file for ${f.name} (actual = ${c.length}; manifest = ${f.size})`
|
|
1592
1596
|
);
|
|
1593
|
-
const h = await
|
|
1594
|
-
if (h !==
|
|
1597
|
+
const h = await yt(c);
|
|
1598
|
+
if (h !== f.sha256.toUpperCase())
|
|
1595
1599
|
throw new Error(
|
|
1596
|
-
`Actual file SHA-256 don't match the checksum from the manifest file for ${
|
|
1600
|
+
`Actual file SHA-256 don't match the checksum from the manifest file for ${f.name} (actual = ${h}; manifest = ${f.sha256.toUpperCase()})`
|
|
1597
1601
|
);
|
|
1598
|
-
const o = s + "/" +
|
|
1599
|
-
this.logger.info(`Uploading ${
|
|
1602
|
+
const o = s + "/" + f.name;
|
|
1603
|
+
this.logger.info(`Uploading ${f.name} -> ${o} ...`), await this.storage.putFile(o, c);
|
|
1600
1604
|
}
|
|
1601
1605
|
const a = s + "/" + ie;
|
|
1602
1606
|
this.logger.info(`Uploading manifest to ${a} ...`), await this.storage.putFile(a, Buffer.from(JSON.stringify(e))), await this.marchChanged(e.description.id);
|
|
1603
1607
|
}
|
|
1604
1608
|
}
|
|
1605
|
-
class
|
|
1609
|
+
class Sn {
|
|
1606
1610
|
constructor(e, r, s) {
|
|
1607
1611
|
this.client = e, this.bucket = r, this.root = s;
|
|
1608
1612
|
}
|
|
@@ -1620,15 +1624,15 @@ class $n {
|
|
|
1620
1624
|
}
|
|
1621
1625
|
}
|
|
1622
1626
|
async listFiles(e) {
|
|
1623
|
-
const r = V.join(this.root, e), s =
|
|
1627
|
+
const r = V.join(this.root, e), s = Ss(
|
|
1624
1628
|
{ client: this.client },
|
|
1625
1629
|
{
|
|
1626
1630
|
Bucket: this.bucket,
|
|
1627
1631
|
Prefix: r
|
|
1628
1632
|
}
|
|
1629
1633
|
), a = [];
|
|
1630
|
-
for await (const
|
|
1631
|
-
a.push(...(
|
|
1634
|
+
for await (const f of s)
|
|
1635
|
+
a.push(...(f.Contents ?? []).map((c) => V.relative(r, c.Key)));
|
|
1632
1636
|
return a;
|
|
1633
1637
|
}
|
|
1634
1638
|
async putFile(e, r) {
|
|
@@ -1652,10 +1656,10 @@ class $n {
|
|
|
1652
1656
|
`)}`);
|
|
1653
1657
|
}
|
|
1654
1658
|
}
|
|
1655
|
-
class
|
|
1659
|
+
class In {
|
|
1656
1660
|
constructor(e) {
|
|
1657
1661
|
/** Absolute path */
|
|
1658
|
-
|
|
1662
|
+
Z(this, "root");
|
|
1659
1663
|
this.root = B.resolve(e);
|
|
1660
1664
|
}
|
|
1661
1665
|
toAbsolutePath(e) {
|
|
@@ -1664,7 +1668,7 @@ class wn {
|
|
|
1664
1668
|
}
|
|
1665
1669
|
async getFile(e) {
|
|
1666
1670
|
try {
|
|
1667
|
-
return await
|
|
1671
|
+
return await Q.promises.readFile(this.toAbsolutePath(e));
|
|
1668
1672
|
} catch (r) {
|
|
1669
1673
|
if (r.code == "ENOENT") return;
|
|
1670
1674
|
throw new Error("", { cause: r });
|
|
@@ -1673,7 +1677,7 @@ class wn {
|
|
|
1673
1677
|
async listFiles(e) {
|
|
1674
1678
|
try {
|
|
1675
1679
|
const r = this.toAbsolutePath(e);
|
|
1676
|
-
return (await
|
|
1680
|
+
return (await Q.promises.readdir(r, { recursive: !0, withFileTypes: !0 })).filter((s) => s.isFile()).map(
|
|
1677
1681
|
(s) => B.relative(r, B.resolve(s.parentPath, s.name)).split(B.sep).join(V.sep)
|
|
1678
1682
|
);
|
|
1679
1683
|
} catch (r) {
|
|
@@ -1683,70 +1687,70 @@ class wn {
|
|
|
1683
1687
|
}
|
|
1684
1688
|
async putFile(e, r) {
|
|
1685
1689
|
const s = this.toAbsolutePath(e);
|
|
1686
|
-
await
|
|
1690
|
+
await Q.promises.mkdir(B.dirname(s), { recursive: !0 }), await Q.promises.writeFile(s, r);
|
|
1687
1691
|
}
|
|
1688
1692
|
async deleteFiles(...e) {
|
|
1689
|
-
for (const r of e) await
|
|
1693
|
+
for (const r of e) await Q.promises.rm(this.toAbsolutePath(r));
|
|
1690
1694
|
}
|
|
1691
1695
|
}
|
|
1692
|
-
function
|
|
1696
|
+
function On(t) {
|
|
1693
1697
|
const e = new URL(t, `file:${B.resolve(".").split(B.sep).join(V.sep)}/`);
|
|
1694
1698
|
switch (e.protocol) {
|
|
1695
1699
|
case "file:":
|
|
1696
1700
|
const r = B.resolve(e.pathname);
|
|
1697
|
-
return new
|
|
1701
|
+
return new In(r);
|
|
1698
1702
|
case "s3:":
|
|
1699
1703
|
const s = {}, a = e.searchParams.get("region");
|
|
1700
1704
|
a && (s.region = a);
|
|
1701
|
-
const
|
|
1702
|
-
return new
|
|
1705
|
+
const f = e.hostname;
|
|
1706
|
+
return new Sn(new ys(s), f, e.pathname.replace(/^\//, ""));
|
|
1703
1707
|
default:
|
|
1704
1708
|
throw new Error(`Unknown protocol: ${e.protocol}`);
|
|
1705
1709
|
}
|
|
1706
1710
|
}
|
|
1707
|
-
const
|
|
1711
|
+
const Pn = L.string().regex(/^(?:s3:|file:)/), Nn = L.object({
|
|
1708
1712
|
organization: L.string(),
|
|
1709
1713
|
package: L.string(),
|
|
1710
1714
|
version: kt.optional(),
|
|
1711
1715
|
files: L.record(L.string().regex(/^[^\/]+$/), L.string()).default({}),
|
|
1712
1716
|
meta: L.object({}).passthrough()
|
|
1713
|
-
}),
|
|
1714
|
-
registries: L.record(L.string(),
|
|
1717
|
+
}), kn = L.object({
|
|
1718
|
+
registries: L.record(L.string(), Pn).default({}),
|
|
1715
1719
|
registry: L.string().optional()
|
|
1716
|
-
}), rs =
|
|
1720
|
+
}), rs = kn.merge(Nn).required(
|
|
1717
1721
|
{ registry: !0, version: !0 }
|
|
1718
|
-
),
|
|
1722
|
+
), jt = rs.partial().required({
|
|
1719
1723
|
registries: !0,
|
|
1720
1724
|
files: !0
|
|
1721
|
-
}),
|
|
1722
|
-
function
|
|
1725
|
+
}), Ln = "pl.package.json", Cn = "pl.package.yaml", ve = "v1/";
|
|
1726
|
+
function fi(t) {
|
|
1723
1727
|
return `${ve}${t.organization}/${t.package}/${t.version}`;
|
|
1724
1728
|
}
|
|
1725
1729
|
function ss(t, e) {
|
|
1726
1730
|
return `${ve}${t.organization}/${t.package}/${t.version}/${e}`;
|
|
1727
1731
|
}
|
|
1728
|
-
function
|
|
1732
|
+
function jr(t) {
|
|
1729
1733
|
return `${ve}${t.organization}/${t.package}/overview.json`;
|
|
1730
1734
|
}
|
|
1731
1735
|
const Et = `${ve}overview.json`, ns = "meta.json", Pt = "_updates_v1/per_package_version/";
|
|
1732
|
-
function
|
|
1736
|
+
function Tn(t, e) {
|
|
1733
1737
|
return `${Pt}${t.organization}/${t.package}/${t.version}/${e}`;
|
|
1734
1738
|
}
|
|
1735
|
-
const
|
|
1736
|
-
class
|
|
1739
|
+
const An = /(?<packageKeyWithoutVersion>(?<organization>[^\/]+)\/(?<pkg>[^\/]+))\/(?<version>[^\/]+)\/(?<seed>[^\/]+)$/, is = "_updates_v1/_global_update_in", _r = "_updates_v1/_global_update_out";
|
|
1740
|
+
class Fn {
|
|
1737
1741
|
constructor(e, r) {
|
|
1738
1742
|
this.storage = e, this.logger = r;
|
|
1739
1743
|
}
|
|
1740
1744
|
constructNewPackage(e) {
|
|
1741
|
-
return new
|
|
1745
|
+
return new bn(this.storage, e);
|
|
1742
1746
|
}
|
|
1743
1747
|
async updateRegistry() {
|
|
1744
|
-
var c, h, o, i, n, l,
|
|
1748
|
+
var c, h, o, i, n, l, u, d;
|
|
1745
1749
|
(c = this.logger) == null || c.info("Initiating registry refresh...");
|
|
1746
1750
|
const e = /* @__PURE__ */ new Map(), r = [], s = await this.storage.listFiles(Pt);
|
|
1747
1751
|
(h = this.logger) == null || h.info("Packages to be updated:");
|
|
1748
1752
|
for (const R of s) {
|
|
1749
|
-
const p = R.match(
|
|
1753
|
+
const p = R.match(An);
|
|
1750
1754
|
if (!p) continue;
|
|
1751
1755
|
r.push(R);
|
|
1752
1756
|
const { packageKeyWithoutVersion: E, organization: v, pkg: N, version: I, seed: F } = p.groups;
|
|
@@ -1757,10 +1761,10 @@ class Ln {
|
|
|
1757
1761
|
}), (o = this.logger) == null || o.info(` - ${v}:${N}:${I}`);
|
|
1758
1762
|
}
|
|
1759
1763
|
const a = await this.storage.getFile(Et);
|
|
1760
|
-
let
|
|
1761
|
-
(i = this.logger) == null || i.info(`Global overview loaded, ${
|
|
1764
|
+
let f = a === void 0 ? [] : JSON.parse(a.toString());
|
|
1765
|
+
(i = this.logger) == null || i.info(`Global overview loaded, ${f.length} records`);
|
|
1762
1766
|
for (const [, R] of e.entries()) {
|
|
1763
|
-
const p =
|
|
1767
|
+
const p = jr(R.package), E = await this.storage.getFile(p);
|
|
1764
1768
|
let v = E === void 0 ? [] : JSON.parse(E.toString());
|
|
1765
1769
|
(n = this.logger) == null || n.info(
|
|
1766
1770
|
`Updating ${R.package.organization}:${R.package.package} overview, ${v.length} records`
|
|
@@ -1777,9 +1781,9 @@ class Ln {
|
|
|
1777
1781
|
);
|
|
1778
1782
|
F && v.push({ version: I, meta: JSON.parse(F.toString()) });
|
|
1779
1783
|
}
|
|
1780
|
-
v.sort((N, I) =>
|
|
1784
|
+
v.sort((N, I) => fn.compare(I.version, N.version)), await this.storage.putFile(p, Buffer.from(JSON.stringify(v))), (l = this.logger) == null || l.info(`Done (${v.length} records)`), f = f.filter(
|
|
1781
1785
|
(N) => N.organization !== R.package.organization || N.package !== R.package.package
|
|
1782
|
-
),
|
|
1786
|
+
), f.push({
|
|
1783
1787
|
organization: R.package.organization,
|
|
1784
1788
|
package: R.package.package,
|
|
1785
1789
|
allVersions: v.map((N) => N.version).reverse(),
|
|
@@ -1787,16 +1791,16 @@ class Ln {
|
|
|
1787
1791
|
latestMeta: v[0].meta
|
|
1788
1792
|
});
|
|
1789
1793
|
}
|
|
1790
|
-
await this.storage.putFile(Et, Buffer.from(JSON.stringify(
|
|
1794
|
+
await this.storage.putFile(Et, Buffer.from(JSON.stringify(f))), (u = this.logger) == null || u.info(`Global overview updated (${f.length} records)`), await this.storage.deleteFiles(...r.map((R) => `${Pt}${R}`)), (d = this.logger) == null || d.info("Version update requests cleared");
|
|
1791
1795
|
}
|
|
1792
1796
|
async updateIfNeeded(e = !1) {
|
|
1793
|
-
var a,
|
|
1797
|
+
var a, f;
|
|
1794
1798
|
(a = this.logger) == null || a.info("Checking if registry requires refresh...");
|
|
1795
|
-
const r = await this.storage.getFile(is), s = await this.storage.getFile(
|
|
1796
|
-
!e && r === void 0 && s === void 0 || !e && r !== void 0 && s !== void 0 && r.equals(s) || (await this.updateRegistry(), r && (await this.storage.putFile(
|
|
1799
|
+
const r = await this.storage.getFile(is), s = await this.storage.getFile(_r);
|
|
1800
|
+
!e && r === void 0 && s === void 0 || !e && r !== void 0 && s !== void 0 && r.equals(s) || (await this.updateRegistry(), r && (await this.storage.putFile(_r, r), (f = this.logger) == null || f.info("Refresh finished")));
|
|
1797
1801
|
}
|
|
1798
1802
|
async getPackageOverview(e) {
|
|
1799
|
-
const r = await this.storage.getFile(
|
|
1803
|
+
const r = await this.storage.getFile(jr(e));
|
|
1800
1804
|
if (r !== void 0)
|
|
1801
1805
|
return JSON.parse(r.toString());
|
|
1802
1806
|
}
|
|
@@ -1806,10 +1810,10 @@ class Ln {
|
|
|
1806
1810
|
return JSON.parse(e.toString());
|
|
1807
1811
|
}
|
|
1808
1812
|
}
|
|
1809
|
-
class
|
|
1813
|
+
class bn {
|
|
1810
1814
|
constructor(e, r) {
|
|
1811
|
-
|
|
1812
|
-
|
|
1815
|
+
Z(this, "metaAdded", !1);
|
|
1816
|
+
Z(this, "seed", Mr());
|
|
1813
1817
|
this.storage = e, this.name = r;
|
|
1814
1818
|
}
|
|
1815
1819
|
async addFile(e, r) {
|
|
@@ -1820,10 +1824,10 @@ class Cn {
|
|
|
1820
1824
|
}
|
|
1821
1825
|
async finish() {
|
|
1822
1826
|
if (!this.metaAdded) throw new Error("meta not added");
|
|
1823
|
-
await this.storage.putFile(
|
|
1827
|
+
await this.storage.putFile(Tn(this.name, this.seed), Buffer.of(0)), await this.storage.putFile(is, Buffer.from(this.seed));
|
|
1824
1828
|
}
|
|
1825
1829
|
}
|
|
1826
|
-
function
|
|
1830
|
+
function M(t, e) {
|
|
1827
1831
|
return e === void 0 ? t : {
|
|
1828
1832
|
...t,
|
|
1829
1833
|
...e,
|
|
@@ -1832,16 +1836,16 @@ function z(t, e) {
|
|
|
1832
1836
|
};
|
|
1833
1837
|
}
|
|
1834
1838
|
async function vt(t) {
|
|
1835
|
-
return Ct(t, (e) =>
|
|
1839
|
+
return Ct(t, (e) => jt.parse(JSON.parse(e.toString())));
|
|
1836
1840
|
}
|
|
1837
1841
|
async function $t(t) {
|
|
1838
|
-
return Ct(t, (e) =>
|
|
1842
|
+
return Ct(t, (e) => jt.parse(Rs.parse(e.toString())));
|
|
1839
1843
|
}
|
|
1840
|
-
async function
|
|
1841
|
-
let t =
|
|
1842
|
-
return t =
|
|
1844
|
+
async function qn() {
|
|
1845
|
+
let t = jt.parse({});
|
|
1846
|
+
return t = M(t, await vt("./.pl.reg.json")), t = M(t, await $t("./.pl.reg.yaml")), t = M(t, await vt(`${Gt.homedir()}/.pl.reg.json`)), t = M(t, await $t(`${Gt.homedir()}/.pl.reg.yaml`)), t = M(t, await vt(Ln)), t = M(t, await $t(Cn)), t;
|
|
1843
1847
|
}
|
|
1844
|
-
class
|
|
1848
|
+
class Dn {
|
|
1845
1849
|
constructor(e) {
|
|
1846
1850
|
this.conf = e;
|
|
1847
1851
|
}
|
|
@@ -1852,7 +1856,7 @@ class An {
|
|
|
1852
1856
|
if (!s) throw new Error(`Registry with alias "${r}" not found`);
|
|
1853
1857
|
r = s;
|
|
1854
1858
|
}
|
|
1855
|
-
return new
|
|
1859
|
+
return new Fn(On(r), e);
|
|
1856
1860
|
}
|
|
1857
1861
|
get fullPackageName() {
|
|
1858
1862
|
return {
|
|
@@ -1862,84 +1866,86 @@ class An {
|
|
|
1862
1866
|
};
|
|
1863
1867
|
}
|
|
1864
1868
|
}
|
|
1865
|
-
async function
|
|
1866
|
-
const e = await
|
|
1867
|
-
return new
|
|
1868
|
-
rs.parse(
|
|
1869
|
+
async function ui(t) {
|
|
1870
|
+
const e = await qn();
|
|
1871
|
+
return new Dn(
|
|
1872
|
+
rs.parse(M(e, t))
|
|
1869
1873
|
);
|
|
1870
1874
|
}
|
|
1871
1875
|
export {
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1876
|
+
si as $,
|
|
1877
|
+
Os as A,
|
|
1878
|
+
Zn as B,
|
|
1875
1879
|
xt as C,
|
|
1876
1880
|
Xr as D,
|
|
1877
|
-
|
|
1878
|
-
|
|
1881
|
+
Ps as E,
|
|
1882
|
+
In as F,
|
|
1879
1883
|
Br as G,
|
|
1880
|
-
|
|
1884
|
+
Ns as H,
|
|
1881
1885
|
Rt as I,
|
|
1882
|
-
|
|
1886
|
+
ks as J,
|
|
1883
1887
|
Lt as K,
|
|
1884
|
-
|
|
1888
|
+
Ls as L,
|
|
1885
1889
|
ie as M,
|
|
1886
|
-
|
|
1890
|
+
Kn as N,
|
|
1887
1891
|
he as O,
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1892
|
+
jt as P,
|
|
1893
|
+
Ts as Q,
|
|
1894
|
+
Is as R,
|
|
1895
|
+
Sn as S,
|
|
1896
|
+
Qn as T,
|
|
1897
|
+
As as U,
|
|
1898
|
+
Fs as V,
|
|
1895
1899
|
Jr as W,
|
|
1896
|
-
|
|
1900
|
+
bs as X,
|
|
1897
1901
|
Ut as Y,
|
|
1898
|
-
|
|
1902
|
+
St as Z,
|
|
1899
1903
|
Wr as _,
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1904
|
+
Cs as a,
|
|
1905
|
+
dn as a0,
|
|
1906
|
+
gn as a1,
|
|
1907
|
+
Ot as a2,
|
|
1908
|
+
gt as a3,
|
|
1909
|
+
ne as a4,
|
|
1910
|
+
En as a5,
|
|
1911
|
+
qr as a6,
|
|
1912
|
+
vn as a7,
|
|
1913
|
+
Dr as a8,
|
|
1914
|
+
$n as a9,
|
|
1915
|
+
wn as aa,
|
|
1916
|
+
Rn as ab,
|
|
1917
|
+
mt as ac,
|
|
1918
|
+
yn as ad,
|
|
1919
|
+
ts as ae,
|
|
1920
|
+
ii as af,
|
|
1921
|
+
Bt as ag,
|
|
1922
|
+
ai as ah,
|
|
1923
|
+
oi as ai,
|
|
1924
|
+
ci as aj,
|
|
1925
|
+
li as b,
|
|
1926
|
+
ni as c,
|
|
1927
|
+
ri as d,
|
|
1928
|
+
fn as e,
|
|
1929
|
+
H as f,
|
|
1930
|
+
ui as g,
|
|
1931
|
+
ei as h,
|
|
1932
|
+
pn as i,
|
|
1933
|
+
mn as j,
|
|
1934
|
+
yt as k,
|
|
1935
|
+
Ds as l,
|
|
1936
|
+
ti as m,
|
|
1931
1937
|
Et as n,
|
|
1932
1938
|
ns as o,
|
|
1933
1939
|
es as p,
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1940
|
+
Nn as q,
|
|
1941
|
+
Ln as r,
|
|
1942
|
+
On as s,
|
|
1943
|
+
Cn as t,
|
|
1944
|
+
kn as u,
|
|
1939
1945
|
rs as v,
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1946
|
+
Dn as w,
|
|
1947
|
+
fi as x,
|
|
1948
|
+
jr as y,
|
|
1943
1949
|
ss as z
|
|
1944
1950
|
};
|
|
1945
|
-
//# sourceMappingURL=config-
|
|
1951
|
+
//# sourceMappingURL=config-VnABe7ki.mjs.map
|