@wp-playground/blueprints 2.0.7 → 2.0.9
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/index.cjs +7 -7
- package/index.js +372 -351
- package/index.js.map +1 -1
- package/package.json +13 -13
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "@php-wasm/node-polyfills";
|
|
2
2
|
import { logger as ae } from "@php-wasm/logger";
|
|
3
|
-
import { randomFilename as xr, phpVars as hr, joinPaths as ie, phpVar as he, dirname as gr, randomString as
|
|
4
|
-
import { defineWpConfigConstants as
|
|
3
|
+
import { randomFilename as xr, phpVars as hr, joinPaths as ie, phpVar as he, dirname as gr, randomString as Cr, Semaphore as br } from "@php-wasm/util";
|
|
4
|
+
import { defineWpConfigConstants as Dr, ensureWpConfig as Ir } from "@wp-playground/wordpress";
|
|
5
5
|
import { writeFiles as ar, LatestSupportedPHPVersion as Wr, SupportedPHPVersions as Ur } from "@php-wasm/universal";
|
|
6
6
|
import { unzipFile as wr } from "@wp-playground/common";
|
|
7
7
|
import { cloneStreamMonitorProgress as zr, cloneResponseMonitorProgress as Br, ProgressTracker as Mr } from "@php-wasm/progress";
|
|
@@ -241,7 +241,7 @@ This will ensure your code works reliably regardless of the current working dire
|
|
|
241
241
|
break;
|
|
242
242
|
case "rewrite-wp-config": {
|
|
243
243
|
const d = await r.documentRoot, u = ie(d, "/wp-config.php");
|
|
244
|
-
await
|
|
244
|
+
await Dr(
|
|
245
245
|
r,
|
|
246
246
|
u,
|
|
247
247
|
t,
|
|
@@ -641,13 +641,13 @@ const qr = async (r, { themeSlug: t = "" }, n) => {
|
|
|
641
641
|
}), u = ie(u, n);
|
|
642
642
|
const s = ie(u, "wp-content"), e = ie(d, "wp-content");
|
|
643
643
|
for (const S of vr) {
|
|
644
|
-
const
|
|
644
|
+
const E = ie(
|
|
645
645
|
s,
|
|
646
646
|
S
|
|
647
647
|
);
|
|
648
|
-
await cr(r,
|
|
648
|
+
await cr(r, E);
|
|
649
649
|
const O = ie(e, S);
|
|
650
|
-
await r.fileExists(O) && (await r.mkdir(gr(
|
|
650
|
+
await r.fileExists(O) && (await r.mkdir(gr(E)), await r.mv(O, E));
|
|
651
651
|
}
|
|
652
652
|
const f = ie(
|
|
653
653
|
u,
|
|
@@ -692,7 +692,7 @@ async function $r(r, {
|
|
|
692
692
|
ifAlreadyInstalled: d = "overwrite",
|
|
693
693
|
targetFolderName: u = ""
|
|
694
694
|
}) {
|
|
695
|
-
const e = n.name.replace(/\.zip$/, ""), f = ie(await r.documentRoot, "wp-content"), y = ie(f,
|
|
695
|
+
const e = n.name.replace(/\.zip$/, ""), f = ie(await r.documentRoot, "wp-content"), y = ie(f, Cr()), x = ie(y, "assets", e);
|
|
696
696
|
await r.fileExists(x) && await r.rmdir(y, {
|
|
697
697
|
recursive: !0
|
|
698
698
|
}), await r.mkdir(y);
|
|
@@ -705,9 +705,9 @@ async function $r(r, {
|
|
|
705
705
|
prependPath: !0
|
|
706
706
|
});
|
|
707
707
|
S = S.filter((m) => !m.endsWith("/__MACOSX"));
|
|
708
|
-
const
|
|
709
|
-
let O,
|
|
710
|
-
|
|
708
|
+
const E = S.length === 1 && await r.isDir(S[0]);
|
|
709
|
+
let O, j = "";
|
|
710
|
+
E ? (j = S[0], O = S[0].split("/").pop()) : (j = x, O = e), u && u.length && (O = u);
|
|
711
711
|
const R = `${t}/${O}`;
|
|
712
712
|
if (await r.fileExists(R)) {
|
|
713
713
|
if (!await r.isDir(R))
|
|
@@ -729,7 +729,7 @@ async function $r(r, {
|
|
|
729
729
|
);
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
|
-
return await r.mv(
|
|
732
|
+
return await r.mv(j, R), {
|
|
733
733
|
assetFolderPath: R,
|
|
734
734
|
assetFolderName: O
|
|
735
735
|
};
|
|
@@ -756,8 +756,8 @@ const wt = async (r, { pluginData: t, pluginZipFile: n, ifAlreadyInstalled: d, o
|
|
|
756
756
|
const S = async (O) => {
|
|
757
757
|
if (O.name.toLowerCase().endsWith(".zip"))
|
|
758
758
|
return !0;
|
|
759
|
-
const
|
|
760
|
-
return
|
|
759
|
+
const j = new Uint8Array(await O.arrayBuffer(), 0, 4);
|
|
760
|
+
return j[0] === 80 && j[1] === 75 && j[2] === 3 && j[3] === 4;
|
|
761
761
|
};
|
|
762
762
|
if (t instanceof File)
|
|
763
763
|
if (await S(t)) {
|
|
@@ -765,13 +765,13 @@ const wt = async (r, { pluginData: t, pluginZipFile: n, ifAlreadyInstalled: d, o
|
|
|
765
765
|
x = rr(O), s == null || s.tracker.setCaption(
|
|
766
766
|
`Installing the ${x} plugin`
|
|
767
767
|
);
|
|
768
|
-
const
|
|
768
|
+
const j = await $r(r, {
|
|
769
769
|
ifAlreadyInstalled: d,
|
|
770
770
|
zipFile: t,
|
|
771
771
|
targetPath: `${await r.documentRoot}/wp-content/plugins`,
|
|
772
772
|
targetFolderName: f
|
|
773
773
|
});
|
|
774
|
-
y =
|
|
774
|
+
y = j.assetFolderPath, x = j.assetFolderName;
|
|
775
775
|
} else if (t.name.endsWith(".php")) {
|
|
776
776
|
const O = ie(
|
|
777
777
|
e,
|
|
@@ -810,8 +810,8 @@ const wt = async (r, { pluginData: t, pluginZipFile: n, ifAlreadyInstalled: d, o
|
|
|
810
810
|
const e = "targetFolderName" in u ? u.targetFolderName : "";
|
|
811
811
|
let f = "", y = "";
|
|
812
812
|
if (t instanceof File) {
|
|
813
|
-
const
|
|
814
|
-
y = rr(
|
|
813
|
+
const E = t.name.split("/").pop() || "theme.zip";
|
|
814
|
+
y = rr(E), s == null || s.tracker.setCaption(`Installing the ${y} theme`), f = (await $r(r, {
|
|
815
815
|
ifAlreadyInstalled: d,
|
|
816
816
|
zipFile: t,
|
|
817
817
|
targetPath: `${await r.documentRoot}/wp-content/themes`,
|
|
@@ -819,13 +819,13 @@ const wt = async (r, { pluginData: t, pluginZipFile: n, ifAlreadyInstalled: d, o
|
|
|
819
819
|
})).assetFolderName;
|
|
820
820
|
} else {
|
|
821
821
|
y = t.name, f = e || y, s == null || s.tracker.setCaption(`Installing the ${y} theme`);
|
|
822
|
-
const
|
|
822
|
+
const E = ie(
|
|
823
823
|
await r.documentRoot,
|
|
824
824
|
"wp-content",
|
|
825
825
|
"themes",
|
|
826
826
|
f
|
|
827
827
|
);
|
|
828
|
-
await ar(r,
|
|
828
|
+
await ar(r, E, t.files, {
|
|
829
829
|
rmRoot: !0
|
|
830
830
|
});
|
|
831
831
|
}
|
|
@@ -1024,9 +1024,9 @@ const Et = async (r, t) => {
|
|
|
1024
1024
|
)
|
|
1025
1025
|
);`
|
|
1026
1026
|
})).json;
|
|
1027
|
-
for (const { slug: O, version:
|
|
1027
|
+
for (const { slug: O, version: j } of f)
|
|
1028
1028
|
s.push({
|
|
1029
|
-
url: `https://downloads.wordpress.org/translation/plugin/${O}/${
|
|
1029
|
+
url: `https://downloads.wordpress.org/translation/plugin/${O}/${j}/${t}.zip`,
|
|
1030
1030
|
type: "plugin"
|
|
1031
1031
|
});
|
|
1032
1032
|
const x = (await r.run({
|
|
@@ -1047,41 +1047,41 @@ const Et = async (r, t) => {
|
|
|
1047
1047
|
)
|
|
1048
1048
|
);`
|
|
1049
1049
|
})).json;
|
|
1050
|
-
for (const { slug: O, version:
|
|
1050
|
+
for (const { slug: O, version: j } of x)
|
|
1051
1051
|
s.push({
|
|
1052
|
-
url: `https://downloads.wordpress.org/translation/theme/${O}/${
|
|
1052
|
+
url: `https://downloads.wordpress.org/translation/theme/${O}/${j}/${t}.zip`,
|
|
1053
1053
|
type: "theme"
|
|
1054
1054
|
});
|
|
1055
1055
|
await r.isDir(`${d}/wp-content/languages/plugins`) || await r.mkdir(`${d}/wp-content/languages/plugins`), await r.isDir(`${d}/wp-content/languages/themes`) || await r.mkdir(`${d}/wp-content/languages/themes`);
|
|
1056
|
-
const S = new br({ concurrency: 5 }),
|
|
1057
|
-
({ url: O, type:
|
|
1056
|
+
const S = new br({ concurrency: 5 }), E = s.map(
|
|
1057
|
+
({ url: O, type: j }) => S.run(async () => {
|
|
1058
1058
|
try {
|
|
1059
1059
|
const R = await fetch(O);
|
|
1060
1060
|
if (!R.ok)
|
|
1061
1061
|
throw new Error(
|
|
1062
|
-
`Failed to download translations for ${
|
|
1062
|
+
`Failed to download translations for ${j}: ${R.statusText}`
|
|
1063
1063
|
);
|
|
1064
1064
|
let m = `${d}/wp-content/languages`;
|
|
1065
|
-
|
|
1065
|
+
j === "plugin" ? m += "/plugins" : j === "theme" && (m += "/themes"), await wr(
|
|
1066
1066
|
r,
|
|
1067
1067
|
new File(
|
|
1068
1068
|
[await R.blob()],
|
|
1069
|
-
`${t}-${
|
|
1069
|
+
`${t}-${j}.zip`
|
|
1070
1070
|
),
|
|
1071
1071
|
m
|
|
1072
1072
|
);
|
|
1073
1073
|
} catch (R) {
|
|
1074
|
-
if (
|
|
1074
|
+
if (j === "core")
|
|
1075
1075
|
throw new Error(
|
|
1076
1076
|
`Failed to download translations for WordPress. Please check if the language code ${t} is correct. You can find all available languages and translations on https://translate.wordpress.org/.`
|
|
1077
1077
|
);
|
|
1078
1078
|
ae.warn(
|
|
1079
|
-
`Error downloading translations for ${
|
|
1079
|
+
`Error downloading translations for ${j}: ${R}`
|
|
1080
1080
|
);
|
|
1081
1081
|
}
|
|
1082
1082
|
})
|
|
1083
1083
|
);
|
|
1084
|
-
await Promise.all(
|
|
1084
|
+
await Promise.all(E);
|
|
1085
1085
|
}, $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1086
1086
|
__proto__: null,
|
|
1087
1087
|
activatePlugin: Pr,
|
|
@@ -1163,28 +1163,28 @@ class Te {
|
|
|
1163
1163
|
e = new Ft(t, d);
|
|
1164
1164
|
break;
|
|
1165
1165
|
case "wordpress.org/themes":
|
|
1166
|
-
e = new
|
|
1166
|
+
e = new Wt(t, d);
|
|
1167
1167
|
break;
|
|
1168
1168
|
case "wordpress.org/plugins":
|
|
1169
|
-
e = new
|
|
1169
|
+
e = new Ut(t, d);
|
|
1170
1170
|
break;
|
|
1171
1171
|
case "url":
|
|
1172
|
-
e = new
|
|
1172
|
+
e = new xt(t, d, { corsProxy: u });
|
|
1173
1173
|
break;
|
|
1174
1174
|
case "git:directory":
|
|
1175
|
-
e = new
|
|
1175
|
+
e = new Ct(t, d, {
|
|
1176
1176
|
corsProxy: u
|
|
1177
1177
|
});
|
|
1178
1178
|
break;
|
|
1179
1179
|
case "literal:directory":
|
|
1180
|
-
e = new
|
|
1180
|
+
e = new It(t, d);
|
|
1181
1181
|
break;
|
|
1182
1182
|
case "bundled":
|
|
1183
1183
|
if (!s)
|
|
1184
1184
|
throw new Error(
|
|
1185
1185
|
"Filesystem is required for blueprint resources"
|
|
1186
1186
|
);
|
|
1187
|
-
e = new
|
|
1187
|
+
e = new Mt(
|
|
1188
1188
|
t,
|
|
1189
1189
|
s,
|
|
1190
1190
|
d
|
|
@@ -1195,7 +1195,7 @@ class Te {
|
|
|
1195
1195
|
`Unknown resource type: ${t.resource}`
|
|
1196
1196
|
);
|
|
1197
1197
|
}
|
|
1198
|
-
return n && (e = new
|
|
1198
|
+
return n && (e = new Bt(e, n)), new zt(e);
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
1201
|
class Ar extends Te {
|
|
@@ -1289,10 +1289,13 @@ class dr extends Te {
|
|
|
1289
1289
|
throw new Error(`Could not download "${t}"`);
|
|
1290
1290
|
if (s = await Br(
|
|
1291
1291
|
s,
|
|
1292
|
-
((u = this.progress) == null ? void 0 : u.loadingListener) ??
|
|
1292
|
+
((u = this.progress) == null ? void 0 : u.loadingListener) ?? Nt
|
|
1293
1293
|
), s.status !== 200)
|
|
1294
1294
|
throw new Error(`Could not download "${t}"`);
|
|
1295
|
-
|
|
1295
|
+
const e = this.name || St(
|
|
1296
|
+
s.headers.get("content-disposition") || ""
|
|
1297
|
+
) || encodeURIComponent(t);
|
|
1298
|
+
return new File([await s.blob()], e);
|
|
1296
1299
|
} catch (s) {
|
|
1297
1300
|
throw new Error(
|
|
1298
1301
|
`Could not download "${t}".
|
|
@@ -1343,9 +1346,26 @@ class dr extends Te {
|
|
|
1343
1346
|
return !0;
|
|
1344
1347
|
}
|
|
1345
1348
|
}
|
|
1346
|
-
|
|
1349
|
+
function St(r) {
|
|
1350
|
+
if (!r)
|
|
1351
|
+
return null;
|
|
1352
|
+
const t = r.match(/filename\*?=([^;]+)/i);
|
|
1353
|
+
if (!t)
|
|
1354
|
+
return null;
|
|
1355
|
+
let n = t[1].trim();
|
|
1356
|
+
if ((n.startsWith('"') && n.endsWith('"') || n.startsWith("'") && n.endsWith("'")) && (n = n.slice(1, -1)), t[0].includes("filename*")) {
|
|
1357
|
+
const d = n.match(/^[^']*'[^']*'(.+)$/);
|
|
1358
|
+
if (d)
|
|
1359
|
+
try {
|
|
1360
|
+
n = decodeURIComponent(d[1]);
|
|
1361
|
+
} catch {
|
|
1362
|
+
}
|
|
1363
|
+
}
|
|
1364
|
+
return n;
|
|
1365
|
+
}
|
|
1366
|
+
const Nt = () => {
|
|
1347
1367
|
};
|
|
1348
|
-
class
|
|
1368
|
+
class xt extends dr {
|
|
1349
1369
|
/**
|
|
1350
1370
|
* Creates a new instance of `UrlResource`.
|
|
1351
1371
|
* @param resource The URL reference.
|
|
@@ -1371,7 +1391,7 @@ class Nt extends dr {
|
|
|
1371
1391
|
return this.resource.caption ?? super.caption;
|
|
1372
1392
|
}
|
|
1373
1393
|
}
|
|
1374
|
-
class
|
|
1394
|
+
class Ct extends Te {
|
|
1375
1395
|
constructor(t, n, d) {
|
|
1376
1396
|
super(), this.reference = t, this._progress = n, this.options = d;
|
|
1377
1397
|
}
|
|
@@ -1400,7 +1420,7 @@ function Dt(r, t) {
|
|
|
1400
1420
|
Object.entries(r).map(([n, d]) => [t(n), d])
|
|
1401
1421
|
);
|
|
1402
1422
|
}
|
|
1403
|
-
class
|
|
1423
|
+
class It extends Te {
|
|
1404
1424
|
constructor(t, n) {
|
|
1405
1425
|
super(), this.reference = t, this._progress = n;
|
|
1406
1426
|
}
|
|
@@ -1412,7 +1432,7 @@ class Ct extends Te {
|
|
|
1412
1432
|
return this.reference.name;
|
|
1413
1433
|
}
|
|
1414
1434
|
}
|
|
1415
|
-
class
|
|
1435
|
+
class Wt extends dr {
|
|
1416
1436
|
constructor(t, n) {
|
|
1417
1437
|
super(n), this.resource = t;
|
|
1418
1438
|
}
|
|
@@ -1423,7 +1443,7 @@ class It extends dr {
|
|
|
1423
1443
|
return `https://downloads.wordpress.org/theme/${Rr(this.resource.slug)}`;
|
|
1424
1444
|
}
|
|
1425
1445
|
}
|
|
1426
|
-
class
|
|
1446
|
+
class Ut extends dr {
|
|
1427
1447
|
constructor(t, n) {
|
|
1428
1448
|
super(n), this.resource = t;
|
|
1429
1449
|
}
|
|
@@ -1439,13 +1459,13 @@ class Wt extends dr {
|
|
|
1439
1459
|
function Rr(r) {
|
|
1440
1460
|
return !r || r.endsWith(".zip") ? r : r + ".latest-stable.zip";
|
|
1441
1461
|
}
|
|
1442
|
-
class
|
|
1462
|
+
class zt extends Ar {
|
|
1443
1463
|
/** @inheritDoc */
|
|
1444
1464
|
async resolve() {
|
|
1445
1465
|
return this.promise || (this.promise = this.resource.resolve()), this.promise;
|
|
1446
1466
|
}
|
|
1447
1467
|
}
|
|
1448
|
-
class
|
|
1468
|
+
class Bt extends Ar {
|
|
1449
1469
|
constructor(t, n) {
|
|
1450
1470
|
super(t), this.semaphore = n;
|
|
1451
1471
|
}
|
|
@@ -1454,7 +1474,7 @@ class zt extends Ar {
|
|
|
1454
1474
|
return this.isAsync ? this.semaphore.run(() => this.resource.resolve()) : this.resource.resolve();
|
|
1455
1475
|
}
|
|
1456
1476
|
}
|
|
1457
|
-
class
|
|
1477
|
+
class Mt extends Te {
|
|
1458
1478
|
/**
|
|
1459
1479
|
* Creates a new instance of `BlueprintResource`.
|
|
1460
1480
|
* @param resource The blueprint reference.
|
|
@@ -1507,7 +1527,7 @@ Error details: ${u instanceof Error ? u.message : String(u)}`,
|
|
|
1507
1527
|
return !0;
|
|
1508
1528
|
}
|
|
1509
1529
|
}
|
|
1510
|
-
const
|
|
1530
|
+
const Vt = {
|
|
1511
1531
|
properties: {
|
|
1512
1532
|
landingPage: {
|
|
1513
1533
|
type: "string",
|
|
@@ -1633,9 +1653,9 @@ const Mt = {
|
|
|
1633
1653
|
},
|
|
1634
1654
|
$schema: { type: "string" }
|
|
1635
1655
|
}
|
|
1636
|
-
}, Vt = {
|
|
1637
|
-
enum: ["8.4", "8.3", "8.2", "8.1", "8.0", "7.4", "7.3", "7.2"]
|
|
1638
1656
|
}, Ht = {
|
|
1657
|
+
enum: ["8.4", "8.3", "8.2", "8.1", "8.0", "7.4", "7.3", "7.2"]
|
|
1658
|
+
}, Zt = {
|
|
1639
1659
|
additionalProperties: { type: ["string", "boolean", "number"] }
|
|
1640
1660
|
}, Lr = Object.prototype.hasOwnProperty;
|
|
1641
1661
|
function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, rootData: u = r } = {}) {
|
|
@@ -1674,44 +1694,44 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
1674
1694
|
let c = r.resource;
|
|
1675
1695
|
const b = e;
|
|
1676
1696
|
if (typeof c != "string") {
|
|
1677
|
-
const
|
|
1697
|
+
const T = {
|
|
1678
1698
|
instancePath: t + "/resource",
|
|
1679
1699
|
schemaPath: "#/definitions/VFSReference/properties/resource/type",
|
|
1680
1700
|
keyword: "type",
|
|
1681
1701
|
params: { type: "string" },
|
|
1682
1702
|
message: "must be string"
|
|
1683
1703
|
};
|
|
1684
|
-
s === null ? s = [
|
|
1704
|
+
s === null ? s = [T] : s.push(T), e++;
|
|
1685
1705
|
}
|
|
1686
1706
|
if (c !== "vfs") {
|
|
1687
|
-
const
|
|
1707
|
+
const T = {
|
|
1688
1708
|
instancePath: t + "/resource",
|
|
1689
1709
|
schemaPath: "#/definitions/VFSReference/properties/resource/const",
|
|
1690
1710
|
keyword: "const",
|
|
1691
1711
|
params: { allowedValue: "vfs" },
|
|
1692
1712
|
message: "must be equal to constant"
|
|
1693
1713
|
};
|
|
1694
|
-
s === null ? s = [
|
|
1714
|
+
s === null ? s = [T] : s.push(T), e++;
|
|
1695
1715
|
}
|
|
1696
|
-
var
|
|
1716
|
+
var E = b === e;
|
|
1697
1717
|
} else
|
|
1698
|
-
var
|
|
1699
|
-
if (
|
|
1718
|
+
var E = !0;
|
|
1719
|
+
if (E)
|
|
1700
1720
|
if (r.path !== void 0) {
|
|
1701
1721
|
const c = e;
|
|
1702
1722
|
if (typeof r.path != "string") {
|
|
1703
|
-
const
|
|
1723
|
+
const T = {
|
|
1704
1724
|
instancePath: t + "/path",
|
|
1705
1725
|
schemaPath: "#/definitions/VFSReference/properties/path/type",
|
|
1706
1726
|
keyword: "type",
|
|
1707
1727
|
params: { type: "string" },
|
|
1708
1728
|
message: "must be string"
|
|
1709
1729
|
};
|
|
1710
|
-
s === null ? s = [
|
|
1730
|
+
s === null ? s = [T] : s.push(T), e++;
|
|
1711
1731
|
}
|
|
1712
|
-
var
|
|
1732
|
+
var E = c === e;
|
|
1713
1733
|
} else
|
|
1714
|
-
var
|
|
1734
|
+
var E = !0;
|
|
1715
1735
|
}
|
|
1716
1736
|
}
|
|
1717
1737
|
} else {
|
|
@@ -1731,16 +1751,16 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
1731
1751
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
1732
1752
|
let b;
|
|
1733
1753
|
if (r.resource === void 0 && (b = "resource") || r.name === void 0 && (b = "name") || r.contents === void 0 && (b = "contents")) {
|
|
1734
|
-
const
|
|
1754
|
+
const T = {
|
|
1735
1755
|
instancePath: t,
|
|
1736
1756
|
schemaPath: "#/definitions/LiteralReference/required",
|
|
1737
1757
|
keyword: "required",
|
|
1738
1758
|
params: { missingProperty: b },
|
|
1739
1759
|
message: "must have required property '" + b + "'"
|
|
1740
1760
|
};
|
|
1741
|
-
s === null ? s = [
|
|
1761
|
+
s === null ? s = [T] : s.push(T), e++;
|
|
1742
1762
|
} else {
|
|
1743
|
-
const
|
|
1763
|
+
const T = e;
|
|
1744
1764
|
for (const v in r)
|
|
1745
1765
|
if (!(v === "resource" || v === "name" || v === "contents")) {
|
|
1746
1766
|
const P = {
|
|
@@ -1753,7 +1773,7 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
1753
1773
|
s === null ? s = [P] : s.push(P), e++;
|
|
1754
1774
|
break;
|
|
1755
1775
|
}
|
|
1756
|
-
if (
|
|
1776
|
+
if (T === e) {
|
|
1757
1777
|
if (r.resource !== void 0) {
|
|
1758
1778
|
let v = r.resource;
|
|
1759
1779
|
const P = e;
|
|
@@ -1777,10 +1797,10 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
1777
1797
|
};
|
|
1778
1798
|
s === null ? s = [h] : s.push(h), e++;
|
|
1779
1799
|
}
|
|
1780
|
-
var
|
|
1800
|
+
var j = P === e;
|
|
1781
1801
|
} else
|
|
1782
|
-
var
|
|
1783
|
-
if (
|
|
1802
|
+
var j = !0;
|
|
1803
|
+
if (j) {
|
|
1784
1804
|
if (r.name !== void 0) {
|
|
1785
1805
|
const v = e;
|
|
1786
1806
|
if (typeof r.name != "string") {
|
|
@@ -1793,10 +1813,10 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
1793
1813
|
};
|
|
1794
1814
|
s === null ? s = [h] : s.push(h), e++;
|
|
1795
1815
|
}
|
|
1796
|
-
var
|
|
1816
|
+
var j = v === e;
|
|
1797
1817
|
} else
|
|
1798
|
-
var
|
|
1799
|
-
if (
|
|
1818
|
+
var j = !0;
|
|
1819
|
+
if (j)
|
|
1800
1820
|
if (r.contents !== void 0) {
|
|
1801
1821
|
let v = r.contents;
|
|
1802
1822
|
const P = e, h = e;
|
|
@@ -1831,15 +1851,15 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
1831
1851
|
s === null ? s = [U] : s.push(U), e++;
|
|
1832
1852
|
} else {
|
|
1833
1853
|
const U = e;
|
|
1834
|
-
for (const
|
|
1835
|
-
if (!(
|
|
1836
|
-
let I = v[
|
|
1854
|
+
for (const D in v)
|
|
1855
|
+
if (!(D === "BYTES_PER_ELEMENT" || D === "buffer" || D === "byteLength" || D === "byteOffset" || D === "length")) {
|
|
1856
|
+
let I = v[D];
|
|
1837
1857
|
const ee = e;
|
|
1838
1858
|
if (!(typeof I == "number" && isFinite(
|
|
1839
1859
|
I
|
|
1840
1860
|
))) {
|
|
1841
1861
|
const A = {
|
|
1842
|
-
instancePath: t + "/contents/" +
|
|
1862
|
+
instancePath: t + "/contents/" + D.replace(
|
|
1843
1863
|
/~/g,
|
|
1844
1864
|
"~0"
|
|
1845
1865
|
).replace(
|
|
@@ -1865,10 +1885,10 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
1865
1885
|
}
|
|
1866
1886
|
if (U === e) {
|
|
1867
1887
|
if (v.BYTES_PER_ELEMENT !== void 0) {
|
|
1868
|
-
let
|
|
1888
|
+
let D = v.BYTES_PER_ELEMENT;
|
|
1869
1889
|
const I = e;
|
|
1870
|
-
if (!(typeof
|
|
1871
|
-
|
|
1890
|
+
if (!(typeof D == "number" && isFinite(
|
|
1891
|
+
D
|
|
1872
1892
|
))) {
|
|
1873
1893
|
const ee = {
|
|
1874
1894
|
instancePath: t + "/contents/BYTES_PER_ELEMENT",
|
|
@@ -1890,14 +1910,14 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
1890
1910
|
var W = !0;
|
|
1891
1911
|
if (W) {
|
|
1892
1912
|
if (v.buffer !== void 0) {
|
|
1893
|
-
let
|
|
1913
|
+
let D = v.buffer;
|
|
1894
1914
|
const I = e;
|
|
1895
1915
|
if (e === I)
|
|
1896
|
-
if (
|
|
1897
|
-
|
|
1916
|
+
if (D && typeof D == "object" && !Array.isArray(
|
|
1917
|
+
D
|
|
1898
1918
|
)) {
|
|
1899
1919
|
let A;
|
|
1900
|
-
if (
|
|
1920
|
+
if (D.byteLength === void 0 && (A = "byteLength")) {
|
|
1901
1921
|
const Z = {
|
|
1902
1922
|
instancePath: t + "/contents/buffer",
|
|
1903
1923
|
schemaPath: "#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",
|
|
@@ -1914,7 +1934,7 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
1914
1934
|
), e++;
|
|
1915
1935
|
} else {
|
|
1916
1936
|
const Z = e;
|
|
1917
|
-
for (const B in
|
|
1937
|
+
for (const B in D)
|
|
1918
1938
|
if (B !== "byteLength") {
|
|
1919
1939
|
const V = {
|
|
1920
1940
|
instancePath: t + "/contents/buffer",
|
|
@@ -1932,8 +1952,8 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
1932
1952
|
), e++;
|
|
1933
1953
|
break;
|
|
1934
1954
|
}
|
|
1935
|
-
if (Z === e &&
|
|
1936
|
-
let B =
|
|
1955
|
+
if (Z === e && D.byteLength !== void 0) {
|
|
1956
|
+
let B = D.byteLength;
|
|
1937
1957
|
if (!(typeof B == "number" && isFinite(
|
|
1938
1958
|
B
|
|
1939
1959
|
))) {
|
|
@@ -1975,10 +1995,10 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
1975
1995
|
var W = !0;
|
|
1976
1996
|
if (W) {
|
|
1977
1997
|
if (v.byteLength !== void 0) {
|
|
1978
|
-
let
|
|
1998
|
+
let D = v.byteLength;
|
|
1979
1999
|
const I = e;
|
|
1980
|
-
if (!(typeof
|
|
1981
|
-
|
|
2000
|
+
if (!(typeof D == "number" && isFinite(
|
|
2001
|
+
D
|
|
1982
2002
|
))) {
|
|
1983
2003
|
const A = {
|
|
1984
2004
|
instancePath: t + "/contents/byteLength",
|
|
@@ -2000,10 +2020,10 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2000
2020
|
var W = !0;
|
|
2001
2021
|
if (W) {
|
|
2002
2022
|
if (v.byteOffset !== void 0) {
|
|
2003
|
-
let
|
|
2023
|
+
let D = v.byteOffset;
|
|
2004
2024
|
const I = e;
|
|
2005
|
-
if (!(typeof
|
|
2006
|
-
|
|
2025
|
+
if (!(typeof D == "number" && isFinite(
|
|
2026
|
+
D
|
|
2007
2027
|
))) {
|
|
2008
2028
|
const A = {
|
|
2009
2029
|
instancePath: t + "/contents/byteOffset",
|
|
@@ -2025,10 +2045,10 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2025
2045
|
var W = !0;
|
|
2026
2046
|
if (W)
|
|
2027
2047
|
if (v.length !== void 0) {
|
|
2028
|
-
let
|
|
2048
|
+
let D = v.length;
|
|
2029
2049
|
const I = e;
|
|
2030
|
-
if (!(typeof
|
|
2031
|
-
|
|
2050
|
+
if (!(typeof D == "number" && isFinite(
|
|
2051
|
+
D
|
|
2032
2052
|
))) {
|
|
2033
2053
|
const A = {
|
|
2034
2054
|
instancePath: t + "/contents/length",
|
|
@@ -2078,9 +2098,9 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2078
2098
|
};
|
|
2079
2099
|
s === null ? s = [L] : s.push(L), e++;
|
|
2080
2100
|
}
|
|
2081
|
-
var
|
|
2101
|
+
var j = P === e;
|
|
2082
2102
|
} else
|
|
2083
|
-
var
|
|
2103
|
+
var j = !0;
|
|
2084
2104
|
}
|
|
2085
2105
|
}
|
|
2086
2106
|
}
|
|
@@ -2199,20 +2219,20 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2199
2219
|
const $ = e;
|
|
2200
2220
|
for (const L in r)
|
|
2201
2221
|
if (!(L === "resource" || L === "slug")) {
|
|
2202
|
-
const
|
|
2222
|
+
const C = {
|
|
2203
2223
|
instancePath: t,
|
|
2204
2224
|
schemaPath: "#/definitions/CorePluginReference/additionalProperties",
|
|
2205
2225
|
keyword: "additionalProperties",
|
|
2206
2226
|
params: { additionalProperty: L },
|
|
2207
2227
|
message: "must NOT have additional properties"
|
|
2208
2228
|
};
|
|
2209
|
-
s === null ? s = [
|
|
2229
|
+
s === null ? s = [C] : s.push(C), e++;
|
|
2210
2230
|
break;
|
|
2211
2231
|
}
|
|
2212
2232
|
if ($ === e) {
|
|
2213
2233
|
if (r.resource !== void 0) {
|
|
2214
2234
|
let L = r.resource;
|
|
2215
|
-
const
|
|
2235
|
+
const C = e;
|
|
2216
2236
|
if (typeof L != "string") {
|
|
2217
2237
|
const F = {
|
|
2218
2238
|
instancePath: t + "/resource",
|
|
@@ -2235,7 +2255,7 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2235
2255
|
};
|
|
2236
2256
|
s === null ? s = [F] : s.push(F), e++;
|
|
2237
2257
|
}
|
|
2238
|
-
var Y =
|
|
2258
|
+
var Y = C === e;
|
|
2239
2259
|
} else
|
|
2240
2260
|
var Y = !0;
|
|
2241
2261
|
if (Y)
|
|
@@ -2271,21 +2291,21 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2271
2291
|
const g = e;
|
|
2272
2292
|
if (e === e)
|
|
2273
2293
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
2274
|
-
let
|
|
2275
|
-
if (r.resource === void 0 && (
|
|
2294
|
+
let C;
|
|
2295
|
+
if (r.resource === void 0 && (C = "resource") || r.url === void 0 && (C = "url")) {
|
|
2276
2296
|
const F = {
|
|
2277
2297
|
instancePath: t,
|
|
2278
2298
|
schemaPath: "#/definitions/UrlReference/required",
|
|
2279
2299
|
keyword: "required",
|
|
2280
|
-
params: { missingProperty:
|
|
2281
|
-
message: "must have required property '" +
|
|
2300
|
+
params: { missingProperty: C },
|
|
2301
|
+
message: "must have required property '" + C + "'"
|
|
2282
2302
|
};
|
|
2283
2303
|
s === null ? s = [F] : s.push(F), e++;
|
|
2284
2304
|
} else {
|
|
2285
2305
|
const F = e;
|
|
2286
2306
|
for (const U in r)
|
|
2287
2307
|
if (!(U === "resource" || U === "url" || U === "caption")) {
|
|
2288
|
-
const
|
|
2308
|
+
const D = {
|
|
2289
2309
|
instancePath: t,
|
|
2290
2310
|
schemaPath: "#/definitions/UrlReference/additionalProperties",
|
|
2291
2311
|
keyword: "additionalProperties",
|
|
@@ -2294,13 +2314,13 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2294
2314
|
},
|
|
2295
2315
|
message: "must NOT have additional properties"
|
|
2296
2316
|
};
|
|
2297
|
-
s === null ? s = [
|
|
2317
|
+
s === null ? s = [D] : s.push(D), e++;
|
|
2298
2318
|
break;
|
|
2299
2319
|
}
|
|
2300
2320
|
if (F === e) {
|
|
2301
2321
|
if (r.resource !== void 0) {
|
|
2302
2322
|
let U = r.resource;
|
|
2303
|
-
const
|
|
2323
|
+
const D = e;
|
|
2304
2324
|
if (typeof U != "string") {
|
|
2305
2325
|
const I = {
|
|
2306
2326
|
instancePath: t + "/resource",
|
|
@@ -2321,7 +2341,7 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2321
2341
|
};
|
|
2322
2342
|
s === null ? s = [I] : s.push(I), e++;
|
|
2323
2343
|
}
|
|
2324
|
-
var k =
|
|
2344
|
+
var k = D === e;
|
|
2325
2345
|
} else
|
|
2326
2346
|
var k = !0;
|
|
2327
2347
|
if (k) {
|
|
@@ -2362,28 +2382,28 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2362
2382
|
}
|
|
2363
2383
|
}
|
|
2364
2384
|
} else {
|
|
2365
|
-
const
|
|
2385
|
+
const C = {
|
|
2366
2386
|
instancePath: t,
|
|
2367
2387
|
schemaPath: "#/definitions/UrlReference/type",
|
|
2368
2388
|
keyword: "type",
|
|
2369
2389
|
params: { type: "object" },
|
|
2370
2390
|
message: "must be object"
|
|
2371
2391
|
};
|
|
2372
|
-
s === null ? s = [
|
|
2392
|
+
s === null ? s = [C] : s.push(C), e++;
|
|
2373
2393
|
}
|
|
2374
2394
|
var O = g === e;
|
|
2375
2395
|
if (y = y || O, !y) {
|
|
2376
|
-
const
|
|
2396
|
+
const C = e;
|
|
2377
2397
|
if (e === e)
|
|
2378
2398
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
2379
|
-
let
|
|
2380
|
-
if (r.resource === void 0 && (
|
|
2399
|
+
let D;
|
|
2400
|
+
if (r.resource === void 0 && (D = "resource") || r.path === void 0 && (D = "path")) {
|
|
2381
2401
|
const I = {
|
|
2382
2402
|
instancePath: t,
|
|
2383
2403
|
schemaPath: "#/definitions/BundledReference/required",
|
|
2384
2404
|
keyword: "required",
|
|
2385
|
-
params: { missingProperty:
|
|
2386
|
-
message: "must have required property '" +
|
|
2405
|
+
params: { missingProperty: D },
|
|
2406
|
+
message: "must have required property '" + D + "'"
|
|
2387
2407
|
};
|
|
2388
2408
|
s === null ? s = [I] : s.push(I), e++;
|
|
2389
2409
|
} else {
|
|
@@ -2452,16 +2472,16 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
2452
2472
|
}
|
|
2453
2473
|
}
|
|
2454
2474
|
} else {
|
|
2455
|
-
const
|
|
2475
|
+
const D = {
|
|
2456
2476
|
instancePath: t,
|
|
2457
2477
|
schemaPath: "#/definitions/BundledReference/type",
|
|
2458
2478
|
keyword: "type",
|
|
2459
2479
|
params: { type: "object" },
|
|
2460
2480
|
message: "must be object"
|
|
2461
2481
|
};
|
|
2462
|
-
s === null ? s = [
|
|
2482
|
+
s === null ? s = [D] : s.push(D), e++;
|
|
2463
2483
|
}
|
|
2464
|
-
var O =
|
|
2484
|
+
var O = C === e;
|
|
2465
2485
|
y = y || O;
|
|
2466
2486
|
}
|
|
2467
2487
|
}
|
|
@@ -3203,7 +3223,7 @@ Only the username field is required for user authentication.`
|
|
|
3203
3223
|
required: ["language", "step"]
|
|
3204
3224
|
}
|
|
3205
3225
|
]
|
|
3206
|
-
},
|
|
3226
|
+
}, Yt = {
|
|
3207
3227
|
additionalProperties: {
|
|
3208
3228
|
anyOf: [
|
|
3209
3229
|
{ $ref: "#/definitions/FileTree" },
|
|
@@ -3217,8 +3237,8 @@ function Se(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3217
3237
|
if (r && typeof r == "object" && !Array.isArray(r))
|
|
3218
3238
|
for (const x in r) {
|
|
3219
3239
|
let S = r[x];
|
|
3220
|
-
const
|
|
3221
|
-
let
|
|
3240
|
+
const E = e, O = e;
|
|
3241
|
+
let j = !1;
|
|
3222
3242
|
const R = e;
|
|
3223
3243
|
or.validate(S, {
|
|
3224
3244
|
instancePath: t + "/" + x.replace(/~/g, "~0").replace(/\//g, "~1"),
|
|
@@ -3227,7 +3247,7 @@ function Se(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3227
3247
|
rootData: u
|
|
3228
3248
|
}) || (s = s === null ? or.validate.errors : s.concat(or.validate.errors), e = s.length);
|
|
3229
3249
|
var f = R === e;
|
|
3230
|
-
if (
|
|
3250
|
+
if (j = j || f, !j) {
|
|
3231
3251
|
const m = e;
|
|
3232
3252
|
if (!(S && typeof S == "object" && !Array.isArray(S)) && typeof S != "string") {
|
|
3233
3253
|
const M = {
|
|
@@ -3235,16 +3255,16 @@ function Se(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3235
3255
|
schemaPath: "#/additionalProperties/anyOf/1/type",
|
|
3236
3256
|
keyword: "type",
|
|
3237
3257
|
params: {
|
|
3238
|
-
type:
|
|
3258
|
+
type: Yt.additionalProperties.anyOf[1].type
|
|
3239
3259
|
},
|
|
3240
3260
|
message: "must be object,string"
|
|
3241
3261
|
};
|
|
3242
3262
|
s === null ? s = [M] : s.push(M), e++;
|
|
3243
3263
|
}
|
|
3244
3264
|
var f = m === e;
|
|
3245
|
-
|
|
3265
|
+
j = j || f;
|
|
3246
3266
|
}
|
|
3247
|
-
if (
|
|
3267
|
+
if (j)
|
|
3248
3268
|
e = O, s !== null && (O ? s.length = O : s = null);
|
|
3249
3269
|
else {
|
|
3250
3270
|
const m = {
|
|
@@ -3256,7 +3276,7 @@ function Se(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3256
3276
|
};
|
|
3257
3277
|
return s === null ? s = [m] : s.push(m), e++, Se.errors = s, !1;
|
|
3258
3278
|
}
|
|
3259
|
-
var y =
|
|
3279
|
+
var y = E === e;
|
|
3260
3280
|
if (!y)
|
|
3261
3281
|
break;
|
|
3262
3282
|
}
|
|
@@ -3303,7 +3323,7 @@ function Oe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3303
3323
|
if (x === e) {
|
|
3304
3324
|
if (r.resource !== void 0) {
|
|
3305
3325
|
let S = r.resource;
|
|
3306
|
-
const
|
|
3326
|
+
const E = e;
|
|
3307
3327
|
if (typeof S != "string")
|
|
3308
3328
|
return Oe.errors = [
|
|
3309
3329
|
{
|
|
@@ -3326,7 +3346,7 @@ function Oe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3326
3346
|
message: "must be equal to constant"
|
|
3327
3347
|
}
|
|
3328
3348
|
], !1;
|
|
3329
|
-
var f =
|
|
3349
|
+
var f = E === e;
|
|
3330
3350
|
} else
|
|
3331
3351
|
var f = !0;
|
|
3332
3352
|
if (f) {
|
|
@@ -3379,14 +3399,14 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3379
3399
|
const x = e;
|
|
3380
3400
|
if (e === e)
|
|
3381
3401
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
3382
|
-
let
|
|
3383
|
-
if (r.resource === void 0 && (
|
|
3402
|
+
let j;
|
|
3403
|
+
if (r.resource === void 0 && (j = "resource") || r.url === void 0 && (j = "url") || r.ref === void 0 && (j = "ref") || r.path === void 0 && (j = "path")) {
|
|
3384
3404
|
const R = {
|
|
3385
3405
|
instancePath: t,
|
|
3386
3406
|
schemaPath: "#/definitions/GitDirectoryReference/required",
|
|
3387
3407
|
keyword: "required",
|
|
3388
|
-
params: { missingProperty:
|
|
3389
|
-
message: "must have required property '" +
|
|
3408
|
+
params: { missingProperty: j },
|
|
3409
|
+
message: "must have required property '" + j + "'"
|
|
3390
3410
|
};
|
|
3391
3411
|
s === null ? s = [R] : s.push(R), e++;
|
|
3392
3412
|
} else {
|
|
@@ -3427,10 +3447,10 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3427
3447
|
};
|
|
3428
3448
|
s === null ? s = [M] : s.push(M), e++;
|
|
3429
3449
|
}
|
|
3430
|
-
var
|
|
3450
|
+
var E = W === e;
|
|
3431
3451
|
} else
|
|
3432
|
-
var
|
|
3433
|
-
if (
|
|
3452
|
+
var E = !0;
|
|
3453
|
+
if (E) {
|
|
3434
3454
|
if (r.url !== void 0) {
|
|
3435
3455
|
const m = e;
|
|
3436
3456
|
if (typeof r.url != "string") {
|
|
@@ -3443,10 +3463,10 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3443
3463
|
};
|
|
3444
3464
|
s === null ? s = [M] : s.push(M), e++;
|
|
3445
3465
|
}
|
|
3446
|
-
var
|
|
3466
|
+
var E = m === e;
|
|
3447
3467
|
} else
|
|
3448
|
-
var
|
|
3449
|
-
if (
|
|
3468
|
+
var E = !0;
|
|
3469
|
+
if (E) {
|
|
3450
3470
|
if (r.ref !== void 0) {
|
|
3451
3471
|
const m = e;
|
|
3452
3472
|
if (typeof r.ref != "string") {
|
|
@@ -3459,10 +3479,10 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3459
3479
|
};
|
|
3460
3480
|
s === null ? s = [M] : s.push(M), e++;
|
|
3461
3481
|
}
|
|
3462
|
-
var
|
|
3482
|
+
var E = m === e;
|
|
3463
3483
|
} else
|
|
3464
|
-
var
|
|
3465
|
-
if (
|
|
3484
|
+
var E = !0;
|
|
3485
|
+
if (E)
|
|
3466
3486
|
if (r.path !== void 0) {
|
|
3467
3487
|
const m = e;
|
|
3468
3488
|
if (typeof r.path != "string") {
|
|
@@ -3475,46 +3495,46 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3475
3495
|
};
|
|
3476
3496
|
s === null ? s = [M] : s.push(M), e++;
|
|
3477
3497
|
}
|
|
3478
|
-
var
|
|
3498
|
+
var E = m === e;
|
|
3479
3499
|
} else
|
|
3480
|
-
var
|
|
3500
|
+
var E = !0;
|
|
3481
3501
|
}
|
|
3482
3502
|
}
|
|
3483
3503
|
}
|
|
3484
3504
|
}
|
|
3485
3505
|
} else {
|
|
3486
|
-
const
|
|
3506
|
+
const j = {
|
|
3487
3507
|
instancePath: t,
|
|
3488
3508
|
schemaPath: "#/definitions/GitDirectoryReference/type",
|
|
3489
3509
|
keyword: "type",
|
|
3490
3510
|
params: { type: "object" },
|
|
3491
3511
|
message: "must be object"
|
|
3492
3512
|
};
|
|
3493
|
-
s === null ? s = [
|
|
3513
|
+
s === null ? s = [j] : s.push(j), e++;
|
|
3494
3514
|
}
|
|
3495
3515
|
var O = x === e;
|
|
3496
3516
|
if (y = y || O, !y) {
|
|
3497
|
-
const
|
|
3517
|
+
const j = e;
|
|
3498
3518
|
Oe(r, {
|
|
3499
3519
|
instancePath: t,
|
|
3500
3520
|
parentData: n,
|
|
3501
3521
|
parentDataProperty: d,
|
|
3502
3522
|
rootData: u
|
|
3503
3523
|
}) || (s = s === null ? Oe.errors : s.concat(Oe.errors), e = s.length);
|
|
3504
|
-
var O =
|
|
3524
|
+
var O = j === e;
|
|
3505
3525
|
y = y || O;
|
|
3506
3526
|
}
|
|
3507
3527
|
if (y)
|
|
3508
3528
|
e = f, s !== null && (f ? s.length = f : s = null);
|
|
3509
3529
|
else {
|
|
3510
|
-
const
|
|
3530
|
+
const j = {
|
|
3511
3531
|
instancePath: t,
|
|
3512
3532
|
schemaPath: "#/anyOf",
|
|
3513
3533
|
keyword: "anyOf",
|
|
3514
3534
|
params: {},
|
|
3515
3535
|
message: "must match a schema in anyOf"
|
|
3516
3536
|
};
|
|
3517
|
-
return s === null ? s = [
|
|
3537
|
+
return s === null ? s = [j] : s.push(j), e++, ge.errors = s, !1;
|
|
3518
3538
|
}
|
|
3519
3539
|
return ge.errors = s, e === 0;
|
|
3520
3540
|
}
|
|
@@ -3642,19 +3662,19 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3642
3662
|
let re = !1;
|
|
3643
3663
|
const c = e;
|
|
3644
3664
|
if (typeof k != "string") {
|
|
3645
|
-
const
|
|
3665
|
+
const T = {
|
|
3646
3666
|
instancePath: t + "/body",
|
|
3647
3667
|
schemaPath: "#/properties/body/anyOf/0/type",
|
|
3648
3668
|
keyword: "type",
|
|
3649
3669
|
params: { type: "string" },
|
|
3650
3670
|
message: "must be string"
|
|
3651
3671
|
};
|
|
3652
|
-
s === null ? s = [
|
|
3672
|
+
s === null ? s = [T] : s.push(T), e++;
|
|
3653
3673
|
}
|
|
3654
3674
|
var x = c === e;
|
|
3655
3675
|
if (re = re || x, !re) {
|
|
3656
|
-
const
|
|
3657
|
-
if (e ===
|
|
3676
|
+
const T = e;
|
|
3677
|
+
if (e === T)
|
|
3658
3678
|
if (k && typeof k == "object" && !Array.isArray(k)) {
|
|
3659
3679
|
let P;
|
|
3660
3680
|
if (k.BYTES_PER_ELEMENT === void 0 && (P = "BYTES_PER_ELEMENT") || k.buffer === void 0 && (P = "buffer") || k.byteLength === void 0 && (P = "byteLength") || k.byteOffset === void 0 && (P = "byteOffset") || k.length === void 0 && (P = "length")) {
|
|
@@ -3724,10 +3744,10 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3724
3744
|
$
|
|
3725
3745
|
), e++;
|
|
3726
3746
|
}
|
|
3727
|
-
var
|
|
3747
|
+
var E = g === e;
|
|
3728
3748
|
} else
|
|
3729
|
-
var
|
|
3730
|
-
if (
|
|
3749
|
+
var E = !0;
|
|
3750
|
+
if (E) {
|
|
3731
3751
|
if (k.buffer !== void 0) {
|
|
3732
3752
|
let w = k.buffer;
|
|
3733
3753
|
const g = e;
|
|
@@ -3737,7 +3757,7 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3737
3757
|
)) {
|
|
3738
3758
|
let L;
|
|
3739
3759
|
if (w.byteLength === void 0 && (L = "byteLength")) {
|
|
3740
|
-
const
|
|
3760
|
+
const C = {
|
|
3741
3761
|
instancePath: t + "/body/buffer",
|
|
3742
3762
|
schemaPath: "#/properties/body/anyOf/1/properties/buffer/required",
|
|
3743
3763
|
keyword: "required",
|
|
@@ -3747,12 +3767,12 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3747
3767
|
message: "must have required property '" + L + "'"
|
|
3748
3768
|
};
|
|
3749
3769
|
s === null ? s = [
|
|
3750
|
-
|
|
3770
|
+
C
|
|
3751
3771
|
] : s.push(
|
|
3752
|
-
|
|
3772
|
+
C
|
|
3753
3773
|
), e++;
|
|
3754
3774
|
} else {
|
|
3755
|
-
const
|
|
3775
|
+
const C = e;
|
|
3756
3776
|
for (const F in w)
|
|
3757
3777
|
if (F !== "byteLength") {
|
|
3758
3778
|
const U = {
|
|
@@ -3771,7 +3791,7 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3771
3791
|
), e++;
|
|
3772
3792
|
break;
|
|
3773
3793
|
}
|
|
3774
|
-
if (
|
|
3794
|
+
if (C === e && w.byteLength !== void 0) {
|
|
3775
3795
|
let F = w.byteLength;
|
|
3776
3796
|
if (!(typeof F == "number" && isFinite(
|
|
3777
3797
|
F
|
|
@@ -3809,10 +3829,10 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3809
3829
|
L
|
|
3810
3830
|
), e++;
|
|
3811
3831
|
}
|
|
3812
|
-
var
|
|
3832
|
+
var E = g === e;
|
|
3813
3833
|
} else
|
|
3814
|
-
var
|
|
3815
|
-
if (
|
|
3834
|
+
var E = !0;
|
|
3835
|
+
if (E) {
|
|
3816
3836
|
if (k.byteLength !== void 0) {
|
|
3817
3837
|
let w = k.byteLength;
|
|
3818
3838
|
const g = e;
|
|
@@ -3834,10 +3854,10 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3834
3854
|
L
|
|
3835
3855
|
), e++;
|
|
3836
3856
|
}
|
|
3837
|
-
var
|
|
3857
|
+
var E = g === e;
|
|
3838
3858
|
} else
|
|
3839
|
-
var
|
|
3840
|
-
if (
|
|
3859
|
+
var E = !0;
|
|
3860
|
+
if (E) {
|
|
3841
3861
|
if (k.byteOffset !== void 0) {
|
|
3842
3862
|
let w = k.byteOffset;
|
|
3843
3863
|
const g = e;
|
|
@@ -3859,10 +3879,10 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3859
3879
|
L
|
|
3860
3880
|
), e++;
|
|
3861
3881
|
}
|
|
3862
|
-
var
|
|
3882
|
+
var E = g === e;
|
|
3863
3883
|
} else
|
|
3864
|
-
var
|
|
3865
|
-
if (
|
|
3884
|
+
var E = !0;
|
|
3885
|
+
if (E)
|
|
3866
3886
|
if (k.length !== void 0) {
|
|
3867
3887
|
let w = k.length;
|
|
3868
3888
|
const g = e;
|
|
@@ -3884,9 +3904,9 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3884
3904
|
L
|
|
3885
3905
|
), e++;
|
|
3886
3906
|
}
|
|
3887
|
-
var
|
|
3907
|
+
var E = g === e;
|
|
3888
3908
|
} else
|
|
3889
|
-
var
|
|
3909
|
+
var E = !0;
|
|
3890
3910
|
}
|
|
3891
3911
|
}
|
|
3892
3912
|
}
|
|
@@ -3902,7 +3922,7 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3902
3922
|
};
|
|
3903
3923
|
s === null ? s = [P] : s.push(P), e++;
|
|
3904
3924
|
}
|
|
3905
|
-
var x =
|
|
3925
|
+
var x = T === e;
|
|
3906
3926
|
if (re = re || x, !re) {
|
|
3907
3927
|
const P = e;
|
|
3908
3928
|
if (e === P)
|
|
@@ -3910,7 +3930,7 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3910
3930
|
for (const w in k) {
|
|
3911
3931
|
let g = k[w];
|
|
3912
3932
|
const $ = e, L = e;
|
|
3913
|
-
let
|
|
3933
|
+
let C = !1;
|
|
3914
3934
|
const F = e;
|
|
3915
3935
|
if (typeof g != "string") {
|
|
3916
3936
|
const U = {
|
|
@@ -3935,7 +3955,7 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3935
3955
|
), e++;
|
|
3936
3956
|
}
|
|
3937
3957
|
var O = F === e;
|
|
3938
|
-
if (
|
|
3958
|
+
if (C = C || O, !C) {
|
|
3939
3959
|
const U = e;
|
|
3940
3960
|
if (e === U)
|
|
3941
3961
|
if (g && typeof g == "object" && !Array.isArray(
|
|
@@ -3999,8 +4019,8 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
3999
4019
|
V
|
|
4000
4020
|
), e++;
|
|
4001
4021
|
}
|
|
4002
|
-
var
|
|
4003
|
-
if (!
|
|
4022
|
+
var j = B === e;
|
|
4023
|
+
if (!j)
|
|
4004
4024
|
break;
|
|
4005
4025
|
}
|
|
4006
4026
|
if (ee === e) {
|
|
@@ -4264,7 +4284,7 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4264
4284
|
), e++;
|
|
4265
4285
|
}
|
|
4266
4286
|
var O = U === e;
|
|
4267
|
-
if (
|
|
4287
|
+
if (C = C || O, !C) {
|
|
4268
4288
|
const I = e;
|
|
4269
4289
|
if (e === I)
|
|
4270
4290
|
if (g && typeof g == "object" && !Array.isArray(
|
|
@@ -4492,10 +4512,10 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4492
4512
|
), e++;
|
|
4493
4513
|
}
|
|
4494
4514
|
var O = I === e;
|
|
4495
|
-
|
|
4515
|
+
C = C || O;
|
|
4496
4516
|
}
|
|
4497
4517
|
}
|
|
4498
|
-
if (
|
|
4518
|
+
if (C)
|
|
4499
4519
|
e = L, s !== null && (L ? s.length = L : s = null);
|
|
4500
4520
|
else {
|
|
4501
4521
|
const U = {
|
|
@@ -4540,14 +4560,14 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4540
4560
|
if (re)
|
|
4541
4561
|
e = z, s !== null && (z ? s.length = z : s = null);
|
|
4542
4562
|
else {
|
|
4543
|
-
const
|
|
4563
|
+
const T = {
|
|
4544
4564
|
instancePath: t + "/body",
|
|
4545
4565
|
schemaPath: "#/properties/body/anyOf",
|
|
4546
4566
|
keyword: "anyOf",
|
|
4547
4567
|
params: {},
|
|
4548
4568
|
message: "must match a schema in anyOf"
|
|
4549
4569
|
};
|
|
4550
|
-
return s === null ? s = [
|
|
4570
|
+
return s === null ? s = [T] : s.push(T), e++, ye.errors = s, !1;
|
|
4551
4571
|
}
|
|
4552
4572
|
var f = K === e;
|
|
4553
4573
|
} else
|
|
@@ -4568,7 +4588,7 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4568
4588
|
], !1;
|
|
4569
4589
|
return ye.errors = s, e === 0;
|
|
4570
4590
|
}
|
|
4571
|
-
const
|
|
4591
|
+
const Gt = {
|
|
4572
4592
|
properties: {
|
|
4573
4593
|
relativeUri: {
|
|
4574
4594
|
type: "string",
|
|
@@ -4638,7 +4658,7 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4638
4658
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
4639
4659
|
const R = e;
|
|
4640
4660
|
for (const m in r)
|
|
4641
|
-
if (!Lr.call(
|
|
4661
|
+
if (!Lr.call(Gt.properties, m))
|
|
4642
4662
|
return pe.errors = [
|
|
4643
4663
|
{
|
|
4644
4664
|
instancePath: t,
|
|
@@ -4803,15 +4823,15 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4803
4823
|
s === null ? s = [b] : s.push(b), e++;
|
|
4804
4824
|
} else {
|
|
4805
4825
|
const b = e;
|
|
4806
|
-
for (const
|
|
4807
|
-
if (!(
|
|
4808
|
-
let v = m[
|
|
4826
|
+
for (const T in m)
|
|
4827
|
+
if (!(T === "BYTES_PER_ELEMENT" || T === "buffer" || T === "byteLength" || T === "byteOffset" || T === "length")) {
|
|
4828
|
+
let v = m[T];
|
|
4809
4829
|
const P = e;
|
|
4810
4830
|
if (!(typeof v == "number" && isFinite(
|
|
4811
4831
|
v
|
|
4812
4832
|
))) {
|
|
4813
4833
|
const h = {
|
|
4814
|
-
instancePath: t + "/body/" +
|
|
4834
|
+
instancePath: t + "/body/" + T.replace(
|
|
4815
4835
|
/~/g,
|
|
4816
4836
|
"~0"
|
|
4817
4837
|
).replace(
|
|
@@ -4837,10 +4857,10 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4837
4857
|
}
|
|
4838
4858
|
if (b === e) {
|
|
4839
4859
|
if (m.BYTES_PER_ELEMENT !== void 0) {
|
|
4840
|
-
let
|
|
4860
|
+
let T = m.BYTES_PER_ELEMENT;
|
|
4841
4861
|
const v = e;
|
|
4842
|
-
if (!(typeof
|
|
4843
|
-
|
|
4862
|
+
if (!(typeof T == "number" && isFinite(
|
|
4863
|
+
T
|
|
4844
4864
|
))) {
|
|
4845
4865
|
const P = {
|
|
4846
4866
|
instancePath: t + "/body/BYTES_PER_ELEMENT",
|
|
@@ -4857,19 +4877,19 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4857
4877
|
P
|
|
4858
4878
|
), e++;
|
|
4859
4879
|
}
|
|
4860
|
-
var
|
|
4880
|
+
var E = v === e;
|
|
4861
4881
|
} else
|
|
4862
|
-
var
|
|
4863
|
-
if (
|
|
4882
|
+
var E = !0;
|
|
4883
|
+
if (E) {
|
|
4864
4884
|
if (m.buffer !== void 0) {
|
|
4865
|
-
let
|
|
4885
|
+
let T = m.buffer;
|
|
4866
4886
|
const v = e;
|
|
4867
4887
|
if (e === v)
|
|
4868
|
-
if (
|
|
4869
|
-
|
|
4888
|
+
if (T && typeof T == "object" && !Array.isArray(
|
|
4889
|
+
T
|
|
4870
4890
|
)) {
|
|
4871
4891
|
let h;
|
|
4872
|
-
if (
|
|
4892
|
+
if (T.byteLength === void 0 && (h = "byteLength")) {
|
|
4873
4893
|
const w = {
|
|
4874
4894
|
instancePath: t + "/body/buffer",
|
|
4875
4895
|
schemaPath: "#/properties/body/anyOf/1/properties/buffer/required",
|
|
@@ -4886,7 +4906,7 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4886
4906
|
), e++;
|
|
4887
4907
|
} else {
|
|
4888
4908
|
const w = e;
|
|
4889
|
-
for (const g in
|
|
4909
|
+
for (const g in T)
|
|
4890
4910
|
if (g !== "byteLength") {
|
|
4891
4911
|
const $ = {
|
|
4892
4912
|
instancePath: t + "/body/buffer",
|
|
@@ -4904,8 +4924,8 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4904
4924
|
), e++;
|
|
4905
4925
|
break;
|
|
4906
4926
|
}
|
|
4907
|
-
if (w === e &&
|
|
4908
|
-
let g =
|
|
4927
|
+
if (w === e && T.byteLength !== void 0) {
|
|
4928
|
+
let g = T.byteLength;
|
|
4909
4929
|
if (!(typeof g == "number" && isFinite(
|
|
4910
4930
|
g
|
|
4911
4931
|
))) {
|
|
@@ -4942,15 +4962,15 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4942
4962
|
h
|
|
4943
4963
|
), e++;
|
|
4944
4964
|
}
|
|
4945
|
-
var
|
|
4965
|
+
var E = v === e;
|
|
4946
4966
|
} else
|
|
4947
|
-
var
|
|
4948
|
-
if (
|
|
4967
|
+
var E = !0;
|
|
4968
|
+
if (E) {
|
|
4949
4969
|
if (m.byteLength !== void 0) {
|
|
4950
|
-
let
|
|
4970
|
+
let T = m.byteLength;
|
|
4951
4971
|
const v = e;
|
|
4952
|
-
if (!(typeof
|
|
4953
|
-
|
|
4972
|
+
if (!(typeof T == "number" && isFinite(
|
|
4973
|
+
T
|
|
4954
4974
|
))) {
|
|
4955
4975
|
const h = {
|
|
4956
4976
|
instancePath: t + "/body/byteLength",
|
|
@@ -4967,15 +4987,15 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4967
4987
|
h
|
|
4968
4988
|
), e++;
|
|
4969
4989
|
}
|
|
4970
|
-
var
|
|
4990
|
+
var E = v === e;
|
|
4971
4991
|
} else
|
|
4972
|
-
var
|
|
4973
|
-
if (
|
|
4992
|
+
var E = !0;
|
|
4993
|
+
if (E) {
|
|
4974
4994
|
if (m.byteOffset !== void 0) {
|
|
4975
|
-
let
|
|
4995
|
+
let T = m.byteOffset;
|
|
4976
4996
|
const v = e;
|
|
4977
|
-
if (!(typeof
|
|
4978
|
-
|
|
4997
|
+
if (!(typeof T == "number" && isFinite(
|
|
4998
|
+
T
|
|
4979
4999
|
))) {
|
|
4980
5000
|
const h = {
|
|
4981
5001
|
instancePath: t + "/body/byteOffset",
|
|
@@ -4992,15 +5012,15 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
4992
5012
|
h
|
|
4993
5013
|
), e++;
|
|
4994
5014
|
}
|
|
4995
|
-
var
|
|
5015
|
+
var E = v === e;
|
|
4996
5016
|
} else
|
|
4997
|
-
var
|
|
4998
|
-
if (
|
|
5017
|
+
var E = !0;
|
|
5018
|
+
if (E)
|
|
4999
5019
|
if (m.length !== void 0) {
|
|
5000
|
-
let
|
|
5020
|
+
let T = m.length;
|
|
5001
5021
|
const v = e;
|
|
5002
|
-
if (!(typeof
|
|
5003
|
-
|
|
5022
|
+
if (!(typeof T == "number" && isFinite(
|
|
5023
|
+
T
|
|
5004
5024
|
))) {
|
|
5005
5025
|
const h = {
|
|
5006
5026
|
instancePath: t + "/body/length",
|
|
@@ -5017,9 +5037,9 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
5017
5037
|
h
|
|
5018
5038
|
), e++;
|
|
5019
5039
|
}
|
|
5020
|
-
var
|
|
5040
|
+
var E = v === e;
|
|
5021
5041
|
} else
|
|
5022
|
-
var
|
|
5042
|
+
var E = !0;
|
|
5023
5043
|
}
|
|
5024
5044
|
}
|
|
5025
5045
|
}
|
|
@@ -5126,8 +5146,8 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
5126
5146
|
message: "must be string"
|
|
5127
5147
|
}
|
|
5128
5148
|
], !1;
|
|
5129
|
-
var
|
|
5130
|
-
if (!
|
|
5149
|
+
var j = k === e;
|
|
5150
|
+
if (!j)
|
|
5131
5151
|
break;
|
|
5132
5152
|
}
|
|
5133
5153
|
else
|
|
@@ -5625,10 +5645,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
5625
5645
|
message: "must be number"
|
|
5626
5646
|
}
|
|
5627
5647
|
], !1;
|
|
5628
|
-
var
|
|
5648
|
+
var E = q === e;
|
|
5629
5649
|
} else
|
|
5630
|
-
var
|
|
5631
|
-
if (
|
|
5650
|
+
var E = !0;
|
|
5651
|
+
if (E)
|
|
5632
5652
|
if (i.caption !== void 0) {
|
|
5633
5653
|
const a = e;
|
|
5634
5654
|
if (typeof i.caption != "string")
|
|
@@ -5643,9 +5663,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
5643
5663
|
message: "must be string"
|
|
5644
5664
|
}
|
|
5645
5665
|
], !1;
|
|
5646
|
-
var
|
|
5666
|
+
var E = a === e;
|
|
5647
5667
|
} else
|
|
5648
|
-
var
|
|
5668
|
+
var E = !0;
|
|
5649
5669
|
}
|
|
5650
5670
|
} else
|
|
5651
5671
|
return o.errors = [
|
|
@@ -5812,10 +5832,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
5812
5832
|
message: "must be number"
|
|
5813
5833
|
}
|
|
5814
5834
|
], !1;
|
|
5815
|
-
var
|
|
5835
|
+
var j = q === e;
|
|
5816
5836
|
} else
|
|
5817
|
-
var
|
|
5818
|
-
if (
|
|
5837
|
+
var j = !0;
|
|
5838
|
+
if (j)
|
|
5819
5839
|
if (i.caption !== void 0) {
|
|
5820
5840
|
const a = e;
|
|
5821
5841
|
if (typeof i.caption != "string")
|
|
@@ -5830,9 +5850,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
5830
5850
|
message: "must be string"
|
|
5831
5851
|
}
|
|
5832
5852
|
], !1;
|
|
5833
|
-
var
|
|
5853
|
+
var j = a === e;
|
|
5834
5854
|
} else
|
|
5835
|
-
var
|
|
5855
|
+
var j = !0;
|
|
5836
5856
|
}
|
|
5837
5857
|
} else
|
|
5838
5858
|
return o.errors = [
|
|
@@ -6920,10 +6940,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
6920
6940
|
message: "must be number"
|
|
6921
6941
|
}
|
|
6922
6942
|
], !1;
|
|
6923
|
-
var
|
|
6943
|
+
var T = q === e;
|
|
6924
6944
|
} else
|
|
6925
|
-
var
|
|
6926
|
-
if (
|
|
6945
|
+
var T = !0;
|
|
6946
|
+
if (T)
|
|
6927
6947
|
if (i.caption !== void 0) {
|
|
6928
6948
|
const a = e;
|
|
6929
6949
|
if (typeof i.caption != "string")
|
|
@@ -6938,9 +6958,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
6938
6958
|
message: "must be string"
|
|
6939
6959
|
}
|
|
6940
6960
|
], !1;
|
|
6941
|
-
var
|
|
6961
|
+
var T = a === e;
|
|
6942
6962
|
} else
|
|
6943
|
-
var
|
|
6963
|
+
var T = !0;
|
|
6944
6964
|
}
|
|
6945
6965
|
} else
|
|
6946
6966
|
return o.errors = [
|
|
@@ -7595,10 +7615,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
7595
7615
|
message: "must be number"
|
|
7596
7616
|
}
|
|
7597
7617
|
], !1;
|
|
7598
|
-
var
|
|
7618
|
+
var C = q === e;
|
|
7599
7619
|
} else
|
|
7600
|
-
var
|
|
7601
|
-
if (
|
|
7620
|
+
var C = !0;
|
|
7621
|
+
if (C)
|
|
7602
7622
|
if (i.caption !== void 0) {
|
|
7603
7623
|
const a = e;
|
|
7604
7624
|
if (typeof i.caption != "string")
|
|
@@ -7613,9 +7633,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
7613
7633
|
message: "must be string"
|
|
7614
7634
|
}
|
|
7615
7635
|
], !1;
|
|
7616
|
-
var
|
|
7636
|
+
var C = a === e;
|
|
7617
7637
|
} else
|
|
7618
|
-
var
|
|
7638
|
+
var C = !0;
|
|
7619
7639
|
}
|
|
7620
7640
|
} else
|
|
7621
7641
|
return o.errors = [
|
|
@@ -7816,10 +7836,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
7816
7836
|
message: "must be object"
|
|
7817
7837
|
}
|
|
7818
7838
|
], !1;
|
|
7819
|
-
var
|
|
7839
|
+
var D = p === e;
|
|
7820
7840
|
} else
|
|
7821
|
-
var
|
|
7822
|
-
if (
|
|
7841
|
+
var D = !0;
|
|
7842
|
+
if (D) {
|
|
7823
7843
|
if (r.step !== void 0) {
|
|
7824
7844
|
let i = r.step;
|
|
7825
7845
|
const p = e;
|
|
@@ -7847,10 +7867,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
7847
7867
|
message: "must be equal to constant"
|
|
7848
7868
|
}
|
|
7849
7869
|
], !1;
|
|
7850
|
-
var
|
|
7870
|
+
var D = p === e;
|
|
7851
7871
|
} else
|
|
7852
|
-
var
|
|
7853
|
-
if (
|
|
7872
|
+
var D = !0;
|
|
7873
|
+
if (D)
|
|
7854
7874
|
if (r.path !== void 0) {
|
|
7855
7875
|
const i = e;
|
|
7856
7876
|
if (typeof r.path != "string")
|
|
@@ -7865,9 +7885,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
7865
7885
|
message: "must be string"
|
|
7866
7886
|
}
|
|
7867
7887
|
], !1;
|
|
7868
|
-
var
|
|
7888
|
+
var D = i === e;
|
|
7869
7889
|
} else
|
|
7870
|
-
var
|
|
7890
|
+
var D = !0;
|
|
7871
7891
|
}
|
|
7872
7892
|
}
|
|
7873
7893
|
}
|
|
@@ -8789,10 +8809,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
8789
8809
|
message: "must be number"
|
|
8790
8810
|
}
|
|
8791
8811
|
], !1;
|
|
8792
|
-
var
|
|
8812
|
+
var De = q === e;
|
|
8793
8813
|
} else
|
|
8794
|
-
var
|
|
8795
|
-
if (
|
|
8814
|
+
var De = !0;
|
|
8815
|
+
if (De)
|
|
8796
8816
|
if (i.caption !== void 0) {
|
|
8797
8817
|
const a = e;
|
|
8798
8818
|
if (typeof i.caption != "string")
|
|
@@ -8807,9 +8827,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
8807
8827
|
message: "must be string"
|
|
8808
8828
|
}
|
|
8809
8829
|
], !1;
|
|
8810
|
-
var
|
|
8830
|
+
var De = a === e;
|
|
8811
8831
|
} else
|
|
8812
|
-
var
|
|
8832
|
+
var De = !0;
|
|
8813
8833
|
}
|
|
8814
8834
|
} else
|
|
8815
8835
|
return o.errors = [
|
|
@@ -10436,7 +10456,7 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
10436
10456
|
const Xe = e;
|
|
10437
10457
|
for (const xe in G)
|
|
10438
10458
|
if (xe !== "byteLength") {
|
|
10439
|
-
const
|
|
10459
|
+
const Ce = {
|
|
10440
10460
|
instancePath: t + "/data/buffer",
|
|
10441
10461
|
schemaPath: "#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",
|
|
10442
10462
|
keyword: "additionalProperties",
|
|
@@ -10446,9 +10466,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
10446
10466
|
message: "must NOT have additional properties"
|
|
10447
10467
|
};
|
|
10448
10468
|
s === null ? s = [
|
|
10449
|
-
|
|
10469
|
+
Ce
|
|
10450
10470
|
] : s.push(
|
|
10451
|
-
|
|
10471
|
+
Ce
|
|
10452
10472
|
), e++;
|
|
10453
10473
|
break;
|
|
10454
10474
|
}
|
|
@@ -10457,7 +10477,7 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
10457
10477
|
if (!(typeof xe == "number" && isFinite(
|
|
10458
10478
|
xe
|
|
10459
10479
|
))) {
|
|
10460
|
-
const
|
|
10480
|
+
const Ce = {
|
|
10461
10481
|
instancePath: t + "/data/buffer/byteLength",
|
|
10462
10482
|
schemaPath: "#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",
|
|
10463
10483
|
keyword: "type",
|
|
@@ -10467,9 +10487,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
10467
10487
|
message: "must be number"
|
|
10468
10488
|
};
|
|
10469
10489
|
s === null ? s = [
|
|
10470
|
-
|
|
10490
|
+
Ce
|
|
10471
10491
|
] : s.push(
|
|
10472
|
-
|
|
10492
|
+
Ce
|
|
10473
10493
|
), e++;
|
|
10474
10494
|
}
|
|
10475
10495
|
}
|
|
@@ -11279,7 +11299,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11279
11299
|
if (r && typeof r == "object" && !Array.isArray(r)) {
|
|
11280
11300
|
const re = e;
|
|
11281
11301
|
for (const c in r)
|
|
11282
|
-
if (!Lr.call(
|
|
11302
|
+
if (!Lr.call(Vt.properties, c))
|
|
11283
11303
|
return H.errors = [
|
|
11284
11304
|
{
|
|
11285
11305
|
instancePath: t,
|
|
@@ -11420,7 +11440,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11420
11440
|
var x = !0;
|
|
11421
11441
|
const $ = h.length;
|
|
11422
11442
|
for (let L = 0; L < $; L++) {
|
|
11423
|
-
const
|
|
11443
|
+
const C = e;
|
|
11424
11444
|
if (typeof h[L] != "string")
|
|
11425
11445
|
return H.errors = [
|
|
11426
11446
|
{
|
|
@@ -11433,7 +11453,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11433
11453
|
message: "must be string"
|
|
11434
11454
|
}
|
|
11435
11455
|
], !1;
|
|
11436
|
-
var x =
|
|
11456
|
+
var x = C === e;
|
|
11437
11457
|
if (!x)
|
|
11438
11458
|
break;
|
|
11439
11459
|
}
|
|
@@ -11510,7 +11530,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11510
11530
|
let $ = !1;
|
|
11511
11531
|
const L = e;
|
|
11512
11532
|
if (typeof h != "string") {
|
|
11513
|
-
const
|
|
11533
|
+
const C = {
|
|
11514
11534
|
instancePath: t + "/preferredVersions/php",
|
|
11515
11535
|
schemaPath: "#/definitions/SupportedPHPVersion/type",
|
|
11516
11536
|
keyword: "type",
|
|
@@ -11519,23 +11539,23 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11519
11539
|
},
|
|
11520
11540
|
message: "must be string"
|
|
11521
11541
|
};
|
|
11522
|
-
s === null ? s = [
|
|
11542
|
+
s === null ? s = [C] : s.push(C), e++;
|
|
11523
11543
|
}
|
|
11524
11544
|
if (!(h === "8.4" || h === "8.3" || h === "8.2" || h === "8.1" || h === "8.0" || h === "7.4" || h === "7.3" || h === "7.2")) {
|
|
11525
|
-
const
|
|
11545
|
+
const C = {
|
|
11526
11546
|
instancePath: t + "/preferredVersions/php",
|
|
11527
11547
|
schemaPath: "#/definitions/SupportedPHPVersion/enum",
|
|
11528
11548
|
keyword: "enum",
|
|
11529
11549
|
params: {
|
|
11530
|
-
allowedValues:
|
|
11550
|
+
allowedValues: Ht.enum
|
|
11531
11551
|
},
|
|
11532
11552
|
message: "must be equal to one of the allowed values"
|
|
11533
11553
|
};
|
|
11534
|
-
s === null ? s = [
|
|
11554
|
+
s === null ? s = [C] : s.push(C), e++;
|
|
11535
11555
|
}
|
|
11536
11556
|
var S = L === e;
|
|
11537
11557
|
if ($ = $ || S, !$) {
|
|
11538
|
-
const
|
|
11558
|
+
const C = e;
|
|
11539
11559
|
if (typeof h != "string") {
|
|
11540
11560
|
const U = {
|
|
11541
11561
|
instancePath: t + "/preferredVersions/php",
|
|
@@ -11568,25 +11588,25 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11568
11588
|
U
|
|
11569
11589
|
), e++;
|
|
11570
11590
|
}
|
|
11571
|
-
var S =
|
|
11591
|
+
var S = C === e;
|
|
11572
11592
|
$ = $ || S;
|
|
11573
11593
|
}
|
|
11574
11594
|
if ($)
|
|
11575
11595
|
e = g, s !== null && (g ? s.length = g : s = null);
|
|
11576
11596
|
else {
|
|
11577
|
-
const
|
|
11597
|
+
const C = {
|
|
11578
11598
|
instancePath: t + "/preferredVersions/php",
|
|
11579
11599
|
schemaPath: "#/properties/preferredVersions/properties/php/anyOf",
|
|
11580
11600
|
keyword: "anyOf",
|
|
11581
11601
|
params: {},
|
|
11582
11602
|
message: "must match a schema in anyOf"
|
|
11583
11603
|
};
|
|
11584
|
-
return s === null ? s = [
|
|
11604
|
+
return s === null ? s = [C] : s.push(C), e++, H.errors = s, !1;
|
|
11585
11605
|
}
|
|
11586
|
-
var
|
|
11606
|
+
var E = w === e;
|
|
11587
11607
|
} else
|
|
11588
|
-
var
|
|
11589
|
-
if (
|
|
11608
|
+
var E = !0;
|
|
11609
|
+
if (E)
|
|
11590
11610
|
if (c.wp !== void 0) {
|
|
11591
11611
|
const h = e;
|
|
11592
11612
|
if (typeof c.wp != "string")
|
|
@@ -11601,9 +11621,9 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11601
11621
|
message: "must be string"
|
|
11602
11622
|
}
|
|
11603
11623
|
], !1;
|
|
11604
|
-
var
|
|
11624
|
+
var E = h === e;
|
|
11605
11625
|
} else
|
|
11606
|
-
var
|
|
11626
|
+
var E = !0;
|
|
11607
11627
|
}
|
|
11608
11628
|
}
|
|
11609
11629
|
} else
|
|
@@ -11695,7 +11715,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11695
11715
|
const b = e;
|
|
11696
11716
|
if (e === b)
|
|
11697
11717
|
if (Array.isArray(c)) {
|
|
11698
|
-
var
|
|
11718
|
+
var j = !0;
|
|
11699
11719
|
const v = c.length;
|
|
11700
11720
|
for (let P = 0; P < v; P++) {
|
|
11701
11721
|
let h = c[P];
|
|
@@ -11724,8 +11744,8 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11724
11744
|
message: "must be equal to constant"
|
|
11725
11745
|
}
|
|
11726
11746
|
], !1;
|
|
11727
|
-
var
|
|
11728
|
-
if (!
|
|
11747
|
+
var j = w === e;
|
|
11748
|
+
if (!j)
|
|
11729
11749
|
break;
|
|
11730
11750
|
}
|
|
11731
11751
|
} else
|
|
@@ -11765,7 +11785,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11765
11785
|
schemaPath: "#/definitions/PHPConstants/additionalProperties/type",
|
|
11766
11786
|
keyword: "type",
|
|
11767
11787
|
params: {
|
|
11768
|
-
type:
|
|
11788
|
+
type: Zt.additionalProperties.type
|
|
11769
11789
|
},
|
|
11770
11790
|
message: "must be string,boolean,number"
|
|
11771
11791
|
}
|
|
@@ -11934,7 +11954,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11934
11954
|
if (f) {
|
|
11935
11955
|
if (r.login !== void 0) {
|
|
11936
11956
|
let c = r.login;
|
|
11937
|
-
const b = e,
|
|
11957
|
+
const b = e, T = e;
|
|
11938
11958
|
let v = !1;
|
|
11939
11959
|
const P = e;
|
|
11940
11960
|
if (typeof c != "boolean") {
|
|
@@ -11978,14 +11998,14 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11978
11998
|
), e++;
|
|
11979
11999
|
} else {
|
|
11980
12000
|
const L = e;
|
|
11981
|
-
for (const
|
|
11982
|
-
if (!(
|
|
12001
|
+
for (const C in c)
|
|
12002
|
+
if (!(C === "username" || C === "password")) {
|
|
11983
12003
|
const F = {
|
|
11984
12004
|
instancePath: t + "/login",
|
|
11985
12005
|
schemaPath: "#/properties/login/anyOf/1/additionalProperties",
|
|
11986
12006
|
keyword: "additionalProperties",
|
|
11987
12007
|
params: {
|
|
11988
|
-
additionalProperty:
|
|
12008
|
+
additionalProperty: C
|
|
11989
12009
|
},
|
|
11990
12010
|
message: "must NOT have additional properties"
|
|
11991
12011
|
};
|
|
@@ -11998,7 +12018,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
11998
12018
|
}
|
|
11999
12019
|
if (L === e) {
|
|
12000
12020
|
if (c.username !== void 0) {
|
|
12001
|
-
const
|
|
12021
|
+
const C = e;
|
|
12002
12022
|
if (typeof c.username != "string") {
|
|
12003
12023
|
const F = {
|
|
12004
12024
|
instancePath: t + "/login/username",
|
|
@@ -12015,12 +12035,12 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12015
12035
|
F
|
|
12016
12036
|
), e++;
|
|
12017
12037
|
}
|
|
12018
|
-
var k =
|
|
12038
|
+
var k = C === e;
|
|
12019
12039
|
} else
|
|
12020
12040
|
var k = !0;
|
|
12021
12041
|
if (k)
|
|
12022
12042
|
if (c.password !== void 0) {
|
|
12023
|
-
const
|
|
12043
|
+
const C = e;
|
|
12024
12044
|
if (typeof c.password != "string") {
|
|
12025
12045
|
const U = {
|
|
12026
12046
|
instancePath: t + "/login/password",
|
|
@@ -12037,7 +12057,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12037
12057
|
U
|
|
12038
12058
|
), e++;
|
|
12039
12059
|
}
|
|
12040
|
-
var k =
|
|
12060
|
+
var k = C === e;
|
|
12041
12061
|
} else
|
|
12042
12062
|
var k = !0;
|
|
12043
12063
|
}
|
|
@@ -12062,7 +12082,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12062
12082
|
v = v || Y;
|
|
12063
12083
|
}
|
|
12064
12084
|
if (v)
|
|
12065
|
-
e =
|
|
12085
|
+
e = T, s !== null && (T ? s.length = T : s = null);
|
|
12066
12086
|
else {
|
|
12067
12087
|
const w = {
|
|
12068
12088
|
instancePath: t + "/login",
|
|
@@ -12110,7 +12130,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12110
12130
|
if ($ = $ || z, !$) {
|
|
12111
12131
|
const F = e;
|
|
12112
12132
|
if (typeof h != "string") {
|
|
12113
|
-
const
|
|
12133
|
+
const D = {
|
|
12114
12134
|
instancePath: t + "/steps/" + P,
|
|
12115
12135
|
schemaPath: "#/properties/steps/items/anyOf/1/type",
|
|
12116
12136
|
keyword: "type",
|
|
@@ -12120,14 +12140,14 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12120
12140
|
message: "must be string"
|
|
12121
12141
|
};
|
|
12122
12142
|
s === null ? s = [
|
|
12123
|
-
|
|
12143
|
+
D
|
|
12124
12144
|
] : s.push(
|
|
12125
|
-
|
|
12145
|
+
D
|
|
12126
12146
|
), e++;
|
|
12127
12147
|
}
|
|
12128
12148
|
var z = F === e;
|
|
12129
12149
|
if ($ = $ || z, !$) {
|
|
12130
|
-
const
|
|
12150
|
+
const D = e, I = {
|
|
12131
12151
|
instancePath: t + "/steps/" + P,
|
|
12132
12152
|
schemaPath: "#/properties/steps/items/anyOf/2/not",
|
|
12133
12153
|
keyword: "not",
|
|
@@ -12139,7 +12159,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
|
|
|
12139
12159
|
] : s.push(
|
|
12140
12160
|
I
|
|
12141
12161
|
), e++;
|
|
12142
|
-
var z =
|
|
12162
|
+
var z = D === e;
|
|
12143
12163
|
if ($ = $ || z, !$) {
|
|
12144
12164
|
const A = e;
|
|
12145
12165
|
if (typeof h != "boolean") {
|
|
@@ -12284,30 +12304,30 @@ function er(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
|
|
|
12284
12304
|
rootData: u
|
|
12285
12305
|
}) || (s = s === null ? H.errors : s.concat(H.errors), e = s.length), er.errors = s, e === 0;
|
|
12286
12306
|
}
|
|
12287
|
-
const { wpCLI:
|
|
12307
|
+
const { wpCLI: Qt, ...mr } = $t, Jt = {
|
|
12288
12308
|
...mr,
|
|
12289
|
-
"wp-cli":
|
|
12309
|
+
"wp-cli": Qt,
|
|
12290
12310
|
importFile: mr.importWxr
|
|
12291
12311
|
};
|
|
12292
|
-
async function
|
|
12312
|
+
async function gs(r, t = {}) {
|
|
12293
12313
|
const n = {
|
|
12294
12314
|
...t
|
|
12295
12315
|
};
|
|
12296
12316
|
let d;
|
|
12297
|
-
return Sr(r) ? (d = await
|
|
12317
|
+
return Sr(r) ? (d = await Xt(r), n.streamBundledFile = function(...u) {
|
|
12298
12318
|
return r.read(...u);
|
|
12299
|
-
}) : d = r,
|
|
12319
|
+
}) : d = r, Kt(d, n);
|
|
12300
12320
|
}
|
|
12301
12321
|
function Sr(r) {
|
|
12302
12322
|
return r && "read" in r && typeof r.read == "function";
|
|
12303
12323
|
}
|
|
12304
|
-
async function
|
|
12324
|
+
async function Xt(r) {
|
|
12305
12325
|
if (!Sr(r))
|
|
12306
12326
|
return r;
|
|
12307
12327
|
const n = await (await r.read("blueprint.json")).text();
|
|
12308
12328
|
return JSON.parse(n);
|
|
12309
12329
|
}
|
|
12310
|
-
function
|
|
12330
|
+
function Kt(r, {
|
|
12311
12331
|
progress: t = new Mr(),
|
|
12312
12332
|
semaphore: n = new br({ concurrency: 3 }),
|
|
12313
12333
|
onStepCompleted: d = () => {
|
|
@@ -12319,7 +12339,7 @@ function Xt(r, {
|
|
|
12319
12339
|
var R, m, W, M, Y, k, K, z, re, c;
|
|
12320
12340
|
r = structuredClone(r), r = {
|
|
12321
12341
|
...r,
|
|
12322
|
-
steps: (r.steps || []).filter(
|
|
12342
|
+
steps: (r.steps || []).filter(ts).filter(ss)
|
|
12323
12343
|
}, r.steps = [...r.steps || [], ...e || []];
|
|
12324
12344
|
for (const b of r.steps)
|
|
12325
12345
|
!b || typeof b != "object" || (b.step === "importFile" ? (b.step = "importWxr", ae.warn(
|
|
@@ -12336,15 +12356,15 @@ function Xt(r, {
|
|
|
12336
12356
|
step: "setSiteOptions",
|
|
12337
12357
|
options: r.siteOptions
|
|
12338
12358
|
}), r.plugins) {
|
|
12339
|
-
const b = r.plugins.map((
|
|
12359
|
+
const b = r.plugins.map((T) => typeof T == "string" ? T.startsWith("https://") ? {
|
|
12340
12360
|
resource: "url",
|
|
12341
|
-
url:
|
|
12361
|
+
url: T
|
|
12342
12362
|
} : {
|
|
12343
12363
|
resource: "wordpress.org/plugins",
|
|
12344
|
-
slug:
|
|
12345
|
-
} :
|
|
12364
|
+
slug: T
|
|
12365
|
+
} : T).map((T) => ({
|
|
12346
12366
|
step: "installPlugin",
|
|
12347
|
-
pluginData:
|
|
12367
|
+
pluginData: T
|
|
12348
12368
|
}));
|
|
12349
12369
|
r.steps.unshift(...b);
|
|
12350
12370
|
}
|
|
@@ -12378,21 +12398,21 @@ function Xt(r, {
|
|
|
12378
12398
|
caption: "Downloading the WordPress Importer plugin"
|
|
12379
12399
|
}
|
|
12380
12400
|
}));
|
|
12381
|
-
const { valid: x, errors: S } =
|
|
12401
|
+
const { valid: x, errors: S } = es(r);
|
|
12382
12402
|
if (!x) {
|
|
12383
12403
|
const b = new Error(
|
|
12384
12404
|
`Invalid blueprint: ${S[0].message} at ${S[0].instancePath}`
|
|
12385
12405
|
);
|
|
12386
12406
|
throw b.errors = S, b;
|
|
12387
12407
|
}
|
|
12388
|
-
const
|
|
12389
|
-
(b,
|
|
12408
|
+
const E = r.steps || [], O = E.reduce(
|
|
12409
|
+
(b, T) => {
|
|
12390
12410
|
var v;
|
|
12391
|
-
return b + (((v =
|
|
12411
|
+
return b + (((v = T.progress) == null ? void 0 : v.weight) || 1);
|
|
12392
12412
|
},
|
|
12393
12413
|
0
|
|
12394
|
-
),
|
|
12395
|
-
(b) =>
|
|
12414
|
+
), j = E.map(
|
|
12415
|
+
(b) => is(b, {
|
|
12396
12416
|
semaphore: n,
|
|
12397
12417
|
rootProgressTracker: t,
|
|
12398
12418
|
totalProgressWeight: O,
|
|
@@ -12402,7 +12422,7 @@ function Xt(r, {
|
|
|
12402
12422
|
);
|
|
12403
12423
|
return {
|
|
12404
12424
|
versions: {
|
|
12405
|
-
php:
|
|
12425
|
+
php: rs(
|
|
12406
12426
|
(K = r.preferredVersions) == null ? void 0 : K.php,
|
|
12407
12427
|
Ur,
|
|
12408
12428
|
Wr
|
|
@@ -12418,17 +12438,17 @@ function Xt(r, {
|
|
|
12418
12438
|
extraLibraries: r.extraLibraries || [],
|
|
12419
12439
|
run: async (b) => {
|
|
12420
12440
|
try {
|
|
12421
|
-
for (const { resources:
|
|
12422
|
-
for (const v of
|
|
12441
|
+
for (const { resources: T } of j)
|
|
12442
|
+
for (const v of T)
|
|
12423
12443
|
v.setPlayground(b), v.isAsync && v.resolve().catch(() => {
|
|
12424
12444
|
});
|
|
12425
|
-
for (const [
|
|
12445
|
+
for (const [T, { run: v, step: P }] of Object.entries(j))
|
|
12426
12446
|
try {
|
|
12427
12447
|
const h = await v(b);
|
|
12428
12448
|
d(h, P);
|
|
12429
12449
|
} catch (h) {
|
|
12430
12450
|
throw new Error(
|
|
12431
|
-
`Error when executing the blueprint step #${
|
|
12451
|
+
`Error when executing the blueprint step #${T} (${JSON.stringify(
|
|
12432
12452
|
P
|
|
12433
12453
|
)}) ${h instanceof Error ? `: ${h.message}` : h}`,
|
|
12434
12454
|
{ cause: h }
|
|
@@ -12436,8 +12456,9 @@ function Xt(r, {
|
|
|
12436
12456
|
}
|
|
12437
12457
|
} finally {
|
|
12438
12458
|
try {
|
|
12459
|
+
const T = await b.pathToInternalUrl(r.landingPage || "/");
|
|
12439
12460
|
await b.goTo(
|
|
12440
|
-
|
|
12461
|
+
"/index.php?playground-redirection-handler&next=" + encodeURIComponent(T)
|
|
12441
12462
|
);
|
|
12442
12463
|
} catch {
|
|
12443
12464
|
}
|
|
@@ -12446,7 +12467,7 @@ function Xt(r, {
|
|
|
12446
12467
|
}
|
|
12447
12468
|
};
|
|
12448
12469
|
}
|
|
12449
|
-
function
|
|
12470
|
+
function es(r) {
|
|
12450
12471
|
var u;
|
|
12451
12472
|
const t = er(r);
|
|
12452
12473
|
if (t)
|
|
@@ -12462,18 +12483,18 @@ function Kt(r) {
|
|
|
12462
12483
|
errors: d
|
|
12463
12484
|
};
|
|
12464
12485
|
}
|
|
12465
|
-
function
|
|
12486
|
+
function rs(r, t, n) {
|
|
12466
12487
|
return r && t.includes(r) ? r : n;
|
|
12467
12488
|
}
|
|
12468
|
-
function
|
|
12489
|
+
function ts(r) {
|
|
12469
12490
|
return !!(typeof r == "object" && r);
|
|
12470
12491
|
}
|
|
12471
|
-
function
|
|
12492
|
+
function ss(r) {
|
|
12472
12493
|
return ["setPhpIniEntry", "request"].includes(r.step) ? (ae.warn(
|
|
12473
12494
|
`The "${r.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`
|
|
12474
12495
|
), !1) : !0;
|
|
12475
12496
|
}
|
|
12476
|
-
function
|
|
12497
|
+
function is(r, {
|
|
12477
12498
|
semaphore: t,
|
|
12478
12499
|
rootProgressTracker: n,
|
|
12479
12500
|
totalProgressWeight: d,
|
|
@@ -12484,20 +12505,20 @@ function ss(r, {
|
|
|
12484
12505
|
const e = n.stage(
|
|
12485
12506
|
(((O = r.progress) == null ? void 0 : O.weight) || 1) / d
|
|
12486
12507
|
), f = {};
|
|
12487
|
-
for (const
|
|
12488
|
-
let R = r[
|
|
12508
|
+
for (const j of Object.keys(r)) {
|
|
12509
|
+
let R = r[j];
|
|
12489
12510
|
Rt(R) && (R = Te.create(R, {
|
|
12490
12511
|
semaphore: t,
|
|
12491
12512
|
corsProxy: u,
|
|
12492
12513
|
streamBundledFile: s
|
|
12493
|
-
})), f[
|
|
12514
|
+
})), f[j] = R;
|
|
12494
12515
|
}
|
|
12495
|
-
const y = async (
|
|
12516
|
+
const y = async (j) => {
|
|
12496
12517
|
var R;
|
|
12497
12518
|
try {
|
|
12498
|
-
return e.fillSlowly(), await
|
|
12499
|
-
|
|
12500
|
-
await
|
|
12519
|
+
return e.fillSlowly(), await Jt[r.step](
|
|
12520
|
+
j,
|
|
12521
|
+
await os(f),
|
|
12501
12522
|
{
|
|
12502
12523
|
tracker: e,
|
|
12503
12524
|
initialCaption: (R = r.progress) == null ? void 0 : R.caption
|
|
@@ -12507,10 +12528,10 @@ function ss(r, {
|
|
|
12507
12528
|
e.finish();
|
|
12508
12529
|
}
|
|
12509
12530
|
}, x = yr(f), S = yr(f).filter(
|
|
12510
|
-
(
|
|
12511
|
-
),
|
|
12512
|
-
for (const
|
|
12513
|
-
|
|
12531
|
+
(j) => j.isAsync
|
|
12532
|
+
), E = 1 / (S.length + 1);
|
|
12533
|
+
for (const j of S)
|
|
12534
|
+
j.progress = e.stage(E);
|
|
12514
12535
|
return { run: y, step: r, resources: x };
|
|
12515
12536
|
}
|
|
12516
12537
|
function yr(r) {
|
|
@@ -12521,7 +12542,7 @@ function yr(r) {
|
|
|
12521
12542
|
}
|
|
12522
12543
|
return t;
|
|
12523
12544
|
}
|
|
12524
|
-
async function
|
|
12545
|
+
async function os(r) {
|
|
12525
12546
|
const t = {};
|
|
12526
12547
|
for (const n in r) {
|
|
12527
12548
|
const d = r[n];
|
|
@@ -12529,10 +12550,10 @@ async function is(r) {
|
|
|
12529
12550
|
}
|
|
12530
12551
|
return t;
|
|
12531
12552
|
}
|
|
12532
|
-
async function
|
|
12553
|
+
async function bs(r, t) {
|
|
12533
12554
|
await r.run(t);
|
|
12534
12555
|
}
|
|
12535
|
-
async function
|
|
12556
|
+
async function ws(r) {
|
|
12536
12557
|
const t = await fetch(r, {
|
|
12537
12558
|
credentials: "omit"
|
|
12538
12559
|
});
|
|
@@ -12550,31 +12571,31 @@ async function bs(r) {
|
|
|
12550
12571
|
})
|
|
12551
12572
|
]);
|
|
12552
12573
|
} catch {
|
|
12553
|
-
if (await
|
|
12574
|
+
if (await as(n))
|
|
12554
12575
|
return Xr.fromArrayBuffer(n);
|
|
12555
12576
|
throw new Error(
|
|
12556
12577
|
`Blueprint file at ${r} is neither a valid JSON nor a ZIP file.`
|
|
12557
12578
|
);
|
|
12558
12579
|
}
|
|
12559
12580
|
}
|
|
12560
|
-
async function
|
|
12581
|
+
async function as(r) {
|
|
12561
12582
|
if (r.byteLength < 4)
|
|
12562
12583
|
return !1;
|
|
12563
12584
|
const t = new Uint8Array(r, 0, 4);
|
|
12564
12585
|
return t[0] === 80 && t[1] === 75 && t[2] === 3 && t[3] === 4;
|
|
12565
12586
|
}
|
|
12566
|
-
function
|
|
12587
|
+
function vs() {
|
|
12567
12588
|
}
|
|
12568
12589
|
export {
|
|
12569
12590
|
Pr as activatePlugin,
|
|
12570
12591
|
_r as activateTheme,
|
|
12571
|
-
|
|
12592
|
+
gs as compileBlueprint,
|
|
12572
12593
|
ft as cp,
|
|
12573
12594
|
Er as defineSiteUrl,
|
|
12574
12595
|
nr as defineWpConfigConsts,
|
|
12575
12596
|
lt as enableMultisite,
|
|
12576
12597
|
bt as exportWXR,
|
|
12577
|
-
|
|
12598
|
+
Xt as getBlueprintDeclaration,
|
|
12578
12599
|
qr as importThemeStarterContent,
|
|
12579
12600
|
gt as importWordPressFiles,
|
|
12580
12601
|
yt as importWxr,
|
|
@@ -12586,15 +12607,15 @@ export {
|
|
|
12586
12607
|
dt as mv,
|
|
12587
12608
|
it as request,
|
|
12588
12609
|
_t as resetData,
|
|
12589
|
-
|
|
12610
|
+
ws as resolveRemoteBlueprint,
|
|
12590
12611
|
kr as rm,
|
|
12591
12612
|
ct as rmdir,
|
|
12592
|
-
|
|
12613
|
+
bs as runBlueprintSteps,
|
|
12593
12614
|
rt as runPHP,
|
|
12594
12615
|
tt as runPHPWithOptions,
|
|
12595
12616
|
st as runSql,
|
|
12596
12617
|
kt as runWpInstallationWizard,
|
|
12597
|
-
|
|
12618
|
+
vs as setPluginProxyURL,
|
|
12598
12619
|
qt as setSiteLanguage,
|
|
12599
12620
|
Or as setSiteOptions,
|
|
12600
12621
|
fr as unzip,
|