@wp-playground/client 0.9.13 → 0.9.14
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 +9 -9
- package/index.js +112 -110
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const xs = function() {
|
|
2
2
|
var e;
|
|
3
3
|
return typeof process < "u" && ((e = process.release) == null ? void 0 : e.name) === "node" ? "NODE" : typeof window < "u" ? "WEB" : (
|
|
4
4
|
// @ts-ignore
|
|
@@ -6,7 +6,7 @@ const Hs = function() {
|
|
|
6
6
|
self instanceof WorkerGlobalScope ? "WORKER" : "NODE"
|
|
7
7
|
);
|
|
8
8
|
}();
|
|
9
|
-
if (
|
|
9
|
+
if (xs === "NODE") {
|
|
10
10
|
let e = function(r) {
|
|
11
11
|
return new Promise(function(n, s) {
|
|
12
12
|
r.onload = r.onerror = function(i) {
|
|
@@ -57,7 +57,7 @@ if (Hs === "NODE") {
|
|
|
57
57
|
});
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
|
-
if (
|
|
60
|
+
if (xs === "NODE" && typeof CustomEvent > "u") {
|
|
61
61
|
class e extends Event {
|
|
62
62
|
constructor(r, n = {}) {
|
|
63
63
|
super(r, n), this.detail = n.detail;
|
|
@@ -67,7 +67,7 @@ if (Hs === "NODE" && typeof CustomEvent > "u") {
|
|
|
67
67
|
}
|
|
68
68
|
globalThis.CustomEvent = e;
|
|
69
69
|
}
|
|
70
|
-
const
|
|
70
|
+
const Hs = [
|
|
71
71
|
"db.php",
|
|
72
72
|
"plugins/akismet",
|
|
73
73
|
"plugins/hello.php",
|
|
@@ -1155,7 +1155,7 @@ const Do = async (e, { fromPath: t, toPath: r }) => {
|
|
|
1155
1155
|
extractToPath: s
|
|
1156
1156
|
}), s = ue(s, r);
|
|
1157
1157
|
const i = ue(s, "wp-content"), o = ue(n, "wp-content");
|
|
1158
|
-
for (const d of
|
|
1158
|
+
for (const d of Hs) {
|
|
1159
1159
|
const p = ue(
|
|
1160
1160
|
i,
|
|
1161
1161
|
d
|
|
@@ -1273,7 +1273,7 @@ const Wo = async (e, { pluginZipFile: t, ifAlreadyInstalled: r, options: n = {}
|
|
|
1273
1273
|
},
|
|
1274
1274
|
s
|
|
1275
1275
|
);
|
|
1276
|
-
},
|
|
1276
|
+
}, xo = async (e, { themeZipFile: t, ifAlreadyInstalled: r, options: n = {} }, s) => {
|
|
1277
1277
|
const i = Ir(t.name);
|
|
1278
1278
|
s == null || s.tracker.setCaption(`Installing the ${i} theme`);
|
|
1279
1279
|
const { assetFolderName: o } = await ni(e, {
|
|
@@ -1288,7 +1288,7 @@ const Wo = async (e, { pluginZipFile: t, ifAlreadyInstalled: r, options: n = {}
|
|
|
1288
1288
|
},
|
|
1289
1289
|
s
|
|
1290
1290
|
);
|
|
1291
|
-
},
|
|
1291
|
+
}, Ho = async (e, t, r) => {
|
|
1292
1292
|
var s;
|
|
1293
1293
|
(s = r == null ? void 0 : r.tracker) == null || s.setCaption("Resetting WordPress data");
|
|
1294
1294
|
const n = await e.documentRoot;
|
|
@@ -1331,7 +1331,7 @@ const Wo = async (e, { pluginZipFile: t, ifAlreadyInstalled: r, options: n = {}
|
|
|
1331
1331
|
});
|
|
1332
1332
|
}, Go = async (e, { selfContained: t = !1 } = {}) => {
|
|
1333
1333
|
const r = "/tmp/wordpress-playground.zip", n = await e.documentRoot, s = ue(n, "wp-content");
|
|
1334
|
-
let i =
|
|
1334
|
+
let i = Hs;
|
|
1335
1335
|
t && (i = i.filter((f) => !f.startsWith("themes/twenty")).filter(
|
|
1336
1336
|
(f) => f !== "mu-plugins/sqlite-database-integration"
|
|
1337
1337
|
));
|
|
@@ -1482,12 +1482,12 @@ const Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1482
1482
|
importWordPressFiles: Vo,
|
|
1483
1483
|
importWxr: qo,
|
|
1484
1484
|
installPlugin: Wo,
|
|
1485
|
-
installTheme:
|
|
1485
|
+
installTheme: xo,
|
|
1486
1486
|
login: Xr,
|
|
1487
1487
|
mkdir: Lo,
|
|
1488
1488
|
mv: Mo,
|
|
1489
1489
|
request: Zr,
|
|
1490
|
-
resetData:
|
|
1490
|
+
resetData: Ho,
|
|
1491
1491
|
rm: Zs,
|
|
1492
1492
|
rmdir: Fo,
|
|
1493
1493
|
runPHP: So,
|
|
@@ -2008,8 +2008,8 @@ const { hasOwnProperty: zr } = Object.prototype, en = (e, t = {}) => {
|
|
|
2008
2008
|
` : `
|
|
2009
2009
|
`, n = t.whitespace ? " = " : "=", s = [], i = t.sort ? Object.keys(e).sort() : Object.keys(e);
|
|
2010
2010
|
let o = 0;
|
|
2011
|
-
t.align && (o =
|
|
2012
|
-
i.filter((l) => e[l] === null || Array.isArray(e[l]) || typeof e[l] != "object").map((l) => Array.isArray(e[l]) ? `${l}[]` : l).concat([""]).reduce((l, d) =>
|
|
2011
|
+
t.align && (o = He(
|
|
2012
|
+
i.filter((l) => e[l] === null || Array.isArray(e[l]) || typeof e[l] != "object").map((l) => Array.isArray(e[l]) ? `${l}[]` : l).concat([""]).reduce((l, d) => He(l).length >= He(d).length ? l : d)
|
|
2013
2013
|
).length);
|
|
2014
2014
|
let u = "";
|
|
2015
2015
|
const f = t.bracketedArray ? "[]" : "";
|
|
@@ -2017,11 +2017,11 @@ const { hasOwnProperty: zr } = Object.prototype, en = (e, t = {}) => {
|
|
|
2017
2017
|
const d = e[l];
|
|
2018
2018
|
if (d && Array.isArray(d))
|
|
2019
2019
|
for (const p of d)
|
|
2020
|
-
u +=
|
|
2020
|
+
u += He(`${l}${f}`).padEnd(o, " ") + n + He(p) + r;
|
|
2021
2021
|
else
|
|
2022
|
-
d && typeof d == "object" ? s.push(l) : u +=
|
|
2022
|
+
d && typeof d == "object" ? s.push(l) : u += He(l).padEnd(o, " ") + n + He(d) + r;
|
|
2023
2023
|
}
|
|
2024
|
-
t.section && u.length && (u = "[" +
|
|
2024
|
+
t.section && u.length && (u = "[" + He(t.section) + "]" + (t.newline ? r + r : r) + u);
|
|
2025
2025
|
for (const l of s) {
|
|
2026
2026
|
const d = si(l, ".").join("\\."), p = (t.section ? t.section + "." : "") + d, b = en(e[l], {
|
|
2027
2027
|
...t,
|
|
@@ -2084,7 +2084,7 @@ const gs = (e, t = {}) => {
|
|
|
2084
2084
|
for (const l of f)
|
|
2085
2085
|
delete r[l];
|
|
2086
2086
|
return r;
|
|
2087
|
-
}, ii = (e) => e.startsWith('"') && e.endsWith('"') || e.startsWith("'") && e.endsWith("'"),
|
|
2087
|
+
}, ii = (e) => e.startsWith('"') && e.endsWith('"') || e.startsWith("'") && e.endsWith("'"), He = (e) => typeof e != "string" || e.match(/[=\r\n]/) || e.match(/^\[/) || e.length > 1 && ii(e) || e !== e.trim() ? JSON.stringify(e) : e.split(";").join("\\;").split("#").join("\\#"), pr = (e) => {
|
|
2088
2088
|
if (e = (e || "").trim(), ii(e)) {
|
|
2089
2089
|
e.charAt(0) === "'" && (e = e.slice(1, -1));
|
|
2090
2090
|
try {
|
|
@@ -2112,7 +2112,7 @@ var $s = {
|
|
|
2112
2112
|
decode: gs,
|
|
2113
2113
|
stringify: en,
|
|
2114
2114
|
encode: en,
|
|
2115
|
-
safe:
|
|
2115
|
+
safe: He,
|
|
2116
2116
|
unsafe: pr
|
|
2117
2117
|
};
|
|
2118
2118
|
async function Wd(e, t) {
|
|
@@ -2145,7 +2145,7 @@ const fn = [
|
|
|
2145
2145
|
"7.2",
|
|
2146
2146
|
"7.1",
|
|
2147
2147
|
"7.0"
|
|
2148
|
-
], aa = fn[0],
|
|
2148
|
+
], aa = fn[0], xd = fn, oi = [
|
|
2149
2149
|
"iconv",
|
|
2150
2150
|
"mbstring",
|
|
2151
2151
|
"xml-bundle",
|
|
@@ -3686,9 +3686,9 @@ function ws(e, t, r) {
|
|
|
3686
3686
|
let f = (0, bt._)`${u} === undefined`;
|
|
3687
3687
|
o.useDefaults === "empty" && (f = (0, bt._)`${f} || ${u} === null || ${u} === ""`), n.if(f, (0, bt._)`${u} = ${(0, bt.stringify)(r)}`);
|
|
3688
3688
|
}
|
|
3689
|
-
var qe = {},
|
|
3690
|
-
Object.defineProperty(
|
|
3691
|
-
|
|
3689
|
+
var qe = {}, H = {};
|
|
3690
|
+
Object.defineProperty(H, "__esModule", { value: !0 });
|
|
3691
|
+
H.validateUnion = H.validateArray = H.usePattern = H.callValidateCode = H.schemaProperties = H.allSchemaProperties = H.noPropertyInData = H.propertyInData = H.isOwnProperty = H.hasPropFunc = H.reportMissingProp = H.checkMissingProp = H.checkReportMissingProp = void 0;
|
|
3692
3692
|
const re = B, hn = X, Je = We, Ia = X;
|
|
3693
3693
|
function ja(e, t) {
|
|
3694
3694
|
const { gen: r, data: n, it: s } = e;
|
|
@@ -3696,15 +3696,15 @@ function ja(e, t) {
|
|
|
3696
3696
|
e.setParams({ missingProperty: (0, re._)`${t}` }, !0), e.error();
|
|
3697
3697
|
});
|
|
3698
3698
|
}
|
|
3699
|
-
|
|
3699
|
+
H.checkReportMissingProp = ja;
|
|
3700
3700
|
function Aa({ gen: e, data: t, it: { opts: r } }, n, s) {
|
|
3701
3701
|
return (0, re.or)(...n.map((i) => (0, re.and)(yn(e, t, i, r.ownProperties), (0, re._)`${s} = ${i}`)));
|
|
3702
3702
|
}
|
|
3703
|
-
|
|
3703
|
+
H.checkMissingProp = Aa;
|
|
3704
3704
|
function Da(e, t) {
|
|
3705
3705
|
e.setParams({ missingProperty: t }, !0), e.error();
|
|
3706
3706
|
}
|
|
3707
|
-
|
|
3707
|
+
H.reportMissingProp = Da;
|
|
3708
3708
|
function pi(e) {
|
|
3709
3709
|
return e.scopeValue("func", {
|
|
3710
3710
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
@@ -3712,29 +3712,29 @@ function pi(e) {
|
|
|
3712
3712
|
code: (0, re._)`Object.prototype.hasOwnProperty`
|
|
3713
3713
|
});
|
|
3714
3714
|
}
|
|
3715
|
-
|
|
3715
|
+
H.hasPropFunc = pi;
|
|
3716
3716
|
function mn(e, t, r) {
|
|
3717
3717
|
return (0, re._)`${pi(e)}.call(${t}, ${r})`;
|
|
3718
3718
|
}
|
|
3719
|
-
|
|
3719
|
+
H.isOwnProperty = mn;
|
|
3720
3720
|
function Ma(e, t, r, n) {
|
|
3721
3721
|
const s = (0, re._)`${t}${(0, re.getProperty)(r)} !== undefined`;
|
|
3722
3722
|
return n ? (0, re._)`${s} && ${mn(e, t, r)}` : s;
|
|
3723
3723
|
}
|
|
3724
|
-
|
|
3724
|
+
H.propertyInData = Ma;
|
|
3725
3725
|
function yn(e, t, r, n) {
|
|
3726
3726
|
const s = (0, re._)`${t}${(0, re.getProperty)(r)} === undefined`;
|
|
3727
3727
|
return n ? (0, re.or)(s, (0, re.not)(mn(e, t, r))) : s;
|
|
3728
3728
|
}
|
|
3729
|
-
|
|
3729
|
+
H.noPropertyInData = yn;
|
|
3730
3730
|
function hi(e) {
|
|
3731
3731
|
return e ? Object.keys(e).filter((t) => t !== "__proto__") : [];
|
|
3732
3732
|
}
|
|
3733
|
-
|
|
3733
|
+
H.allSchemaProperties = hi;
|
|
3734
3734
|
function La(e, t) {
|
|
3735
3735
|
return hi(t).filter((r) => !(0, hn.alwaysValidSchema)(e, t[r]));
|
|
3736
3736
|
}
|
|
3737
|
-
|
|
3737
|
+
H.schemaProperties = La;
|
|
3738
3738
|
function Fa({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: n, schemaPath: s, errorPath: i }, it: o }, u, f, l) {
|
|
3739
3739
|
const d = l ? (0, re._)`${e}, ${t}, ${n}${s}` : t, p = [
|
|
3740
3740
|
[Je.default.instancePath, (0, re.strConcat)(Je.default.instancePath, i)],
|
|
@@ -3746,7 +3746,7 @@ function Fa({ schemaCode: e, data: t, it: { gen: r, topSchemaRef: n, schemaPath:
|
|
|
3746
3746
|
const b = (0, re._)`${d}, ${r.object(...p)}`;
|
|
3747
3747
|
return f !== re.nil ? (0, re._)`${u}.call(${f}, ${b})` : (0, re._)`${u}(${b})`;
|
|
3748
3748
|
}
|
|
3749
|
-
|
|
3749
|
+
H.callValidateCode = Fa;
|
|
3750
3750
|
const qa = (0, re._)`new RegExp`;
|
|
3751
3751
|
function Ua({ gen: e, it: { opts: t } }, r) {
|
|
3752
3752
|
const n = t.unicodeRegExp ? "u" : "", { regExp: s } = t.code, i = s(r, n);
|
|
@@ -3756,7 +3756,7 @@ function Ua({ gen: e, it: { opts: t } }, r) {
|
|
|
3756
3756
|
code: (0, re._)`${s.code === "new RegExp" ? qa : (0, Ia.useFunc)(e, s)}(${r}, ${n})`
|
|
3757
3757
|
});
|
|
3758
3758
|
}
|
|
3759
|
-
|
|
3759
|
+
H.usePattern = Ua;
|
|
3760
3760
|
function Va(e) {
|
|
3761
3761
|
const { gen: t, data: r, keyword: n, it: s } = e, i = t.name("valid");
|
|
3762
3762
|
if (s.allErrors) {
|
|
@@ -3775,7 +3775,7 @@ function Va(e) {
|
|
|
3775
3775
|
});
|
|
3776
3776
|
}
|
|
3777
3777
|
}
|
|
3778
|
-
|
|
3778
|
+
H.validateArray = Va;
|
|
3779
3779
|
function za(e) {
|
|
3780
3780
|
const { gen: t, schema: r, keyword: n, it: s } = e;
|
|
3781
3781
|
if (!Array.isArray(r))
|
|
@@ -3792,11 +3792,11 @@ function za(e) {
|
|
|
3792
3792
|
t.assign(o, (0, re._)`${o} || ${u}`), e.mergeValidEvaluated(d, u) || t.if((0, re.not)(o));
|
|
3793
3793
|
})), e.result(o, () => e.reset(), () => e.error(!0));
|
|
3794
3794
|
}
|
|
3795
|
-
|
|
3795
|
+
H.validateUnion = za;
|
|
3796
3796
|
Object.defineProperty(qe, "__esModule", { value: !0 });
|
|
3797
3797
|
qe.validateKeywordUsage = qe.validSchemaType = qe.funcKeywordCode = qe.macroKeywordCode = void 0;
|
|
3798
|
-
const $e = B, ot = We, Wa =
|
|
3799
|
-
function
|
|
3798
|
+
const $e = B, ot = We, Wa = H, xa = Yt;
|
|
3799
|
+
function Ha(e, t) {
|
|
3800
3800
|
const { gen: r, keyword: n, schema: s, parentSchema: i, it: o } = e, u = t.macro.call(o.self, s, i, o), f = mi(r, n, u);
|
|
3801
3801
|
o.opts.validateSchema !== !1 && o.self.validateSchema(u, !0);
|
|
3802
3802
|
const l = r.name("valid");
|
|
@@ -3808,7 +3808,7 @@ function xa(e, t) {
|
|
|
3808
3808
|
compositeRule: !0
|
|
3809
3809
|
}, l), e.pass(l, () => e.error(!0));
|
|
3810
3810
|
}
|
|
3811
|
-
qe.macroKeywordCode =
|
|
3811
|
+
qe.macroKeywordCode = Ha;
|
|
3812
3812
|
function Ba(e, t) {
|
|
3813
3813
|
var r;
|
|
3814
3814
|
const { gen: n, keyword: s, schema: i, parentSchema: o, $data: u, it: f } = e;
|
|
@@ -3848,7 +3848,7 @@ function vs(e) {
|
|
|
3848
3848
|
function Ga(e, t) {
|
|
3849
3849
|
const { gen: r } = e;
|
|
3850
3850
|
r.if((0, $e._)`Array.isArray(${t})`, () => {
|
|
3851
|
-
r.assign(ot.default.vErrors, (0, $e._)`${ot.default.vErrors} === null ? ${t} : ${ot.default.vErrors}.concat(${t})`).assign(ot.default.errors, (0, $e._)`${ot.default.vErrors}.length`), (0,
|
|
3851
|
+
r.assign(ot.default.vErrors, (0, $e._)`${ot.default.vErrors} === null ? ${t} : ${ot.default.vErrors}.concat(${t})`).assign(ot.default.errors, (0, $e._)`${ot.default.vErrors}.length`), (0, xa.extendErrors)(e);
|
|
3852
3852
|
}, () => e.error());
|
|
3853
3853
|
}
|
|
3854
3854
|
function Ka({ schemaEnv: e }, t) {
|
|
@@ -4149,7 +4149,7 @@ function dc(e, t) {
|
|
|
4149
4149
|
me.getSchemaRefs = dc;
|
|
4150
4150
|
Object.defineProperty(Ne, "__esModule", { value: !0 });
|
|
4151
4151
|
Ne.getData = Ne.KeywordCxt = Ne.validateFunctionCode = void 0;
|
|
4152
|
-
const bi = kt, bs = Zt, gn = Be, Er = Zt, fc = Ar,
|
|
4152
|
+
const bi = kt, bs = Zt, gn = Be, Er = Zt, fc = Ar, Ht = qe, Wr = Ze, q = B, z = We, pc = me, Ge = X, zt = Yt;
|
|
4153
4153
|
function hc(e) {
|
|
4154
4154
|
if (Si(e) && (Ti(e), Pi(e))) {
|
|
4155
4155
|
gc(e);
|
|
@@ -4319,9 +4319,9 @@ function $n(e, t) {
|
|
|
4319
4319
|
}
|
|
4320
4320
|
class Ci {
|
|
4321
4321
|
constructor(t, r, n) {
|
|
4322
|
-
if ((0,
|
|
4322
|
+
if ((0, Ht.validateKeywordUsage)(t, r, n), this.gen = t.gen, this.allErrors = t.allErrors, this.keyword = n, this.data = t.data, this.schema = t.schema[n], this.$data = r.$data && t.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, Ge.schemaRefOrVal)(t, this.schema, n, this.$data), this.schemaType = r.schemaType, this.parentSchema = t.schema, this.params = {}, this.it = t, this.def = r, this.$data)
|
|
4323
4323
|
this.schemaCode = t.gen.const("vSchema", Ii(this.$data, t));
|
|
4324
|
-
else if (this.schemaCode = this.schemaValue, !(0,
|
|
4324
|
+
else if (this.schemaCode = this.schemaValue, !(0, Ht.validSchemaType)(this.schema, r.schemaType, r.allowUndefined))
|
|
4325
4325
|
throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);
|
|
4326
4326
|
("code" in r ? r.trackErrors : r.errors !== !1) && (this.errsCount = t.gen.const("_errs", z.default.errors));
|
|
4327
4327
|
}
|
|
@@ -4421,7 +4421,7 @@ class Ci {
|
|
|
4421
4421
|
Ne.KeywordCxt = Ci;
|
|
4422
4422
|
function Ni(e, t, r, n) {
|
|
4423
4423
|
const s = new Ci(e, r, t);
|
|
4424
|
-
"code" in r ? r.code(s, n) : s.$data && r.validate ? (0,
|
|
4424
|
+
"code" in r ? r.code(s, n) : s.$data && r.validate ? (0, Ht.funcKeywordCode)(s, r) : "macro" in r ? (0, Ht.macroKeywordCode)(s, r) : (r.compile || r.validate) && (0, Ht.funcKeywordCode)(s, r);
|
|
4425
4425
|
}
|
|
4426
4426
|
const jc = /^\/(?:[^~]|~0|~1)*$/, Ac = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
|
4427
4427
|
function Ii(e, { dataLevel: t, dataNames: r, dataPathArr: n }) {
|
|
@@ -4467,10 +4467,10 @@ class Dc extends Error {
|
|
|
4467
4467
|
Xt.default = Dc;
|
|
4468
4468
|
var er = {};
|
|
4469
4469
|
Object.defineProperty(er, "__esModule", { value: !0 });
|
|
4470
|
-
const
|
|
4470
|
+
const xr = me;
|
|
4471
4471
|
class Mc extends Error {
|
|
4472
4472
|
constructor(t, r, n, s) {
|
|
4473
|
-
super(s || `can't resolve reference ${n} from id ${r}`), this.missingRef = (0,
|
|
4473
|
+
super(s || `can't resolve reference ${n} from id ${r}`), this.missingRef = (0, xr.resolveUrl)(t, r, n), this.missingSchema = (0, xr.normalizeId)((0, xr.getFullPath)(t, this.missingRef));
|
|
4474
4474
|
}
|
|
4475
4475
|
}
|
|
4476
4476
|
er.default = Mc;
|
|
@@ -4583,18 +4583,18 @@ function Mr(e, t) {
|
|
|
4583
4583
|
const r = this.opts.uriResolver.parse(t), n = (0, Ce._getFullPath)(this.opts.uriResolver, r);
|
|
4584
4584
|
let s = (0, Ce.getFullPath)(this.opts.uriResolver, e.baseId, void 0);
|
|
4585
4585
|
if (Object.keys(e.schema).length > 0 && n === s)
|
|
4586
|
-
return
|
|
4586
|
+
return Hr.call(this, r, e);
|
|
4587
4587
|
const i = (0, Ce.normalizeId)(n), o = this.refs[i] || this.schemas[i];
|
|
4588
4588
|
if (typeof o == "string") {
|
|
4589
4589
|
const u = Mr.call(this, e, o);
|
|
4590
|
-
return typeof (u == null ? void 0 : u.schema) != "object" ? void 0 :
|
|
4590
|
+
return typeof (u == null ? void 0 : u.schema) != "object" ? void 0 : Hr.call(this, r, u);
|
|
4591
4591
|
}
|
|
4592
4592
|
if (typeof (o == null ? void 0 : o.schema) == "object") {
|
|
4593
4593
|
if (o.validate || _n.call(this, o), i === (0, Ce.normalizeId)(t)) {
|
|
4594
4594
|
const { schema: u } = o, { schemaId: f } = this.opts, l = u[f];
|
|
4595
4595
|
return l && (s = (0, Ce.resolveUrl)(this.opts.uriResolver, s, l)), new Dr({ schema: u, schemaId: f, root: e, baseId: s });
|
|
4596
4596
|
}
|
|
4597
|
-
return
|
|
4597
|
+
return Hr.call(this, r, o);
|
|
4598
4598
|
}
|
|
4599
4599
|
}
|
|
4600
4600
|
ve.resolveSchema = Mr;
|
|
@@ -4605,7 +4605,7 @@ const Wc = /* @__PURE__ */ new Set([
|
|
|
4605
4605
|
"dependencies",
|
|
4606
4606
|
"definitions"
|
|
4607
4607
|
]);
|
|
4608
|
-
function
|
|
4608
|
+
function Hr(e, { baseId: t, schema: r, root: n }) {
|
|
4609
4609
|
var s;
|
|
4610
4610
|
if (((s = e.fragment) === null || s === void 0 ? void 0 : s[0]) !== "/")
|
|
4611
4611
|
return;
|
|
@@ -4628,7 +4628,7 @@ function xr(e, { baseId: t, schema: r, root: n }) {
|
|
|
4628
4628
|
if (i = i || new Dr({ schema: r, schemaId: o, root: n, baseId: t }), i.schema !== i.root.schema)
|
|
4629
4629
|
return i;
|
|
4630
4630
|
}
|
|
4631
|
-
const
|
|
4631
|
+
const xc = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", Hc = "Meta-schema for $data reference (JSON AnySchema extension proposal)", Bc = "object", Gc = [
|
|
4632
4632
|
"$data"
|
|
4633
4633
|
], Kc = {
|
|
4634
4634
|
$data: {
|
|
@@ -4643,8 +4643,8 @@ const Hc = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/
|
|
|
4643
4643
|
]
|
|
4644
4644
|
}
|
|
4645
4645
|
}, Jc = !1, Qc = {
|
|
4646
|
-
$id:
|
|
4647
|
-
description:
|
|
4646
|
+
$id: xc,
|
|
4647
|
+
description: Hc,
|
|
4648
4648
|
type: Bc,
|
|
4649
4649
|
required: Gc,
|
|
4650
4650
|
properties: Kc,
|
|
@@ -4689,7 +4689,7 @@ var wn = {}, sn = { exports: {} };
|
|
|
4689
4689
|
function l(h) {
|
|
4690
4690
|
var c = "[A-Za-z]", y = "[0-9]", k = n(y, "[A-Fa-f]"), R = s(s("%[EFef]" + k + "%" + k + k + "%" + k + k) + "|" + s("%[89A-Fa-f]" + k + "%" + k + k) + "|" + s("%" + k + k)), U = "[\\:\\/\\?\\#\\[\\]\\@]", V = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", Z = n(U, V), te = h ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", ae = h ? "[\\uE000-\\uF8FF]" : "[]", J = n(c, y, "[\\-\\.\\_\\~]", te);
|
|
4691
4691
|
s(c + n(c, y, "[\\+\\-\\.]") + "*"), s(s(R + "|" + n(J, V, "[\\:]")) + "*");
|
|
4692
|
-
var ee = s(s("25[0-5]") + "|" + s("2[0-4]" + y) + "|" + s("1" + y + y) + "|" + s("0?[1-9]" + y) + "|0?0?" + y), ce = s(ee + "\\." + ee + "\\." + ee + "\\." + ee),
|
|
4692
|
+
var ee = s(s("25[0-5]") + "|" + s("2[0-4]" + y) + "|" + s("1" + y + y) + "|" + s("0?[1-9]" + y) + "|0?0?" + y), ce = s(ee + "\\." + ee + "\\." + ee + "\\." + ee), x = s(k + "{1,4}"), ne = s(s(x + "\\:" + x) + "|" + ce), fe = s(s(x + "\\:") + "{6}" + ne), se = s("\\:\\:" + s(x + "\\:") + "{5}" + ne), Ke = s(s(x) + "?\\:\\:" + s(x + "\\:") + "{4}" + ne), De = s(s(s(x + "\\:") + "{0,1}" + x) + "?\\:\\:" + s(x + "\\:") + "{3}" + ne), Me = s(s(s(x + "\\:") + "{0,2}" + x) + "?\\:\\:" + s(x + "\\:") + "{2}" + ne), vt = s(s(s(x + "\\:") + "{0,3}" + x) + "?\\:\\:" + x + "\\:" + ne), nt = s(s(s(x + "\\:") + "{0,4}" + x) + "?\\:\\:" + ne), Se = s(s(s(x + "\\:") + "{0,5}" + x) + "?\\:\\:" + x), Le = s(s(s(x + "\\:") + "{0,6}" + x) + "?\\:\\:"), st = s([fe, se, Ke, De, Me, vt, nt, Se, Le].join("|")), xe = s(s(J + "|" + R) + "+");
|
|
4693
4693
|
s("[vV]" + k + "+\\." + n(J, V, "[\\:]") + "+"), s(s(R + "|" + n(J, V)) + "*");
|
|
4694
4694
|
var Ut = s(R + "|" + n(J, V, "[\\:\\@]"));
|
|
4695
4695
|
return s(s(R + "|" + n(J, V, "[\\@]")) + "+"), s(s(Ut + "|" + n("[\\/\\?]", ae)) + "*"), {
|
|
@@ -4705,7 +4705,7 @@ var wn = {}, sn = { exports: {} };
|
|
|
4705
4705
|
OTHER_CHARS: new RegExp(n("[^\\%]", J, Z), "g"),
|
|
4706
4706
|
PCT_ENCODED: new RegExp(R, "g"),
|
|
4707
4707
|
IPV4ADDRESS: new RegExp("^(" + ce + ")$"),
|
|
4708
|
-
IPV6ADDRESS: new RegExp("^\\[?(" + st + ")" + s(s("\\%25|\\%(?!" + k + "{2})") + "(" +
|
|
4708
|
+
IPV6ADDRESS: new RegExp("^\\[?(" + st + ")" + s(s("\\%25|\\%(?!" + k + "{2})") + "(" + xe + ")") + "?\\]?$")
|
|
4709
4709
|
//RFC 6874, with relaxed parsing rules
|
|
4710
4710
|
};
|
|
4711
4711
|
}
|
|
@@ -4800,10 +4800,10 @@ var wn = {}, sn = { exports: {} };
|
|
|
4800
4800
|
ce += O
|
|
4801
4801
|
) {
|
|
4802
4802
|
ae >= k && de("invalid-input");
|
|
4803
|
-
var
|
|
4804
|
-
(
|
|
4803
|
+
var x = ht(c.charCodeAt(ae++));
|
|
4804
|
+
(x >= O || x > Y((P - R) / ee)) && de("overflow"), R += x * ee;
|
|
4805
4805
|
var ne = ce <= V ? _ : ce >= V + g ? g : ce - V;
|
|
4806
|
-
if (
|
|
4806
|
+
if (x < ne)
|
|
4807
4807
|
break;
|
|
4808
4808
|
var fe = O - ne;
|
|
4809
4809
|
ee > Y(P / fe) && de("overflow"), ee *= fe;
|
|
@@ -4831,8 +4831,8 @@ var wn = {}, sn = { exports: {} };
|
|
|
4831
4831
|
throw ae;
|
|
4832
4832
|
}
|
|
4833
4833
|
}
|
|
4834
|
-
var
|
|
4835
|
-
for (
|
|
4834
|
+
var x = y.length, ne = x;
|
|
4835
|
+
for (x && y.push(v); ne < k; ) {
|
|
4836
4836
|
var fe = P, se = !0, Ke = !1, De = void 0;
|
|
4837
4837
|
try {
|
|
4838
4838
|
for (var Me = c[Symbol.iterator](), vt; !(se = (vt = Me.next()).done); se = !0) {
|
|
@@ -4851,7 +4851,7 @@ var wn = {}, sn = { exports: {} };
|
|
|
4851
4851
|
}
|
|
4852
4852
|
var Se = ne + 1;
|
|
4853
4853
|
fe - R > Y((P - U) / Se) && de("overflow"), U += (fe - R) * Se, R = fe;
|
|
4854
|
-
var Le = !0, st = !1,
|
|
4854
|
+
var Le = !0, st = !1, xe = void 0;
|
|
4855
4855
|
try {
|
|
4856
4856
|
for (var Ut = c[Symbol.iterator](), cs; !(Le = (cs = Ut.next()).done); Le = !0) {
|
|
4857
4857
|
var ls = cs.value;
|
|
@@ -4868,17 +4868,17 @@ var wn = {}, sn = { exports: {} };
|
|
|
4868
4868
|
var us = nr - ir, ds = O - ir;
|
|
4869
4869
|
y.push(Ee(M(ir + us % ds, 0))), nr = Y(us / ds);
|
|
4870
4870
|
}
|
|
4871
|
-
y.push(Ee(M(nr, 0))), V = w(U, Se, ne ==
|
|
4871
|
+
y.push(Ee(M(nr, 0))), V = w(U, Se, ne == x), U = 0, ++ne;
|
|
4872
4872
|
}
|
|
4873
4873
|
}
|
|
4874
4874
|
} catch (Vt) {
|
|
4875
|
-
st = !0,
|
|
4875
|
+
st = !0, xe = Vt;
|
|
4876
4876
|
} finally {
|
|
4877
4877
|
try {
|
|
4878
4878
|
!Le && Ut.return && Ut.return();
|
|
4879
4879
|
} finally {
|
|
4880
4880
|
if (st)
|
|
4881
|
-
throw
|
|
4881
|
+
throw xe;
|
|
4882
4882
|
}
|
|
4883
4883
|
}
|
|
4884
4884
|
++U, ++R;
|
|
@@ -4960,13 +4960,13 @@ var wn = {}, sn = { exports: {} };
|
|
|
4960
4960
|
function mt(h, c) {
|
|
4961
4961
|
var y = h.match(c.IPV6ADDRESS) || [], k = b(y, 3), R = k[1], U = k[2];
|
|
4962
4962
|
if (R) {
|
|
4963
|
-
for (var V = R.toLowerCase().split("::").reverse(), Z = b(V, 2), te = Z[0], ae = Z[1], J = ae ? ae.split(":").map(oe) : [], ee = te.split(":").map(oe), ce = c.IPV4ADDRESS.test(ee[ee.length - 1]),
|
|
4963
|
+
for (var V = R.toLowerCase().split("::").reverse(), Z = b(V, 2), te = Z[0], ae = Z[1], J = ae ? ae.split(":").map(oe) : [], ee = te.split(":").map(oe), ce = c.IPV4ADDRESS.test(ee[ee.length - 1]), x = ce ? 7 : 8, ne = ee.length - x, fe = Array(x), se = 0; se < x; ++se)
|
|
4964
4964
|
fe[se] = J[se] || ee[ne + se] || "";
|
|
4965
|
-
ce && (fe[
|
|
4965
|
+
ce && (fe[x - 1] = Ie(fe[x - 1], c));
|
|
4966
4966
|
var Ke = fe.reduce(function(Se, Le, st) {
|
|
4967
4967
|
if (!Le || Le === "0") {
|
|
4968
|
-
var
|
|
4969
|
-
|
|
4968
|
+
var xe = Se[Se.length - 1];
|
|
4969
|
+
xe && xe.index + xe.length === st ? xe.length++ : Se.push({ index: st, length: 1 });
|
|
4970
4970
|
}
|
|
4971
4971
|
return Se;
|
|
4972
4972
|
}, []), De = Ke.sort(function(Se, Le) {
|
|
@@ -5121,7 +5121,7 @@ var wn = {}, sn = { exports: {} };
|
|
|
5121
5121
|
var J = Z[te].split("=");
|
|
5122
5122
|
switch (J[0]) {
|
|
5123
5123
|
case "to":
|
|
5124
|
-
for (var ee = J[1].split(","), ce = 0,
|
|
5124
|
+
for (var ee = J[1].split(","), ce = 0, x = ee.length; ce < x; ++ce)
|
|
5125
5125
|
R.push(ee[ce]);
|
|
5126
5126
|
break;
|
|
5127
5127
|
case "subject":
|
|
@@ -5169,8 +5169,8 @@ var wn = {}, sn = { exports: {} };
|
|
|
5169
5169
|
var ee = c.headers = c.headers || {};
|
|
5170
5170
|
c.subject && (ee.subject = c.subject), c.body && (ee.body = c.body);
|
|
5171
5171
|
var ce = [];
|
|
5172
|
-
for (var
|
|
5173
|
-
ee[
|
|
5172
|
+
for (var x in ee)
|
|
5173
|
+
ee[x] !== Zi[x] && ce.push(x.replace(wt, Fr).replace(wt, o).replace(ss, F) + "=" + ee[x].replace(wt, Fr).replace(wt, o).replace(oo, F));
|
|
5174
5174
|
return ce.length && (k.query = ce.join("&")), k;
|
|
5175
5175
|
}
|
|
5176
5176
|
}, ao = /^([^\:]+)\:(.*)/, os = {
|
|
@@ -5661,7 +5661,7 @@ En.default = Zc;
|
|
|
5661
5661
|
var dt = {};
|
|
5662
5662
|
Object.defineProperty(dt, "__esModule", { value: !0 });
|
|
5663
5663
|
dt.callRef = dt.getValidate = void 0;
|
|
5664
|
-
const Xc = er, Rs =
|
|
5664
|
+
const Xc = er, Rs = H, we = B, Et = We, ks = ve, or = X, el = {
|
|
5665
5665
|
keyword: "$ref",
|
|
5666
5666
|
schemaType: "string",
|
|
5667
5667
|
code(e) {
|
|
@@ -5827,7 +5827,7 @@ const at = B, cl = X, ll = kn, ul = {
|
|
|
5827
5827
|
Rn.default = dl;
|
|
5828
5828
|
var On = {};
|
|
5829
5829
|
Object.defineProperty(On, "__esModule", { value: !0 });
|
|
5830
|
-
const fl =
|
|
5830
|
+
const fl = H, Tr = B, pl = {
|
|
5831
5831
|
message: ({ schemaCode: e }) => (0, Tr.str)`must match pattern "${e}"`,
|
|
5832
5832
|
params: ({ schemaCode: e }) => (0, Tr._)`{pattern: ${e}}`
|
|
5833
5833
|
}, hl = {
|
|
@@ -5864,7 +5864,7 @@ const Gt = B, ml = {
|
|
|
5864
5864
|
Cn.default = yl;
|
|
5865
5865
|
var Nn = {};
|
|
5866
5866
|
Object.defineProperty(Nn, "__esModule", { value: !0 });
|
|
5867
|
-
const Wt =
|
|
5867
|
+
const Wt = H, Kt = B, gl = X, $l = {
|
|
5868
5868
|
message: ({ params: { missingProperty: e } }) => (0, Kt.str)`must have required property '${e}'`,
|
|
5869
5869
|
params: ({ params: { missingProperty: e } }) => (0, Kt._)`{missingProperty: ${e}}`
|
|
5870
5870
|
}, _l = {
|
|
@@ -5998,9 +5998,9 @@ const on = B, Tl = X, Rl = tr, kl = {
|
|
|
5998
5998
|
An.default = Ol;
|
|
5999
5999
|
var Dn = {};
|
|
6000
6000
|
Object.defineProperty(Dn, "__esModule", { value: !0 });
|
|
6001
|
-
const
|
|
6001
|
+
const xt = B, Cl = X, Nl = tr, Il = {
|
|
6002
6002
|
message: "must be equal to one of the allowed values",
|
|
6003
|
-
params: ({ schemaCode: e }) => (0,
|
|
6003
|
+
params: ({ schemaCode: e }) => (0, xt._)`{allowedValues: ${e}}`
|
|
6004
6004
|
}, jl = {
|
|
6005
6005
|
keyword: "enum",
|
|
6006
6006
|
schemaType: "array",
|
|
@@ -6020,21 +6020,21 @@ const Ht = B, Cl = X, Nl = tr, Il = {
|
|
|
6020
6020
|
if (!Array.isArray(s))
|
|
6021
6021
|
throw new Error("ajv implementation error");
|
|
6022
6022
|
const E = t.const("vSchema", i);
|
|
6023
|
-
d = (0,
|
|
6023
|
+
d = (0, xt.or)(...s.map((P, O) => b(E, O)));
|
|
6024
6024
|
}
|
|
6025
6025
|
e.pass(d);
|
|
6026
6026
|
function p() {
|
|
6027
|
-
t.assign(d, !1), t.forOf("v", i, (E) => t.if((0,
|
|
6027
|
+
t.assign(d, !1), t.forOf("v", i, (E) => t.if((0, xt._)`${l()}(${r}, ${E})`, () => t.assign(d, !0).break()));
|
|
6028
6028
|
}
|
|
6029
6029
|
function b(E, P) {
|
|
6030
6030
|
const O = s[P];
|
|
6031
|
-
return typeof O == "object" && O !== null ? (0,
|
|
6031
|
+
return typeof O == "object" && O !== null ? (0, xt._)`${l()}(${r}, ${E}[${P}])` : (0, xt._)`${r} === ${O}`;
|
|
6032
6032
|
}
|
|
6033
6033
|
}
|
|
6034
6034
|
};
|
|
6035
6035
|
Dn.default = jl;
|
|
6036
6036
|
Object.defineProperty(Pn, "__esModule", { value: !0 });
|
|
6037
|
-
const Al = Sn, Dl = Tn, Ml = Rn, Ll = On, Fl = Cn, ql = Nn, Ul = In, Vl = jn, zl = An, Wl = Dn,
|
|
6037
|
+
const Al = Sn, Dl = Tn, Ml = Rn, Ll = On, Fl = Cn, ql = Nn, Ul = In, Vl = jn, zl = An, Wl = Dn, xl = [
|
|
6038
6038
|
// number
|
|
6039
6039
|
Al.default,
|
|
6040
6040
|
Dl.default,
|
|
@@ -6053,11 +6053,11 @@ const Al = Sn, Dl = Tn, Ml = Rn, Ll = On, Fl = Cn, ql = Nn, Ul = In, Vl = jn, zl
|
|
|
6053
6053
|
zl.default,
|
|
6054
6054
|
Wl.default
|
|
6055
6055
|
];
|
|
6056
|
-
Pn.default =
|
|
6056
|
+
Pn.default = xl;
|
|
6057
6057
|
var Mn = {}, Ct = {};
|
|
6058
6058
|
Object.defineProperty(Ct, "__esModule", { value: !0 });
|
|
6059
6059
|
Ct.validateAdditionalItems = void 0;
|
|
6060
|
-
const ct = B, an = X,
|
|
6060
|
+
const ct = B, an = X, Hl = {
|
|
6061
6061
|
message: ({ params: { len: e } }) => (0, ct.str)`must NOT have more than ${e} items`,
|
|
6062
6062
|
params: ({ params: { len: e } }) => (0, ct._)`{limit: ${e}}`
|
|
6063
6063
|
}, Bl = {
|
|
@@ -6065,7 +6065,7 @@ const ct = B, an = X, xl = {
|
|
|
6065
6065
|
type: "array",
|
|
6066
6066
|
schemaType: ["boolean", "object"],
|
|
6067
6067
|
before: "uniqueItems",
|
|
6068
|
-
error:
|
|
6068
|
+
error: Hl,
|
|
6069
6069
|
code(e) {
|
|
6070
6070
|
const { parentSchema: t, it: r } = e, { items: n } = t;
|
|
6071
6071
|
if (!Array.isArray(n)) {
|
|
@@ -6096,7 +6096,7 @@ Ct.default = Bl;
|
|
|
6096
6096
|
var Ln = {}, Nt = {};
|
|
6097
6097
|
Object.defineProperty(Nt, "__esModule", { value: !0 });
|
|
6098
6098
|
Nt.validateTuple = void 0;
|
|
6099
|
-
const Os = B, yr = X, Gl =
|
|
6099
|
+
const Os = B, yr = X, Gl = H, Kl = {
|
|
6100
6100
|
keyword: "items",
|
|
6101
6101
|
type: "array",
|
|
6102
6102
|
schemaType: ["object", "array", "boolean"],
|
|
@@ -6140,7 +6140,7 @@ const Jl = Nt, Ql = {
|
|
|
6140
6140
|
Ln.default = Ql;
|
|
6141
6141
|
var Fn = {};
|
|
6142
6142
|
Object.defineProperty(Fn, "__esModule", { value: !0 });
|
|
6143
|
-
const Cs = B, Yl = X, Zl =
|
|
6143
|
+
const Cs = B, Yl = X, Zl = H, Xl = Ct, eu = {
|
|
6144
6144
|
message: ({ params: { len: e } }) => (0, Cs.str)`must NOT have more than ${e} items`,
|
|
6145
6145
|
params: ({ params: { len: e } }) => (0, Cs._)`{limit: ${e}}`
|
|
6146
6146
|
}, tu = {
|
|
@@ -6212,7 +6212,7 @@ qn.default = nu;
|
|
|
6212
6212
|
var Ui = {};
|
|
6213
6213
|
(function(e) {
|
|
6214
6214
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
6215
|
-
const t = B, r = X, n =
|
|
6215
|
+
const t = B, r = X, n = H;
|
|
6216
6216
|
e.error = {
|
|
6217
6217
|
message: ({ params: { property: f, depsCount: l, deps: d } }) => {
|
|
6218
6218
|
const p = l === 1 ? "property" : "properties";
|
|
@@ -6311,7 +6311,7 @@ const Vi = B, su = X, iu = {
|
|
|
6311
6311
|
Un.default = ou;
|
|
6312
6312
|
var Lr = {};
|
|
6313
6313
|
Object.defineProperty(Lr, "__esModule", { value: !0 });
|
|
6314
|
-
const cr =
|
|
6314
|
+
const cr = H, Oe = B, au = We, lr = X, cu = {
|
|
6315
6315
|
message: "must NOT have additional properties",
|
|
6316
6316
|
params: ({ params: e }) => (0, Oe._)`{additionalProperty: ${e.additionalProperty}}`
|
|
6317
6317
|
}, lu = {
|
|
@@ -6380,7 +6380,7 @@ const cr = x, Oe = B, au = We, lr = X, cu = {
|
|
|
6380
6380
|
Lr.default = lu;
|
|
6381
6381
|
var Vn = {};
|
|
6382
6382
|
Object.defineProperty(Vn, "__esModule", { value: !0 });
|
|
6383
|
-
const uu = Ne, Ns =
|
|
6383
|
+
const uu = Ne, Ns = H, Gr = X, Is = Lr, du = {
|
|
6384
6384
|
keyword: "properties",
|
|
6385
6385
|
type: "object",
|
|
6386
6386
|
schemaType: "object",
|
|
@@ -6412,7 +6412,7 @@ const uu = Ne, Ns = x, Gr = X, Is = Lr, du = {
|
|
|
6412
6412
|
Vn.default = du;
|
|
6413
6413
|
var zn = {};
|
|
6414
6414
|
Object.defineProperty(zn, "__esModule", { value: !0 });
|
|
6415
|
-
const js =
|
|
6415
|
+
const js = H, ur = B, As = X, Ds = X, fu = {
|
|
6416
6416
|
keyword: "patternProperties",
|
|
6417
6417
|
type: "object",
|
|
6418
6418
|
schemaType: "object",
|
|
@@ -6471,18 +6471,18 @@ const pu = X, hu = {
|
|
|
6471
6471
|
error: { message: "must NOT be valid" }
|
|
6472
6472
|
};
|
|
6473
6473
|
Wn.default = hu;
|
|
6474
|
-
var
|
|
6475
|
-
Object.defineProperty(
|
|
6476
|
-
const mu =
|
|
6474
|
+
var xn = {};
|
|
6475
|
+
Object.defineProperty(xn, "__esModule", { value: !0 });
|
|
6476
|
+
const mu = H, yu = {
|
|
6477
6477
|
keyword: "anyOf",
|
|
6478
6478
|
schemaType: "array",
|
|
6479
6479
|
trackErrors: !0,
|
|
6480
6480
|
code: mu.validateUnion,
|
|
6481
6481
|
error: { message: "must match a schema in anyOf" }
|
|
6482
6482
|
};
|
|
6483
|
-
|
|
6484
|
-
var
|
|
6485
|
-
Object.defineProperty(
|
|
6483
|
+
xn.default = yu;
|
|
6484
|
+
var Hn = {};
|
|
6485
|
+
Object.defineProperty(Hn, "__esModule", { value: !0 });
|
|
6486
6486
|
const gr = B, gu = X, $u = {
|
|
6487
6487
|
message: "must match exactly one schema in oneOf",
|
|
6488
6488
|
params: ({ params: e }) => (0, gr._)`{passingSchemas: ${e.passing}}`
|
|
@@ -6513,7 +6513,7 @@ const gr = B, gu = X, $u = {
|
|
|
6513
6513
|
}
|
|
6514
6514
|
}
|
|
6515
6515
|
};
|
|
6516
|
-
|
|
6516
|
+
Hn.default = _u;
|
|
6517
6517
|
var Bn = {};
|
|
6518
6518
|
Object.defineProperty(Bn, "__esModule", { value: !0 });
|
|
6519
6519
|
const wu = X, vu = {
|
|
@@ -6589,7 +6589,7 @@ const Pu = X, Su = {
|
|
|
6589
6589
|
};
|
|
6590
6590
|
Kn.default = Su;
|
|
6591
6591
|
Object.defineProperty(Mn, "__esModule", { value: !0 });
|
|
6592
|
-
const Tu = Ct, Ru = Ln, ku = Nt, Ou = Fn, Cu = qn, Nu = Ui, Iu = Un, ju = Lr, Au = Vn, Du = zn, Mu = Wn, Lu =
|
|
6592
|
+
const Tu = Ct, Ru = Ln, ku = Nt, Ou = Fn, Cu = qn, Nu = Ui, Iu = Un, ju = Lr, Au = Vn, Du = zn, Mu = Wn, Lu = xn, Fu = Hn, qu = Bn, Uu = Gn, Vu = Kn;
|
|
6593
6593
|
function zu(e = !1) {
|
|
6594
6594
|
const t = [
|
|
6595
6595
|
// any
|
|
@@ -6614,7 +6614,7 @@ Object.defineProperty(Qn, "__esModule", { value: !0 });
|
|
|
6614
6614
|
const le = B, Wu = {
|
|
6615
6615
|
message: ({ schemaCode: e }) => (0, le.str)`must match format "${e}"`,
|
|
6616
6616
|
params: ({ schemaCode: e }) => (0, le._)`{format: ${e}}`
|
|
6617
|
-
},
|
|
6617
|
+
}, xu = {
|
|
6618
6618
|
keyword: "format",
|
|
6619
6619
|
type: ["number", "string"],
|
|
6620
6620
|
schemaType: "string",
|
|
@@ -6674,9 +6674,9 @@ const le = B, Wu = {
|
|
|
6674
6674
|
}
|
|
6675
6675
|
}
|
|
6676
6676
|
};
|
|
6677
|
-
Qn.default =
|
|
6677
|
+
Qn.default = xu;
|
|
6678
6678
|
Object.defineProperty(Jn, "__esModule", { value: !0 });
|
|
6679
|
-
const
|
|
6679
|
+
const Hu = Qn, Bu = [Hu.default];
|
|
6680
6680
|
Jn.default = Bu;
|
|
6681
6681
|
var Ot = {};
|
|
6682
6682
|
Object.defineProperty(Ot, "__esModule", { value: !0 });
|
|
@@ -7167,7 +7167,8 @@ const ld = /* @__PURE__ */ oa(cd), ud = "http://json-schema.org/schema", dd = "#
|
|
|
7167
7167
|
}
|
|
7168
7168
|
]
|
|
7169
7169
|
},
|
|
7170
|
-
description: "WordPress plugins to install and activate"
|
|
7170
|
+
description: "WordPress plugins to install and activate",
|
|
7171
|
+
deprecated: "This experimental option will change without warning.\nUse `steps` instead."
|
|
7171
7172
|
},
|
|
7172
7173
|
siteOptions: {
|
|
7173
7174
|
type: "object",
|
|
@@ -7180,7 +7181,8 @@ const ld = /* @__PURE__ */ oa(cd), ud = "http://json-schema.org/schema", dd = "#
|
|
|
7180
7181
|
description: "The site title"
|
|
7181
7182
|
}
|
|
7182
7183
|
},
|
|
7183
|
-
description: "WordPress site options to define"
|
|
7184
|
+
description: "WordPress site options to define",
|
|
7185
|
+
deprecated: "This experimental option will change without warning.\nUse `steps` instead."
|
|
7184
7186
|
},
|
|
7185
7187
|
login: {
|
|
7186
7188
|
anyOf: [
|
|
@@ -8892,15 +8894,15 @@ async function Pd(e) {
|
|
|
8892
8894
|
async function Sd(e, t) {
|
|
8893
8895
|
await e.run(t);
|
|
8894
8896
|
}
|
|
8895
|
-
function
|
|
8897
|
+
function Hd() {
|
|
8896
8898
|
}
|
|
8897
8899
|
/**
|
|
8898
8900
|
* @license
|
|
8899
8901
|
* Copyright 2019 Google LLC
|
|
8900
8902
|
* SPDX-License-Identifier: Apache-2.0
|
|
8901
8903
|
*/
|
|
8902
|
-
const
|
|
8903
|
-
canHandle: (e) =>
|
|
8904
|
+
const xi = Symbol("Comlink.proxy"), Td = Symbol("Comlink.endpoint"), Rd = Symbol("Comlink.releaseProxy"), Kr = Symbol("Comlink.finalizer"), $r = Symbol("Comlink.thrown"), Hi = (e) => typeof e == "object" && e !== null || typeof e == "function", kd = {
|
|
8905
|
+
canHandle: (e) => Hi(e) && e[xi],
|
|
8904
8906
|
serialize(e) {
|
|
8905
8907
|
const { port1: t, port2: r } = new MessageChannel();
|
|
8906
8908
|
return Zn(e, t), [r, [r]];
|
|
@@ -8909,7 +8911,7 @@ const Hi = Symbol("Comlink.proxy"), Td = Symbol("Comlink.endpoint"), Rd = Symbol
|
|
|
8909
8911
|
return e.start(), Xn(e);
|
|
8910
8912
|
}
|
|
8911
8913
|
}, Od = {
|
|
8912
|
-
canHandle: (e) =>
|
|
8914
|
+
canHandle: (e) => Hi(e) && $r in e,
|
|
8913
8915
|
serialize({ value: e }) {
|
|
8914
8916
|
let t;
|
|
8915
8917
|
return e instanceof Error ? t = {
|
|
@@ -9089,7 +9091,7 @@ function Dd(e, t) {
|
|
|
9089
9091
|
return Ki.set(e, t), e;
|
|
9090
9092
|
}
|
|
9091
9093
|
function Ji(e) {
|
|
9092
|
-
return Object.assign(e, { [
|
|
9094
|
+
return Object.assign(e, { [xi]: !0 });
|
|
9093
9095
|
}
|
|
9094
9096
|
function Md(e, t = globalThis, r = "*") {
|
|
9095
9097
|
return {
|
|
@@ -9307,7 +9309,7 @@ async function Bd(e, t) {
|
|
|
9307
9309
|
export {
|
|
9308
9310
|
aa as LatestSupportedPHPVersion,
|
|
9309
9311
|
fn as SupportedPHPVersions,
|
|
9310
|
-
|
|
9312
|
+
xd as SupportedPHPVersionsList,
|
|
9311
9313
|
un as activatePlugin,
|
|
9312
9314
|
Ys as activateTheme,
|
|
9313
9315
|
yd as compileBlueprint,
|
|
@@ -9320,14 +9322,14 @@ export {
|
|
|
9320
9322
|
Vo as importWordPressFiles,
|
|
9321
9323
|
qo as importWxr,
|
|
9322
9324
|
Wo as installPlugin,
|
|
9323
|
-
|
|
9325
|
+
xo as installTheme,
|
|
9324
9326
|
Xr as login,
|
|
9325
9327
|
Lo as mkdir,
|
|
9326
9328
|
Mo as mv,
|
|
9327
9329
|
pe as phpVar,
|
|
9328
9330
|
Nr as phpVars,
|
|
9329
9331
|
Zr as request,
|
|
9330
|
-
|
|
9332
|
+
Ho as resetData,
|
|
9331
9333
|
Zs as rm,
|
|
9332
9334
|
Fo as rmdir,
|
|
9333
9335
|
Sd as runBlueprintSteps,
|
|
@@ -9336,13 +9338,13 @@ export {
|
|
|
9336
9338
|
Ro as runSql,
|
|
9337
9339
|
Bo as runWpInstallationWizard,
|
|
9338
9340
|
Wd as setPhpIniEntries,
|
|
9339
|
-
|
|
9341
|
+
Hd as setPluginProxyURL,
|
|
9340
9342
|
Xs as setSiteOptions,
|
|
9341
9343
|
Ud as startPlaygroundWeb,
|
|
9342
9344
|
dn as unzip,
|
|
9343
9345
|
No as updateUserMeta,
|
|
9344
9346
|
Qo as wpCLI,
|
|
9345
|
-
|
|
9347
|
+
Hs as wpContentFilesExcludedFromExport,
|
|
9346
9348
|
ti as writeFile,
|
|
9347
9349
|
Go as zipWpContent
|
|
9348
9350
|
};
|