@wp-playground/blueprints 2.0.8 → 2.0.10

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.
Files changed (4) hide show
  1. package/index.cjs +8 -8
  2. package/index.js +299 -298
  3. package/index.js.map +1 -1
  4. 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 Dr, Semaphore as br } from "@php-wasm/util";
4
- import { defineWpConfigConstants as Cr, ensureWpConfig as Ir } from "@wp-playground/wordpress";
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 Cr(
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 j = ie(
644
+ const E = ie(
645
645
  s,
646
646
  S
647
647
  );
648
- await cr(r, j);
648
+ await cr(r, E);
649
649
  const O = ie(e, S);
650
- await r.fileExists(O) && (await r.mkdir(gr(j)), await r.mv(O, j));
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, Dr()), x = ie(y, "assets", e);
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 j = S.length === 1 && await r.isDir(S[0]);
709
- let O, T = "";
710
- j ? (T = S[0], O = S[0].split("/").pop()) : (T = x, O = e), u && u.length && (O = u);
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(T, R), {
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 T = new Uint8Array(await O.arrayBuffer(), 0, 4);
760
- return T[0] === 80 && T[1] === 75 && T[2] === 3 && T[3] === 4;
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 T = await $r(r, {
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 = T.assetFolderPath, x = T.assetFolderName;
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 j = t.name.split("/").pop() || "theme.zip";
814
- y = rr(j), s == null || s.tracker.setCaption(`Installing the ${y} theme`), f = (await $r(r, {
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 j = ie(
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, j, t.files, {
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: T } of f)
1027
+ for (const { slug: O, version: j } of f)
1028
1028
  s.push({
1029
- url: `https://downloads.wordpress.org/translation/plugin/${O}/${T}/${t}.zip`,
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: T } of x)
1050
+ for (const { slug: O, version: j } of x)
1051
1051
  s.push({
1052
- url: `https://downloads.wordpress.org/translation/theme/${O}/${T}/${t}.zip`,
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 }), j = s.map(
1057
- ({ url: O, type: T }) => S.run(async () => {
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 ${T}: ${R.statusText}`
1062
+ `Failed to download translations for ${j}: ${R.statusText}`
1063
1063
  );
1064
1064
  let m = `${d}/wp-content/languages`;
1065
- T === "plugin" ? m += "/plugins" : T === "theme" && (m += "/themes"), await wr(
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}-${T}.zip`
1069
+ `${t}-${j}.zip`
1070
1070
  ),
1071
1071
  m
1072
1072
  );
1073
1073
  } catch (R) {
1074
- if (T === "core")
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 ${T}: ${R}`
1079
+ `Error downloading translations for ${j}: ${R}`
1080
1080
  );
1081
1081
  }
1082
1082
  })
1083
1083
  );
1084
- await Promise.all(j);
1084
+ await Promise.all(E);
1085
1085
  }, $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1086
1086
  __proto__: null,
1087
1087
  activatePlugin: Pr,
@@ -1172,7 +1172,7 @@ class Te {
1172
1172
  e = new xt(t, d, { corsProxy: u });
1173
1173
  break;
1174
1174
  case "git:directory":
1175
- e = new Dt(t, d, {
1175
+ e = new Ct(t, d, {
1176
1176
  corsProxy: u
1177
1177
  });
1178
1178
  break;
@@ -1391,7 +1391,7 @@ class xt extends dr {
1391
1391
  return this.resource.caption ?? super.caption;
1392
1392
  }
1393
1393
  }
1394
- class Dt extends Te {
1394
+ class Ct extends Te {
1395
1395
  constructor(t, n, d) {
1396
1396
  super(), this.reference = t, this._progress = n, this.options = d;
1397
1397
  }
@@ -1402,7 +1402,7 @@ class Dt extends Te {
1402
1402
  type: "infer"
1403
1403
  }), d = await Hr(t, n), u = this.reference.path.replace(/^\/+/, ""), s = Zr(d, u);
1404
1404
  let e = await Yr(t, n, s);
1405
- return e = Ct(
1405
+ return e = Dt(
1406
1406
  e,
1407
1407
  (y) => y.substring(u.length).replace(/^\/+/, "")
1408
1408
  ), {
@@ -1415,7 +1415,7 @@ class Dt extends Te {
1415
1415
  return this.reference.path.split("/").pop();
1416
1416
  }
1417
1417
  }
1418
- function Ct(r, t) {
1418
+ function Dt(r, t) {
1419
1419
  return Object.fromEntries(
1420
1420
  Object.entries(r).map(([n, d]) => [t(n), d])
1421
1421
  );
@@ -1694,44 +1694,44 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
1694
1694
  let c = r.resource;
1695
1695
  const b = e;
1696
1696
  if (typeof c != "string") {
1697
- const E = {
1697
+ const T = {
1698
1698
  instancePath: t + "/resource",
1699
1699
  schemaPath: "#/definitions/VFSReference/properties/resource/type",
1700
1700
  keyword: "type",
1701
1701
  params: { type: "string" },
1702
1702
  message: "must be string"
1703
1703
  };
1704
- s === null ? s = [E] : s.push(E), e++;
1704
+ s === null ? s = [T] : s.push(T), e++;
1705
1705
  }
1706
1706
  if (c !== "vfs") {
1707
- const E = {
1707
+ const T = {
1708
1708
  instancePath: t + "/resource",
1709
1709
  schemaPath: "#/definitions/VFSReference/properties/resource/const",
1710
1710
  keyword: "const",
1711
1711
  params: { allowedValue: "vfs" },
1712
1712
  message: "must be equal to constant"
1713
1713
  };
1714
- s === null ? s = [E] : s.push(E), e++;
1714
+ s === null ? s = [T] : s.push(T), e++;
1715
1715
  }
1716
- var j = b === e;
1716
+ var E = b === e;
1717
1717
  } else
1718
- var j = !0;
1719
- if (j)
1718
+ var E = !0;
1719
+ if (E)
1720
1720
  if (r.path !== void 0) {
1721
1721
  const c = e;
1722
1722
  if (typeof r.path != "string") {
1723
- const E = {
1723
+ const T = {
1724
1724
  instancePath: t + "/path",
1725
1725
  schemaPath: "#/definitions/VFSReference/properties/path/type",
1726
1726
  keyword: "type",
1727
1727
  params: { type: "string" },
1728
1728
  message: "must be string"
1729
1729
  };
1730
- s === null ? s = [E] : s.push(E), e++;
1730
+ s === null ? s = [T] : s.push(T), e++;
1731
1731
  }
1732
- var j = c === e;
1732
+ var E = c === e;
1733
1733
  } else
1734
- var j = !0;
1734
+ var E = !0;
1735
1735
  }
1736
1736
  }
1737
1737
  } else {
@@ -1751,16 +1751,16 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
1751
1751
  if (r && typeof r == "object" && !Array.isArray(r)) {
1752
1752
  let b;
1753
1753
  if (r.resource === void 0 && (b = "resource") || r.name === void 0 && (b = "name") || r.contents === void 0 && (b = "contents")) {
1754
- const E = {
1754
+ const T = {
1755
1755
  instancePath: t,
1756
1756
  schemaPath: "#/definitions/LiteralReference/required",
1757
1757
  keyword: "required",
1758
1758
  params: { missingProperty: b },
1759
1759
  message: "must have required property '" + b + "'"
1760
1760
  };
1761
- s === null ? s = [E] : s.push(E), e++;
1761
+ s === null ? s = [T] : s.push(T), e++;
1762
1762
  } else {
1763
- const E = e;
1763
+ const T = e;
1764
1764
  for (const v in r)
1765
1765
  if (!(v === "resource" || v === "name" || v === "contents")) {
1766
1766
  const P = {
@@ -1773,7 +1773,7 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
1773
1773
  s === null ? s = [P] : s.push(P), e++;
1774
1774
  break;
1775
1775
  }
1776
- if (E === e) {
1776
+ if (T === e) {
1777
1777
  if (r.resource !== void 0) {
1778
1778
  let v = r.resource;
1779
1779
  const P = e;
@@ -1797,10 +1797,10 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
1797
1797
  };
1798
1798
  s === null ? s = [h] : s.push(h), e++;
1799
1799
  }
1800
- var T = P === e;
1800
+ var j = P === e;
1801
1801
  } else
1802
- var T = !0;
1803
- if (T) {
1802
+ var j = !0;
1803
+ if (j) {
1804
1804
  if (r.name !== void 0) {
1805
1805
  const v = e;
1806
1806
  if (typeof r.name != "string") {
@@ -1813,10 +1813,10 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
1813
1813
  };
1814
1814
  s === null ? s = [h] : s.push(h), e++;
1815
1815
  }
1816
- var T = v === e;
1816
+ var j = v === e;
1817
1817
  } else
1818
- var T = !0;
1819
- if (T)
1818
+ var j = !0;
1819
+ if (j)
1820
1820
  if (r.contents !== void 0) {
1821
1821
  let v = r.contents;
1822
1822
  const P = e, h = e;
@@ -1851,15 +1851,15 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
1851
1851
  s === null ? s = [U] : s.push(U), e++;
1852
1852
  } else {
1853
1853
  const U = e;
1854
- for (const C in v)
1855
- if (!(C === "BYTES_PER_ELEMENT" || C === "buffer" || C === "byteLength" || C === "byteOffset" || C === "length")) {
1856
- let I = v[C];
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];
1857
1857
  const ee = e;
1858
1858
  if (!(typeof I == "number" && isFinite(
1859
1859
  I
1860
1860
  ))) {
1861
1861
  const A = {
1862
- instancePath: t + "/contents/" + C.replace(
1862
+ instancePath: t + "/contents/" + D.replace(
1863
1863
  /~/g,
1864
1864
  "~0"
1865
1865
  ).replace(
@@ -1885,10 +1885,10 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
1885
1885
  }
1886
1886
  if (U === e) {
1887
1887
  if (v.BYTES_PER_ELEMENT !== void 0) {
1888
- let C = v.BYTES_PER_ELEMENT;
1888
+ let D = v.BYTES_PER_ELEMENT;
1889
1889
  const I = e;
1890
- if (!(typeof C == "number" && isFinite(
1891
- C
1890
+ if (!(typeof D == "number" && isFinite(
1891
+ D
1892
1892
  ))) {
1893
1893
  const ee = {
1894
1894
  instancePath: t + "/contents/BYTES_PER_ELEMENT",
@@ -1910,14 +1910,14 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
1910
1910
  var W = !0;
1911
1911
  if (W) {
1912
1912
  if (v.buffer !== void 0) {
1913
- let C = v.buffer;
1913
+ let D = v.buffer;
1914
1914
  const I = e;
1915
1915
  if (e === I)
1916
- if (C && typeof C == "object" && !Array.isArray(
1917
- C
1916
+ if (D && typeof D == "object" && !Array.isArray(
1917
+ D
1918
1918
  )) {
1919
1919
  let A;
1920
- if (C.byteLength === void 0 && (A = "byteLength")) {
1920
+ if (D.byteLength === void 0 && (A = "byteLength")) {
1921
1921
  const Z = {
1922
1922
  instancePath: t + "/contents/buffer",
1923
1923
  schemaPath: "#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",
@@ -1934,7 +1934,7 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
1934
1934
  ), e++;
1935
1935
  } else {
1936
1936
  const Z = e;
1937
- for (const B in C)
1937
+ for (const B in D)
1938
1938
  if (B !== "byteLength") {
1939
1939
  const V = {
1940
1940
  instancePath: t + "/contents/buffer",
@@ -1952,8 +1952,8 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
1952
1952
  ), e++;
1953
1953
  break;
1954
1954
  }
1955
- if (Z === e && C.byteLength !== void 0) {
1956
- let B = C.byteLength;
1955
+ if (Z === e && D.byteLength !== void 0) {
1956
+ let B = D.byteLength;
1957
1957
  if (!(typeof B == "number" && isFinite(
1958
1958
  B
1959
1959
  ))) {
@@ -1995,10 +1995,10 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
1995
1995
  var W = !0;
1996
1996
  if (W) {
1997
1997
  if (v.byteLength !== void 0) {
1998
- let C = v.byteLength;
1998
+ let D = v.byteLength;
1999
1999
  const I = e;
2000
- if (!(typeof C == "number" && isFinite(
2001
- C
2000
+ if (!(typeof D == "number" && isFinite(
2001
+ D
2002
2002
  ))) {
2003
2003
  const A = {
2004
2004
  instancePath: t + "/contents/byteLength",
@@ -2020,10 +2020,10 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
2020
2020
  var W = !0;
2021
2021
  if (W) {
2022
2022
  if (v.byteOffset !== void 0) {
2023
- let C = v.byteOffset;
2023
+ let D = v.byteOffset;
2024
2024
  const I = e;
2025
- if (!(typeof C == "number" && isFinite(
2026
- C
2025
+ if (!(typeof D == "number" && isFinite(
2026
+ D
2027
2027
  ))) {
2028
2028
  const A = {
2029
2029
  instancePath: t + "/contents/byteOffset",
@@ -2045,10 +2045,10 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
2045
2045
  var W = !0;
2046
2046
  if (W)
2047
2047
  if (v.length !== void 0) {
2048
- let C = v.length;
2048
+ let D = v.length;
2049
2049
  const I = e;
2050
- if (!(typeof C == "number" && isFinite(
2051
- C
2050
+ if (!(typeof D == "number" && isFinite(
2051
+ D
2052
2052
  ))) {
2053
2053
  const A = {
2054
2054
  instancePath: t + "/contents/length",
@@ -2098,9 +2098,9 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
2098
2098
  };
2099
2099
  s === null ? s = [L] : s.push(L), e++;
2100
2100
  }
2101
- var T = P === e;
2101
+ var j = P === e;
2102
2102
  } else
2103
- var T = !0;
2103
+ var j = !0;
2104
2104
  }
2105
2105
  }
2106
2106
  }
@@ -2219,20 +2219,20 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
2219
2219
  const $ = e;
2220
2220
  for (const L in r)
2221
2221
  if (!(L === "resource" || L === "slug")) {
2222
- const D = {
2222
+ const C = {
2223
2223
  instancePath: t,
2224
2224
  schemaPath: "#/definitions/CorePluginReference/additionalProperties",
2225
2225
  keyword: "additionalProperties",
2226
2226
  params: { additionalProperty: L },
2227
2227
  message: "must NOT have additional properties"
2228
2228
  };
2229
- s === null ? s = [D] : s.push(D), e++;
2229
+ s === null ? s = [C] : s.push(C), e++;
2230
2230
  break;
2231
2231
  }
2232
2232
  if ($ === e) {
2233
2233
  if (r.resource !== void 0) {
2234
2234
  let L = r.resource;
2235
- const D = e;
2235
+ const C = e;
2236
2236
  if (typeof L != "string") {
2237
2237
  const F = {
2238
2238
  instancePath: t + "/resource",
@@ -2255,7 +2255,7 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
2255
2255
  };
2256
2256
  s === null ? s = [F] : s.push(F), e++;
2257
2257
  }
2258
- var Y = D === e;
2258
+ var Y = C === e;
2259
2259
  } else
2260
2260
  var Y = !0;
2261
2261
  if (Y)
@@ -2291,21 +2291,21 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
2291
2291
  const g = e;
2292
2292
  if (e === e)
2293
2293
  if (r && typeof r == "object" && !Array.isArray(r)) {
2294
- let D;
2295
- if (r.resource === void 0 && (D = "resource") || r.url === void 0 && (D = "url")) {
2294
+ let C;
2295
+ if (r.resource === void 0 && (C = "resource") || r.url === void 0 && (C = "url")) {
2296
2296
  const F = {
2297
2297
  instancePath: t,
2298
2298
  schemaPath: "#/definitions/UrlReference/required",
2299
2299
  keyword: "required",
2300
- params: { missingProperty: D },
2301
- message: "must have required property '" + D + "'"
2300
+ params: { missingProperty: C },
2301
+ message: "must have required property '" + C + "'"
2302
2302
  };
2303
2303
  s === null ? s = [F] : s.push(F), e++;
2304
2304
  } else {
2305
2305
  const F = e;
2306
2306
  for (const U in r)
2307
2307
  if (!(U === "resource" || U === "url" || U === "caption")) {
2308
- const C = {
2308
+ const D = {
2309
2309
  instancePath: t,
2310
2310
  schemaPath: "#/definitions/UrlReference/additionalProperties",
2311
2311
  keyword: "additionalProperties",
@@ -2314,13 +2314,13 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
2314
2314
  },
2315
2315
  message: "must NOT have additional properties"
2316
2316
  };
2317
- s === null ? s = [C] : s.push(C), e++;
2317
+ s === null ? s = [D] : s.push(D), e++;
2318
2318
  break;
2319
2319
  }
2320
2320
  if (F === e) {
2321
2321
  if (r.resource !== void 0) {
2322
2322
  let U = r.resource;
2323
- const C = e;
2323
+ const D = e;
2324
2324
  if (typeof U != "string") {
2325
2325
  const I = {
2326
2326
  instancePath: t + "/resource",
@@ -2341,7 +2341,7 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
2341
2341
  };
2342
2342
  s === null ? s = [I] : s.push(I), e++;
2343
2343
  }
2344
- var k = C === e;
2344
+ var k = D === e;
2345
2345
  } else
2346
2346
  var k = !0;
2347
2347
  if (k) {
@@ -2382,28 +2382,28 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
2382
2382
  }
2383
2383
  }
2384
2384
  } else {
2385
- const D = {
2385
+ const C = {
2386
2386
  instancePath: t,
2387
2387
  schemaPath: "#/definitions/UrlReference/type",
2388
2388
  keyword: "type",
2389
2389
  params: { type: "object" },
2390
2390
  message: "must be object"
2391
2391
  };
2392
- s === null ? s = [D] : s.push(D), e++;
2392
+ s === null ? s = [C] : s.push(C), e++;
2393
2393
  }
2394
2394
  var O = g === e;
2395
2395
  if (y = y || O, !y) {
2396
- const D = e;
2396
+ const C = e;
2397
2397
  if (e === e)
2398
2398
  if (r && typeof r == "object" && !Array.isArray(r)) {
2399
- let C;
2400
- if (r.resource === void 0 && (C = "resource") || r.path === void 0 && (C = "path")) {
2399
+ let D;
2400
+ if (r.resource === void 0 && (D = "resource") || r.path === void 0 && (D = "path")) {
2401
2401
  const I = {
2402
2402
  instancePath: t,
2403
2403
  schemaPath: "#/definitions/BundledReference/required",
2404
2404
  keyword: "required",
2405
- params: { missingProperty: C },
2406
- message: "must have required property '" + C + "'"
2405
+ params: { missingProperty: D },
2406
+ message: "must have required property '" + D + "'"
2407
2407
  };
2408
2408
  s === null ? s = [I] : s.push(I), e++;
2409
2409
  } else {
@@ -2472,16 +2472,16 @@ function X(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
2472
2472
  }
2473
2473
  }
2474
2474
  } else {
2475
- const C = {
2475
+ const D = {
2476
2476
  instancePath: t,
2477
2477
  schemaPath: "#/definitions/BundledReference/type",
2478
2478
  keyword: "type",
2479
2479
  params: { type: "object" },
2480
2480
  message: "must be object"
2481
2481
  };
2482
- s === null ? s = [C] : s.push(C), e++;
2482
+ s === null ? s = [D] : s.push(D), e++;
2483
2483
  }
2484
- var O = D === e;
2484
+ var O = C === e;
2485
2485
  y = y || O;
2486
2486
  }
2487
2487
  }
@@ -3237,8 +3237,8 @@ function Se(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3237
3237
  if (r && typeof r == "object" && !Array.isArray(r))
3238
3238
  for (const x in r) {
3239
3239
  let S = r[x];
3240
- const j = e, O = e;
3241
- let T = !1;
3240
+ const E = e, O = e;
3241
+ let j = !1;
3242
3242
  const R = e;
3243
3243
  or.validate(S, {
3244
3244
  instancePath: t + "/" + x.replace(/~/g, "~0").replace(/\//g, "~1"),
@@ -3247,7 +3247,7 @@ function Se(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3247
3247
  rootData: u
3248
3248
  }) || (s = s === null ? or.validate.errors : s.concat(or.validate.errors), e = s.length);
3249
3249
  var f = R === e;
3250
- if (T = T || f, !T) {
3250
+ if (j = j || f, !j) {
3251
3251
  const m = e;
3252
3252
  if (!(S && typeof S == "object" && !Array.isArray(S)) && typeof S != "string") {
3253
3253
  const M = {
@@ -3262,9 +3262,9 @@ function Se(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3262
3262
  s === null ? s = [M] : s.push(M), e++;
3263
3263
  }
3264
3264
  var f = m === e;
3265
- T = T || f;
3265
+ j = j || f;
3266
3266
  }
3267
- if (T)
3267
+ if (j)
3268
3268
  e = O, s !== null && (O ? s.length = O : s = null);
3269
3269
  else {
3270
3270
  const m = {
@@ -3276,7 +3276,7 @@ function Se(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3276
3276
  };
3277
3277
  return s === null ? s = [m] : s.push(m), e++, Se.errors = s, !1;
3278
3278
  }
3279
- var y = j === e;
3279
+ var y = E === e;
3280
3280
  if (!y)
3281
3281
  break;
3282
3282
  }
@@ -3323,7 +3323,7 @@ function Oe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3323
3323
  if (x === e) {
3324
3324
  if (r.resource !== void 0) {
3325
3325
  let S = r.resource;
3326
- const j = e;
3326
+ const E = e;
3327
3327
  if (typeof S != "string")
3328
3328
  return Oe.errors = [
3329
3329
  {
@@ -3346,7 +3346,7 @@ function Oe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3346
3346
  message: "must be equal to constant"
3347
3347
  }
3348
3348
  ], !1;
3349
- var f = j === e;
3349
+ var f = E === e;
3350
3350
  } else
3351
3351
  var f = !0;
3352
3352
  if (f) {
@@ -3399,14 +3399,14 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3399
3399
  const x = e;
3400
3400
  if (e === e)
3401
3401
  if (r && typeof r == "object" && !Array.isArray(r)) {
3402
- let T;
3403
- if (r.resource === void 0 && (T = "resource") || r.url === void 0 && (T = "url") || r.ref === void 0 && (T = "ref") || r.path === void 0 && (T = "path")) {
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")) {
3404
3404
  const R = {
3405
3405
  instancePath: t,
3406
3406
  schemaPath: "#/definitions/GitDirectoryReference/required",
3407
3407
  keyword: "required",
3408
- params: { missingProperty: T },
3409
- message: "must have required property '" + T + "'"
3408
+ params: { missingProperty: j },
3409
+ message: "must have required property '" + j + "'"
3410
3410
  };
3411
3411
  s === null ? s = [R] : s.push(R), e++;
3412
3412
  } else {
@@ -3447,10 +3447,10 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3447
3447
  };
3448
3448
  s === null ? s = [M] : s.push(M), e++;
3449
3449
  }
3450
- var j = W === e;
3450
+ var E = W === e;
3451
3451
  } else
3452
- var j = !0;
3453
- if (j) {
3452
+ var E = !0;
3453
+ if (E) {
3454
3454
  if (r.url !== void 0) {
3455
3455
  const m = e;
3456
3456
  if (typeof r.url != "string") {
@@ -3463,10 +3463,10 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3463
3463
  };
3464
3464
  s === null ? s = [M] : s.push(M), e++;
3465
3465
  }
3466
- var j = m === e;
3466
+ var E = m === e;
3467
3467
  } else
3468
- var j = !0;
3469
- if (j) {
3468
+ var E = !0;
3469
+ if (E) {
3470
3470
  if (r.ref !== void 0) {
3471
3471
  const m = e;
3472
3472
  if (typeof r.ref != "string") {
@@ -3479,10 +3479,10 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3479
3479
  };
3480
3480
  s === null ? s = [M] : s.push(M), e++;
3481
3481
  }
3482
- var j = m === e;
3482
+ var E = m === e;
3483
3483
  } else
3484
- var j = !0;
3485
- if (j)
3484
+ var E = !0;
3485
+ if (E)
3486
3486
  if (r.path !== void 0) {
3487
3487
  const m = e;
3488
3488
  if (typeof r.path != "string") {
@@ -3495,46 +3495,46 @@ function ge(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3495
3495
  };
3496
3496
  s === null ? s = [M] : s.push(M), e++;
3497
3497
  }
3498
- var j = m === e;
3498
+ var E = m === e;
3499
3499
  } else
3500
- var j = !0;
3500
+ var E = !0;
3501
3501
  }
3502
3502
  }
3503
3503
  }
3504
3504
  }
3505
3505
  } else {
3506
- const T = {
3506
+ const j = {
3507
3507
  instancePath: t,
3508
3508
  schemaPath: "#/definitions/GitDirectoryReference/type",
3509
3509
  keyword: "type",
3510
3510
  params: { type: "object" },
3511
3511
  message: "must be object"
3512
3512
  };
3513
- s === null ? s = [T] : s.push(T), e++;
3513
+ s === null ? s = [j] : s.push(j), e++;
3514
3514
  }
3515
3515
  var O = x === e;
3516
3516
  if (y = y || O, !y) {
3517
- const T = e;
3517
+ const j = e;
3518
3518
  Oe(r, {
3519
3519
  instancePath: t,
3520
3520
  parentData: n,
3521
3521
  parentDataProperty: d,
3522
3522
  rootData: u
3523
3523
  }) || (s = s === null ? Oe.errors : s.concat(Oe.errors), e = s.length);
3524
- var O = T === e;
3524
+ var O = j === e;
3525
3525
  y = y || O;
3526
3526
  }
3527
3527
  if (y)
3528
3528
  e = f, s !== null && (f ? s.length = f : s = null);
3529
3529
  else {
3530
- const T = {
3530
+ const j = {
3531
3531
  instancePath: t,
3532
3532
  schemaPath: "#/anyOf",
3533
3533
  keyword: "anyOf",
3534
3534
  params: {},
3535
3535
  message: "must match a schema in anyOf"
3536
3536
  };
3537
- return s === null ? s = [T] : s.push(T), e++, ge.errors = s, !1;
3537
+ return s === null ? s = [j] : s.push(j), e++, ge.errors = s, !1;
3538
3538
  }
3539
3539
  return ge.errors = s, e === 0;
3540
3540
  }
@@ -3662,19 +3662,19 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3662
3662
  let re = !1;
3663
3663
  const c = e;
3664
3664
  if (typeof k != "string") {
3665
- const E = {
3665
+ const T = {
3666
3666
  instancePath: t + "/body",
3667
3667
  schemaPath: "#/properties/body/anyOf/0/type",
3668
3668
  keyword: "type",
3669
3669
  params: { type: "string" },
3670
3670
  message: "must be string"
3671
3671
  };
3672
- s === null ? s = [E] : s.push(E), e++;
3672
+ s === null ? s = [T] : s.push(T), e++;
3673
3673
  }
3674
3674
  var x = c === e;
3675
3675
  if (re = re || x, !re) {
3676
- const E = e;
3677
- if (e === E)
3676
+ const T = e;
3677
+ if (e === T)
3678
3678
  if (k && typeof k == "object" && !Array.isArray(k)) {
3679
3679
  let P;
3680
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")) {
@@ -3744,10 +3744,10 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3744
3744
  $
3745
3745
  ), e++;
3746
3746
  }
3747
- var j = g === e;
3747
+ var E = g === e;
3748
3748
  } else
3749
- var j = !0;
3750
- if (j) {
3749
+ var E = !0;
3750
+ if (E) {
3751
3751
  if (k.buffer !== void 0) {
3752
3752
  let w = k.buffer;
3753
3753
  const g = e;
@@ -3757,7 +3757,7 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3757
3757
  )) {
3758
3758
  let L;
3759
3759
  if (w.byteLength === void 0 && (L = "byteLength")) {
3760
- const D = {
3760
+ const C = {
3761
3761
  instancePath: t + "/body/buffer",
3762
3762
  schemaPath: "#/properties/body/anyOf/1/properties/buffer/required",
3763
3763
  keyword: "required",
@@ -3767,12 +3767,12 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3767
3767
  message: "must have required property '" + L + "'"
3768
3768
  };
3769
3769
  s === null ? s = [
3770
- D
3770
+ C
3771
3771
  ] : s.push(
3772
- D
3772
+ C
3773
3773
  ), e++;
3774
3774
  } else {
3775
- const D = e;
3775
+ const C = e;
3776
3776
  for (const F in w)
3777
3777
  if (F !== "byteLength") {
3778
3778
  const U = {
@@ -3791,7 +3791,7 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3791
3791
  ), e++;
3792
3792
  break;
3793
3793
  }
3794
- if (D === e && w.byteLength !== void 0) {
3794
+ if (C === e && w.byteLength !== void 0) {
3795
3795
  let F = w.byteLength;
3796
3796
  if (!(typeof F == "number" && isFinite(
3797
3797
  F
@@ -3829,10 +3829,10 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3829
3829
  L
3830
3830
  ), e++;
3831
3831
  }
3832
- var j = g === e;
3832
+ var E = g === e;
3833
3833
  } else
3834
- var j = !0;
3835
- if (j) {
3834
+ var E = !0;
3835
+ if (E) {
3836
3836
  if (k.byteLength !== void 0) {
3837
3837
  let w = k.byteLength;
3838
3838
  const g = e;
@@ -3854,10 +3854,10 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3854
3854
  L
3855
3855
  ), e++;
3856
3856
  }
3857
- var j = g === e;
3857
+ var E = g === e;
3858
3858
  } else
3859
- var j = !0;
3860
- if (j) {
3859
+ var E = !0;
3860
+ if (E) {
3861
3861
  if (k.byteOffset !== void 0) {
3862
3862
  let w = k.byteOffset;
3863
3863
  const g = e;
@@ -3879,10 +3879,10 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3879
3879
  L
3880
3880
  ), e++;
3881
3881
  }
3882
- var j = g === e;
3882
+ var E = g === e;
3883
3883
  } else
3884
- var j = !0;
3885
- if (j)
3884
+ var E = !0;
3885
+ if (E)
3886
3886
  if (k.length !== void 0) {
3887
3887
  let w = k.length;
3888
3888
  const g = e;
@@ -3904,9 +3904,9 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3904
3904
  L
3905
3905
  ), e++;
3906
3906
  }
3907
- var j = g === e;
3907
+ var E = g === e;
3908
3908
  } else
3909
- var j = !0;
3909
+ var E = !0;
3910
3910
  }
3911
3911
  }
3912
3912
  }
@@ -3922,7 +3922,7 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3922
3922
  };
3923
3923
  s === null ? s = [P] : s.push(P), e++;
3924
3924
  }
3925
- var x = E === e;
3925
+ var x = T === e;
3926
3926
  if (re = re || x, !re) {
3927
3927
  const P = e;
3928
3928
  if (e === P)
@@ -3930,7 +3930,7 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3930
3930
  for (const w in k) {
3931
3931
  let g = k[w];
3932
3932
  const $ = e, L = e;
3933
- let D = !1;
3933
+ let C = !1;
3934
3934
  const F = e;
3935
3935
  if (typeof g != "string") {
3936
3936
  const U = {
@@ -3955,7 +3955,7 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
3955
3955
  ), e++;
3956
3956
  }
3957
3957
  var O = F === e;
3958
- if (D = D || O, !D) {
3958
+ if (C = C || O, !C) {
3959
3959
  const U = e;
3960
3960
  if (e === U)
3961
3961
  if (g && typeof g == "object" && !Array.isArray(
@@ -4019,8 +4019,8 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
4019
4019
  V
4020
4020
  ), e++;
4021
4021
  }
4022
- var T = B === e;
4023
- if (!T)
4022
+ var j = B === e;
4023
+ if (!j)
4024
4024
  break;
4025
4025
  }
4026
4026
  if (ee === e) {
@@ -4284,7 +4284,7 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
4284
4284
  ), e++;
4285
4285
  }
4286
4286
  var O = U === e;
4287
- if (D = D || O, !D) {
4287
+ if (C = C || O, !C) {
4288
4288
  const I = e;
4289
4289
  if (e === I)
4290
4290
  if (g && typeof g == "object" && !Array.isArray(
@@ -4512,10 +4512,10 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
4512
4512
  ), e++;
4513
4513
  }
4514
4514
  var O = I === e;
4515
- D = D || O;
4515
+ C = C || O;
4516
4516
  }
4517
4517
  }
4518
- if (D)
4518
+ if (C)
4519
4519
  e = L, s !== null && (L ? s.length = L : s = null);
4520
4520
  else {
4521
4521
  const U = {
@@ -4560,14 +4560,14 @@ function ye(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
4560
4560
  if (re)
4561
4561
  e = z, s !== null && (z ? s.length = z : s = null);
4562
4562
  else {
4563
- const E = {
4563
+ const T = {
4564
4564
  instancePath: t + "/body",
4565
4565
  schemaPath: "#/properties/body/anyOf",
4566
4566
  keyword: "anyOf",
4567
4567
  params: {},
4568
4568
  message: "must match a schema in anyOf"
4569
4569
  };
4570
- return s === null ? s = [E] : s.push(E), e++, ye.errors = s, !1;
4570
+ return s === null ? s = [T] : s.push(T), e++, ye.errors = s, !1;
4571
4571
  }
4572
4572
  var f = K === e;
4573
4573
  } else
@@ -4823,15 +4823,15 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
4823
4823
  s === null ? s = [b] : s.push(b), e++;
4824
4824
  } else {
4825
4825
  const b = e;
4826
- for (const E in m)
4827
- if (!(E === "BYTES_PER_ELEMENT" || E === "buffer" || E === "byteLength" || E === "byteOffset" || E === "length")) {
4828
- let v = m[E];
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];
4829
4829
  const P = e;
4830
4830
  if (!(typeof v == "number" && isFinite(
4831
4831
  v
4832
4832
  ))) {
4833
4833
  const h = {
4834
- instancePath: t + "/body/" + E.replace(
4834
+ instancePath: t + "/body/" + T.replace(
4835
4835
  /~/g,
4836
4836
  "~0"
4837
4837
  ).replace(
@@ -4857,10 +4857,10 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
4857
4857
  }
4858
4858
  if (b === e) {
4859
4859
  if (m.BYTES_PER_ELEMENT !== void 0) {
4860
- let E = m.BYTES_PER_ELEMENT;
4860
+ let T = m.BYTES_PER_ELEMENT;
4861
4861
  const v = e;
4862
- if (!(typeof E == "number" && isFinite(
4863
- E
4862
+ if (!(typeof T == "number" && isFinite(
4863
+ T
4864
4864
  ))) {
4865
4865
  const P = {
4866
4866
  instancePath: t + "/body/BYTES_PER_ELEMENT",
@@ -4877,19 +4877,19 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
4877
4877
  P
4878
4878
  ), e++;
4879
4879
  }
4880
- var j = v === e;
4880
+ var E = v === e;
4881
4881
  } else
4882
- var j = !0;
4883
- if (j) {
4882
+ var E = !0;
4883
+ if (E) {
4884
4884
  if (m.buffer !== void 0) {
4885
- let E = m.buffer;
4885
+ let T = m.buffer;
4886
4886
  const v = e;
4887
4887
  if (e === v)
4888
- if (E && typeof E == "object" && !Array.isArray(
4889
- E
4888
+ if (T && typeof T == "object" && !Array.isArray(
4889
+ T
4890
4890
  )) {
4891
4891
  let h;
4892
- if (E.byteLength === void 0 && (h = "byteLength")) {
4892
+ if (T.byteLength === void 0 && (h = "byteLength")) {
4893
4893
  const w = {
4894
4894
  instancePath: t + "/body/buffer",
4895
4895
  schemaPath: "#/properties/body/anyOf/1/properties/buffer/required",
@@ -4906,7 +4906,7 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
4906
4906
  ), e++;
4907
4907
  } else {
4908
4908
  const w = e;
4909
- for (const g in E)
4909
+ for (const g in T)
4910
4910
  if (g !== "byteLength") {
4911
4911
  const $ = {
4912
4912
  instancePath: t + "/body/buffer",
@@ -4924,8 +4924,8 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
4924
4924
  ), e++;
4925
4925
  break;
4926
4926
  }
4927
- if (w === e && E.byteLength !== void 0) {
4928
- let g = E.byteLength;
4927
+ if (w === e && T.byteLength !== void 0) {
4928
+ let g = T.byteLength;
4929
4929
  if (!(typeof g == "number" && isFinite(
4930
4930
  g
4931
4931
  ))) {
@@ -4962,15 +4962,15 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
4962
4962
  h
4963
4963
  ), e++;
4964
4964
  }
4965
- var j = v === e;
4965
+ var E = v === e;
4966
4966
  } else
4967
- var j = !0;
4968
- if (j) {
4967
+ var E = !0;
4968
+ if (E) {
4969
4969
  if (m.byteLength !== void 0) {
4970
- let E = m.byteLength;
4970
+ let T = m.byteLength;
4971
4971
  const v = e;
4972
- if (!(typeof E == "number" && isFinite(
4973
- E
4972
+ if (!(typeof T == "number" && isFinite(
4973
+ T
4974
4974
  ))) {
4975
4975
  const h = {
4976
4976
  instancePath: t + "/body/byteLength",
@@ -4987,15 +4987,15 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
4987
4987
  h
4988
4988
  ), e++;
4989
4989
  }
4990
- var j = v === e;
4990
+ var E = v === e;
4991
4991
  } else
4992
- var j = !0;
4993
- if (j) {
4992
+ var E = !0;
4993
+ if (E) {
4994
4994
  if (m.byteOffset !== void 0) {
4995
- let E = m.byteOffset;
4995
+ let T = m.byteOffset;
4996
4996
  const v = e;
4997
- if (!(typeof E == "number" && isFinite(
4998
- E
4997
+ if (!(typeof T == "number" && isFinite(
4998
+ T
4999
4999
  ))) {
5000
5000
  const h = {
5001
5001
  instancePath: t + "/body/byteOffset",
@@ -5012,15 +5012,15 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
5012
5012
  h
5013
5013
  ), e++;
5014
5014
  }
5015
- var j = v === e;
5015
+ var E = v === e;
5016
5016
  } else
5017
- var j = !0;
5018
- if (j)
5017
+ var E = !0;
5018
+ if (E)
5019
5019
  if (m.length !== void 0) {
5020
- let E = m.length;
5020
+ let T = m.length;
5021
5021
  const v = e;
5022
- if (!(typeof E == "number" && isFinite(
5023
- E
5022
+ if (!(typeof T == "number" && isFinite(
5023
+ T
5024
5024
  ))) {
5025
5025
  const h = {
5026
5026
  instancePath: t + "/body/length",
@@ -5037,9 +5037,9 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
5037
5037
  h
5038
5038
  ), e++;
5039
5039
  }
5040
- var j = v === e;
5040
+ var E = v === e;
5041
5041
  } else
5042
- var j = !0;
5042
+ var E = !0;
5043
5043
  }
5044
5044
  }
5045
5045
  }
@@ -5146,8 +5146,8 @@ function pe(r, { instancePath: t = "", parentData: n, parentDataProperty: d, roo
5146
5146
  message: "must be string"
5147
5147
  }
5148
5148
  ], !1;
5149
- var T = k === e;
5150
- if (!T)
5149
+ var j = k === e;
5150
+ if (!j)
5151
5151
  break;
5152
5152
  }
5153
5153
  else
@@ -5645,10 +5645,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
5645
5645
  message: "must be number"
5646
5646
  }
5647
5647
  ], !1;
5648
- var j = q === e;
5648
+ var E = q === e;
5649
5649
  } else
5650
- var j = !0;
5651
- if (j)
5650
+ var E = !0;
5651
+ if (E)
5652
5652
  if (i.caption !== void 0) {
5653
5653
  const a = e;
5654
5654
  if (typeof i.caption != "string")
@@ -5663,9 +5663,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
5663
5663
  message: "must be string"
5664
5664
  }
5665
5665
  ], !1;
5666
- var j = a === e;
5666
+ var E = a === e;
5667
5667
  } else
5668
- var j = !0;
5668
+ var E = !0;
5669
5669
  }
5670
5670
  } else
5671
5671
  return o.errors = [
@@ -5832,10 +5832,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
5832
5832
  message: "must be number"
5833
5833
  }
5834
5834
  ], !1;
5835
- var T = q === e;
5835
+ var j = q === e;
5836
5836
  } else
5837
- var T = !0;
5838
- if (T)
5837
+ var j = !0;
5838
+ if (j)
5839
5839
  if (i.caption !== void 0) {
5840
5840
  const a = e;
5841
5841
  if (typeof i.caption != "string")
@@ -5850,9 +5850,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
5850
5850
  message: "must be string"
5851
5851
  }
5852
5852
  ], !1;
5853
- var T = a === e;
5853
+ var j = a === e;
5854
5854
  } else
5855
- var T = !0;
5855
+ var j = !0;
5856
5856
  }
5857
5857
  } else
5858
5858
  return o.errors = [
@@ -6940,10 +6940,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
6940
6940
  message: "must be number"
6941
6941
  }
6942
6942
  ], !1;
6943
- var E = q === e;
6943
+ var T = q === e;
6944
6944
  } else
6945
- var E = !0;
6946
- if (E)
6945
+ var T = !0;
6946
+ if (T)
6947
6947
  if (i.caption !== void 0) {
6948
6948
  const a = e;
6949
6949
  if (typeof i.caption != "string")
@@ -6958,9 +6958,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
6958
6958
  message: "must be string"
6959
6959
  }
6960
6960
  ], !1;
6961
- var E = a === e;
6961
+ var T = a === e;
6962
6962
  } else
6963
- var E = !0;
6963
+ var T = !0;
6964
6964
  }
6965
6965
  } else
6966
6966
  return o.errors = [
@@ -7615,10 +7615,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
7615
7615
  message: "must be number"
7616
7616
  }
7617
7617
  ], !1;
7618
- var D = q === e;
7618
+ var C = q === e;
7619
7619
  } else
7620
- var D = !0;
7621
- if (D)
7620
+ var C = !0;
7621
+ if (C)
7622
7622
  if (i.caption !== void 0) {
7623
7623
  const a = e;
7624
7624
  if (typeof i.caption != "string")
@@ -7633,9 +7633,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
7633
7633
  message: "must be string"
7634
7634
  }
7635
7635
  ], !1;
7636
- var D = a === e;
7636
+ var C = a === e;
7637
7637
  } else
7638
- var D = !0;
7638
+ var C = !0;
7639
7639
  }
7640
7640
  } else
7641
7641
  return o.errors = [
@@ -7836,10 +7836,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
7836
7836
  message: "must be object"
7837
7837
  }
7838
7838
  ], !1;
7839
- var C = p === e;
7839
+ var D = p === e;
7840
7840
  } else
7841
- var C = !0;
7842
- if (C) {
7841
+ var D = !0;
7842
+ if (D) {
7843
7843
  if (r.step !== void 0) {
7844
7844
  let i = r.step;
7845
7845
  const p = e;
@@ -7867,10 +7867,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
7867
7867
  message: "must be equal to constant"
7868
7868
  }
7869
7869
  ], !1;
7870
- var C = p === e;
7870
+ var D = p === e;
7871
7871
  } else
7872
- var C = !0;
7873
- if (C)
7872
+ var D = !0;
7873
+ if (D)
7874
7874
  if (r.path !== void 0) {
7875
7875
  const i = e;
7876
7876
  if (typeof r.path != "string")
@@ -7885,9 +7885,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
7885
7885
  message: "must be string"
7886
7886
  }
7887
7887
  ], !1;
7888
- var C = i === e;
7888
+ var D = i === e;
7889
7889
  } else
7890
- var C = !0;
7890
+ var D = !0;
7891
7891
  }
7892
7892
  }
7893
7893
  }
@@ -8809,10 +8809,10 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
8809
8809
  message: "must be number"
8810
8810
  }
8811
8811
  ], !1;
8812
- var Ce = q === e;
8812
+ var De = q === e;
8813
8813
  } else
8814
- var Ce = !0;
8815
- if (Ce)
8814
+ var De = !0;
8815
+ if (De)
8816
8816
  if (i.caption !== void 0) {
8817
8817
  const a = e;
8818
8818
  if (typeof i.caption != "string")
@@ -8827,9 +8827,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
8827
8827
  message: "must be string"
8828
8828
  }
8829
8829
  ], !1;
8830
- var Ce = a === e;
8830
+ var De = a === e;
8831
8831
  } else
8832
- var Ce = !0;
8832
+ var De = !0;
8833
8833
  }
8834
8834
  } else
8835
8835
  return o.errors = [
@@ -10456,7 +10456,7 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
10456
10456
  const Xe = e;
10457
10457
  for (const xe in G)
10458
10458
  if (xe !== "byteLength") {
10459
- const De = {
10459
+ const Ce = {
10460
10460
  instancePath: t + "/data/buffer",
10461
10461
  schemaPath: "#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",
10462
10462
  keyword: "additionalProperties",
@@ -10466,9 +10466,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
10466
10466
  message: "must NOT have additional properties"
10467
10467
  };
10468
10468
  s === null ? s = [
10469
- De
10469
+ Ce
10470
10470
  ] : s.push(
10471
- De
10471
+ Ce
10472
10472
  ), e++;
10473
10473
  break;
10474
10474
  }
@@ -10477,7 +10477,7 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
10477
10477
  if (!(typeof xe == "number" && isFinite(
10478
10478
  xe
10479
10479
  ))) {
10480
- const De = {
10480
+ const Ce = {
10481
10481
  instancePath: t + "/data/buffer/byteLength",
10482
10482
  schemaPath: "#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",
10483
10483
  keyword: "type",
@@ -10487,9 +10487,9 @@ function o(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
10487
10487
  message: "must be number"
10488
10488
  };
10489
10489
  s === null ? s = [
10490
- De
10490
+ Ce
10491
10491
  ] : s.push(
10492
- De
10492
+ Ce
10493
10493
  ), e++;
10494
10494
  }
10495
10495
  }
@@ -11440,7 +11440,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
11440
11440
  var x = !0;
11441
11441
  const $ = h.length;
11442
11442
  for (let L = 0; L < $; L++) {
11443
- const D = e;
11443
+ const C = e;
11444
11444
  if (typeof h[L] != "string")
11445
11445
  return H.errors = [
11446
11446
  {
@@ -11453,7 +11453,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
11453
11453
  message: "must be string"
11454
11454
  }
11455
11455
  ], !1;
11456
- var x = D === e;
11456
+ var x = C === e;
11457
11457
  if (!x)
11458
11458
  break;
11459
11459
  }
@@ -11530,7 +11530,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
11530
11530
  let $ = !1;
11531
11531
  const L = e;
11532
11532
  if (typeof h != "string") {
11533
- const D = {
11533
+ const C = {
11534
11534
  instancePath: t + "/preferredVersions/php",
11535
11535
  schemaPath: "#/definitions/SupportedPHPVersion/type",
11536
11536
  keyword: "type",
@@ -11539,10 +11539,10 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
11539
11539
  },
11540
11540
  message: "must be string"
11541
11541
  };
11542
- s === null ? s = [D] : s.push(D), e++;
11542
+ s === null ? s = [C] : s.push(C), e++;
11543
11543
  }
11544
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")) {
11545
- const D = {
11545
+ const C = {
11546
11546
  instancePath: t + "/preferredVersions/php",
11547
11547
  schemaPath: "#/definitions/SupportedPHPVersion/enum",
11548
11548
  keyword: "enum",
@@ -11551,11 +11551,11 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
11551
11551
  },
11552
11552
  message: "must be equal to one of the allowed values"
11553
11553
  };
11554
- s === null ? s = [D] : s.push(D), e++;
11554
+ s === null ? s = [C] : s.push(C), e++;
11555
11555
  }
11556
11556
  var S = L === e;
11557
11557
  if ($ = $ || S, !$) {
11558
- const D = e;
11558
+ const C = e;
11559
11559
  if (typeof h != "string") {
11560
11560
  const U = {
11561
11561
  instancePath: t + "/preferredVersions/php",
@@ -11588,25 +11588,25 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
11588
11588
  U
11589
11589
  ), e++;
11590
11590
  }
11591
- var S = D === e;
11591
+ var S = C === e;
11592
11592
  $ = $ || S;
11593
11593
  }
11594
11594
  if ($)
11595
11595
  e = g, s !== null && (g ? s.length = g : s = null);
11596
11596
  else {
11597
- const D = {
11597
+ const C = {
11598
11598
  instancePath: t + "/preferredVersions/php",
11599
11599
  schemaPath: "#/properties/preferredVersions/properties/php/anyOf",
11600
11600
  keyword: "anyOf",
11601
11601
  params: {},
11602
11602
  message: "must match a schema in anyOf"
11603
11603
  };
11604
- return s === null ? s = [D] : s.push(D), e++, H.errors = s, !1;
11604
+ return s === null ? s = [C] : s.push(C), e++, H.errors = s, !1;
11605
11605
  }
11606
- var j = w === e;
11606
+ var E = w === e;
11607
11607
  } else
11608
- var j = !0;
11609
- if (j)
11608
+ var E = !0;
11609
+ if (E)
11610
11610
  if (c.wp !== void 0) {
11611
11611
  const h = e;
11612
11612
  if (typeof c.wp != "string")
@@ -11621,9 +11621,9 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
11621
11621
  message: "must be string"
11622
11622
  }
11623
11623
  ], !1;
11624
- var j = h === e;
11624
+ var E = h === e;
11625
11625
  } else
11626
- var j = !0;
11626
+ var E = !0;
11627
11627
  }
11628
11628
  }
11629
11629
  } else
@@ -11715,7 +11715,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
11715
11715
  const b = e;
11716
11716
  if (e === b)
11717
11717
  if (Array.isArray(c)) {
11718
- var T = !0;
11718
+ var j = !0;
11719
11719
  const v = c.length;
11720
11720
  for (let P = 0; P < v; P++) {
11721
11721
  let h = c[P];
@@ -11744,8 +11744,8 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
11744
11744
  message: "must be equal to constant"
11745
11745
  }
11746
11746
  ], !1;
11747
- var T = w === e;
11748
- if (!T)
11747
+ var j = w === e;
11748
+ if (!j)
11749
11749
  break;
11750
11750
  }
11751
11751
  } else
@@ -11954,7 +11954,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
11954
11954
  if (f) {
11955
11955
  if (r.login !== void 0) {
11956
11956
  let c = r.login;
11957
- const b = e, E = e;
11957
+ const b = e, T = e;
11958
11958
  let v = !1;
11959
11959
  const P = e;
11960
11960
  if (typeof c != "boolean") {
@@ -11998,14 +11998,14 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
11998
11998
  ), e++;
11999
11999
  } else {
12000
12000
  const L = e;
12001
- for (const D in c)
12002
- if (!(D === "username" || D === "password")) {
12001
+ for (const C in c)
12002
+ if (!(C === "username" || C === "password")) {
12003
12003
  const F = {
12004
12004
  instancePath: t + "/login",
12005
12005
  schemaPath: "#/properties/login/anyOf/1/additionalProperties",
12006
12006
  keyword: "additionalProperties",
12007
12007
  params: {
12008
- additionalProperty: D
12008
+ additionalProperty: C
12009
12009
  },
12010
12010
  message: "must NOT have additional properties"
12011
12011
  };
@@ -12018,7 +12018,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
12018
12018
  }
12019
12019
  if (L === e) {
12020
12020
  if (c.username !== void 0) {
12021
- const D = e;
12021
+ const C = e;
12022
12022
  if (typeof c.username != "string") {
12023
12023
  const F = {
12024
12024
  instancePath: t + "/login/username",
@@ -12035,12 +12035,12 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
12035
12035
  F
12036
12036
  ), e++;
12037
12037
  }
12038
- var k = D === e;
12038
+ var k = C === e;
12039
12039
  } else
12040
12040
  var k = !0;
12041
12041
  if (k)
12042
12042
  if (c.password !== void 0) {
12043
- const D = e;
12043
+ const C = e;
12044
12044
  if (typeof c.password != "string") {
12045
12045
  const U = {
12046
12046
  instancePath: t + "/login/password",
@@ -12057,7 +12057,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
12057
12057
  U
12058
12058
  ), e++;
12059
12059
  }
12060
- var k = D === e;
12060
+ var k = C === e;
12061
12061
  } else
12062
12062
  var k = !0;
12063
12063
  }
@@ -12082,7 +12082,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
12082
12082
  v = v || Y;
12083
12083
  }
12084
12084
  if (v)
12085
- e = E, s !== null && (E ? s.length = E : s = null);
12085
+ e = T, s !== null && (T ? s.length = T : s = null);
12086
12086
  else {
12087
12087
  const w = {
12088
12088
  instancePath: t + "/login",
@@ -12130,7 +12130,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
12130
12130
  if ($ = $ || z, !$) {
12131
12131
  const F = e;
12132
12132
  if (typeof h != "string") {
12133
- const C = {
12133
+ const D = {
12134
12134
  instancePath: t + "/steps/" + P,
12135
12135
  schemaPath: "#/properties/steps/items/anyOf/1/type",
12136
12136
  keyword: "type",
@@ -12140,14 +12140,14 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
12140
12140
  message: "must be string"
12141
12141
  };
12142
12142
  s === null ? s = [
12143
- C
12143
+ D
12144
12144
  ] : s.push(
12145
- C
12145
+ D
12146
12146
  ), e++;
12147
12147
  }
12148
12148
  var z = F === e;
12149
12149
  if ($ = $ || z, !$) {
12150
- const C = e, I = {
12150
+ const D = e, I = {
12151
12151
  instancePath: t + "/steps/" + P,
12152
12152
  schemaPath: "#/properties/steps/items/anyOf/2/not",
12153
12153
  keyword: "not",
@@ -12159,7 +12159,7 @@ function H(r, { instancePath: t = "", parentData: n, parentDataProperty: d, root
12159
12159
  ] : s.push(
12160
12160
  I
12161
12161
  ), e++;
12162
- var z = C === e;
12162
+ var z = D === e;
12163
12163
  if ($ = $ || z, !$) {
12164
12164
  const A = e;
12165
12165
  if (typeof h != "boolean") {
@@ -12356,15 +12356,15 @@ function Kt(r, {
12356
12356
  step: "setSiteOptions",
12357
12357
  options: r.siteOptions
12358
12358
  }), r.plugins) {
12359
- const b = r.plugins.map((E) => typeof E == "string" ? E.startsWith("https://") ? {
12359
+ const b = r.plugins.map((T) => typeof T == "string" ? T.startsWith("https://") ? {
12360
12360
  resource: "url",
12361
- url: E
12361
+ url: T
12362
12362
  } : {
12363
12363
  resource: "wordpress.org/plugins",
12364
- slug: E
12365
- } : E).map((E) => ({
12364
+ slug: T
12365
+ } : T).map((T) => ({
12366
12366
  step: "installPlugin",
12367
- pluginData: E
12367
+ pluginData: T
12368
12368
  }));
12369
12369
  r.steps.unshift(...b);
12370
12370
  }
@@ -12405,13 +12405,13 @@ function Kt(r, {
12405
12405
  );
12406
12406
  throw b.errors = S, b;
12407
12407
  }
12408
- const j = r.steps || [], O = j.reduce(
12409
- (b, E) => {
12408
+ const E = r.steps || [], O = E.reduce(
12409
+ (b, T) => {
12410
12410
  var v;
12411
- return b + (((v = E.progress) == null ? void 0 : v.weight) || 1);
12411
+ return b + (((v = T.progress) == null ? void 0 : v.weight) || 1);
12412
12412
  },
12413
12413
  0
12414
- ), T = j.map(
12414
+ ), j = E.map(
12415
12415
  (b) => is(b, {
12416
12416
  semaphore: n,
12417
12417
  rootProgressTracker: t,
@@ -12438,17 +12438,17 @@ function Kt(r, {
12438
12438
  extraLibraries: r.extraLibraries || [],
12439
12439
  run: async (b) => {
12440
12440
  try {
12441
- for (const { resources: E } of T)
12442
- for (const v of E)
12441
+ for (const { resources: T } of j)
12442
+ for (const v of T)
12443
12443
  v.setPlayground(b), v.isAsync && v.resolve().catch(() => {
12444
12444
  });
12445
- for (const [E, { run: v, step: P }] of Object.entries(T))
12445
+ for (const [T, { run: v, step: P }] of Object.entries(j))
12446
12446
  try {
12447
12447
  const h = await v(b);
12448
12448
  d(h, P);
12449
12449
  } catch (h) {
12450
12450
  throw new Error(
12451
- `Error when executing the blueprint step #${E} (${JSON.stringify(
12451
+ `Error when executing the blueprint step #${T} (${JSON.stringify(
12452
12452
  P
12453
12453
  )}) ${h instanceof Error ? `: ${h.message}` : h}`,
12454
12454
  { cause: h }
@@ -12456,8 +12456,9 @@ function Kt(r, {
12456
12456
  }
12457
12457
  } finally {
12458
12458
  try {
12459
+ const T = await b.pathToInternalUrl(r.landingPage || "/");
12459
12460
  await b.goTo(
12460
- r.landingPage || "/"
12461
+ "/index.php?playground-redirection-handler&next=" + encodeURIComponent(T)
12461
12462
  );
12462
12463
  } catch {
12463
12464
  }
@@ -12504,19 +12505,19 @@ function is(r, {
12504
12505
  const e = n.stage(
12505
12506
  (((O = r.progress) == null ? void 0 : O.weight) || 1) / d
12506
12507
  ), f = {};
12507
- for (const T of Object.keys(r)) {
12508
- let R = r[T];
12508
+ for (const j of Object.keys(r)) {
12509
+ let R = r[j];
12509
12510
  Rt(R) && (R = Te.create(R, {
12510
12511
  semaphore: t,
12511
12512
  corsProxy: u,
12512
12513
  streamBundledFile: s
12513
- })), f[T] = R;
12514
+ })), f[j] = R;
12514
12515
  }
12515
- const y = async (T) => {
12516
+ const y = async (j) => {
12516
12517
  var R;
12517
12518
  try {
12518
12519
  return e.fillSlowly(), await Jt[r.step](
12519
- T,
12520
+ j,
12520
12521
  await os(f),
12521
12522
  {
12522
12523
  tracker: e,
@@ -12527,10 +12528,10 @@ function is(r, {
12527
12528
  e.finish();
12528
12529
  }
12529
12530
  }, x = yr(f), S = yr(f).filter(
12530
- (T) => T.isAsync
12531
- ), j = 1 / (S.length + 1);
12532
- for (const T of S)
12533
- T.progress = e.stage(j);
12531
+ (j) => j.isAsync
12532
+ ), E = 1 / (S.length + 1);
12533
+ for (const j of S)
12534
+ j.progress = e.stage(E);
12534
12535
  return { run: y, step: r, resources: x };
12535
12536
  }
12536
12537
  function yr(r) {