@wp-playground/blueprints 1.0.13 → 1.0.15
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/blueprint-schema-validator.js +2 -2
- package/blueprint-schema.json +1 -1
- package/index.cjs +39 -39
- package/index.js +1911 -1868
- package/lib/steps/install-plugin.d.ts +2 -2
- package/lib/steps/set-site-language.d.ts +3 -4
- package/package.json +11 -11
package/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@php-wasm/node-polyfills");const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@php-wasm/node-polyfills");const C=require("@php-wasm/util"),ce=require("@php-wasm/logger"),Ne=require("@php-wasm/universal"),kr=require("@wp-playground/common"),or=require("@wp-playground/wordpress"),Or=require("@php-wasm/progress"),nr=require("@wp-playground/storage"),lr=["db.php","plugins/akismet","plugins/hello.php","plugins/wordpress-importer","mu-plugins/sqlite-database-integration","mu-plugins/playground-includes","mu-plugins/0-playground.php","mu-plugins/0-sqlite.php","themes/twentytwenty","themes/twentytwentyone","themes/twentytwentytwo","themes/twentytwentythree","themes/twentytwentyfour","themes/twentytwentyfive","themes/twentytwentysix"],fr=async(r,{pluginPath:t,pluginName:p},c)=>{c==null||c.tracker.setCaption(`Activating ${p||t}`);const m=await r.documentRoot,s=await r.run({code:`<?php
|
|
2
2
|
define( 'WP_ADMIN', true );
|
|
3
|
-
require_once( ${
|
|
4
|
-
require_once( ${
|
|
3
|
+
require_once( ${C.phpVar(m)}. "/wp-load.php" );
|
|
4
|
+
require_once( ${C.phpVar(m)}. "/wp-admin/includes/plugin.php" );
|
|
5
5
|
|
|
6
6
|
// Set current user to admin
|
|
7
7
|
wp_set_current_user( get_users(array('role' => 'Administrator') )[0]->ID );
|
|
8
8
|
|
|
9
|
-
$plugin_path = ${
|
|
9
|
+
$plugin_path = ${C.phpVar(t)};
|
|
10
10
|
$response = false;
|
|
11
11
|
if (!is_dir($plugin_path)) {
|
|
12
12
|
$response = activate_plugin($plugin_path);
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
throw new Exception( 'Unable to activate plugin' );
|
|
33
|
-
`});if(
|
|
33
|
+
`});if(s.text!=="Plugin activated successfully")throw ce.logger.debug(s),new Error(`Plugin ${t} could not be activated – WordPress exited with no error. Sometimes, when $_SERVER or site options are not configured correctly, WordPress exits early with a 301 redirect. Inspect the "debug" logs in the console for more details`)},dr=async(r,{themeFolderName:t},p)=>{p==null||p.tracker.setCaption(`Activating ${t}`);const c=await r.documentRoot,m=`${c}/wp-content/themes/${t}`;if(!await r.fileExists(m))throw new Error(`
|
|
34
34
|
Couldn't activate theme ${t}.
|
|
35
|
-
Theme not found at the provided theme path: ${
|
|
35
|
+
Theme not found at the provided theme path: ${m}.
|
|
36
36
|
Check the theme path to ensure it's correct.
|
|
37
37
|
If the theme is not installed, you can install it using the installTheme step.
|
|
38
38
|
More info can be found in the Blueprint documentation: https://wordpress.github.io/wordpress-playground/blueprints/steps/#ActivateThemeStep
|
|
39
|
-
`);const
|
|
39
|
+
`);const s=await r.run({code:`<?php
|
|
40
40
|
define( 'WP_ADMIN', true );
|
|
41
41
|
require_once( getenv('docroot') . "/wp-load.php" );
|
|
42
42
|
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
throw new Exception( 'Theme ' . getenv('themeFolderName') . ' could not be activated.' );
|
|
50
50
|
}
|
|
51
51
|
die('Theme activated successfully');
|
|
52
|
-
`,env:{docroot:c,themeFolderName:t}});if(
|
|
53
|
-
require_once ${
|
|
52
|
+
`,env:{docroot:c,themeFolderName:t}});if(s.text!=="Theme activated successfully")throw ce.logger.debug(s),new Error(`Theme ${t} could not be activated – WordPress exited with no error. Sometimes, when $_SERVER or site options are not configured correctly, WordPress exits early with a 301 redirect. Inspect the "debug" logs in the console for more details`)},$r=async(r,{code:t})=>await r.run({code:t}),jr=async(r,{options:t})=>await r.run(t),ur=async(r,{path:t})=>{await r.unlink(t)},Er=async(r,{sql:t},p)=>{p==null||p.tracker.setCaption("Executing SQL Queries");const c=`/tmp/${C.randomFilename()}.sql`;await r.writeFile(c,new Uint8Array(await t.arrayBuffer()));const m=await r.documentRoot,s=C.phpVars({docroot:m,sqlFilename:c}),e=await r.run({code:`<?php
|
|
53
|
+
require_once ${s.docroot} . '/wp-load.php';
|
|
54
54
|
|
|
55
|
-
$handle = fopen(${
|
|
55
|
+
$handle = fopen(${s.sqlFilename}, 'r');
|
|
56
56
|
|
|
57
57
|
global $wpdb;
|
|
58
58
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
|
|
65
65
|
$wpdb->query($line);
|
|
66
66
|
}
|
|
67
|
-
`});return await
|
|
67
|
+
`});return await ur(r,{path:c}),e},Tr=async(r,{request:t})=>{ce.logger.warn('Deprecated: The Blueprint step "request" is deprecated and will be removed in a future release.');const p=await r.request(t);if(p.httpStatusCode>399||p.httpStatusCode<200)throw ce.logger.warn("WordPress response was",{response:p}),new Error(`Request failed with status ${p.httpStatusCode}`);return p},Kr=`<?php
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Rewrites the wp-config.php file to ensure specific constants are defined
|
|
@@ -395,31 +395,31 @@ function skip_whitespace($tokens) {
|
|
|
395
395
|
}
|
|
396
396
|
return $output;
|
|
397
397
|
}
|
|
398
|
-
`,Ke=async(r,{consts:t,method:p="define-before-run"})=>{switch(p){case"define-before-run":await et(r,t);break;case"rewrite-wp-config":{const c=await r.documentRoot,
|
|
398
|
+
`,Ke=async(r,{consts:t,method:p="define-before-run"})=>{switch(p){case"define-before-run":await et(r,t);break;case"rewrite-wp-config":{const c=await r.documentRoot,m=C.joinPaths(c,"/wp-config.php"),s=await r.readFileAsText(m),e=await rt(r,s,t);await r.writeFile(m,e);break}default:throw new Error(`Invalid method: ${p}`)}};async function et(r,t){for(const p in t)await r.defineConstant(p,t[p])}async function rt(r,t,p){await r.writeFile("/tmp/code.php",t);const c=C.phpVars({consts:p});return await r.run({code:`${Kr}
|
|
399
399
|
$wp_config_path = '/tmp/code.php';
|
|
400
400
|
$wp_config = file_get_contents($wp_config_path);
|
|
401
401
|
$new_wp_config = rewrite_wp_config_to_define_constants($wp_config, ${c.consts});
|
|
402
402
|
file_put_contents($wp_config_path, $new_wp_config);
|
|
403
|
-
`}),await r.readFileAsText("/tmp/code.php")}const
|
|
404
|
-
include ${
|
|
405
|
-
$site_options = ${
|
|
403
|
+
`}),await r.readFileAsText("/tmp/code.php")}const cr=async(r,{options:t})=>{const p=await r.documentRoot;await r.run({code:`<?php
|
|
404
|
+
include ${C.phpVar(p)} . '/wp-load.php';
|
|
405
|
+
$site_options = ${C.phpVar(t)};
|
|
406
406
|
foreach($site_options as $name => $value) {
|
|
407
407
|
update_option($name, $value);
|
|
408
408
|
}
|
|
409
409
|
echo "Success";
|
|
410
410
|
`})},qr=async(r,{meta:t,userId:p})=>{const c=await r.documentRoot;await r.run({code:`<?php
|
|
411
|
-
include ${
|
|
412
|
-
$meta = ${
|
|
411
|
+
include ${C.phpVar(c)} . '/wp-load.php';
|
|
412
|
+
$meta = ${C.phpVar(t)};
|
|
413
413
|
foreach($meta as $name => $value) {
|
|
414
|
-
update_user_meta(${
|
|
414
|
+
update_user_meta(${C.phpVar(p)}, $name, $value);
|
|
415
415
|
}
|
|
416
|
-
`})},
|
|
416
|
+
`})},mr="/tmp/wp-cli.phar",tt={resource:"url",url:"https://playground.wordpress.net/wp-cli.phar"},Ar=async(r,t=mr)=>{if(!await r.fileExists(t))throw new Error(`wp-cli.phar not found at ${t}.
|
|
417
417
|
You can enable wp-cli support by adding "wp-cli" to the list of extra libraries in your blueprint as follows:
|
|
418
418
|
{
|
|
419
419
|
"extraLibraries": [ "wp-cli" ]
|
|
420
420
|
}
|
|
421
421
|
Read more about it in the documentation.
|
|
422
|
-
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},
|
|
422
|
+
https://wordpress.github.io/wordpress-playground/blueprints/data-format#extra-libraries`)},yr=async(r,{command:t,wpCliPath:p=mr})=>{await Ar(r,p);let c;if(typeof t=="string"?(t=t.trim(),c=st(t)):c=t,c.shift()!=="wp")throw new Error('The first argument must be "wp".');const s=await r.documentRoot;await r.writeFile("/tmp/stdout",""),await r.writeFile("/tmp/stderr",""),await r.writeFile(C.joinPaths(s,"run-cli.php"),`<?php
|
|
423
423
|
// Set up the environment to emulate a shell script
|
|
424
424
|
// call.
|
|
425
425
|
|
|
@@ -431,8 +431,8 @@ function skip_whitespace($tokens) {
|
|
|
431
431
|
// Set the argv global.
|
|
432
432
|
$GLOBALS['argv'] = array_merge([
|
|
433
433
|
"/tmp/wp-cli.phar",
|
|
434
|
-
"--path=${
|
|
435
|
-
], ${
|
|
434
|
+
"--path=${s}"
|
|
435
|
+
], ${C.phpVar(c)});
|
|
436
436
|
|
|
437
437
|
// Provide stdin, stdout, stderr streams outside of
|
|
438
438
|
// the CLI SAPI.
|
|
@@ -440,10 +440,10 @@ function skip_whitespace($tokens) {
|
|
|
440
440
|
define('STDOUT', fopen('php://stdout', 'wb'));
|
|
441
441
|
define('STDERR', fopen('php://stderr', 'wb'));
|
|
442
442
|
|
|
443
|
-
require( ${
|
|
444
|
-
`);const e=await r.run({scriptPath:
|
|
445
|
-
require ${
|
|
446
|
-
require ${
|
|
443
|
+
require( ${C.phpVar(p)} );
|
|
444
|
+
`);const e=await r.run({scriptPath:C.joinPaths(s,"run-cli.php")});if(e.errors)throw new Error(e.errors);return e};function st(r){let c=0,m="";const s=[];let e="";for(let d=0;d<r.length;d++){const g=r[d];c===0?g==='"'||g==="'"?(c=1,m=g):g.match(/\s/)?(e&&s.push(e),e=""):e+=g:c===1&&(g==="\\"?(d++,e+=r[d]):g===m?(c=0,m=""):e+=g)}return e&&s.push(e),s}const Rr=async(r,{wpCliPath:t})=>{await Ar(r,t),await Ke(r,{consts:{WP_ALLOW_MULTISITE:1}});const p=new URL(await r.absoluteUrl);if(p.port!==""){let s=`The current host is ${p.host}, but WordPress multisites do not support custom ports.`;throw p.hostname==="localhost"&&(s+=" For development, you can set up a playground.test domain using the instructions at https://wordpress.github.io/wordpress-playground/contributing/code."),new Error(s)}const c=p.pathname.replace(/\/$/,"")+"/",m=`${p.protocol}//${p.hostname}${c}`;await cr(r,{options:{siteurl:m,home:m}}),await yr(r,{command:"wp core multisite-convert"})},Lr=async(r,{fromPath:t,toPath:p})=>{await r.writeFile(p,await r.readFileAsBuffer(t))},Fr=async(r,{fromPath:t,toPath:p})=>{await r.mv(t,p)},Sr=async(r,{path:t})=>{await r.mkdir(t)},Nr=async(r,{path:t})=>{await r.rmdir(t)},er=async(r,{path:t,data:p})=>{p instanceof File&&(p=new Uint8Array(await p.arrayBuffer())),t.startsWith("/wordpress/wp-content/mu-plugins")&&!await r.fileExists("/wordpress/wp-content/mu-plugins")&&await r.mkdir("/wordpress/wp-content/mu-plugins"),await r.writeFile(t,p)},xr=async(r,{writeToPath:t,filesTree:p})=>{await Ne.writeFiles(r,t,p.files)},hr=async(r,{siteUrl:t})=>{await Ke(r,{consts:{WP_HOME:t,WP_SITEURL:t}})},Dr=async(r,{file:t},p)=>{var m;(m=p==null?void 0:p.tracker)==null||m.setCaption("Importing content"),await er(r,{path:"/tmp/import.wxr",data:t});const c=await r.documentRoot;await r.run({code:`<?php
|
|
445
|
+
require ${C.phpVar(c)} . '/wp-load.php';
|
|
446
|
+
require ${C.phpVar(c)} . '/wp-admin/includes/admin.php';
|
|
447
447
|
|
|
448
448
|
kses_remove_filters();
|
|
449
449
|
$admin_id = get_users(array('role' => 'Administrator') )[0]->ID;
|
|
@@ -461,7 +461,7 @@ function skip_whitespace($tokens) {
|
|
|
461
461
|
});
|
|
462
462
|
|
|
463
463
|
$result = $importer->import( '/tmp/import.wxr' );
|
|
464
|
-
`})},
|
|
464
|
+
`})},gr=async(r,{themeSlug:t=""},p)=>{var m;(m=p==null?void 0:p.tracker)==null||m.setCaption("Importing theme starter content");const c=await r.documentRoot;await r.run({code:`<?php
|
|
465
465
|
|
|
466
466
|
/**
|
|
467
467
|
* Ensure that the customizer loads as an admin user.
|
|
@@ -484,7 +484,7 @@ function skip_whitespace($tokens) {
|
|
|
484
484
|
* See _wp_customize_include()
|
|
485
485
|
*/
|
|
486
486
|
$_REQUEST['wp_customize'] = 'on';
|
|
487
|
-
$_REQUEST['customize_theme'] = ${
|
|
487
|
+
$_REQUEST['customize_theme'] = ${C.phpVar(t)} ?: get_stylesheet();
|
|
488
488
|
|
|
489
489
|
/*
|
|
490
490
|
* Claim this is a ajax request saving settings, to avoid the preview filters being applied.
|
|
@@ -496,7 +496,7 @@ function skip_whitespace($tokens) {
|
|
|
496
496
|
}
|
|
497
497
|
playground_add_filter( 'plugins_loaded', 'importThemeStarterContent_plugins_loaded', 0 );
|
|
498
498
|
|
|
499
|
-
require ${
|
|
499
|
+
require ${C.phpVar(c)} . '/wp-load.php';
|
|
500
500
|
|
|
501
501
|
// Return early if there's no starter content.
|
|
502
502
|
if ( ! get_theme_starter_content() ) {
|
|
@@ -508,10 +508,10 @@ function skip_whitespace($tokens) {
|
|
|
508
508
|
|
|
509
509
|
// Publish the changeset, which publishes the starter content.
|
|
510
510
|
wp_publish_post( $wp_customize->changeset_post_id() );
|
|
511
|
-
`})},
|
|
511
|
+
`})},rr=async(r,{zipFile:t,zipPath:p,extractToPath:c})=>{if(p)ce.logger.warn('The "zipPath" option of the unzip() Blueprint step is deprecated and will be removed. Use "zipFile" instead.');else if(!t)throw new Error("Either zipPath or zipFile must be provided");await kr.unzipFile(r,t||p,c)},Cr=async(r,{wordPressFilesZip:t,pathInZip:p=""})=>{const c=await r.documentRoot;let m=C.joinPaths("/tmp","import");await r.mkdir(m),await rr(r,{zipFile:t,extractToPath:m}),m=C.joinPaths(m,p);const s=C.joinPaths(m,"wp-content"),e=C.joinPaths(c,"wp-content");for(const F of lr){const P=C.joinPaths(s,F);await vr(r,P);const O=C.joinPaths(e,F);await r.fileExists(O)&&(await r.mkdir(C.dirname(P)),await r.mv(O,P))}const d=C.joinPaths(m,"wp-content","database");await r.fileExists(d)||await r.mv(C.joinPaths(c,"wp-content","database"),d);const g=await r.listFiles(m);for(const F of g)await vr(r,C.joinPaths(c,F)),await r.mv(C.joinPaths(m,F),C.joinPaths(c,F));await r.rmdir(m),await hr(r,{siteUrl:await r.absoluteUrl});const x=C.phpVar(C.joinPaths(c,"wp-admin","upgrade.php"));await r.run({code:`<?php
|
|
512
512
|
$_GET['step'] = 'upgrade_db';
|
|
513
513
|
require ${x};
|
|
514
|
-
`})};async function vr(r,t){await r.fileExists(t)&&(await r.isDir(t)?await r.rmdir(t):await r.unlink(t))}async function Wr(r){const t=await r.request({url:"/wp-admin/export.php?download=true&content=all"});return new File([t.bytes],"export.xml")}async function Ir(r,{targetPath:t,zipFile:p,ifAlreadyInstalled:c="overwrite",targetFolderName:
|
|
514
|
+
`})};async function vr(r,t){await r.fileExists(t)&&(await r.isDir(t)?await r.rmdir(t):await r.unlink(t))}async function Wr(r){const t=await r.request({url:"/wp-admin/export.php?download=true&content=all"});return new File([t.bytes],"export.xml")}async function Ir(r,{targetPath:t,zipFile:p,ifAlreadyInstalled:c="overwrite",targetFolderName:m=""}){const e=p.name.replace(/\.zip$/,""),d=C.joinPaths(await r.documentRoot,"wp-content"),g=C.joinPaths(d,C.randomString()),x=C.joinPaths(g,"assets",e);await r.fileExists(x)&&await r.rmdir(g,{recursive:!0}),await r.mkdir(g);try{await rr(r,{zipFile:p,extractToPath:x});let F=await r.listFiles(x,{prependPath:!0});F=F.filter(y=>!y.endsWith("/__MACOSX"));const P=F.length===1&&await r.isDir(F[0]);let O,T="";P?(T=F[0],O=F[0].split("/").pop()):(T=x,O=e),m&&m.length&&(O=m);const L=`${t}/${O}`;if(await r.fileExists(L)){if(!await r.isDir(L))throw new Error(`Cannot install asset ${O} to ${L} because a file with the same name already exists. Note it's a file, not a directory! Is this by mistake?`);if(c==="overwrite")await r.rmdir(L,{recursive:!0});else{if(c==="skip")return{assetFolderPath:L,assetFolderName:O};throw new Error(`Cannot install asset ${O} to ${t} because it already exists and the ifAlreadyInstalled option was set to ${c}`)}}return await r.mv(T,L),{assetFolderPath:L,assetFolderName:O}}finally{await r.rmdir(g,{recursive:!0})}}function tr(r){const t=r.split(".").shift().replace(/-/g," ");return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}const Ur=async(r,{pluginData:t,pluginZipFile:p,ifAlreadyInstalled:c,options:m={}},s)=>{p&&(t=p,ce.logger.warn('The "pluginZipFile" option is deprecated. Use "pluginData" instead.'));const e=C.joinPaths(await r.documentRoot,"wp-content","plugins"),d="targetFolderName"in m?m.targetFolderName:"";let g="",x="";if(t instanceof File)if(t.name.endsWith(".php")){const P=C.joinPaths(e,t.name);await er(r,{path:P,data:t}),g=e,x=t.name}else{const P=t.name.split("/").pop()||"plugin.zip";x=tr(P),s==null||s.tracker.setCaption(`Installing the ${x} plugin`);const O=await Ir(r,{ifAlreadyInstalled:c,zipFile:t,targetPath:`${await r.documentRoot}/wp-content/plugins`,targetFolderName:d});g=O.assetFolderPath,x=O.assetFolderName}else if(t){x=t.name,s==null||s.tracker.setCaption(`Installing the ${x} plugin`);const P=C.joinPaths(e,d||t.name);await Ne.writeFiles(r,P,t.files,{rmRoot:!0}),g=P}("activate"in m?m.activate:!0)&&await fr(r,{pluginPath:g,pluginName:x},s)},Vr=async(r,{themeData:t,themeZipFile:p,ifAlreadyInstalled:c,options:m={}},s)=>{p&&(t=p,ce.logger.warn('The "themeZipFile" option is deprecated. Use "themeData" instead.'));const e="targetFolderName"in m?m.targetFolderName:"";let d="",g="";if(t instanceof File){const P=t.name.split("/").pop()||"theme.zip";g=tr(P),s==null||s.tracker.setCaption(`Installing the ${g} theme`),d=(await Ir(r,{ifAlreadyInstalled:c,zipFile:t,targetPath:`${await r.documentRoot}/wp-content/themes`,targetFolderName:e})).assetFolderName}else{g=t.name,d=e||g,s==null||s.tracker.setCaption(`Installing the ${g} theme`);const P=C.joinPaths(await r.documentRoot,"wp-content","themes",d);await Ne.writeFiles(r,P,t.files,{rmRoot:!0})}("activate"in m?m.activate:!0)&&await dr(r,{themeFolderName:d},s),("importStarterContent"in m?m.importStarterContent:!1)&&await gr(r,{themeSlug:d},s)},Mr=async(r,{username:t="admin"}={},p)=>{p==null||p.tracker.setCaption((p==null?void 0:p.initialCaption)||"Logging in"),r.defineConstant("PLAYGROUND_AUTO_LOGIN_AS_USER",t)},zr=async(r,t,p)=>{var m;(m=p==null?void 0:p.tracker)==null||m.setCaption("Resetting WordPress data");const c=await r.documentRoot;await r.run({env:{DOCROOT:c},code:`<?php
|
|
515
515
|
require getenv('DOCROOT') . '/wp-load.php';
|
|
516
516
|
|
|
517
517
|
$GLOBALS['@pdo']->query('DELETE FROM wp_posts WHERE id > 0');
|
|
@@ -525,7 +525,7 @@ function skip_whitespace($tokens) {
|
|
|
525
525
|
|
|
526
526
|
$GLOBALS['@pdo']->query('DELETE FROM wp_commentmeta');
|
|
527
527
|
$GLOBALS['@pdo']->query("UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='wp_commentmeta'");
|
|
528
|
-
`})},Br=async(r,{options:t})=>{await r.request({url:"/wp-admin/install.php?step=2",method:"POST",body:{language:"en",prefix:"wp_",weblog_title:"My WordPress Website",user_name:t.adminPassword||"admin",admin_password:t.adminPassword||"password",admin_password2:t.adminPassword||"password",Submit:"Install WordPress",pw_weak:"1",admin_email:"admin@localhost.com"}})},Hr=async(r,{selfContained:t=!1}={})=>{const p="/tmp/wordpress-playground.zip",c=await r.documentRoot,
|
|
528
|
+
`})},Br=async(r,{options:t})=>{await r.request({url:"/wp-admin/install.php?step=2",method:"POST",body:{language:"en",prefix:"wp_",weblog_title:"My WordPress Website",user_name:t.adminPassword||"admin",admin_password:t.adminPassword||"password",admin_password2:t.adminPassword||"password",Submit:"Install WordPress",pw_weak:"1",admin_email:"admin@localhost.com"}})},Hr=async(r,{selfContained:t=!1}={})=>{const p="/tmp/wordpress-playground.zip",c=await r.documentRoot,m=C.joinPaths(c,"wp-content");let s=lr;t&&(s=s.filter(g=>!g.startsWith("themes/twenty")).filter(g=>g!=="mu-plugins/sqlite-database-integration"));const e=C.phpVars({zipPath:p,wpContentPath:m,documentRoot:c,exceptPaths:s.map(g=>C.joinPaths(c,"wp-content",g)),additionalPaths:t?{[C.joinPaths(c,"wp-config.php")]:"wp-config.php"}:{}});await ot(r,`zipDir(${e.wpContentPath}, ${e.zipPath}, array(
|
|
529
529
|
'exclude_paths' => ${e.exceptPaths},
|
|
530
530
|
'zip_root' => ${e.documentRoot},
|
|
531
531
|
'additional_paths' => ${e.additionalPaths}
|
|
@@ -588,10 +588,10 @@ function join_paths()
|
|
|
588
588
|
|
|
589
589
|
return preg_replace('#/+#', '/', join('/', $paths));
|
|
590
590
|
}
|
|
591
|
-
`;async function ot(r,t){return await r.run({code:it+t})}const nt=(r,t,p
|
|
591
|
+
`;async function ot(r,t){return await r.run({code:it+t})}const nt=async(r,t,p,c)=>{let m=null;if(r.match(/^(\d+\.\d+)(?:\.\d+)?$/))m=r;else if(r.match(/^(\d.\d(.\d)?)-(beta|rc|alpha|nightly).*$/i)){if(p)m=p;else{let s=await or.resolveWordPressRelease("beta");s.source!=="api"&&(s=await or.resolveWordPressRelease("latest")),m=s.version}m=m.replace(/^(\d.\d)(.\d+)/i,"$1").replace(/(rc|beta).*$/i,"RC")}else c?m=c:m=(await or.resolveWordPressRelease("latest")).version;if(!m)throw new Error(`WordPress version ${r} is not supported by the setSiteLanguage step`);return`https://downloads.wordpress.org/translation/core/${m}/${t}.zip`},Gr=async(r,{language:t},p)=>{p==null||p.tracker.setCaption((p==null?void 0:p.initialCaption)||"Translating"),await r.defineConstant("WPLANG",t);const c=await r.documentRoot,m=(await r.run({code:`<?php
|
|
592
592
|
require '${c}/wp-includes/version.php';
|
|
593
593
|
echo $wp_version;
|
|
594
|
-
`})).text,
|
|
594
|
+
`})).text,s=[{url:await nt(m,t),type:"core"}],d=(await r.run({code:`<?php
|
|
595
595
|
require_once('${c}/wp-load.php');
|
|
596
596
|
require_once('${c}/wp-admin/includes/plugin.php');
|
|
597
597
|
echo json_encode(
|
|
@@ -611,7 +611,7 @@ function join_paths()
|
|
|
611
611
|
)
|
|
612
612
|
)
|
|
613
613
|
)
|
|
614
|
-
);`})).json;for(const{slug:
|
|
614
|
+
);`})).json;for(const{slug:O,version:T}of d)s.push({url:`https://downloads.wordpress.org/translation/plugin/${O}/${T}/${t}.zip`,type:"plugin"});const x=(await r.run({code:`<?php
|
|
615
615
|
require_once('${c}/wp-load.php');
|
|
616
616
|
require_once('${c}/wp-admin/includes/theme.php');
|
|
617
617
|
echo json_encode(
|
|
@@ -626,7 +626,7 @@ function join_paths()
|
|
|
626
626
|
wp_get_themes()
|
|
627
627
|
)
|
|
628
628
|
)
|
|
629
|
-
);`})).json;for(const{slug:
|
|
629
|
+
);`})).json;for(const{slug:O,version:T}of x)s.push({url:`https://downloads.wordpress.org/translation/theme/${O}/${T}/${t}.zip`,type:"theme"});await r.isDir(`${c}/wp-content/languages/plugins`)||await r.mkdir(`${c}/wp-content/languages/plugins`),await r.isDir(`${c}/wp-content/languages/themes`)||await r.mkdir(`${c}/wp-content/languages/themes`);const F=new C.Semaphore({concurrency:5}),P=s.map(({url:O,type:T})=>F.run(async()=>{try{const L=await fetch(O);if(!L.ok)throw new Error(`Failed to download translations for ${T}: ${L.statusText}`);let y=`${c}/wp-content/languages`;T==="plugin"?y+="/plugins":T==="theme"&&(y+="/themes"),await kr.unzipFile(r,new File([await L.blob()],`${t}-${T}.zip`),y)}catch(L){if(T==="core")throw new Error(`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/.`);ce.logger.warn(`Error downloading translations for ${T}: ${L}`)}}));await Promise.all(P)},at=Object.freeze(Object.defineProperty({__proto__:null,activatePlugin:fr,activateTheme:dr,cp:Lr,defineSiteUrl:hr,defineWpConfigConsts:Ke,enableMultisite:Rr,exportWXR:Wr,importThemeStarterContent:gr,importWordPressFiles:Cr,importWxr:Dr,installPlugin:Ur,installTheme:Vr,login:Mr,mkdir:Sr,mv:Fr,request:Tr,resetData:zr,rm:ur,rmdir:Nr,runPHP:$r,runPHPWithOptions:jr,runSql:Er,runWpInstallationWizard:Br,setSiteLanguage:Gr,setSiteOptions:cr,unzip:rr,updateUserMeta:qr,wpCLI:yr,writeFile:er,writeFiles:xr,zipWpContent:Hr},Symbol.toStringTag,{value:"Module"})),pt=["vfs","literal","wordpress.org/themes","wordpress.org/plugins","url","git:directory"];function lt(r){return r&&typeof r=="object"&&typeof r.resource=="string"&&pt.includes(r.resource)}class ke{get progress(){return this._progress}set progress(t){this._progress=t}setPlayground(t){this.playground=t}get isAsync(){return!1}static create(t,{semaphore:p,progress:c,corsProxy:m}){let s;switch(t.resource){case"vfs":s=new ft(t,c);break;case"literal":s=new dt(t,c);break;case"wordpress.org/themes":s=new ht(t,c);break;case"wordpress.org/plugins":s=new gt(t,c);break;case"url":s=new ct(t,c);break;case"git:directory":s=new mt(t,c,{corsProxy:m});break;case"literal:directory":s=new yt(t,c);break;default:throw new Error(`Invalid resource: ${t}`)}return s=new bt(s),p&&(s=new wt(s,p)),s}}class Yr extends ke{constructor(t){super(),this.resource=t}get progress(){return this.resource.progress}set progress(t){this.resource.progress=t}get name(){return this.resource.name}get isAsync(){return this.resource.isAsync}setPlayground(t){this.resource.setPlayground(t)}}class ft extends ke{constructor(t,p){super(),this.resource=t,this._progress=p}async resolve(){var p;const t=await this.playground.readFileAsBuffer(this.resource.path);return(p=this.progress)==null||p.set(100),new File([t],this.name)}get name(){return this.resource.path.split("/").pop()||""}}class dt extends ke{constructor(t,p){super(),this.resource=t,this._progress=p}async resolve(){var t;return(t=this.progress)==null||t.set(100),new File([this.resource.contents],this.resource.name)}get name(){return this.resource.name}}class br extends ke{constructor(t){super(),this._progress=t}async resolve(){var p,c;(p=this.progress)==null||p.setCaption(this.caption);const t=this.getURL();try{let m=await fetch(t);if(!m.ok)throw new Error(`Could not download "${t}"`);if(m=await Or.cloneResponseMonitorProgress(m,((c=this.progress)==null?void 0:c.loadingListener)??ut),m.status!==200)throw new Error(`Could not download "${t}"`);return new File([await m.blob()],this.name)}catch(m){throw new Error(`Could not download "${t}".
|
|
630
630
|
Check if the URL is correct and the server is reachable.
|
|
631
631
|
If it is reachable, the server might be blocking the request.
|
|
632
632
|
Check the browser console and network tabs for more information.
|
|
@@ -650,11 +650,11 @@ function join_paths()
|
|
|
650
650
|
https://raw.githubusercontent.com/username/repository/branch/filename
|
|
651
651
|
|
|
652
652
|
Error:
|
|
653
|
-
${h}`)}}get caption(){return`Downloading ${this.name}`}get name(){try{return new URL(this.getURL(),"http://example.com").pathname.split("/").pop()}catch{return this.getURL()}}get isAsync(){return!0}}const ut=()=>{};class ct extends gr{constructor(t,p){if(super(p),this.resource=t,this.resource.url.startsWith("https://github.com/")){const c=this.resource.url.match(/^https:\/\/github\.com\/(?<owner>[^/]+)\/(?<repo>[^/]+)\/blob\/(?<branch>[^/]+)\/(?<path>.+[^/])$/);c!=null&&c.groups&&(this.resource={...this.resource,url:`https://raw.githubusercontent.com/${c.groups.owner}/${c.groups.repo}/${c.groups.branch}/${c.groups.path}`})}}getURL(){return this.resource.url}get caption(){return this.resource.caption??super.caption}}class mt extends ke{constructor(t,p,c){super(),this.reference=t,this._progress=p,this.options=c}async resolve(){var d;const t=(d=this.options)!=null&&d.corsProxy?`${this.options.corsProxy}?${this.reference.url}`:this.reference.url,p=["","HEAD"].includes(this.reference.ref)?"HEAD":`refs/heads/${this.reference.ref}`,c=await ir.listGitFiles(t,p),h=this.reference.path.replace(/^\/+/,""),i=ir.listDescendantFiles(c,h);let e=await ir.sparseCheckout(t,p,i);return e=Object.fromEntries(Object.entries(e).map(([g,x])=>(g=g.substring(this.reference.path.length),g=g.replace(/^\/+/,""),[g,x]))),{name:W.dirname(this.reference.path)||this.reference.url.replaceAll(/[^a-zA-Z0-9-.]/g,"-").replaceAll(/-+/g,"-"),files:e}}get name(){return this.reference.path.split("/").pop()}}class yt extends ke{constructor(t,p){super(),this.reference=t,this._progress=p}async resolve(){return this.reference}get name(){return this.reference.name}}class ht extends gr{constructor(t,p){super(p),this.resource=t}get name(){return rr(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/theme/${Zr(this.resource.slug)}`}}class gt extends gr{constructor(t,p){super(p),this.resource=t}get name(){return rr(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/plugin/${Zr(this.resource.slug)}`}}function Zr(r){return!r||r.endsWith(".zip")?r:r+".latest-stable.zip"}class bt extends Yr{async resolve(){return this.promise||(this.promise=this.resource.resolve()),this.promise}}class wt extends Yr{constructor(t,p){super(t),this.semaphore=p}async resolve(){return this.isAsync?this.semaphore.run(()=>this.resource.resolve()):this.resource.resolve()}}const vt={type:"object",properties:{landingPage:{type:"string",description:"The URL to navigate to after the blueprint has been run."},description:{type:"string",description:"Optional description. It doesn't do anything but is exposed as a courtesy to developers who may want to document which blueprint file does what.",deprecated:"Use meta.description instead."},meta:{type:"object",properties:{title:{type:"string",description:"A clear and concise name for your Blueprint."},description:{type:"string",description:"A brief explanation of what your Blueprint offers."},author:{type:"string",description:"A GitHub username of the author of this Blueprint."},categories:{type:"array",items:{type:"string"},description:"Relevant categories to help users find your Blueprint in the future Blueprints section on WordPress.org."}},required:["title","author"],additionalProperties:!1,description:"Optional metadata. Used by the Blueprints gallery at https://github.com/WordPress/blueprints"},preferredVersions:{type:"object",properties:{php:{anyOf:[{$ref:"#/definitions/SupportedPHPVersion"},{type:"string",const:"latest"}],description:"The preferred PHP version to use. If not specified, the latest supported version will be used"},wp:{type:"string",description:"The preferred WordPress version to use. If not specified, the latest supported version will be used"}},required:["php","wp"],additionalProperties:!1,description:"The preferred PHP and WordPress versions to use."},features:{type:"object",properties:{networking:{type:"boolean",description:"Should boot with support for network request via wp_safe_remote_get?"}},additionalProperties:!1},extraLibraries:{type:"array",items:{$ref:"#/definitions/ExtraLibrary"},description:"Extra libraries to preload into the Playground instance."},constants:{$ref:"#/definitions/PHPConstants",description:"PHP Constants to define on every request"},plugins:{type:"array",items:{anyOf:[{type:"string"},{$ref:"#/definitions/FileReference"}]},description:"WordPress plugins to install and activate"},siteOptions:{type:"object",additionalProperties:{type:"string"},properties:{blogname:{type:"string",description:"The site title"}},description:"WordPress site options to define"},login:{anyOf:[{type:"boolean"},{type:"object",properties:{username:{type:"string"},password:{type:"string"}},required:["username","password"],additionalProperties:!1}],description:"User to log in as. If true, logs the user in as admin/password."},phpExtensionBundles:{deprecated:"No longer used. Feel free to remove it from your Blueprint."},steps:{type:"array",items:{anyOf:[{$ref:"#/definitions/StepDefinition"},{type:"string"},{not:{}},{type:"boolean",const:!1},{type:"null"}]},description:"The steps to run after every other operation in this Blueprint was executed."},$schema:{type:"string"}},additionalProperties:!1},Pt={type:"string",enum:["8.3","8.2","8.1","8.0","7.4","7.3","7.2","7.1","7.0"]},_t={type:"object",additionalProperties:{type:["string","boolean","number"]}},Qr=Object.prototype.hasOwnProperty;function K(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;const d=e;let g=!1;const x=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let M;if(r.resource===void 0&&(M="resource")||r.path===void 0&&(M="path")){const E={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"};i===null?i=[E]:i.push(E),e++}else{const E=e;for(const u in r)if(!(u==="resource"||u==="path")){const j={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"};i===null?i=[j]:i.push(j),e++;break}if(E===e){if(r.resource!==void 0){let u=r.resource;const j=e;if(typeof u!="string"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[z]:i.push(z),e++}if(u!=="vfs"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};i===null?i=[z]:i.push(z),e++}var P=j===e}else var P=!0;if(P)if(r.path!==void 0){const u=e;if(typeof r.path!="string"){const z={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[z]:i.push(z),e++}var P=u===e}else var P=!0}}}else{const M={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[M]:i.push(M),e++}var $=x===e;if(g=g||$,!g){const M=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let j;if(r.resource===void 0&&(j="resource")||r.name===void 0&&(j="name")||r.contents===void 0&&(j="contents")){const z={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"};i===null?i=[z]:i.push(z),e++}else{const z=e;for(const y in r)if(!(y==="resource"||y==="name"||y==="contents")){const v={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"};i===null?i=[v]:i.push(v),e++;break}if(z===e){if(r.resource!==void 0){let y=r.resource;const v=e;if(typeof y!="string"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[b]:i.push(b),e++}if(y!=="literal"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};i===null?i=[b]:i.push(b),e++}var L=v===e}else var L=!0;if(L){if(r.name!==void 0){const y=e;if(typeof r.name!="string"){const b={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[b]:i.push(b),e++}var L=y===e}else var L=!0;if(L)if(r.contents!==void 0){let y=r.contents;const v=e,b=e;let T=!1;const w=e;if(typeof y!="string"){const D={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[D]:i.push(D),e++}var N=w===e;if(T=T||N,!T){const D=e;if(e===D)if(y&&typeof y=="object"&&!Array.isArray(y)){let R;if(y.BYTES_PER_ELEMENT===void 0&&(R="BYTES_PER_ELEMENT")||y.buffer===void 0&&(R="buffer")||y.byteLength===void 0&&(R="byteLength")||y.byteOffset===void 0&&(R="byteOffset")||y.length===void 0&&(R="length")){const U={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:R},message:"must have required property '"+R+"'"};i===null?i=[U]:i.push(U),e++}else{const U=e;for(const F in y)if(!(F==="BYTES_PER_ELEMENT"||F==="buffer"||F==="byteLength"||F==="byteOffset"||F==="length")){let G=y[F];const se=e;if(!(typeof G=="number"&&isFinite(G))){const Y={instancePath:t+"/contents/"+F.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Y]:i.push(Y),e++}var m=se===e;if(!m)break}if(U===e){if(y.BYTES_PER_ELEMENT!==void 0){let F=y.BYTES_PER_ELEMENT;const G=e;if(!(typeof F=="number"&&isFinite(F))){const se={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[se]:i.push(se),e++}var I=G===e}else var I=!0;if(I){if(y.buffer!==void 0){let F=y.buffer;const G=e;if(e===G)if(F&&typeof F=="object"&&!Array.isArray(F)){let Y;if(F.byteLength===void 0&&(Y="byteLength")){const C={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:Y},message:"must have required property '"+Y+"'"};i===null?i=[C]:i.push(C),e++}else{const C=e;for(const H in F)if(H!=="byteLength"){const X={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:H},message:"must NOT have additional properties"};i===null?i=[X]:i.push(X),e++;break}if(C===e&&F.byteLength!==void 0){let H=F.byteLength;if(!(typeof H=="number"&&isFinite(H))){const X={instancePath:t+"/contents/buffer/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[X]:i.push(X),e++}}}}else{const Y={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[Y]:i.push(Y),e++}var I=G===e}else var I=!0;if(I){if(y.byteLength!==void 0){let F=y.byteLength;const G=e;if(!(typeof F=="number"&&isFinite(F))){const Y={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Y]:i.push(Y),e++}var I=G===e}else var I=!0;if(I){if(y.byteOffset!==void 0){let F=y.byteOffset;const G=e;if(!(typeof F=="number"&&isFinite(F))){const Y={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Y]:i.push(Y),e++}var I=G===e}else var I=!0;if(I)if(y.length!==void 0){let F=y.length;const G=e;if(!(typeof F=="number"&&isFinite(F))){const Y={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Y]:i.push(Y),e++}var I=G===e}else var I=!0}}}}}}else{const R={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[R]:i.push(R),e++}var N=D===e;T=T||N}if(T)e=b,i!==null&&(b?i.length=b:i=null);else{const D={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};i===null?i=[D]:i.push(D),e++}var L=v===e}else var L=!0}}}}else{const j={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[j]:i.push(j),e++}var $=M===e;if(g=g||$,!g){const j=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let v;if(r.resource===void 0&&(v="resource")||r.slug===void 0&&(v="slug")){const b={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"};i===null?i=[b]:i.push(b),e++}else{const b=e;for(const T in r)if(!(T==="resource"||T==="slug")){const w={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:T},message:"must NOT have additional properties"};i===null?i=[w]:i.push(w),e++;break}if(b===e){if(r.resource!==void 0){let T=r.resource;const w=e;if(typeof T!="string"){const l={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[l]:i.push(l),e++}if(T!=="wordpress.org/themes"){const l={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};i===null?i=[l]:i.push(l),e++}var V=w===e}else var V=!0;if(V)if(r.slug!==void 0){const T=e;if(typeof r.slug!="string"){const l={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[l]:i.push(l),e++}var V=T===e}else var V=!0}}}else{const v={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[v]:i.push(v),e++}var $=j===e;if(g=g||$,!g){const v=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let w;if(r.resource===void 0&&(w="resource")||r.slug===void 0&&(w="slug")){const l={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:w},message:"must have required property '"+w+"'"};i===null?i=[l]:i.push(l),e++}else{const l=e;for(const D in r)if(!(D==="resource"||D==="slug")){const A={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"};i===null?i=[A]:i.push(A),e++;break}if(l===e){if(r.resource!==void 0){let D=r.resource;const A=e;if(typeof D!="string"){const R={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),e++}if(D!=="wordpress.org/plugins"){const R={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};i===null?i=[R]:i.push(R),e++}var Q=A===e}else var Q=!0;if(Q)if(r.slug!==void 0){const D=e;if(typeof r.slug!="string"){const R={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),e++}var Q=D===e}else var Q=!0}}}else{const w={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[w]:i.push(w),e++}var $=v===e;if(g=g||$,!g){const w=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let A;if(r.resource===void 0&&(A="resource")||r.url===void 0&&(A="url")){const R={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};i===null?i=[R]:i.push(R),e++}else{const R=e;for(const U in r)if(!(U==="resource"||U==="url"||U==="caption")){const F={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties"};i===null?i=[F]:i.push(F),e++;break}if(R===e){if(r.resource!==void 0){let U=r.resource;const F=e;if(typeof U!="string"){const G={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[G]:i.push(G),e++}if(U!=="url"){const G={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};i===null?i=[G]:i.push(G),e++}var _=F===e}else var _=!0;if(_){if(r.url!==void 0){const U=e;if(typeof r.url!="string"){const G={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[G]:i.push(G),e++}var _=U===e}else var _=!0;if(_)if(r.caption!==void 0){const U=e;if(typeof r.caption!="string"){const G={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[G]:i.push(G),e++}var _=U===e}else var _=!0}}}}else{const A={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[A]:i.push(A),e++}var $=w===e;g=g||$}}}}if(g)e=d,i!==null&&(d?i.length=d:i=null);else{const M={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[M]:i.push(M),e++,K.errors=i,!1}return K.errors=i,e===0}const or={type:"object",discriminator:{propertyName:"step"},required:["step"],oneOf:[{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activatePlugin"},pluginPath:{type:"string",description:"Path to the plugin directory as absolute path (/wordpress/wp-content/plugins/plugin-name); or the plugin entry file relative to the plugins directory (plugin-name/plugin-name.php)."},pluginName:{type:"string",description:"Optional. Plugin name to display in the progress bar."}},required:["pluginPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activateTheme"},themeFolderName:{type:"string",description:"The name of the theme folder inside wp-content/themes/"}},required:["step","themeFolderName"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"cp"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineWpConfigConsts"},consts:{type:"object",additionalProperties:{},description:"The constants to define"},method:{type:"string",enum:["rewrite-wp-config","define-before-run"],description:`The method of defining the constants in wp-config.php. Possible values are:
|
|
653
|
+
${m}`)}}get caption(){return`Downloading ${this.name}`}get name(){try{return new URL(this.getURL(),"http://example.com").pathname.split("/").pop()}catch{return this.getURL()}}get isAsync(){return!0}}const ut=()=>{};class ct extends br{constructor(t,p){if(super(p),this.resource=t,this.resource.url.startsWith("https://github.com/")){const c=this.resource.url.match(/^https:\/\/github\.com\/(?<owner>[^/]+)\/(?<repo>[^/]+)\/blob\/(?<branch>[^/]+)\/(?<path>.+[^/])$/);c!=null&&c.groups&&(this.resource={...this.resource,url:`https://raw.githubusercontent.com/${c.groups.owner}/${c.groups.repo}/${c.groups.branch}/${c.groups.path}`})}}getURL(){return this.resource.url}get caption(){return this.resource.caption??super.caption}}class mt extends ke{constructor(t,p,c){super(),this.reference=t,this._progress=p,this.options=c}async resolve(){var d;const t=(d=this.options)!=null&&d.corsProxy?`${this.options.corsProxy}?${this.reference.url}`:this.reference.url,p=["","HEAD"].includes(this.reference.ref)?"HEAD":`refs/heads/${this.reference.ref}`,c=await nr.listGitFiles(t,p),m=this.reference.path.replace(/^\/+/,""),s=nr.listDescendantFiles(c,m);let e=await nr.sparseCheckout(t,p,s);return e=Object.fromEntries(Object.entries(e).map(([g,x])=>(g=g.substring(this.reference.path.length),g=g.replace(/^\/+/,""),[g,x]))),{name:C.dirname(this.reference.path)||this.reference.url.replaceAll(/[^a-zA-Z0-9-.]/g,"-").replaceAll(/-+/g,"-"),files:e}}get name(){return this.reference.path.split("/").pop()}}class yt extends ke{constructor(t,p){super(),this.reference=t,this._progress=p}async resolve(){return this.reference}get name(){return this.reference.name}}class ht extends br{constructor(t,p){super(p),this.resource=t}get name(){return tr(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/theme/${Zr(this.resource.slug)}`}}class gt extends br{constructor(t,p){super(p),this.resource=t}get name(){return tr(this.resource.slug)}getURL(){return`https://downloads.wordpress.org/plugin/${Zr(this.resource.slug)}`}}function Zr(r){return!r||r.endsWith(".zip")?r:r+".latest-stable.zip"}class bt extends Yr{async resolve(){return this.promise||(this.promise=this.resource.resolve()),this.promise}}class wt extends Yr{constructor(t,p){super(t),this.semaphore=p}async resolve(){return this.isAsync?this.semaphore.run(()=>this.resource.resolve()):this.resource.resolve()}}const vt={type:"object",properties:{landingPage:{type:"string",description:"The URL to navigate to after the blueprint has been run."},description:{type:"string",description:"Optional description. It doesn't do anything but is exposed as a courtesy to developers who may want to document which blueprint file does what.",deprecated:"Use meta.description instead."},meta:{type:"object",properties:{title:{type:"string",description:"A clear and concise name for your Blueprint."},description:{type:"string",description:"A brief explanation of what your Blueprint offers."},author:{type:"string",description:"A GitHub username of the author of this Blueprint."},categories:{type:"array",items:{type:"string"},description:"Relevant categories to help users find your Blueprint in the future Blueprints section on WordPress.org."}},required:["title","author"],additionalProperties:!1,description:"Optional metadata. Used by the Blueprints gallery at https://github.com/WordPress/blueprints"},preferredVersions:{type:"object",properties:{php:{anyOf:[{$ref:"#/definitions/SupportedPHPVersion"},{type:"string",const:"latest"}],description:"The preferred PHP version to use. If not specified, the latest supported version will be used"},wp:{type:"string",description:"The preferred WordPress version to use. If not specified, the latest supported version will be used"}},required:["php","wp"],additionalProperties:!1,description:"The preferred PHP and WordPress versions to use."},features:{type:"object",properties:{networking:{type:"boolean",description:"Should boot with support for network request via wp_safe_remote_get?"}},additionalProperties:!1},extraLibraries:{type:"array",items:{$ref:"#/definitions/ExtraLibrary"},description:"Extra libraries to preload into the Playground instance."},constants:{$ref:"#/definitions/PHPConstants",description:"PHP Constants to define on every request"},plugins:{type:"array",items:{anyOf:[{type:"string"},{$ref:"#/definitions/FileReference"}]},description:"WordPress plugins to install and activate"},siteOptions:{type:"object",additionalProperties:{type:"string"},properties:{blogname:{type:"string",description:"The site title"}},description:"WordPress site options to define"},login:{anyOf:[{type:"boolean"},{type:"object",properties:{username:{type:"string"},password:{type:"string"}},required:["username","password"],additionalProperties:!1}],description:"User to log in as. If true, logs the user in as admin/password."},phpExtensionBundles:{deprecated:"No longer used. Feel free to remove it from your Blueprint."},steps:{type:"array",items:{anyOf:[{$ref:"#/definitions/StepDefinition"},{type:"string"},{not:{}},{type:"boolean",const:!1},{type:"null"}]},description:"The steps to run after every other operation in this Blueprint was executed."},$schema:{type:"string"}},additionalProperties:!1},Pt={type:"string",enum:["8.3","8.2","8.1","8.0","7.4","7.3","7.2","7.1","7.0"]},_t={type:"object",additionalProperties:{type:["string","boolean","number"]}},Qr=Object.prototype.hasOwnProperty;function K(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let s=null,e=0;const d=e;let g=!1;const x=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let M;if(r.resource===void 0&&(M="resource")||r.path===void 0&&(M="path")){const j={instancePath:t,schemaPath:"#/definitions/VFSReference/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"};s===null?s=[j]:s.push(j),e++}else{const j=e;for(const u in r)if(!(u==="resource"||u==="path")){const E={instancePath:t,schemaPath:"#/definitions/VFSReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"};s===null?s=[E]:s.push(E),e++;break}if(j===e){if(r.resource!==void 0){let u=r.resource;const E=e;if(typeof u!="string"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),e++}if(u!=="vfs"){const z={instancePath:t+"/resource",schemaPath:"#/definitions/VFSReference/properties/resource/const",keyword:"const",params:{allowedValue:"vfs"},message:"must be equal to constant"};s===null?s=[z]:s.push(z),e++}var P=E===e}else var P=!0;if(P)if(r.path!==void 0){const u=e;if(typeof r.path!="string"){const z={instancePath:t+"/path",schemaPath:"#/definitions/VFSReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),e++}var P=u===e}else var P=!0}}}else{const M={instancePath:t,schemaPath:"#/definitions/VFSReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[M]:s.push(M),e++}var O=x===e;if(g=g||O,!g){const M=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let E;if(r.resource===void 0&&(E="resource")||r.name===void 0&&(E="name")||r.contents===void 0&&(E="contents")){const z={instancePath:t,schemaPath:"#/definitions/LiteralReference/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"};s===null?s=[z]:s.push(z),e++}else{const z=e;for(const h in r)if(!(h==="resource"||h==="name"||h==="contents")){const v={instancePath:t,schemaPath:"#/definitions/LiteralReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:h},message:"must NOT have additional properties"};s===null?s=[v]:s.push(v),e++;break}if(z===e){if(r.resource!==void 0){let h=r.resource;const v=e;if(typeof h!="string"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[b]:s.push(b),e++}if(h!=="literal"){const b={instancePath:t+"/resource",schemaPath:"#/definitions/LiteralReference/properties/resource/const",keyword:"const",params:{allowedValue:"literal"},message:"must be equal to constant"};s===null?s=[b]:s.push(b),e++}var T=v===e}else var T=!0;if(T){if(r.name!==void 0){const h=e;if(typeof r.name!="string"){const b={instancePath:t+"/name",schemaPath:"#/definitions/LiteralReference/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[b]:s.push(b),e++}var T=h===e}else var T=!0;if(T)if(r.contents!==void 0){let h=r.contents;const v=e,b=e;let q=!1;const w=e;if(typeof h!="string"){const D={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[D]:s.push(D),e++}var L=w===e;if(q=q||L,!q){const D=e;if(e===D)if(h&&typeof h=="object"&&!Array.isArray(h)){let R;if(h.BYTES_PER_ELEMENT===void 0&&(R="BYTES_PER_ELEMENT")||h.buffer===void 0&&(R="buffer")||h.byteLength===void 0&&(R="byteLength")||h.byteOffset===void 0&&(R="byteOffset")||h.length===void 0&&(R="length")){const U={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/required",keyword:"required",params:{missingProperty:R},message:"must have required property '"+R+"'"};s===null?s=[U]:s.push(U),e++}else{const U=e;for(const S in h)if(!(S==="BYTES_PER_ELEMENT"||S==="buffer"||S==="byteLength"||S==="byteOffset"||S==="length")){let G=h[S];const se=e;if(!(typeof G=="number"&&isFinite(G))){const Y={instancePath:t+"/contents/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Y]:s.push(Y),e++}var y=se===e;if(!y)break}if(U===e){if(h.BYTES_PER_ELEMENT!==void 0){let S=h.BYTES_PER_ELEMENT;const G=e;if(!(typeof S=="number"&&isFinite(S))){const se={instancePath:t+"/contents/BYTES_PER_ELEMENT",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[se]:s.push(se),e++}var I=G===e}else var I=!0;if(I){if(h.buffer!==void 0){let S=h.buffer;const G=e;if(e===G)if(S&&typeof S=="object"&&!Array.isArray(S)){let Y;if(S.byteLength===void 0&&(Y="byteLength")){const W={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:Y},message:"must have required property '"+Y+"'"};s===null?s=[W]:s.push(W),e++}else{const W=e;for(const H in S)if(H!=="byteLength"){const X={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:H},message:"must NOT have additional properties"};s===null?s=[X]:s.push(X),e++;break}if(W===e&&S.byteLength!==void 0){let H=S.byteLength;if(!(typeof H=="number"&&isFinite(H))){const X={instancePath:t+"/contents/buffer/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[X]:s.push(X),e++}}}}else{const Y={instancePath:t+"/contents/buffer",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Y]:s.push(Y),e++}var I=G===e}else var I=!0;if(I){if(h.byteLength!==void 0){let S=h.byteLength;const G=e;if(!(typeof S=="number"&&isFinite(S))){const Y={instancePath:t+"/contents/byteLength",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Y]:s.push(Y),e++}var I=G===e}else var I=!0;if(I){if(h.byteOffset!==void 0){let S=h.byteOffset;const G=e;if(!(typeof S=="number"&&isFinite(S))){const Y={instancePath:t+"/contents/byteOffset",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Y]:s.push(Y),e++}var I=G===e}else var I=!0;if(I)if(h.length!==void 0){let S=h.length;const G=e;if(!(typeof S=="number"&&isFinite(S))){const Y={instancePath:t+"/contents/length",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Y]:s.push(Y),e++}var I=G===e}else var I=!0}}}}}}else{const R={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[R]:s.push(R),e++}var L=D===e;q=q||L}if(q)e=b,s!==null&&(b?s.length=b:s=null);else{const D={instancePath:t+"/contents",schemaPath:"#/definitions/LiteralReference/properties/contents/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[D]:s.push(D),e++}var T=v===e}else var T=!0}}}}else{const E={instancePath:t,schemaPath:"#/definitions/LiteralReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[E]:s.push(E),e++}var O=M===e;if(g=g||O,!g){const E=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let v;if(r.resource===void 0&&(v="resource")||r.slug===void 0&&(v="slug")){const b={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/required",keyword:"required",params:{missingProperty:v},message:"must have required property '"+v+"'"};s===null?s=[b]:s.push(b),e++}else{const b=e;for(const q in r)if(!(q==="resource"||q==="slug")){const w={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:q},message:"must NOT have additional properties"};s===null?s=[w]:s.push(w),e++;break}if(b===e){if(r.resource!==void 0){let q=r.resource;const w=e;if(typeof q!="string"){const f={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[f]:s.push(f),e++}if(q!=="wordpress.org/themes"){const f={instancePath:t+"/resource",schemaPath:"#/definitions/CoreThemeReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/themes"},message:"must be equal to constant"};s===null?s=[f]:s.push(f),e++}var V=w===e}else var V=!0;if(V)if(r.slug!==void 0){const q=e;if(typeof r.slug!="string"){const f={instancePath:t+"/slug",schemaPath:"#/definitions/CoreThemeReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[f]:s.push(f),e++}var V=q===e}else var V=!0}}}else{const v={instancePath:t,schemaPath:"#/definitions/CoreThemeReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[v]:s.push(v),e++}var O=E===e;if(g=g||O,!g){const v=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let w;if(r.resource===void 0&&(w="resource")||r.slug===void 0&&(w="slug")){const f={instancePath:t,schemaPath:"#/definitions/CorePluginReference/required",keyword:"required",params:{missingProperty:w},message:"must have required property '"+w+"'"};s===null?s=[f]:s.push(f),e++}else{const f=e;for(const D in r)if(!(D==="resource"||D==="slug")){const A={instancePath:t,schemaPath:"#/definitions/CorePluginReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"};s===null?s=[A]:s.push(A),e++;break}if(f===e){if(r.resource!==void 0){let D=r.resource;const A=e;if(typeof D!="string"){const R={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[R]:s.push(R),e++}if(D!=="wordpress.org/plugins"){const R={instancePath:t+"/resource",schemaPath:"#/definitions/CorePluginReference/properties/resource/const",keyword:"const",params:{allowedValue:"wordpress.org/plugins"},message:"must be equal to constant"};s===null?s=[R]:s.push(R),e++}var Q=A===e}else var Q=!0;if(Q)if(r.slug!==void 0){const D=e;if(typeof r.slug!="string"){const R={instancePath:t+"/slug",schemaPath:"#/definitions/CorePluginReference/properties/slug/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[R]:s.push(R),e++}var Q=D===e}else var Q=!0}}}else{const w={instancePath:t,schemaPath:"#/definitions/CorePluginReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[w]:s.push(w),e++}var O=v===e;if(g=g||O,!g){const w=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let A;if(r.resource===void 0&&(A="resource")||r.url===void 0&&(A="url")){const R={instancePath:t,schemaPath:"#/definitions/UrlReference/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};s===null?s=[R]:s.push(R),e++}else{const R=e;for(const U in r)if(!(U==="resource"||U==="url"||U==="caption")){const S={instancePath:t,schemaPath:"#/definitions/UrlReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties"};s===null?s=[S]:s.push(S),e++;break}if(R===e){if(r.resource!==void 0){let U=r.resource;const S=e;if(typeof U!="string"){const G={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),e++}if(U!=="url"){const G={instancePath:t+"/resource",schemaPath:"#/definitions/UrlReference/properties/resource/const",keyword:"const",params:{allowedValue:"url"},message:"must be equal to constant"};s===null?s=[G]:s.push(G),e++}var _=S===e}else var _=!0;if(_){if(r.url!==void 0){const U=e;if(typeof r.url!="string"){const G={instancePath:t+"/url",schemaPath:"#/definitions/UrlReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),e++}var _=U===e}else var _=!0;if(_)if(r.caption!==void 0){const U=e;if(typeof r.caption!="string"){const G={instancePath:t+"/caption",schemaPath:"#/definitions/UrlReference/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),e++}var _=U===e}else var _=!0}}}}else{const A={instancePath:t,schemaPath:"#/definitions/UrlReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[A]:s.push(A),e++}var O=w===e;g=g||O}}}}if(g)e=d,s!==null&&(d?s.length=d:s=null);else{const M={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[M]:s.push(M),e++,K.errors=s,!1}return K.errors=s,e===0}const ar={type:"object",discriminator:{propertyName:"step"},required:["step"],oneOf:[{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activatePlugin"},pluginPath:{type:"string",description:"Path to the plugin directory as absolute path (/wordpress/wp-content/plugins/plugin-name); or the plugin entry file relative to the plugins directory (plugin-name/plugin-name.php)."},pluginName:{type:"string",description:"Optional. Plugin name to display in the progress bar."}},required:["pluginPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"activateTheme"},themeFolderName:{type:"string",description:"The name of the theme folder inside wp-content/themes/"}},required:["step","themeFolderName"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"cp"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineWpConfigConsts"},consts:{type:"object",additionalProperties:{},description:"The constants to define"},method:{type:"string",enum:["rewrite-wp-config","define-before-run"],description:`The method of defining the constants in wp-config.php. Possible values are:
|
|
654
654
|
|
|
655
655
|
- rewrite-wp-config: Default. Rewrites the wp-config.php file to explicitly call define() with the requested name and value. This method alters the file on the disk, but it doesn't conflict with existing define() calls in wp-config.php.
|
|
656
656
|
|
|
657
657
|
- define-before-run: Defines the constant before running the requested script. It doesn't alter any files on the disk, but constants defined this way may conflict with existing define() calls in wp-config.php.`},virtualize:{type:"boolean",deprecated:`This option is noop and will be removed in a future version.
|
|
658
658
|
This option is only kept in here to avoid breaking Blueprint schema validation
|
|
659
|
-
for existing apps using this option.`}},required:["consts","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineSiteUrl"},siteUrl:{type:"string",description:"The URL"}},required:["siteUrl","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"enableMultisite"},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWxr"},file:{$ref:"#/definitions/FileReference",description:"The file to import"}},required:["file","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importThemeStarterContent",description:"The step identifier."},themeSlug:{type:"string",description:"The name of the theme to import content from."}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWordPressFiles"},wordPressFilesZip:{$ref:"#/definitions/FileReference",description:"The zip file containing the top-level WordPress files and directories."},pathInZip:{type:"string",description:"The path inside the zip file where the WordPress files are."}},required:["step","wordPressFilesZip"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},ifAlreadyInstalled:{type:"string",enum:["overwrite","skip","error"],description:"What to do if the asset already exists."},step:{type:"string",const:"installPlugin",description:"The step identifier."},pluginData:{anyOf:[{$ref:"#/definitions/FileReference"},{$ref:"#/definitions/DirectoryReference"}],description:"The plugin files to install. It can be
|
|
660
|
-
Only the username field is required for user authentication.`}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mkdir"},path:{type:"string",description:"The path of the directory you want to create"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mv"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"resetData"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"request"},request:{$ref:"#/definitions/PHPRequest",description:"Request details (See /wordpress-playground/api/universal/interface/PHPRequest)"}},required:["request","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rm"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rmdir"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHP",description:"The step identifier."},code:{type:"string",description:"The PHP code to run."}},required:["code","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHPWithOptions"},options:{$ref:"#/definitions/PHPRunOptions",description:"Run options (See /wordpress-playground/api/universal/interface/PHPRunOptions/))"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runWpInstallationWizard"},options:{$ref:"#/definitions/WordPressInstallationOptions"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runSql",description:"The step identifier."},sql:{$ref:"#/definitions/FileReference",description:"The SQL to run. Each non-empty line must contain a valid SQL query."}},required:["sql","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteOptions",description:'The name of the step. Must be "setSiteOptions".'},options:{type:"object",additionalProperties:{},description:"The options to set on the site."}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"unzip"},zipFile:{$ref:"#/definitions/FileReference",description:"The zip file to extract"},zipPath:{type:"string",description:"The path of the zip file to extract",deprecated:"Use zipFile instead."},extractToPath:{type:"string",description:"The path to extract the zip file to"}},required:["extractToPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"updateUserMeta"},meta:{type:"object",additionalProperties:{},description:'An object of user meta values to set, e.g. { "first_name": "John" }'},userId:{type:"number",description:"User ID"}},required:["meta","step","userId"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFile"},path:{type:"string",description:"The path of the file to write to"},data:{anyOf:[{$ref:"#/definitions/FileReference"},{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"The data to write"}},required:["data","path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFiles"},writeToPath:{type:"string",description:"The path of the file to write to"},filesTree:{$ref:"#/definitions/DirectoryReference",description:"The data to write"}},required:["filesTree","step","writeToPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"wp-cli",description:"The step identifier."},command:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:"The WP CLI command to run."},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["command","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteLanguage"},language:{type:"string",description:"The language to set, e.g. 'en_US'"}},required:["language","step"]}]},kt={type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]},properties:{}},nr={validate:Re};function Re(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r))for(const x in r){let q=r[x];const P=e,$=e;let L=!1;const N=e;nr.validate(q,{instancePath:t+"/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:x,rootData:h})||(i=i===null?nr.validate.errors:i.concat(nr.validate.errors),e=i.length);var d=N===e;if(L=L||d,!L){const m=e;if(!(q&&typeof q=="object"&&!Array.isArray(q))&&typeof q!="string"){const V={instancePath:t+"/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:kt.additionalProperties.anyOf[1].type},message:"must be object,string"};i===null?i=[V]:i.push(V),e++}var d=m===e;L=L||d}if(L)e=$,i!==null&&($?i.length=$:i=null);else{const m={instancePath:t+"/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[m]:i.push(m),e++,Re.errors=i,!1}var g=P===e;if(!g)break}else return Re.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Re.errors=i,e===0}function _e(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let g;if(r.files===void 0&&(g="files")||r.name===void 0&&(g="name")||r.resource===void 0&&(g="resource"))return _e.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:g},message:"must have required property '"+g+"'"}],!1;{const x=e;for(const q in r)if(!(q==="resource"||q==="files"||q==="name"))return _e.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:q},message:"must NOT have additional properties"}],!1;if(x===e){if(r.resource!==void 0){let q=r.resource;const P=e;if(typeof q!="string")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(q!=="literal:directory")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var d=P===e}else var d=!0;if(d){if(r.files!==void 0){const q=e;Re(r.files,{instancePath:t+"/files",parentData:r,parentDataProperty:"files",rootData:h})||(i=i===null?Re.errors:i.concat(Re.errors),e=i.length);var d=q===e}else var d=!0;if(d)if(r.name!==void 0){const q=e;if(typeof r.name!="string")return _e.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=q===e}else var d=!0}}}}else return _e.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return _e.errors=i,e===0}function ye(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;const d=e;let g=!1;const x=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let L;if(r.resource===void 0&&(L="resource")||r.url===void 0&&(L="url")||r.ref===void 0&&(L="ref")||r.path===void 0&&(L="path")){const N={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:L},message:"must have required property '"+L+"'"};i===null?i=[N]:i.push(N),e++}else{const N=e;for(const m in r)if(!(m==="resource"||m==="url"||m==="ref"||m==="path")){const I={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"};i===null?i=[I]:i.push(I),e++;break}if(N===e){if(r.resource!==void 0){let m=r.resource;const I=e;if(typeof m!="string"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),e++}if(m!=="git:directory"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};i===null?i=[V]:i.push(V),e++}var P=I===e}else var P=!0;if(P){if(r.url!==void 0){const m=e;if(typeof r.url!="string"){const V={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),e++}var P=m===e}else var P=!0;if(P){if(r.ref!==void 0){const m=e;if(typeof r.ref!="string"){const V={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),e++}var P=m===e}else var P=!0;if(P)if(r.path!==void 0){const m=e;if(typeof r.path!="string"){const V={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),e++}var P=m===e}else var P=!0}}}}}else{const L={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[L]:i.push(L),e++}var $=x===e;if(g=g||$,!g){const L=e;_e(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:h})||(i=i===null?_e.errors:i.concat(_e.errors),e=i.length);var $=L===e;g=g||$}if(g)e=d,i!==null&&(d?i.length=d:i=null);else{const L={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[L]:i.push(L),e++,ye.errors=i,!1}return ye.errors=i,e===0}const Xr={type:"string",enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function ue(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let V;if(r.url===void 0&&(V="url"))return ue.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"}],!1;{const Q=e;for(const _ in r)if(!(_==="method"||_==="url"||_==="headers"||_==="body"))return ue.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:_},message:"must NOT have additional properties"}],!1;if(Q===e){if(r.method!==void 0){let _=r.method;const M=e;if(typeof _!="string")return ue.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(_==="GET"||_==="POST"||_==="HEAD"||_==="OPTIONS"||_==="PATCH"||_==="PUT"||_==="DELETE"))return ue.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Xr.enum},message:"must be equal to one of the allowed values"}],!1;var d=M===e}else var d=!0;if(d){if(r.url!==void 0){const _=e;if(typeof r.url!="string")return ue.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=_===e}else var d=!0;if(d){if(r.headers!==void 0){let _=r.headers;const M=e;if(e===e)if(_&&typeof _=="object"&&!Array.isArray(_))for(const j in _){const z=e;if(typeof _[j]!="string")return ue.errors=[{instancePath:t+"/headers/"+j.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=z===e;if(!g)break}else return ue.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=M===e}else var d=!0;if(d)if(r.body!==void 0){let _=r.body;const M=e,E=e;let u=!1;const j=e;if(typeof _!="string"){const y={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[y]:i.push(y),e++}var x=j===e;if(u=u||x,!u){const y=e;if(e===y)if(_&&typeof _=="object"&&!Array.isArray(_)){let b;if(_.BYTES_PER_ELEMENT===void 0&&(b="BYTES_PER_ELEMENT")||_.buffer===void 0&&(b="buffer")||_.byteLength===void 0&&(b="byteLength")||_.byteOffset===void 0&&(b="byteOffset")||_.length===void 0&&(b="length")){const T={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};i===null?i=[T]:i.push(T),e++}else{const T=e;for(const w in _)if(!(w==="BYTES_PER_ELEMENT"||w==="buffer"||w==="byteLength"||w==="byteOffset"||w==="length")){let l=_[w];const D=e;if(!(typeof l=="number"&&isFinite(l))){const A={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var q=D===e;if(!q)break}if(T===e){if(_.BYTES_PER_ELEMENT!==void 0){let w=_.BYTES_PER_ELEMENT;const l=e;if(!(typeof w=="number"&&isFinite(w))){const D={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[D]:i.push(D),e++}var P=l===e}else var P=!0;if(P){if(_.buffer!==void 0){let w=_.buffer;const l=e;if(e===l)if(w&&typeof w=="object"&&!Array.isArray(w)){let A;if(w.byteLength===void 0&&(A="byteLength")){const R={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};i===null?i=[R]:i.push(R),e++}else{const R=e;for(const U in w)if(U!=="byteLength"){const F={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties"};i===null?i=[F]:i.push(F),e++;break}if(R===e&&w.byteLength!==void 0){let U=w.byteLength;if(!(typeof U=="number"&&isFinite(U))){const F={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[F]:i.push(F),e++}}}}else{const A={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[A]:i.push(A),e++}var P=l===e}else var P=!0;if(P){if(_.byteLength!==void 0){let w=_.byteLength;const l=e;if(!(typeof w=="number"&&isFinite(w))){const A={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var P=l===e}else var P=!0;if(P){if(_.byteOffset!==void 0){let w=_.byteOffset;const l=e;if(!(typeof w=="number"&&isFinite(w))){const A={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var P=l===e}else var P=!0;if(P)if(_.length!==void 0){let w=_.length;const l=e;if(!(typeof w=="number"&&isFinite(w))){const A={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[A]:i.push(A),e++}var P=l===e}else var P=!0}}}}}}else{const b={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[b]:i.push(b),e++}var x=y===e;if(u=u||x,!u){const b=e;if(e===b)if(_&&typeof _=="object"&&!Array.isArray(_))for(const w in _){let l=_[w];const D=e,A=e;let R=!1;const U=e;if(typeof l!="string"){const F={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),e++}var $=U===e;if(R=R||$,!R){const F=e;if(e===F)if(l&&typeof l=="object"&&!Array.isArray(l)){let se;if(l.BYTES_PER_ELEMENT===void 0&&(se="BYTES_PER_ELEMENT")||l.buffer===void 0&&(se="buffer")||l.byteLength===void 0&&(se="byteLength")||l.byteOffset===void 0&&(se="byteOffset")||l.length===void 0&&(se="length")){const Y={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:se},message:"must have required property '"+se+"'"};i===null?i=[Y]:i.push(Y),e++}else{const Y=e;for(const C in l)if(!(C==="BYTES_PER_ELEMENT"||C==="buffer"||C==="byteLength"||C==="byteOffset"||C==="length")){let H=l[C];const X=e;if(!(typeof H=="number"&&isFinite(H))){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+C.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Z]:i.push(Z),e++}var L=X===e;if(!L)break}if(Y===e){if(l.BYTES_PER_ELEMENT!==void 0){let C=l.BYTES_PER_ELEMENT;const H=e;if(!(typeof C=="number"&&isFinite(C))){const X={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[X]:i.push(X),e++}var N=H===e}else var N=!0;if(N){if(l.buffer!==void 0){let C=l.buffer;const H=e;if(e===H)if(C&&typeof C=="object"&&!Array.isArray(C)){let Z;if(C.byteLength===void 0&&(Z="byteLength")){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:Z},message:"must have required property '"+Z+"'"};i===null?i=[oe]:i.push(oe),e++}else{const oe=e;for(const pe in C)if(pe!=="byteLength"){const he={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:pe},message:"must NOT have additional properties"};i===null?i=[he]:i.push(he),e++;break}if(oe===e&&C.byteLength!==void 0){let pe=C.byteLength;if(!(typeof pe=="number"&&isFinite(pe))){const he={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[he]:i.push(he),e++}}}}else{const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[Z]:i.push(Z),e++}var N=H===e}else var N=!0;if(N){if(l.byteLength!==void 0){let C=l.byteLength;const H=e;if(!(typeof C=="number"&&isFinite(C))){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Z]:i.push(Z),e++}var N=H===e}else var N=!0;if(N){if(l.byteOffset!==void 0){let C=l.byteOffset;const H=e;if(!(typeof C=="number"&&isFinite(C))){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteOffset",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Z]:i.push(Z),e++}var N=H===e}else var N=!0;if(N)if(l.length!==void 0){let C=l.length;const H=e;if(!(typeof C=="number"&&isFinite(C))){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/length",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Z]:i.push(Z),e++}var N=H===e}else var N=!0}}}}}}else{const se={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[se]:i.push(se),e++}var $=F===e;if(R=R||$,!R){const se=e;if(e===se)if(l&&typeof l=="object"&&!Array.isArray(l)){let C;if(l.lastModified===void 0&&(C="lastModified")||l.name===void 0&&(C="name")||l.size===void 0&&(C="size")||l.type===void 0&&(C="type")||l.webkitRelativePath===void 0&&(C="webkitRelativePath")){const H={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"};i===null?i=[H]:i.push(H),e++}else{const H=e;for(const X in l)if(!(X==="size"||X==="type"||X==="lastModified"||X==="name"||X==="webkitRelativePath")){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:X},message:"must NOT have additional properties"};i===null?i=[Z]:i.push(Z),e++;break}if(H===e){if(l.size!==void 0){let X=l.size;const Z=e;if(!(typeof X=="number"&&isFinite(X))){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[oe]:i.push(oe),e++}var m=Z===e}else var m=!0;if(m){if(l.type!==void 0){const X=e;if(typeof l.type!="string"){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[oe]:i.push(oe),e++}var m=X===e}else var m=!0;if(m){if(l.lastModified!==void 0){let X=l.lastModified;const Z=e;if(!(typeof X=="number"&&isFinite(X))){const pe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[pe]:i.push(pe),e++}var m=Z===e}else var m=!0;if(m){if(l.name!==void 0){const X=e;if(typeof l.name!="string"){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[oe]:i.push(oe),e++}var m=X===e}else var m=!0;if(m)if(l.webkitRelativePath!==void 0){const X=e;if(typeof l.webkitRelativePath!="string"){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[oe]:i.push(oe),e++}var m=X===e}else var m=!0}}}}}}else{const C={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[C]:i.push(C),e++}var $=se===e;R=R||$}}if(R)e=A,i!==null&&(A?i.length=A:i=null);else{const F={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};i===null?i=[F]:i.push(F),e++}var I=D===e;if(!I)break}else{const w={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[w]:i.push(w),e++}var x=b===e;u=u||x}}if(u)e=E,i!==null&&(E?i.length=E:i=null);else{const y={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[y]:i.push(y),e++,ue.errors=i,!1}var d=M===e}else var d=!0}}}}}else return ue.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ue.errors=i,e===0}const Ot={type:"object",properties:{relativeUri:{type:"string",description:"Request path following the domain:port part."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}},additionalProperties:!1};function ne(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const N=e;for(const m in r)if(!Qr.call(Ot.properties,m))return ne.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:m},message:"must NOT have additional properties"}],!1;if(N===e){if(r.relativeUri!==void 0){const m=e;if(typeof r.relativeUri!="string")return ne.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=m===e}else var d=!0;if(d){if(r.scriptPath!==void 0){const m=e;if(typeof r.scriptPath!="string")return ne.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=m===e}else var d=!0;if(d){if(r.protocol!==void 0){const m=e;if(typeof r.protocol!="string")return ne.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=m===e}else var d=!0;if(d){if(r.method!==void 0){let m=r.method;const I=e;if(typeof m!="string")return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(m==="GET"||m==="POST"||m==="HEAD"||m==="OPTIONS"||m==="PATCH"||m==="PUT"||m==="DELETE"))return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Xr.enum},message:"must be equal to one of the allowed values"}],!1;var d=I===e}else var d=!0;if(d){if(r.headers!==void 0){let m=r.headers;const I=e;if(e===e)if(m&&typeof m=="object"&&!Array.isArray(m))for(const _ in m){const M=e;if(typeof m[_]!="string")return ne.errors=[{instancePath:t+"/headers/"+_.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=M===e;if(!g)break}else return ne.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=I===e}else var d=!0;if(d){if(r.body!==void 0){let m=r.body;const I=e,V=e;let Q=!1;const _=e;if(typeof m!="string"){const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[E]:i.push(E),e++}var x=_===e;if(Q=Q||x,!Q){const E=e;if(e===E)if(m&&typeof m=="object"&&!Array.isArray(m)){let j;if(m.BYTES_PER_ELEMENT===void 0&&(j="BYTES_PER_ELEMENT")||m.buffer===void 0&&(j="buffer")||m.byteLength===void 0&&(j="byteLength")||m.byteOffset===void 0&&(j="byteOffset")||m.length===void 0&&(j="length")){const z={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:j},message:"must have required property '"+j+"'"};i===null?i=[z]:i.push(z),e++}else{const z=e;for(const y in m)if(!(y==="BYTES_PER_ELEMENT"||y==="buffer"||y==="byteLength"||y==="byteOffset"||y==="length")){let v=m[y];const b=e;if(!(typeof v=="number"&&isFinite(v))){const T={instancePath:t+"/body/"+y.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[T]:i.push(T),e++}var q=b===e;if(!q)break}if(z===e){if(m.BYTES_PER_ELEMENT!==void 0){let y=m.BYTES_PER_ELEMENT;const v=e;if(!(typeof y=="number"&&isFinite(y))){const b={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[b]:i.push(b),e++}var P=v===e}else var P=!0;if(P){if(m.buffer!==void 0){let y=m.buffer;const v=e;if(e===v)if(y&&typeof y=="object"&&!Array.isArray(y)){let T;if(y.byteLength===void 0&&(T="byteLength")){const w={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:T},message:"must have required property '"+T+"'"};i===null?i=[w]:i.push(w),e++}else{const w=e;for(const l in y)if(l!=="byteLength"){const D={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"};i===null?i=[D]:i.push(D),e++;break}if(w===e&&y.byteLength!==void 0){let l=y.byteLength;if(!(typeof l=="number"&&isFinite(l))){const D={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[D]:i.push(D),e++}}}}else{const T={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[T]:i.push(T),e++}var P=v===e}else var P=!0;if(P){if(m.byteLength!==void 0){let y=m.byteLength;const v=e;if(!(typeof y=="number"&&isFinite(y))){const T={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[T]:i.push(T),e++}var P=v===e}else var P=!0;if(P){if(m.byteOffset!==void 0){let y=m.byteOffset;const v=e;if(!(typeof y=="number"&&isFinite(y))){const T={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[T]:i.push(T),e++}var P=v===e}else var P=!0;if(P)if(m.length!==void 0){let y=m.length;const v=e;if(!(typeof y=="number"&&isFinite(y))){const T={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[T]:i.push(T),e++}var P=v===e}else var P=!0}}}}}}else{const j={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[j]:i.push(j),e++}var x=E===e;Q=Q||x}if(Q)e=V,i!==null&&(V?i.length=V:i=null);else{const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[E]:i.push(E),e++,ne.errors=i,!1}var d=I===e}else var d=!0;if(d){if(r.env!==void 0){let m=r.env;const I=e;if(e===I)if(m&&typeof m=="object"&&!Array.isArray(m))for(const Q in m){const _=e;if(typeof m[Q]!="string")return ne.errors=[{instancePath:t+"/env/"+Q.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=_===e;if(!$)break}else return ne.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=I===e}else var d=!0;if(d){if(r.$_SERVER!==void 0){let m=r.$_SERVER;const I=e;if(e===I)if(m&&typeof m=="object"&&!Array.isArray(m))for(const Q in m){const _=e;if(typeof m[Q]!="string")return ne.errors=[{instancePath:t+"/$_SERVER/"+Q.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=_===e;if(!L)break}else return ne.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=I===e}else var d=!0;if(d)if(r.code!==void 0){const m=e;if(typeof r.code!="string")return ne.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=m===e}else var d=!0}}}}}}}}}else return ne.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ne.errors=i,e===0}function o(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let sr;if(r.step===void 0&&(sr="step"))return o.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:sr},message:"must have required property '"+sr+"'"}],!1;{const J=r.step;if(typeof J=="string")if(J==="activatePlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.pluginPath===void 0&&(f="pluginPath")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="pluginPath"||s==="pluginName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var d=O===e}else var d=!0;if(d)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=n===e}else var d=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var g=a===e}else var g=!0;if(g){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="activatePlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var g=a===e}else var g=!0;if(g){if(r.pluginPath!==void 0){const s=e;if(typeof r.pluginPath!="string")return o.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=s===e}else var g=!0;if(g)if(r.pluginName!==void 0){const s=e;if(typeof r.pluginName!="string")return o.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=s===e}else var g=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="activateTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step")||r.themeFolderName===void 0&&(f="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var x=O===e}else var x=!0;if(x)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=n===e}else var x=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var q=a===e}else var q=!0;if(q){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="activateTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var q=a===e}else var q=!0;if(q)if(r.themeFolderName!==void 0){const s=e;if(typeof r.themeFolderName!="string")return o.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var q=s===e}else var q=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="cp"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.fromPath===void 0&&(f="fromPath")||r.step===void 0&&(f="step")||r.toPath===void 0&&(f="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var P=O===e}else var P=!0;if(P)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=n===e}else var P=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var $=a===e}else var $=!0;if($){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="cp")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var $=a===e}else var $=!0;if($){if(r.fromPath!==void 0){const s=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=s===e}else var $=!0;if($)if(r.toPath!==void 0){const s=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=s===e}else var $=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="defineWpConfigConsts"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.consts===void 0&&(f="consts")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="consts"||s==="method"||s==="virtualize"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var L=O===e}else var L=!0;if(L)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=n===e}else var L=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var N=a===e}else var N=!0;if(N){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="defineWpConfigConsts")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var N=a===e}else var N=!0;if(N){if(r.consts!==void 0){let s=r.consts;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var N=a===e}else var N=!0;if(N){if(r.method!==void 0){let s=r.method;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="rewrite-wp-config"||s==="define-before-run"))return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:or.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var N=a===e}else var N=!0;if(N)if(r.virtualize!==void 0){const s=e;if(typeof r.virtualize!="boolean")return o.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var N=s===e}else var N=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="defineSiteUrl"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.siteUrl===void 0&&(f="siteUrl")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="siteUrl"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var m=O===e}else var m=!0;if(m)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=n===e}else var m=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var I=a===e}else var I=!0;if(I){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="defineSiteUrl")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var I=a===e}else var I=!0;if(I)if(r.siteUrl!==void 0){const s=e;if(typeof r.siteUrl!="string")return o.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=s===e}else var I=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="enableMultisite"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var V=O===e}else var V=!0;if(V)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=n===e}else var V=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Q=a===e}else var Q=!0;if(Q){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="enableMultisite")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var Q=a===e}else var Q=!0;if(Q)if(r.wpCliPath!==void 0){const s=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=s===e}else var Q=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="importWxr"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.file===void 0&&(f="file")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="file"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _=O===e}else var _=!0;if(_)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=n===e}else var _=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var M=a===e}else var M=!0;if(M){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importWxr")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var M=a===e}else var M=!0;if(M)if(r.file!==void 0){const s=e;K(r.file,{instancePath:t+"/file",parentData:r,parentDataProperty:"file",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var M=s===e}else var M=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="importThemeStarterContent"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeSlug"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var E=O===e}else var E=!0;if(E)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=n===e}else var E=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=a===e}else var u=!0;if(u){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importThemeStarterContent")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var u=a===e}else var u=!0;if(u)if(r.themeSlug!==void 0){const s=e;if(typeof r.themeSlug!="string")return o.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=s===e}else var u=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="importWordPressFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step")||r.wordPressFilesZip===void 0&&(f="wordPressFilesZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wordPressFilesZip"||s==="pathInZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var j=O===e}else var j=!0;if(j)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=n===e}else var j=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=a===e}else var z=!0;if(z){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importWordPressFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var z=a===e}else var z=!0;if(z){if(r.wordPressFilesZip!==void 0){const s=e;K(r.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:r,parentDataProperty:"wordPressFilesZip",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var z=s===e}else var z=!0;if(z)if(r.pathInZip!==void 0){const s=e;if(typeof r.pathInZip!="string")return o.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=s===e}else var z=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="installPlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.pluginData===void 0&&(f="pluginData")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="pluginData"||s==="pluginZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var y=O===e}else var y=!0;if(y)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=n===e}else var y=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=a===e}else var v=!0;if(v){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:or.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var v=a===e}else var v=!0;if(v){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="installPlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var v=a===e}else var v=!0;if(v){if(r.pluginData!==void 0){let s=r.pluginData;const a=e,k=e;let n=!1;const O=e;K(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var b=O===e;if(n=n||b,!n){const ie=e;ye(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:h})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var b=ie===e;n=n||b}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var v=a===e}else var v=!0;if(v){if(r.pluginZipFile!==void 0){const s=e;K(r.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:r,parentDataProperty:"pluginZipFile",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var v=s===e}else var v=!0;if(v)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const te in s)if(!(te==="activate"||te==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(O===e){if(s.activate!==void 0){const te=e;if(typeof s.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var T=te===e}else var T=!0;if(T)if(s.targetFolderName!==void 0){const te=e;if(typeof s.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=te===e}else var T=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=a===e}else var v=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="installTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step")||r.themeData===void 0&&(f="themeData"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="themeData"||s==="themeZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var w=O===e}else var w=!0;if(w)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=n===e}else var w=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var l=a===e}else var l=!0;if(l){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:or.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var l=a===e}else var l=!0;if(l){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="installTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var l=a===e}else var l=!0;if(l){if(r.themeData!==void 0){let s=r.themeData;const a=e,k=e;let n=!1;const O=e;K(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var D=O===e;if(n=n||D,!n){const ie=e;ye(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:h})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var D=ie===e;n=n||D}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var l=a===e}else var l=!0;if(l){if(r.themeZipFile!==void 0){const s=e;K(r.themeZipFile,{instancePath:t+"/themeZipFile",parentData:r,parentDataProperty:"themeZipFile",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var l=s===e}else var l=!0;if(l)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const te in s)if(!(te==="activate"||te==="importStarterContent"||te==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(O===e){if(s.activate!==void 0){const te=e;if(typeof s.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var A=te===e}else var A=!0;if(A){if(s.importStarterContent!==void 0){const te=e;if(typeof s.importStarterContent!="boolean")return o.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var A=te===e}else var A=!0;if(A)if(s.targetFolderName!==void 0){const te=e;if(typeof s.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=te===e}else var A=!0}}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var l=a===e}else var l=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="login"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="username"||s==="password"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var R=O===e}else var R=!0;if(R)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=n===e}else var R=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var U=a===e}else var U=!0;if(U){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="login")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var U=a===e}else var U=!0;if(U){if(r.username!==void 0){const s=e;if(typeof r.username!="string")return o.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var U=s===e}else var U=!0;if(U)if(r.password!==void 0){const s=e;if(typeof r.password!="string")return o.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var U=s===e}else var U=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="mkdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var F=O===e}else var F=!0;if(F)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=n===e}else var F=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var G=a===e}else var G=!0;if(G){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="mkdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var G=a===e}else var G=!0;if(G)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=s===e}else var G=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="mv"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.fromPath===void 0&&(f="fromPath")||r.step===void 0&&(f="step")||r.toPath===void 0&&(f="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var se=O===e}else var se=!0;if(se)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var se=n===e}else var se=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Y=a===e}else var Y=!0;if(Y){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="mv")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var Y=a===e}else var Y=!0;if(Y){if(r.fromPath!==void 0){const s=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=s===e}else var Y=!0;if(Y)if(r.toPath!==void 0){const s=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=s===e}else var Y=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="resetData"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var C=O===e}else var C=!0;if(C)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=n===e}else var C=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=a===e}else var H=!0;if(H)if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="resetData")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var H=a===e}else var H=!0}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="request"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.request===void 0&&(f="request")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="request"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var X=O===e}else var X=!0;if(X)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var X=n===e}else var X=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Z=a===e}else var Z=!0;if(Z){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="request")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var Z=a===e}else var Z=!0;if(Z)if(r.request!==void 0){const s=e;ue(r.request,{instancePath:t+"/request",parentData:r,parentDataProperty:"request",rootData:h})||(i=i===null?ue.errors:i.concat(ue.errors),e=i.length);var Z=s===e}else var Z=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="rm"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var oe=O===e}else var oe=!0;if(oe)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var oe=n===e}else var oe=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=a===e}else var pe=!0;if(pe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="rm")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var pe=a===e}else var pe=!0;if(pe)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var pe=s===e}else var pe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="rmdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var he=O===e}else var he=!0;if(he)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=n===e}else var he=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Oe=a===e}else var Oe=!0;if(Oe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="rmdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var Oe=a===e}else var Oe=!0;if(Oe)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Oe=s===e}else var Oe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runPHP"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.code===void 0&&(f="code")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="code"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var De=O===e}else var De=!0;if(De)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var De=n===e}else var De=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var $e=a===e}else var $e=!0;if($e){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runPHP")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var $e=a===e}else var $e=!0;if($e)if(r.code!==void 0){const s=e;if(typeof r.code!="string")return o.errors=[{instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $e=s===e}else var $e=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runPHPWithOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.options===void 0&&(f="options")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var xe=O===e}else var xe=!0;if(xe)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var xe=n===e}else var xe=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ee=a===e}else var Ee=!0;if(Ee){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runPHPWithOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var Ee=a===e}else var Ee=!0;if(Ee)if(r.options!==void 0){const s=e;ne(r.options,{instancePath:t+"/options",parentData:r,parentDataProperty:"options",rootData:h})||(i=i===null?ne.errors:i.concat(ne.errors),e=i.length);var Ee=s===e}else var Ee=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runWpInstallationWizard"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.options===void 0&&(f="options")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ce=O===e}else var Ce=!0;if(Ce)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=n===e}else var Ce=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var je=a===e}else var je=!0;if(je){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runWpInstallationWizard")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var je=a===e}else var je=!0;if(je)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const O=e;for(const te in s)if(!(te==="adminUsername"||te==="adminPassword"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(O===e){if(s.adminUsername!==void 0){const te=e;if(typeof s.adminUsername!="string")return o.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var We=te===e}else var We=!0;if(We)if(s.adminPassword!==void 0){const te=e;if(typeof s.adminPassword!="string")return o.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var We=te===e}else var We=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var je=a===e}else var je=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runSql"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.sql===void 0&&(f="sql")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="sql"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ie=O===e}else var Ie=!0;if(Ie)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ie=n===e}else var Ie=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Te=a===e}else var Te=!0;if(Te){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runSql")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var Te=a===e}else var Te=!0;if(Te)if(r.sql!==void 0){const s=e;K(r.sql,{instancePath:t+"/sql",parentData:r,parentDataProperty:"sql",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var Te=s===e}else var Te=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="setSiteOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.options===void 0&&(f="options")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ue=O===e}else var Ue=!0;if(Ue)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ue=n===e}else var Ue=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=a===e}else var qe=!0;if(qe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="setSiteOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var qe=a===e}else var qe=!0;if(qe)if(r.options!==void 0){let s=r.options;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=a===e}else var qe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="unzip"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.extractToPath===void 0&&(f="extractToPath")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="zipFile"||s==="zipPath"||s==="extractToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ve=O===e}else var Ve=!0;if(Ve)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ve=n===e}else var Ve=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var fe=a===e}else var fe=!0;if(fe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="unzip")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var fe=a===e}else var fe=!0;if(fe){if(r.zipFile!==void 0){const s=e;K(r.zipFile,{instancePath:t+"/zipFile",parentData:r,parentDataProperty:"zipFile",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var fe=s===e}else var fe=!0;if(fe){if(r.zipPath!==void 0){const s=e;if(typeof r.zipPath!="string")return o.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var fe=s===e}else var fe=!0;if(fe)if(r.extractToPath!==void 0){const s=e;if(typeof r.extractToPath!="string")return o.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var fe=s===e}else var fe=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="updateUserMeta"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.meta===void 0&&(f="meta")||r.step===void 0&&(f="step")||r.userId===void 0&&(f="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="meta"||s==="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Me=O===e}else var Me=!0;if(Me)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Me=n===e}else var Me=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=a===e}else var ge=!0;if(ge){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="updateUserMeta")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ge=a===e}else var ge=!0;if(ge){if(r.meta!==void 0){let s=r.meta;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=a===e}else var ge=!0;if(ge)if(r.userId!==void 0){let s=r.userId;const a=e;if(!(typeof s=="number"&&isFinite(s)))return o.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ge=a===e}else var ge=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="writeFile"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.data===void 0&&(f="data")||r.path===void 0&&(f="path")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"||s==="data"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ze=O===e}else var ze=!0;if(ze)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ze=n===e}else var ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var be=a===e}else var be=!0;if(be){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="writeFile")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var be=a===e}else var be=!0;if(be){if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var be=s===e}else var be=!0;if(be)if(r.data!==void 0){let s=r.data;const a=e,k=e;let n=!1;const O=e;K(s,{instancePath:t+"/data",parentData:r,parentDataProperty:"data",rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var Le=O===e;if(n=n||Le,!n){const ie=e;if(typeof s!="string"){const Pe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Pe]:i.push(Pe),e++}var Le=ie===e;if(n=n||Le,!n){const Pe=e;if(e===Pe)if(s&&typeof s=="object"&&!Array.isArray(s)){let me;if(s.BYTES_PER_ELEMENT===void 0&&(me="BYTES_PER_ELEMENT")||s.buffer===void 0&&(me="buffer")||s.byteLength===void 0&&(me="byteLength")||s.byteOffset===void 0&&(me="byteOffset")||s.length===void 0&&(me="length")){const Ze={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:me},message:"must have required property '"+me+"'"};i===null?i=[Ze]:i.push(Ze),e++}else{const Ze=e;for(const ee in s)if(!(ee==="BYTES_PER_ELEMENT"||ee==="buffer"||ee==="byteLength"||ee==="byteOffset"||ee==="length")){let de=s[ee];const Qe=e;if(!(typeof de=="number"&&isFinite(de))){const ae={instancePath:t+"/data/"+ee.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var Jr=Qe===e;if(!Jr)break}if(Ze===e){if(s.BYTES_PER_ELEMENT!==void 0){let ee=s.BYTES_PER_ELEMENT;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const Qe={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Qe]:i.push(Qe),e++}var le=de===e}else var le=!0;if(le){if(s.buffer!==void 0){let ee=s.buffer;const de=e;if(e===de)if(ee&&typeof ee=="object"&&!Array.isArray(ee)){let ae;if(ee.byteLength===void 0&&(ae="byteLength")){const Xe={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:ae},message:"must have required property '"+ae+"'"};i===null?i=[Xe]:i.push(Xe),e++}else{const Xe=e;for(const Fe in ee)if(Fe!=="byteLength"){const Se={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Fe},message:"must NOT have additional properties"};i===null?i=[Se]:i.push(Se),e++;break}if(Xe===e&&ee.byteLength!==void 0){let Fe=ee.byteLength;if(!(typeof Fe=="number"&&isFinite(Fe))){const Se={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Se]:i.push(Se),e++}}}}else{const ae={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[ae]:i.push(ae),e++}var le=de===e}else var le=!0;if(le){if(s.byteLength!==void 0){let ee=s.byteLength;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const ae={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var le=de===e}else var le=!0;if(le){if(s.byteOffset!==void 0){let ee=s.byteOffset;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const ae={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var le=de===e}else var le=!0;if(le)if(s.length!==void 0){let ee=s.length;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const ae={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var le=de===e}else var le=!0}}}}}}else{const me={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[me]:i.push(me),e++}var Le=Pe===e;n=n||Le}}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var be=a===e}else var be=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="writeFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.filesTree===void 0&&(f="filesTree")||r.step===void 0&&(f="step")||r.writeToPath===void 0&&(f="writeToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="writeToPath"||s==="filesTree"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Be=O===e}else var Be=!0;if(Be)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Be=n===e}else var Be=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var we=a===e}else var we=!0;if(we){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="writeFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var we=a===e}else var we=!0;if(we){if(r.writeToPath!==void 0){const s=e;if(typeof r.writeToPath!="string")return o.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=s===e}else var we=!0;if(we)if(r.filesTree!==void 0){const s=e;ye(r.filesTree,{instancePath:t+"/filesTree",parentData:r,parentDataProperty:"filesTree",rootData:h})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var we=s===e}else var we=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="wp-cli"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.command===void 0&&(f="command")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="command"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var He=O===e}else var He=!0;if(He)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var He=n===e}else var He=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ve=a===e}else var ve=!0;if(ve){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="wp-cli")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var ve=a===e}else var ve=!0;if(ve){if(r.command!==void 0){let s=r.command;const a=e,k=e;let n=!1;const O=e;if(typeof s!="string"){const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ie]:i.push(ie),e++}var tr=O===e;if(n=n||tr,!n){const ie=e;if(e===ie)if(Array.isArray(s)){var br=!0;const Pe=s.length;for(let Ye=0;Ye<Pe;Ye++){const me=e;if(typeof s[Ye]!="string"){const ee={instancePath:t+"/command/"+Ye,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ee]:i.push(ee),e++}var br=me===e;if(!br)break}}else{const Pe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};i===null?i=[Pe]:i.push(Pe),e++}var tr=ie===e;n=n||tr}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var ve=a===e}else var ve=!0;if(ve)if(r.wpCliPath!==void 0){const s=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ve=s===e}else var ve=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="setSiteLanguage"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let f;if(r.language===void 0&&(f="language")||r.step===void 0&&(f="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const S=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="language"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(S===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const O=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ge=O===e}else var Ge=!0;if(Ge)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ge=n===e}else var Ge=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=a===e}else var Ae=!0;if(Ae){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="setSiteLanguage")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var Ae=a===e}else var Ae=!0;if(Ae)if(r.language!==void 0){const s=e;if(typeof r.language!="string")return o.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ae=s===e}else var Ae=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:J},message:'value of tag "step" must be in oneOf'}],!1;else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:J},message:'tag "step" must be string'}],!1}}else return o.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return o.errors=i,e===0}function B(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const E=e;for(const u in r)if(!Qr.call(vt.properties,u))return B.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"}],!1;if(E===e){if(r.landingPage!==void 0){const u=e;if(typeof r.landingPage!="string")return B.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=u===e}else var d=!0;if(d){if(r.description!==void 0){const u=e;if(typeof r.description!="string")return B.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=u===e}else var d=!0;if(d){if(r.meta!==void 0){let u=r.meta;const j=e;if(e===j)if(u&&typeof u=="object"&&!Array.isArray(u)){let y;if(u.title===void 0&&(y="title")||u.author===void 0&&(y="author"))return B.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:y},message:"must have required property '"+y+"'"}],!1;{const v=e;for(const b in u)if(!(b==="title"||b==="description"||b==="author"||b==="categories"))return B.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(v===e){if(u.title!==void 0){const b=e;if(typeof u.title!="string")return B.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g){if(u.description!==void 0){const b=e;if(typeof u.description!="string")return B.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g){if(u.author!==void 0){const b=e;if(typeof u.author!="string")return B.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g)if(u.categories!==void 0){let b=u.categories;const T=e;if(e===T)if(Array.isArray(b)){var x=!0;const l=b.length;for(let D=0;D<l;D++){const A=e;if(typeof b[D]!="string")return B.errors=[{instancePath:t+"/meta/categories/"+D,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=A===e;if(!x)break}}else return B.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var g=T===e}else var g=!0}}}}}else return B.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.preferredVersions!==void 0){let u=r.preferredVersions;const j=e;if(e===j)if(u&&typeof u=="object"&&!Array.isArray(u)){let y;if(u.php===void 0&&(y="php")||u.wp===void 0&&(y="wp"))return B.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:y},message:"must have required property '"+y+"'"}],!1;{const v=e;for(const b in u)if(!(b==="php"||b==="wp"))return B.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(v===e){if(u.php!==void 0){let b=u.php;const T=e,w=e;let l=!1;const D=e;if(typeof b!="string"){const A={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[A]:i.push(A),e++}if(!(b==="8.3"||b==="8.2"||b==="8.1"||b==="8.0"||b==="7.4"||b==="7.3"||b==="7.2"||b==="7.1"||b==="7.0")){const A={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:Pt.enum},message:"must be equal to one of the allowed values"};i===null?i=[A]:i.push(A),e++}var q=D===e;if(l=l||q,!l){const A=e;if(typeof b!="string"){const U={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[U]:i.push(U),e++}if(b!=="latest"){const U={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};i===null?i=[U]:i.push(U),e++}var q=A===e;l=l||q}if(l)e=w,i!==null&&(w?i.length=w:i=null);else{const A={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[A]:i.push(A),e++,B.errors=i,!1}var P=T===e}else var P=!0;if(P)if(u.wp!==void 0){const b=e;if(typeof u.wp!="string")return B.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=b===e}else var P=!0}}}else return B.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.features!==void 0){let u=r.features;const j=e;if(e===j)if(u&&typeof u=="object"&&!Array.isArray(u)){const y=e;for(const v in u)if(v!=="networking")return B.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:v},message:"must NOT have additional properties"}],!1;if(y===e&&u.networking!==void 0&&typeof u.networking!="boolean")return B.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1}else return B.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.extraLibraries!==void 0){let u=r.extraLibraries;const j=e;if(e===j)if(Array.isArray(u)){var $=!0;const y=u.length;for(let v=0;v<y;v++){let b=u[v];const T=e;if(typeof b!="string")return B.errors=[{instancePath:t+"/extraLibraries/"+v,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(b!=="wp-cli")return B.errors=[{instancePath:t+"/extraLibraries/"+v,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var $=T===e;if(!$)break}}else return B.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=j===e}else var d=!0;if(d){if(r.constants!==void 0){let u=r.constants;const j=e;if(e===e)if(u&&typeof u=="object"&&!Array.isArray(u))for(const v in u){let b=u[v];const T=e;if(typeof b!="string"&&typeof b!="boolean"&&!(typeof b=="number"&&isFinite(b)))return B.errors=[{instancePath:t+"/constants/"+v.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:_t.additionalProperties.type},message:"must be string,boolean,number"}],!1;var L=T===e;if(!L)break}else return B.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.plugins!==void 0){let u=r.plugins;const j=e;if(e===j)if(Array.isArray(u)){var N=!0;const y=u.length;for(let v=0;v<y;v++){let b=u[v];const T=e,w=e;let l=!1;const D=e;if(typeof b!="string"){const R={instancePath:t+"/plugins/"+v,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),e++}var m=D===e;if(l=l||m,!l){const R=e;K(b,{instancePath:t+"/plugins/"+v,parentData:u,parentDataProperty:v,rootData:h})||(i=i===null?K.errors:i.concat(K.errors),e=i.length);var m=R===e;l=l||m}if(l)e=w,i!==null&&(w?i.length=w:i=null);else{const R={instancePath:t+"/plugins/"+v,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[R]:i.push(R),e++,B.errors=i,!1}var N=T===e;if(!N)break}}else return B.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=j===e}else var d=!0;if(d){if(r.siteOptions!==void 0){let u=r.siteOptions;const j=e;if(e===j)if(u&&typeof u=="object"&&!Array.isArray(u)){const y=e;for(const v in u)if(v!=="blogname"){const b=e;if(typeof u[v]!="string")return B.errors=[{instancePath:t+"/siteOptions/"+v.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=b===e;if(!I)break}if(y===e&&u.blogname!==void 0&&typeof u.blogname!="string")return B.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return B.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=j===e}else var d=!0;if(d){if(r.login!==void 0){let u=r.login;const j=e,z=e;let y=!1;const v=e;if(typeof u!="boolean"){const T={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[T]:i.push(T),e++}var V=v===e;if(y=y||V,!y){const T=e;if(e===T)if(u&&typeof u=="object"&&!Array.isArray(u)){let l;if(u.username===void 0&&(l="username")||u.password===void 0&&(l="password")){const D={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"};i===null?i=[D]:i.push(D),e++}else{const D=e;for(const A in u)if(!(A==="username"||A==="password")){const R={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:A},message:"must NOT have additional properties"};i===null?i=[R]:i.push(R),e++;break}if(D===e){if(u.username!==void 0){const A=e;if(typeof u.username!="string"){const R={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),e++}var Q=A===e}else var Q=!0;if(Q)if(u.password!==void 0){const A=e;if(typeof u.password!="string"){const U={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[U]:i.push(U),e++}var Q=A===e}else var Q=!0}}}else{const l={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[l]:i.push(l),e++}var V=T===e;y=y||V}if(y)e=z,i!==null&&(z?i.length=z:i=null);else{const T={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[T]:i.push(T),e++,B.errors=i,!1}var d=j===e}else var d=!0;if(d){if(r.steps!==void 0){let u=r.steps;const j=e;if(e===j)if(Array.isArray(u)){var _=!0;const y=u.length;for(let v=0;v<y;v++){let b=u[v];const T=e,w=e;let l=!1;const D=e;o(b,{instancePath:t+"/steps/"+v,parentData:u,parentDataProperty:v,rootData:h})||(i=i===null?o.errors:i.concat(o.errors),e=i.length);var M=D===e;if(l=l||M,!l){const R=e;if(typeof b!="string"){const F={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),e++}var M=R===e;if(l=l||M,!l){const F=e,G={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};i===null?i=[G]:i.push(G),e++;var M=F===e;if(l=l||M,!l){const Y=e;if(typeof b!="boolean"){const H={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[H]:i.push(H),e++}if(b!==!1){const H={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};i===null?i=[H]:i.push(H),e++}var M=Y===e;if(l=l||M,!l){const H=e;if(b!==null){const Z={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};i===null?i=[Z]:i.push(Z),e++}var M=H===e;l=l||M}}}}if(l)e=w,i!==null&&(w?i.length=w:i=null);else{const R={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[R]:i.push(R),e++,B.errors=i,!1}var _=T===e;if(!_)break}}else return B.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=j===e}else var d=!0;if(d)if(r.$schema!==void 0){const u=e;if(typeof r.$schema!="string")return B.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=u===e}else var d=!0}}}}}}}}}}}}else return B.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return B.errors=i,e===0}function Je(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:h=r}={}){let i=null,e=0;return B(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:h})||(i=i===null?B.errors:i.concat(B.errors),e=i.length),Je.errors=i,e===0}const{wpCLI:$t,...Pr}=at,Et={...Pr,"wp-cli":$t,importFile:Pr.importWxr};function jt(r,{progress:t=new Or.ProgressTracker,semaphore:p=new W.Semaphore({concurrency:3}),onStepCompleted:c=()=>{},corsProxy:h}={}){var $,L,N,m,I,V,Q,_,M;r=structuredClone(r),r={...r,steps:(r.steps||[]).filter(At).filter(Rt)};for(const E of r.steps)!E||typeof E!="object"||(E.step==="importFile"?(E.step="importWxr",ce.logger.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(E==null?void 0:E.step)==="installPlugin"&&"pluginZipFile"in E?(E.pluginData=E.pluginZipFile,ce.logger.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(E==null?void 0:E.step)==="installTheme"&&"themeZipFile"in E&&(E.themeData=E.themeZipFile,ce.logger.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(r.constants&&r.steps.unshift({step:"defineWpConfigConsts",consts:r.constants}),r.siteOptions&&r.steps.unshift({step:"setSiteOptions",options:r.siteOptions}),r.plugins){const E=r.plugins.map(u=>typeof u=="string"?u.startsWith("https://")?{resource:"url",url:u}:{resource:"wordpress.org/plugins",slug:u}:u).map(u=>({step:"installPlugin",pluginData:u}));r.steps.unshift(...E)}r.login&&r.steps.push({step:"login",...r.login===!0?{username:"admin"}:r.login});const i=(($=r.steps)==null?void 0:$.findIndex(E=>typeof E=="object"&&(E==null?void 0:E.step)&&["wp-cli","enableMultisite"].includes(E.step)))??-1;if((L=r==null?void 0:r.extraLibraries)!=null&&L.includes("wp-cli")||i!==-1){const E={step:"writeFile",data:tt,path:ur};i===-1?(N=r.steps)==null||N.push(E):(m=r.steps)==null||m.splice(i,0,E)}const e=(I=r.steps)==null?void 0:I.findIndex(E=>typeof E=="object"&&(E==null?void 0:E.step)==="importWxr");e!==void 0&&e>-1&&((V=r.steps)==null||V.splice(e,0,{step:"installPlugin",pluginData:{resource:"url",url:"https://playground.wordpress.net/wordpress-importer.zip",caption:"Downloading the WordPress Importer plugin"}}));const{valid:d,errors:g}=Tt(r);if(!d){const E=new Error(`Invalid blueprint: ${g[0].message} at ${g[0].instancePath}`);throw E.errors=g,E}const x=r.steps||[],q=x.reduce((E,u)=>{var j;return E+(((j=u.progress)==null?void 0:j.weight)||1)},0),P=x.map(E=>Lt(E,{semaphore:p,rootProgressTracker:t,totalProgressWeight:q,corsProxy:h}));return{versions:{php:qt((Q=r.preferredVersions)==null?void 0:Q.php,Ne.SupportedPHPVersions,Ne.LatestSupportedPHPVersion),wp:((_=r.preferredVersions)==null?void 0:_.wp)||"latest"},features:{networking:((M=r.features)==null?void 0:M.networking)??!1},extraLibraries:r.extraLibraries||[],run:async E=>{try{for(const{resources:u}of P)for(const j of u)j.setPlayground(E),j.isAsync&&j.resolve();for(const[u,{run:j,step:z}]of Object.entries(P))try{const y=await j(E);c(y,z)}catch(y){throw ce.logger.error(y),new Error(`Error when executing the blueprint step #${u} (${JSON.stringify(z)}) ${y instanceof Error?`: ${y.message}`:y}`,{cause:y})}}finally{try{await E.goTo(r.landingPage||"/")}catch{}t.finish()}}}}function Tt(r){var h;const t=Je(r);if(t)return{valid:t};const p=new Set;for(const i of Je.errors)i.schemaPath.startsWith("#/properties/steps/items/anyOf")||p.add(i.instancePath);const c=(h=Je.errors)==null?void 0:h.filter(i=>!(i.schemaPath.startsWith("#/properties/steps/items/anyOf")&&p.has(i.instancePath)));return{valid:t,errors:c}}function qt(r,t,p){return r&&t.includes(r)?r:p}function At(r){return!!(typeof r=="object"&&r)}function Rt(r){return["setPhpIniEntry","request"].includes(r.step)?(ce.logger.warn(`The "${r.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function Lt(r,{semaphore:t,rootProgressTracker:p,totalProgressWeight:c,corsProxy:h}){var P;const i=p.stage((((P=r.progress)==null?void 0:P.weight)||1)/c),e={};for(const $ of Object.keys(r)){let L=r[$];ft(L)&&(L=ke.create(L,{semaphore:t,corsProxy:h})),e[$]=L}const d=async $=>{var L;try{return i.fillSlowly(),await Et[r.step]($,await Ft(e),{tracker:i,initialCaption:(L=r.progress)==null?void 0:L.caption})}finally{i.finish()}},g=_r(e),x=_r(e).filter($=>$.isAsync),q=1/(x.length+1);for(const $ of x)$.progress=i.stage(q);return{run:d,step:r,resources:g}}function _r(r){const t=[];for(const p in r){const c=r[p];c instanceof ke&&t.push(c)}return t}async function Ft(r){const t={};for(const p in r){const c=r[p];c instanceof ke?t[p]=await c.resolve():t[p]=c}return t}async function St(r,t){await r.run(t)}function Nt(){}exports.activatePlugin=pr;exports.activateTheme=fr;exports.compileBlueprint=jt;exports.cp=Lr;exports.defineSiteUrl=yr;exports.defineWpConfigConsts=Ke;exports.enableMultisite=Rr;exports.exportWXR=Wr;exports.importThemeStarterContent=hr;exports.importWordPressFiles=Cr;exports.importWxr=xr;exports.installPlugin=Ur;exports.installTheme=Vr;exports.login=Mr;exports.mkdir=Sr;exports.mv=Fr;exports.request=Tr;exports.resetData=zr;exports.rm=lr;exports.rmdir=Nr;exports.runBlueprintSteps=St;exports.runPHP=$r;exports.runPHPWithOptions=Er;exports.runSql=jr;exports.runWpInstallationWizard=Br;exports.setPluginProxyURL=Nt;exports.setSiteLanguage=Gr;exports.setSiteOptions=dr;exports.unzip=er;exports.updateUserMeta=qr;exports.wpCLI=cr;exports.wpContentFilesExcludedFromExport=ar;exports.writeFile=mr;exports.writeFiles=Dr;exports.zipWpContent=Hr;
|
|
659
|
+
for existing apps using this option.`}},required:["consts","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"defineSiteUrl"},siteUrl:{type:"string",description:"The URL"}},required:["siteUrl","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"enableMultisite"},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWxr"},file:{$ref:"#/definitions/FileReference",description:"The file to import"}},required:["file","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importThemeStarterContent",description:"The step identifier."},themeSlug:{type:"string",description:"The name of the theme to import content from."}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"importWordPressFiles"},wordPressFilesZip:{$ref:"#/definitions/FileReference",description:"The zip file containing the top-level WordPress files and directories."},pathInZip:{type:"string",description:"The path inside the zip file where the WordPress files are."}},required:["step","wordPressFilesZip"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},ifAlreadyInstalled:{type:"string",enum:["overwrite","skip","error"],description:"What to do if the asset already exists."},step:{type:"string",const:"installPlugin",description:"The step identifier."},pluginData:{anyOf:[{$ref:"#/definitions/FileReference"},{$ref:"#/definitions/DirectoryReference"}],description:"The plugin files to install. It can be a plugin zip file, a single PHP file, or a directory containing all the plugin files at its root."},pluginZipFile:{$ref:"#/definitions/FileReference",deprecated:". Use `pluginData` instead."},options:{$ref:"#/definitions/InstallPluginOptions",description:"Optional installation options."}},required:["pluginData","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},ifAlreadyInstalled:{type:"string",enum:["overwrite","skip","error"],description:"What to do if the asset already exists."},step:{type:"string",const:"installTheme",description:"The step identifier."},themeData:{anyOf:[{$ref:"#/definitions/FileReference"},{$ref:"#/definitions/DirectoryReference"}],description:"The theme files to install. It can be either a theme zip file, or a directory containing all the theme files at its root."},themeZipFile:{$ref:"#/definitions/FileReference",deprecated:". Use `themeData` instead."},options:{$ref:"#/definitions/InstallThemeOptions",description:"Optional installation options."}},required:["step","themeData"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"login"},username:{type:"string",description:"The user to log in as. Defaults to 'admin'."},password:{type:"string",deprecated:`The password field is deprecated and will be removed in a future version.
|
|
660
|
+
Only the username field is required for user authentication.`}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mkdir"},path:{type:"string",description:"The path of the directory you want to create"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"mv"},fromPath:{type:"string",description:"Source path"},toPath:{type:"string",description:"Target path"}},required:["fromPath","step","toPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"resetData"}},required:["step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"request"},request:{$ref:"#/definitions/PHPRequest",description:"Request details (See /wordpress-playground/api/universal/interface/PHPRequest)"}},required:["request","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rm"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"rmdir"},path:{type:"string",description:"The path to remove"}},required:["path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHP",description:"The step identifier."},code:{type:"string",description:"The PHP code to run."}},required:["code","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runPHPWithOptions"},options:{$ref:"#/definitions/PHPRunOptions",description:"Run options (See /wordpress-playground/api/universal/interface/PHPRunOptions/))"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runWpInstallationWizard"},options:{$ref:"#/definitions/WordPressInstallationOptions"}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"runSql",description:"The step identifier."},sql:{$ref:"#/definitions/FileReference",description:"The SQL to run. Each non-empty line must contain a valid SQL query."}},required:["sql","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteOptions",description:'The name of the step. Must be "setSiteOptions".'},options:{type:"object",additionalProperties:{},description:"The options to set on the site."}},required:["options","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"unzip"},zipFile:{$ref:"#/definitions/FileReference",description:"The zip file to extract"},zipPath:{type:"string",description:"The path of the zip file to extract",deprecated:"Use zipFile instead."},extractToPath:{type:"string",description:"The path to extract the zip file to"}},required:["extractToPath","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"updateUserMeta"},meta:{type:"object",additionalProperties:{},description:'An object of user meta values to set, e.g. { "first_name": "John" }'},userId:{type:"number",description:"User ID"}},required:["meta","step","userId"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFile"},path:{type:"string",description:"The path of the file to write to"},data:{anyOf:[{$ref:"#/definitions/FileReference"},{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"The data to write"}},required:["data","path","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"writeFiles"},writeToPath:{type:"string",description:"The path of the file to write to"},filesTree:{$ref:"#/definitions/DirectoryReference",description:"The data to write"}},required:["filesTree","step","writeToPath"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"wp-cli",description:"The step identifier."},command:{anyOf:[{type:"string"},{type:"array",items:{type:"string"}}],description:"The WP CLI command to run."},wpCliPath:{type:"string",description:"wp-cli.phar path"}},required:["command","step"]},{type:"object",additionalProperties:!1,properties:{progress:{type:"object",properties:{weight:{type:"number"},caption:{type:"string"}},additionalProperties:!1},step:{type:"string",const:"setSiteLanguage"},language:{type:"string",description:"The language to set, e.g. 'en_US'"}},required:["language","step"]}]},kt={type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]},properties:{}},pr={validate:Re};function Re(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r))for(const x in r){let F=r[x];const P=e,O=e;let T=!1;const L=e;pr.validate(F,{instancePath:t+"/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:x,rootData:m})||(s=s===null?pr.validate.errors:s.concat(pr.validate.errors),e=s.length);var d=L===e;if(T=T||d,!T){const y=e;if(!(F&&typeof F=="object"&&!Array.isArray(F))&&typeof F!="string"){const V={instancePath:t+"/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:kt.additionalProperties.anyOf[1].type},message:"must be object,string"};s===null?s=[V]:s.push(V),e++}var d=y===e;T=T||d}if(T)e=O,s!==null&&(O?s.length=O:s=null);else{const y={instancePath:t+"/"+x.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[y]:s.push(y),e++,Re.errors=s,!1}var g=P===e;if(!g)break}else return Re.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Re.errors=s,e===0}function _e(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let g;if(r.files===void 0&&(g="files")||r.name===void 0&&(g="name")||r.resource===void 0&&(g="resource"))return _e.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:g},message:"must have required property '"+g+"'"}],!1;{const x=e;for(const F in r)if(!(F==="resource"||F==="files"||F==="name"))return _e.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:F},message:"must NOT have additional properties"}],!1;if(x===e){if(r.resource!==void 0){let F=r.resource;const P=e;if(typeof F!="string")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(F!=="literal:directory")return _e.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var d=P===e}else var d=!0;if(d){if(r.files!==void 0){const F=e;Re(r.files,{instancePath:t+"/files",parentData:r,parentDataProperty:"files",rootData:m})||(s=s===null?Re.errors:s.concat(Re.errors),e=s.length);var d=F===e}else var d=!0;if(d)if(r.name!==void 0){const F=e;if(typeof r.name!="string")return _e.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=F===e}else var d=!0}}}}else return _e.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return _e.errors=s,e===0}function ye(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let s=null,e=0;const d=e;let g=!1;const x=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let T;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")){const L={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:T},message:"must have required property '"+T+"'"};s===null?s=[L]:s.push(L),e++}else{const L=e;for(const y in r)if(!(y==="resource"||y==="url"||y==="ref"||y==="path")){const I={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"};s===null?s=[I]:s.push(I),e++;break}if(L===e){if(r.resource!==void 0){let y=r.resource;const I=e;if(typeof y!="string"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),e++}if(y!=="git:directory"){const V={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};s===null?s=[V]:s.push(V),e++}var P=I===e}else var P=!0;if(P){if(r.url!==void 0){const y=e;if(typeof r.url!="string"){const V={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),e++}var P=y===e}else var P=!0;if(P){if(r.ref!==void 0){const y=e;if(typeof r.ref!="string"){const V={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),e++}var P=y===e}else var P=!0;if(P)if(r.path!==void 0){const y=e;if(typeof r.path!="string"){const V={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[V]:s.push(V),e++}var P=y===e}else var P=!0}}}}}else{const T={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[T]:s.push(T),e++}var O=x===e;if(g=g||O,!g){const T=e;_e(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:m})||(s=s===null?_e.errors:s.concat(_e.errors),e=s.length);var O=T===e;g=g||O}if(g)e=d,s!==null&&(d?s.length=d:s=null);else{const T={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[T]:s.push(T),e++,ye.errors=s,!1}return ye.errors=s,e===0}const Xr={type:"string",enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function ue(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let V;if(r.url===void 0&&(V="url"))return ue.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"}],!1;{const Q=e;for(const _ in r)if(!(_==="method"||_==="url"||_==="headers"||_==="body"))return ue.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:_},message:"must NOT have additional properties"}],!1;if(Q===e){if(r.method!==void 0){let _=r.method;const M=e;if(typeof _!="string")return ue.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(_==="GET"||_==="POST"||_==="HEAD"||_==="OPTIONS"||_==="PATCH"||_==="PUT"||_==="DELETE"))return ue.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Xr.enum},message:"must be equal to one of the allowed values"}],!1;var d=M===e}else var d=!0;if(d){if(r.url!==void 0){const _=e;if(typeof r.url!="string")return ue.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=_===e}else var d=!0;if(d){if(r.headers!==void 0){let _=r.headers;const M=e;if(e===e)if(_&&typeof _=="object"&&!Array.isArray(_))for(const E in _){const z=e;if(typeof _[E]!="string")return ue.errors=[{instancePath:t+"/headers/"+E.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=z===e;if(!g)break}else return ue.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=M===e}else var d=!0;if(d)if(r.body!==void 0){let _=r.body;const M=e,j=e;let u=!1;const E=e;if(typeof _!="string"){const h={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[h]:s.push(h),e++}var x=E===e;if(u=u||x,!u){const h=e;if(e===h)if(_&&typeof _=="object"&&!Array.isArray(_)){let b;if(_.BYTES_PER_ELEMENT===void 0&&(b="BYTES_PER_ELEMENT")||_.buffer===void 0&&(b="buffer")||_.byteLength===void 0&&(b="byteLength")||_.byteOffset===void 0&&(b="byteOffset")||_.length===void 0&&(b="length")){const q={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"};s===null?s=[q]:s.push(q),e++}else{const q=e;for(const w in _)if(!(w==="BYTES_PER_ELEMENT"||w==="buffer"||w==="byteLength"||w==="byteOffset"||w==="length")){let f=_[w];const D=e;if(!(typeof f=="number"&&isFinite(f))){const A={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[A]:s.push(A),e++}var F=D===e;if(!F)break}if(q===e){if(_.BYTES_PER_ELEMENT!==void 0){let w=_.BYTES_PER_ELEMENT;const f=e;if(!(typeof w=="number"&&isFinite(w))){const D={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[D]:s.push(D),e++}var P=f===e}else var P=!0;if(P){if(_.buffer!==void 0){let w=_.buffer;const f=e;if(e===f)if(w&&typeof w=="object"&&!Array.isArray(w)){let A;if(w.byteLength===void 0&&(A="byteLength")){const R={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:A},message:"must have required property '"+A+"'"};s===null?s=[R]:s.push(R),e++}else{const R=e;for(const U in w)if(U!=="byteLength"){const S={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:U},message:"must NOT have additional properties"};s===null?s=[S]:s.push(S),e++;break}if(R===e&&w.byteLength!==void 0){let U=w.byteLength;if(!(typeof U=="number"&&isFinite(U))){const S={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[S]:s.push(S),e++}}}}else{const A={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[A]:s.push(A),e++}var P=f===e}else var P=!0;if(P){if(_.byteLength!==void 0){let w=_.byteLength;const f=e;if(!(typeof w=="number"&&isFinite(w))){const A={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[A]:s.push(A),e++}var P=f===e}else var P=!0;if(P){if(_.byteOffset!==void 0){let w=_.byteOffset;const f=e;if(!(typeof w=="number"&&isFinite(w))){const A={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[A]:s.push(A),e++}var P=f===e}else var P=!0;if(P)if(_.length!==void 0){let w=_.length;const f=e;if(!(typeof w=="number"&&isFinite(w))){const A={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[A]:s.push(A),e++}var P=f===e}else var P=!0}}}}}}else{const b={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[b]:s.push(b),e++}var x=h===e;if(u=u||x,!u){const b=e;if(e===b)if(_&&typeof _=="object"&&!Array.isArray(_))for(const w in _){let f=_[w];const D=e,A=e;let R=!1;const U=e;if(typeof f!="string"){const S={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[S]:s.push(S),e++}var O=U===e;if(R=R||O,!R){const S=e;if(e===S)if(f&&typeof f=="object"&&!Array.isArray(f)){let se;if(f.BYTES_PER_ELEMENT===void 0&&(se="BYTES_PER_ELEMENT")||f.buffer===void 0&&(se="buffer")||f.byteLength===void 0&&(se="byteLength")||f.byteOffset===void 0&&(se="byteOffset")||f.length===void 0&&(se="length")){const Y={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:se},message:"must have required property '"+se+"'"};s===null?s=[Y]:s.push(Y),e++}else{const Y=e;for(const W in f)if(!(W==="BYTES_PER_ELEMENT"||W==="buffer"||W==="byteLength"||W==="byteOffset"||W==="length")){let H=f[W];const X=e;if(!(typeof H=="number"&&isFinite(H))){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+W.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),e++}var T=X===e;if(!T)break}if(Y===e){if(f.BYTES_PER_ELEMENT!==void 0){let W=f.BYTES_PER_ELEMENT;const H=e;if(!(typeof W=="number"&&isFinite(W))){const X={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[X]:s.push(X),e++}var L=H===e}else var L=!0;if(L){if(f.buffer!==void 0){let W=f.buffer;const H=e;if(e===H)if(W&&typeof W=="object"&&!Array.isArray(W)){let Z;if(W.byteLength===void 0&&(Z="byteLength")){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:Z},message:"must have required property '"+Z+"'"};s===null?s=[oe]:s.push(oe),e++}else{const oe=e;for(const pe in W)if(pe!=="byteLength"){const he={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:pe},message:"must NOT have additional properties"};s===null?s=[he]:s.push(he),e++;break}if(oe===e&&W.byteLength!==void 0){let pe=W.byteLength;if(!(typeof pe=="number"&&isFinite(pe))){const he={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[he]:s.push(he),e++}}}}else{const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Z]:s.push(Z),e++}var L=H===e}else var L=!0;if(L){if(f.byteLength!==void 0){let W=f.byteLength;const H=e;if(!(typeof W=="number"&&isFinite(W))){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),e++}var L=H===e}else var L=!0;if(L){if(f.byteOffset!==void 0){let W=f.byteOffset;const H=e;if(!(typeof W=="number"&&isFinite(W))){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteOffset",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),e++}var L=H===e}else var L=!0;if(L)if(f.length!==void 0){let W=f.length;const H=e;if(!(typeof W=="number"&&isFinite(W))){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/length",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Z]:s.push(Z),e++}var L=H===e}else var L=!0}}}}}}else{const se={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[se]:s.push(se),e++}var O=S===e;if(R=R||O,!R){const se=e;if(e===se)if(f&&typeof f=="object"&&!Array.isArray(f)){let W;if(f.lastModified===void 0&&(W="lastModified")||f.name===void 0&&(W="name")||f.size===void 0&&(W="size")||f.type===void 0&&(W="type")||f.webkitRelativePath===void 0&&(W="webkitRelativePath")){const H={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:W},message:"must have required property '"+W+"'"};s===null?s=[H]:s.push(H),e++}else{const H=e;for(const X in f)if(!(X==="size"||X==="type"||X==="lastModified"||X==="name"||X==="webkitRelativePath")){const Z={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:X},message:"must NOT have additional properties"};s===null?s=[Z]:s.push(Z),e++;break}if(H===e){if(f.size!==void 0){let X=f.size;const Z=e;if(!(typeof X=="number"&&isFinite(X))){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[oe]:s.push(oe),e++}var y=Z===e}else var y=!0;if(y){if(f.type!==void 0){const X=e;if(typeof f.type!="string"){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[oe]:s.push(oe),e++}var y=X===e}else var y=!0;if(y){if(f.lastModified!==void 0){let X=f.lastModified;const Z=e;if(!(typeof X=="number"&&isFinite(X))){const pe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[pe]:s.push(pe),e++}var y=Z===e}else var y=!0;if(y){if(f.name!==void 0){const X=e;if(typeof f.name!="string"){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[oe]:s.push(oe),e++}var y=X===e}else var y=!0;if(y)if(f.webkitRelativePath!==void 0){const X=e;if(typeof f.webkitRelativePath!="string"){const oe={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[oe]:s.push(oe),e++}var y=X===e}else var y=!0}}}}}}else{const W={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[W]:s.push(W),e++}var O=se===e;R=R||O}}if(R)e=A,s!==null&&(A?s.length=A:s=null);else{const S={instancePath:t+"/body/"+w.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[S]:s.push(S),e++}var I=D===e;if(!I)break}else{const w={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[w]:s.push(w),e++}var x=b===e;u=u||x}}if(u)e=j,s!==null&&(j?s.length=j:s=null);else{const h={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[h]:s.push(h),e++,ue.errors=s,!1}var d=M===e}else var d=!0}}}}}else return ue.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ue.errors=s,e===0}const Ot={type:"object",properties:{relativeUri:{type:"string",description:"Request path following the domain:port part."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}},additionalProperties:!1};function ne(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const L=e;for(const y in r)if(!Qr.call(Ot.properties,y))return ne.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(L===e){if(r.relativeUri!==void 0){const y=e;if(typeof r.relativeUri!="string")return ne.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=y===e}else var d=!0;if(d){if(r.scriptPath!==void 0){const y=e;if(typeof r.scriptPath!="string")return ne.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=y===e}else var d=!0;if(d){if(r.protocol!==void 0){const y=e;if(typeof r.protocol!="string")return ne.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=y===e}else var d=!0;if(d){if(r.method!==void 0){let y=r.method;const I=e;if(typeof y!="string")return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(y==="GET"||y==="POST"||y==="HEAD"||y==="OPTIONS"||y==="PATCH"||y==="PUT"||y==="DELETE"))return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Xr.enum},message:"must be equal to one of the allowed values"}],!1;var d=I===e}else var d=!0;if(d){if(r.headers!==void 0){let y=r.headers;const I=e;if(e===e)if(y&&typeof y=="object"&&!Array.isArray(y))for(const _ in y){const M=e;if(typeof y[_]!="string")return ne.errors=[{instancePath:t+"/headers/"+_.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=M===e;if(!g)break}else return ne.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=I===e}else var d=!0;if(d){if(r.body!==void 0){let y=r.body;const I=e,V=e;let Q=!1;const _=e;if(typeof y!="string"){const j={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[j]:s.push(j),e++}var x=_===e;if(Q=Q||x,!Q){const j=e;if(e===j)if(y&&typeof y=="object"&&!Array.isArray(y)){let E;if(y.BYTES_PER_ELEMENT===void 0&&(E="BYTES_PER_ELEMENT")||y.buffer===void 0&&(E="buffer")||y.byteLength===void 0&&(E="byteLength")||y.byteOffset===void 0&&(E="byteOffset")||y.length===void 0&&(E="length")){const z={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"};s===null?s=[z]:s.push(z),e++}else{const z=e;for(const h in y)if(!(h==="BYTES_PER_ELEMENT"||h==="buffer"||h==="byteLength"||h==="byteOffset"||h==="length")){let v=y[h];const b=e;if(!(typeof v=="number"&&isFinite(v))){const q={instancePath:t+"/body/"+h.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[q]:s.push(q),e++}var F=b===e;if(!F)break}if(z===e){if(y.BYTES_PER_ELEMENT!==void 0){let h=y.BYTES_PER_ELEMENT;const v=e;if(!(typeof h=="number"&&isFinite(h))){const b={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[b]:s.push(b),e++}var P=v===e}else var P=!0;if(P){if(y.buffer!==void 0){let h=y.buffer;const v=e;if(e===v)if(h&&typeof h=="object"&&!Array.isArray(h)){let q;if(h.byteLength===void 0&&(q="byteLength")){const w={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"};s===null?s=[w]:s.push(w),e++}else{const w=e;for(const f in h)if(f!=="byteLength"){const D={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"};s===null?s=[D]:s.push(D),e++;break}if(w===e&&h.byteLength!==void 0){let f=h.byteLength;if(!(typeof f=="number"&&isFinite(f))){const D={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[D]:s.push(D),e++}}}}else{const q={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[q]:s.push(q),e++}var P=v===e}else var P=!0;if(P){if(y.byteLength!==void 0){let h=y.byteLength;const v=e;if(!(typeof h=="number"&&isFinite(h))){const q={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[q]:s.push(q),e++}var P=v===e}else var P=!0;if(P){if(y.byteOffset!==void 0){let h=y.byteOffset;const v=e;if(!(typeof h=="number"&&isFinite(h))){const q={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[q]:s.push(q),e++}var P=v===e}else var P=!0;if(P)if(y.length!==void 0){let h=y.length;const v=e;if(!(typeof h=="number"&&isFinite(h))){const q={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[q]:s.push(q),e++}var P=v===e}else var P=!0}}}}}}else{const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[E]:s.push(E),e++}var x=j===e;Q=Q||x}if(Q)e=V,s!==null&&(V?s.length=V:s=null);else{const j={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[j]:s.push(j),e++,ne.errors=s,!1}var d=I===e}else var d=!0;if(d){if(r.env!==void 0){let y=r.env;const I=e;if(e===I)if(y&&typeof y=="object"&&!Array.isArray(y))for(const Q in y){const _=e;if(typeof y[Q]!="string")return ne.errors=[{instancePath:t+"/env/"+Q.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=_===e;if(!O)break}else return ne.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=I===e}else var d=!0;if(d){if(r.$_SERVER!==void 0){let y=r.$_SERVER;const I=e;if(e===I)if(y&&typeof y=="object"&&!Array.isArray(y))for(const Q in y){const _=e;if(typeof y[Q]!="string")return ne.errors=[{instancePath:t+"/$_SERVER/"+Q.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=_===e;if(!T)break}else return ne.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=I===e}else var d=!0;if(d)if(r.code!==void 0){const y=e;if(typeof r.code!="string")return ne.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=y===e}else var d=!0}}}}}}}}}else return ne.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ne.errors=s,e===0}function o(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let ir;if(r.step===void 0&&(ir="step"))return o.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:ir},message:"must have required property '"+ir+"'"}],!1;{const J=r.step;if(typeof J=="string")if(J==="activatePlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.pluginPath===void 0&&(l="pluginPath")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="pluginPath"||i==="pluginName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var d=$===e}else var d=!0;if(d)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=n===e}else var d=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var g=a===e}else var g=!0;if(g){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="activatePlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var g=a===e}else var g=!0;if(g){if(r.pluginPath!==void 0){const i=e;if(typeof r.pluginPath!="string")return o.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=i===e}else var g=!0;if(g)if(r.pluginName!==void 0){const i=e;if(typeof r.pluginName!="string")return o.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=i===e}else var g=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="activateTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step")||r.themeFolderName===void 0&&(l="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var x=$===e}else var x=!0;if(x)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=n===e}else var x=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var F=a===e}else var F=!0;if(F){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="activateTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var F=a===e}else var F=!0;if(F)if(r.themeFolderName!==void 0){const i=e;if(typeof r.themeFolderName!="string")return o.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=i===e}else var F=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="cp"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.fromPath===void 0&&(l="fromPath")||r.step===void 0&&(l="step")||r.toPath===void 0&&(l="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="fromPath"||i==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var P=$===e}else var P=!0;if(P)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=n===e}else var P=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var O=a===e}else var O=!0;if(O){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="cp")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var O=a===e}else var O=!0;if(O){if(r.fromPath!==void 0){const i=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=i===e}else var O=!0;if(O)if(r.toPath!==void 0){const i=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=i===e}else var O=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="defineWpConfigConsts"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.consts===void 0&&(l="consts")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="consts"||i==="method"||i==="virtualize"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var T=$===e}else var T=!0;if(T)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=n===e}else var T=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var L=a===e}else var L=!0;if(L){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="defineWpConfigConsts")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var L=a===e}else var L=!0;if(L){if(r.consts!==void 0){let i=r.consts;const a=e;if(e===a&&!(i&&typeof i=="object"&&!Array.isArray(i)))return o.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var L=a===e}else var L=!0;if(L){if(r.method!==void 0){let i=r.method;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="rewrite-wp-config"||i==="define-before-run"))return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:ar.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var L=a===e}else var L=!0;if(L)if(r.virtualize!==void 0){const i=e;if(typeof r.virtualize!="boolean")return o.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var L=i===e}else var L=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="defineSiteUrl"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.siteUrl===void 0&&(l="siteUrl")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="siteUrl"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var y=$===e}else var y=!0;if(y)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=n===e}else var y=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var I=a===e}else var I=!0;if(I){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="defineSiteUrl")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var I=a===e}else var I=!0;if(I)if(r.siteUrl!==void 0){const i=e;if(typeof r.siteUrl!="string")return o.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=i===e}else var I=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="enableMultisite"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var V=$===e}else var V=!0;if(V)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=n===e}else var V=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Q=a===e}else var Q=!0;if(Q){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="enableMultisite")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var Q=a===e}else var Q=!0;if(Q)if(r.wpCliPath!==void 0){const i=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=i===e}else var Q=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="importWxr"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.file===void 0&&(l="file")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="file"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _=$===e}else var _=!0;if(_)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=n===e}else var _=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var M=a===e}else var M=!0;if(M){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="importWxr")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var M=a===e}else var M=!0;if(M)if(r.file!==void 0){const i=e;K(r.file,{instancePath:t+"/file",parentData:r,parentDataProperty:"file",rootData:m})||(s=s===null?K.errors:s.concat(K.errors),e=s.length);var M=i===e}else var M=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="importThemeStarterContent"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="themeSlug"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var j=$===e}else var j=!0;if(j)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=n===e}else var j=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=a===e}else var u=!0;if(u){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="importThemeStarterContent")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var u=a===e}else var u=!0;if(u)if(r.themeSlug!==void 0){const i=e;if(typeof r.themeSlug!="string")return o.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=i===e}else var u=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="importWordPressFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step")||r.wordPressFilesZip===void 0&&(l="wordPressFilesZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="wordPressFilesZip"||i==="pathInZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var E=$===e}else var E=!0;if(E)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=n===e}else var E=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=a===e}else var z=!0;if(z){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="importWordPressFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var z=a===e}else var z=!0;if(z){if(r.wordPressFilesZip!==void 0){const i=e;K(r.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:r,parentDataProperty:"wordPressFilesZip",rootData:m})||(s=s===null?K.errors:s.concat(K.errors),e=s.length);var z=i===e}else var z=!0;if(z)if(r.pathInZip!==void 0){const i=e;if(typeof r.pathInZip!="string")return o.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=i===e}else var z=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="installPlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.pluginData===void 0&&(l="pluginData")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="ifAlreadyInstalled"||i==="step"||i==="pluginData"||i==="pluginZipFile"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var h=$===e}else var h=!0;if(h)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=n===e}else var h=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=a===e}else var v=!0;if(v){if(r.ifAlreadyInstalled!==void 0){let i=r.ifAlreadyInstalled;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="overwrite"||i==="skip"||i==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:ar.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var v=a===e}else var v=!0;if(v){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="installPlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var v=a===e}else var v=!0;if(v){if(r.pluginData!==void 0){let i=r.pluginData;const a=e,k=e;let n=!1;const $=e;K(i,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:m})||(s=s===null?K.errors:s.concat(K.errors),e=s.length);var b=$===e;if(n=n||b,!n){const ie=e;ye(i,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:m})||(s=s===null?ye.errors:s.concat(ye.errors),e=s.length);var b=ie===e;n=n||b}if(n)e=k,s!==null&&(k?s.length=k:s=null);else{const ie={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ie]:s.push(ie),e++,o.errors=s,!1}var v=a===e}else var v=!0;if(v){if(r.pluginZipFile!==void 0){const i=e;K(r.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:r,parentDataProperty:"pluginZipFile",rootData:m})||(s=s===null?K.errors:s.concat(K.errors),e=s.length);var v=i===e}else var v=!0;if(v)if(r.options!==void 0){let i=r.options;const a=e;if(e===e)if(i&&typeof i=="object"&&!Array.isArray(i)){const $=e;for(const te in i)if(!(te==="activate"||te==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if($===e){if(i.activate!==void 0){const te=e;if(typeof i.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var q=te===e}else var q=!0;if(q)if(i.targetFolderName!==void 0){const te=e;if(typeof i.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var q=te===e}else var q=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=a===e}else var v=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="installTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step")||r.themeData===void 0&&(l="themeData"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="ifAlreadyInstalled"||i==="step"||i==="themeData"||i==="themeZipFile"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var w=$===e}else var w=!0;if(w)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=n===e}else var w=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=a===e}else var f=!0;if(f){if(r.ifAlreadyInstalled!==void 0){let i=r.ifAlreadyInstalled;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(i==="overwrite"||i==="skip"||i==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:ar.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var f=a===e}else var f=!0;if(f){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="installTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var f=a===e}else var f=!0;if(f){if(r.themeData!==void 0){let i=r.themeData;const a=e,k=e;let n=!1;const $=e;K(i,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:m})||(s=s===null?K.errors:s.concat(K.errors),e=s.length);var D=$===e;if(n=n||D,!n){const ie=e;ye(i,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:m})||(s=s===null?ye.errors:s.concat(ye.errors),e=s.length);var D=ie===e;n=n||D}if(n)e=k,s!==null&&(k?s.length=k:s=null);else{const ie={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ie]:s.push(ie),e++,o.errors=s,!1}var f=a===e}else var f=!0;if(f){if(r.themeZipFile!==void 0){const i=e;K(r.themeZipFile,{instancePath:t+"/themeZipFile",parentData:r,parentDataProperty:"themeZipFile",rootData:m})||(s=s===null?K.errors:s.concat(K.errors),e=s.length);var f=i===e}else var f=!0;if(f)if(r.options!==void 0){let i=r.options;const a=e;if(e===e)if(i&&typeof i=="object"&&!Array.isArray(i)){const $=e;for(const te in i)if(!(te==="activate"||te==="importStarterContent"||te==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if($===e){if(i.activate!==void 0){const te=e;if(typeof i.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var A=te===e}else var A=!0;if(A){if(i.importStarterContent!==void 0){const te=e;if(typeof i.importStarterContent!="boolean")return o.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var A=te===e}else var A=!0;if(A)if(i.targetFolderName!==void 0){const te=e;if(typeof i.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=te===e}else var A=!0}}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=a===e}else var f=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="login"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="username"||i==="password"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var R=$===e}else var R=!0;if(R)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=n===e}else var R=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var U=a===e}else var U=!0;if(U){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="login")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var U=a===e}else var U=!0;if(U){if(r.username!==void 0){const i=e;if(typeof r.username!="string")return o.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var U=i===e}else var U=!0;if(U)if(r.password!==void 0){const i=e;if(typeof r.password!="string")return o.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var U=i===e}else var U=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="mkdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var S=$===e}else var S=!0;if(S)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var S=n===e}else var S=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var G=a===e}else var G=!0;if(G){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="mkdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var G=a===e}else var G=!0;if(G)if(r.path!==void 0){const i=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=i===e}else var G=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="mv"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.fromPath===void 0&&(l="fromPath")||r.step===void 0&&(l="step")||r.toPath===void 0&&(l="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="fromPath"||i==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var se=$===e}else var se=!0;if(se)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var se=n===e}else var se=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Y=a===e}else var Y=!0;if(Y){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="mv")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var Y=a===e}else var Y=!0;if(Y){if(r.fromPath!==void 0){const i=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=i===e}else var Y=!0;if(Y)if(r.toPath!==void 0){const i=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=i===e}else var Y=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="resetData"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var W=$===e}else var W=!0;if(W)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=n===e}else var W=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=a===e}else var H=!0;if(H)if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="resetData")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var H=a===e}else var H=!0}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="request"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.request===void 0&&(l="request")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="request"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var X=$===e}else var X=!0;if(X)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var X=n===e}else var X=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Z=a===e}else var Z=!0;if(Z){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="request")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var Z=a===e}else var Z=!0;if(Z)if(r.request!==void 0){const i=e;ue(r.request,{instancePath:t+"/request",parentData:r,parentDataProperty:"request",rootData:m})||(s=s===null?ue.errors:s.concat(ue.errors),e=s.length);var Z=i===e}else var Z=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="rm"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var oe=$===e}else var oe=!0;if(oe)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var oe=n===e}else var oe=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=a===e}else var pe=!0;if(pe){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="rm")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var pe=a===e}else var pe=!0;if(pe)if(r.path!==void 0){const i=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var pe=i===e}else var pe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="rmdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var he=$===e}else var he=!0;if(he)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=n===e}else var he=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Oe=a===e}else var Oe=!0;if(Oe){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="rmdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var Oe=a===e}else var Oe=!0;if(Oe)if(r.path!==void 0){const i=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Oe=i===e}else var Oe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runPHP"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.code===void 0&&(l="code")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="code"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var xe=$===e}else var xe=!0;if(xe)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var xe=n===e}else var xe=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var $e=a===e}else var $e=!0;if($e){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="runPHP")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var $e=a===e}else var $e=!0;if($e)if(r.code!==void 0){const i=e;if(typeof r.code!="string")return o.errors=[{instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $e=i===e}else var $e=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runPHPWithOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.options===void 0&&(l="options")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var De=$===e}else var De=!0;if(De)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var De=n===e}else var De=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var je=a===e}else var je=!0;if(je){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="runPHPWithOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var je=a===e}else var je=!0;if(je)if(r.options!==void 0){const i=e;ne(r.options,{instancePath:t+"/options",parentData:r,parentDataProperty:"options",rootData:m})||(s=s===null?ne.errors:s.concat(ne.errors),e=s.length);var je=i===e}else var je=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runWpInstallationWizard"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.options===void 0&&(l="options")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ce=$===e}else var Ce=!0;if(Ce)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=n===e}else var Ce=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ee=a===e}else var Ee=!0;if(Ee){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="runWpInstallationWizard")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var Ee=a===e}else var Ee=!0;if(Ee)if(r.options!==void 0){let i=r.options;const a=e;if(e===e)if(i&&typeof i=="object"&&!Array.isArray(i)){const $=e;for(const te in i)if(!(te==="adminUsername"||te==="adminPassword"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if($===e){if(i.adminUsername!==void 0){const te=e;if(typeof i.adminUsername!="string")return o.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var We=te===e}else var We=!0;if(We)if(i.adminPassword!==void 0){const te=e;if(typeof i.adminPassword!="string")return o.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var We=te===e}else var We=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ee=a===e}else var Ee=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runSql"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.sql===void 0&&(l="sql")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="sql"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ie=$===e}else var Ie=!0;if(Ie)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ie=n===e}else var Ie=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Te=a===e}else var Te=!0;if(Te){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="runSql")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var Te=a===e}else var Te=!0;if(Te)if(r.sql!==void 0){const i=e;K(r.sql,{instancePath:t+"/sql",parentData:r,parentDataProperty:"sql",rootData:m})||(s=s===null?K.errors:s.concat(K.errors),e=s.length);var Te=i===e}else var Te=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="setSiteOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.options===void 0&&(l="options")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ue=$===e}else var Ue=!0;if(Ue)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ue=n===e}else var Ue=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=a===e}else var qe=!0;if(qe){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="setSiteOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var qe=a===e}else var qe=!0;if(qe)if(r.options!==void 0){let i=r.options;const a=e;if(e===a&&!(i&&typeof i=="object"&&!Array.isArray(i)))return o.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var qe=a===e}else var qe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="unzip"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.extractToPath===void 0&&(l="extractToPath")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="zipFile"||i==="zipPath"||i==="extractToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ve=$===e}else var Ve=!0;if(Ve)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ve=n===e}else var Ve=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var le=a===e}else var le=!0;if(le){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="unzip")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var le=a===e}else var le=!0;if(le){if(r.zipFile!==void 0){const i=e;K(r.zipFile,{instancePath:t+"/zipFile",parentData:r,parentDataProperty:"zipFile",rootData:m})||(s=s===null?K.errors:s.concat(K.errors),e=s.length);var le=i===e}else var le=!0;if(le){if(r.zipPath!==void 0){const i=e;if(typeof r.zipPath!="string")return o.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=i===e}else var le=!0;if(le)if(r.extractToPath!==void 0){const i=e;if(typeof r.extractToPath!="string")return o.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=i===e}else var le=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="updateUserMeta"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.meta===void 0&&(l="meta")||r.step===void 0&&(l="step")||r.userId===void 0&&(l="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="meta"||i==="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Me=$===e}else var Me=!0;if(Me)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Me=n===e}else var Me=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=a===e}else var ge=!0;if(ge){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="updateUserMeta")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ge=a===e}else var ge=!0;if(ge){if(r.meta!==void 0){let i=r.meta;const a=e;if(e===a&&!(i&&typeof i=="object"&&!Array.isArray(i)))return o.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ge=a===e}else var ge=!0;if(ge)if(r.userId!==void 0){let i=r.userId;const a=e;if(!(typeof i=="number"&&isFinite(i)))return o.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ge=a===e}else var ge=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="writeFile"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.data===void 0&&(l="data")||r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="path"||i==="data"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ze=$===e}else var ze=!0;if(ze)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ze=n===e}else var ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var be=a===e}else var be=!0;if(be){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="writeFile")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var be=a===e}else var be=!0;if(be){if(r.path!==void 0){const i=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var be=i===e}else var be=!0;if(be)if(r.data!==void 0){let i=r.data;const a=e,k=e;let n=!1;const $=e;K(i,{instancePath:t+"/data",parentData:r,parentDataProperty:"data",rootData:m})||(s=s===null?K.errors:s.concat(K.errors),e=s.length);var Le=$===e;if(n=n||Le,!n){const ie=e;if(typeof i!="string"){const Pe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Pe]:s.push(Pe),e++}var Le=ie===e;if(n=n||Le,!n){const Pe=e;if(e===Pe)if(i&&typeof i=="object"&&!Array.isArray(i)){let me;if(i.BYTES_PER_ELEMENT===void 0&&(me="BYTES_PER_ELEMENT")||i.buffer===void 0&&(me="buffer")||i.byteLength===void 0&&(me="byteLength")||i.byteOffset===void 0&&(me="byteOffset")||i.length===void 0&&(me="length")){const Ze={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:me},message:"must have required property '"+me+"'"};s===null?s=[Ze]:s.push(Ze),e++}else{const Ze=e;for(const ee in i)if(!(ee==="BYTES_PER_ELEMENT"||ee==="buffer"||ee==="byteLength"||ee==="byteOffset"||ee==="length")){let de=i[ee];const Qe=e;if(!(typeof de=="number"&&isFinite(de))){const ae={instancePath:t+"/data/"+ee.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),e++}var Jr=Qe===e;if(!Jr)break}if(Ze===e){if(i.BYTES_PER_ELEMENT!==void 0){let ee=i.BYTES_PER_ELEMENT;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const Qe={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Qe]:s.push(Qe),e++}var fe=de===e}else var fe=!0;if(fe){if(i.buffer!==void 0){let ee=i.buffer;const de=e;if(e===de)if(ee&&typeof ee=="object"&&!Array.isArray(ee)){let ae;if(ee.byteLength===void 0&&(ae="byteLength")){const Xe={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:ae},message:"must have required property '"+ae+"'"};s===null?s=[Xe]:s.push(Xe),e++}else{const Xe=e;for(const Fe in ee)if(Fe!=="byteLength"){const Se={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Fe},message:"must NOT have additional properties"};s===null?s=[Se]:s.push(Se),e++;break}if(Xe===e&&ee.byteLength!==void 0){let Fe=ee.byteLength;if(!(typeof Fe=="number"&&isFinite(Fe))){const Se={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Se]:s.push(Se),e++}}}}else{const ae={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ae]:s.push(ae),e++}var fe=de===e}else var fe=!0;if(fe){if(i.byteLength!==void 0){let ee=i.byteLength;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const ae={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),e++}var fe=de===e}else var fe=!0;if(fe){if(i.byteOffset!==void 0){let ee=i.byteOffset;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const ae={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),e++}var fe=de===e}else var fe=!0;if(fe)if(i.length!==void 0){let ee=i.length;const de=e;if(!(typeof ee=="number"&&isFinite(ee))){const ae={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),e++}var fe=de===e}else var fe=!0}}}}}}else{const me={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[me]:s.push(me),e++}var Le=Pe===e;n=n||Le}}if(n)e=k,s!==null&&(k?s.length=k:s=null);else{const ie={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ie]:s.push(ie),e++,o.errors=s,!1}var be=a===e}else var be=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="writeFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.filesTree===void 0&&(l="filesTree")||r.step===void 0&&(l="step")||r.writeToPath===void 0&&(l="writeToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="writeToPath"||i==="filesTree"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Be=$===e}else var Be=!0;if(Be)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Be=n===e}else var Be=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var we=a===e}else var we=!0;if(we){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="writeFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var we=a===e}else var we=!0;if(we){if(r.writeToPath!==void 0){const i=e;if(typeof r.writeToPath!="string")return o.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=i===e}else var we=!0;if(we)if(r.filesTree!==void 0){const i=e;ye(r.filesTree,{instancePath:t+"/filesTree",parentData:r,parentDataProperty:"filesTree",rootData:m})||(s=s===null?ye.errors:s.concat(ye.errors),e=s.length);var we=i===e}else var we=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="wp-cli"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.command===void 0&&(l="command")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="command"||i==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var He=$===e}else var He=!0;if(He)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var He=n===e}else var He=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ve=a===e}else var ve=!0;if(ve){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="wp-cli")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var ve=a===e}else var ve=!0;if(ve){if(r.command!==void 0){let i=r.command;const a=e,k=e;let n=!1;const $=e;if(typeof i!="string"){const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ie]:s.push(ie),e++}var sr=$===e;if(n=n||sr,!n){const ie=e;if(e===ie)if(Array.isArray(i)){var wr=!0;const Pe=i.length;for(let Ye=0;Ye<Pe;Ye++){const me=e;if(typeof i[Ye]!="string"){const ee={instancePath:t+"/command/"+Ye,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[ee]:s.push(ee),e++}var wr=me===e;if(!wr)break}}else{const Pe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[Pe]:s.push(Pe),e++}var sr=ie===e;n=n||sr}if(n)e=k,s!==null&&(k?s.length=k:s=null);else{const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[ie]:s.push(ie),e++,o.errors=s,!1}var ve=a===e}else var ve=!0;if(ve)if(r.wpCliPath!==void 0){const i=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ve=i===e}else var ve=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="setSiteLanguage"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.language===void 0&&(l="language")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const N=e;for(const i in r)if(!(i==="progress"||i==="step"||i==="language"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:i},message:"must NOT have additional properties"}],!1;if(N===e){if(r.progress!==void 0){let i=r.progress;const a=e;if(e===a)if(i&&typeof i=="object"&&!Array.isArray(i)){const k=e;for(const n in i)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(i.weight!==void 0){let n=i.weight;const $=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ge=$===e}else var Ge=!0;if(Ge)if(i.caption!==void 0){const n=e;if(typeof i.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ge=n===e}else var Ge=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=a===e}else var Ae=!0;if(Ae){if(r.step!==void 0){let i=r.step;const a=e;if(typeof i!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(i!=="setSiteLanguage")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var Ae=a===e}else var Ae=!0;if(Ae)if(r.language!==void 0){const i=e;if(typeof r.language!="string")return o.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ae=i===e}else var Ae=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:J},message:'value of tag "step" must be in oneOf'}],!1;else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:J},message:'tag "step" must be string'}],!1}}else return o.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return o.errors=s,e===0}function B(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let s=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const j=e;for(const u in r)if(!Qr.call(vt.properties,u))return B.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"}],!1;if(j===e){if(r.landingPage!==void 0){const u=e;if(typeof r.landingPage!="string")return B.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=u===e}else var d=!0;if(d){if(r.description!==void 0){const u=e;if(typeof r.description!="string")return B.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=u===e}else var d=!0;if(d){if(r.meta!==void 0){let u=r.meta;const E=e;if(e===E)if(u&&typeof u=="object"&&!Array.isArray(u)){let h;if(u.title===void 0&&(h="title")||u.author===void 0&&(h="author"))return B.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:h},message:"must have required property '"+h+"'"}],!1;{const v=e;for(const b in u)if(!(b==="title"||b==="description"||b==="author"||b==="categories"))return B.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(v===e){if(u.title!==void 0){const b=e;if(typeof u.title!="string")return B.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g){if(u.description!==void 0){const b=e;if(typeof u.description!="string")return B.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g){if(u.author!==void 0){const b=e;if(typeof u.author!="string")return B.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=b===e}else var g=!0;if(g)if(u.categories!==void 0){let b=u.categories;const q=e;if(e===q)if(Array.isArray(b)){var x=!0;const f=b.length;for(let D=0;D<f;D++){const A=e;if(typeof b[D]!="string")return B.errors=[{instancePath:t+"/meta/categories/"+D,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=A===e;if(!x)break}}else return B.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var g=q===e}else var g=!0}}}}}else return B.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=E===e}else var d=!0;if(d){if(r.preferredVersions!==void 0){let u=r.preferredVersions;const E=e;if(e===E)if(u&&typeof u=="object"&&!Array.isArray(u)){let h;if(u.php===void 0&&(h="php")||u.wp===void 0&&(h="wp"))return B.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:h},message:"must have required property '"+h+"'"}],!1;{const v=e;for(const b in u)if(!(b==="php"||b==="wp"))return B.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(v===e){if(u.php!==void 0){let b=u.php;const q=e,w=e;let f=!1;const D=e;if(typeof b!="string"){const A={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[A]:s.push(A),e++}if(!(b==="8.3"||b==="8.2"||b==="8.1"||b==="8.0"||b==="7.4"||b==="7.3"||b==="7.2"||b==="7.1"||b==="7.0")){const A={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:Pt.enum},message:"must be equal to one of the allowed values"};s===null?s=[A]:s.push(A),e++}var F=D===e;if(f=f||F,!f){const A=e;if(typeof b!="string"){const U={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[U]:s.push(U),e++}if(b!=="latest"){const U={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};s===null?s=[U]:s.push(U),e++}var F=A===e;f=f||F}if(f)e=w,s!==null&&(w?s.length=w:s=null);else{const A={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[A]:s.push(A),e++,B.errors=s,!1}var P=q===e}else var P=!0;if(P)if(u.wp!==void 0){const b=e;if(typeof u.wp!="string")return B.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=b===e}else var P=!0}}}else return B.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=E===e}else var d=!0;if(d){if(r.features!==void 0){let u=r.features;const E=e;if(e===E)if(u&&typeof u=="object"&&!Array.isArray(u)){const h=e;for(const v in u)if(v!=="networking")return B.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:v},message:"must NOT have additional properties"}],!1;if(h===e&&u.networking!==void 0&&typeof u.networking!="boolean")return B.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1}else return B.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=E===e}else var d=!0;if(d){if(r.extraLibraries!==void 0){let u=r.extraLibraries;const E=e;if(e===E)if(Array.isArray(u)){var O=!0;const h=u.length;for(let v=0;v<h;v++){let b=u[v];const q=e;if(typeof b!="string")return B.errors=[{instancePath:t+"/extraLibraries/"+v,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(b!=="wp-cli")return B.errors=[{instancePath:t+"/extraLibraries/"+v,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var O=q===e;if(!O)break}}else return B.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=E===e}else var d=!0;if(d){if(r.constants!==void 0){let u=r.constants;const E=e;if(e===e)if(u&&typeof u=="object"&&!Array.isArray(u))for(const v in u){let b=u[v];const q=e;if(typeof b!="string"&&typeof b!="boolean"&&!(typeof b=="number"&&isFinite(b)))return B.errors=[{instancePath:t+"/constants/"+v.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:_t.additionalProperties.type},message:"must be string,boolean,number"}],!1;var T=q===e;if(!T)break}else return B.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=E===e}else var d=!0;if(d){if(r.plugins!==void 0){let u=r.plugins;const E=e;if(e===E)if(Array.isArray(u)){var L=!0;const h=u.length;for(let v=0;v<h;v++){let b=u[v];const q=e,w=e;let f=!1;const D=e;if(typeof b!="string"){const R={instancePath:t+"/plugins/"+v,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[R]:s.push(R),e++}var y=D===e;if(f=f||y,!f){const R=e;K(b,{instancePath:t+"/plugins/"+v,parentData:u,parentDataProperty:v,rootData:m})||(s=s===null?K.errors:s.concat(K.errors),e=s.length);var y=R===e;f=f||y}if(f)e=w,s!==null&&(w?s.length=w:s=null);else{const R={instancePath:t+"/plugins/"+v,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[R]:s.push(R),e++,B.errors=s,!1}var L=q===e;if(!L)break}}else return B.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=E===e}else var d=!0;if(d){if(r.siteOptions!==void 0){let u=r.siteOptions;const E=e;if(e===E)if(u&&typeof u=="object"&&!Array.isArray(u)){const h=e;for(const v in u)if(v!=="blogname"){const b=e;if(typeof u[v]!="string")return B.errors=[{instancePath:t+"/siteOptions/"+v.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=b===e;if(!I)break}if(h===e&&u.blogname!==void 0&&typeof u.blogname!="string")return B.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return B.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=E===e}else var d=!0;if(d){if(r.login!==void 0){let u=r.login;const E=e,z=e;let h=!1;const v=e;if(typeof u!="boolean"){const q={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[q]:s.push(q),e++}var V=v===e;if(h=h||V,!h){const q=e;if(e===q)if(u&&typeof u=="object"&&!Array.isArray(u)){let f;if(u.username===void 0&&(f="username")||u.password===void 0&&(f="password")){const D={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"};s===null?s=[D]:s.push(D),e++}else{const D=e;for(const A in u)if(!(A==="username"||A==="password")){const R={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:A},message:"must NOT have additional properties"};s===null?s=[R]:s.push(R),e++;break}if(D===e){if(u.username!==void 0){const A=e;if(typeof u.username!="string"){const R={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[R]:s.push(R),e++}var Q=A===e}else var Q=!0;if(Q)if(u.password!==void 0){const A=e;if(typeof u.password!="string"){const U={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[U]:s.push(U),e++}var Q=A===e}else var Q=!0}}}else{const f={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[f]:s.push(f),e++}var V=q===e;h=h||V}if(h)e=z,s!==null&&(z?s.length=z:s=null);else{const q={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[q]:s.push(q),e++,B.errors=s,!1}var d=E===e}else var d=!0;if(d){if(r.steps!==void 0){let u=r.steps;const E=e;if(e===E)if(Array.isArray(u)){var _=!0;const h=u.length;for(let v=0;v<h;v++){let b=u[v];const q=e,w=e;let f=!1;const D=e;o(b,{instancePath:t+"/steps/"+v,parentData:u,parentDataProperty:v,rootData:m})||(s=s===null?o.errors:s.concat(o.errors),e=s.length);var M=D===e;if(f=f||M,!f){const R=e;if(typeof b!="string"){const S={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[S]:s.push(S),e++}var M=R===e;if(f=f||M,!f){const S=e,G={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};s===null?s=[G]:s.push(G),e++;var M=S===e;if(f=f||M,!f){const Y=e;if(typeof b!="boolean"){const H={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[H]:s.push(H),e++}if(b!==!1){const H={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};s===null?s=[H]:s.push(H),e++}var M=Y===e;if(f=f||M,!f){const H=e;if(b!==null){const Z={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};s===null?s=[Z]:s.push(Z),e++}var M=H===e;f=f||M}}}}if(f)e=w,s!==null&&(w?s.length=w:s=null);else{const R={instancePath:t+"/steps/"+v,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[R]:s.push(R),e++,B.errors=s,!1}var _=q===e;if(!_)break}}else return B.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=E===e}else var d=!0;if(d)if(r.$schema!==void 0){const u=e;if(typeof r.$schema!="string")return B.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=u===e}else var d=!0}}}}}}}}}}}}else return B.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return B.errors=s,e===0}function Je(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let s=null,e=0;return B(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:m})||(s=s===null?B.errors:s.concat(B.errors),e=s.length),Je.errors=s,e===0}const{wpCLI:$t,...Pr}=at,jt={...Pr,"wp-cli":$t,importFile:Pr.importWxr};function Et(r,{progress:t=new Or.ProgressTracker,semaphore:p=new C.Semaphore({concurrency:3}),onStepCompleted:c=()=>{},corsProxy:m}={}){var O,T,L,y,I,V,Q,_,M;r=structuredClone(r),r={...r,steps:(r.steps||[]).filter(At).filter(Rt)};for(const j of r.steps)!j||typeof j!="object"||(j.step==="importFile"?(j.step="importWxr",ce.logger.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(j==null?void 0:j.step)==="installPlugin"&&"pluginZipFile"in j?(j.pluginData=j.pluginZipFile,ce.logger.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(j==null?void 0:j.step)==="installTheme"&&"themeZipFile"in j&&(j.themeData=j.themeZipFile,ce.logger.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(r.constants&&r.steps.unshift({step:"defineWpConfigConsts",consts:r.constants}),r.siteOptions&&r.steps.unshift({step:"setSiteOptions",options:r.siteOptions}),r.plugins){const j=r.plugins.map(u=>typeof u=="string"?u.startsWith("https://")?{resource:"url",url:u}:{resource:"wordpress.org/plugins",slug:u}:u).map(u=>({step:"installPlugin",pluginData:u}));r.steps.unshift(...j)}r.login&&r.steps.push({step:"login",...r.login===!0?{username:"admin"}:r.login});const s=((O=r.steps)==null?void 0:O.findIndex(j=>typeof j=="object"&&(j==null?void 0:j.step)&&["wp-cli","enableMultisite"].includes(j.step)))??-1;if((T=r==null?void 0:r.extraLibraries)!=null&&T.includes("wp-cli")||s!==-1){const j={step:"writeFile",data:tt,path:mr};s===-1?(L=r.steps)==null||L.push(j):(y=r.steps)==null||y.splice(s,0,j)}const e=(I=r.steps)==null?void 0:I.findIndex(j=>typeof j=="object"&&(j==null?void 0:j.step)==="importWxr");e!==void 0&&e>-1&&((V=r.steps)==null||V.splice(e,0,{step:"installPlugin",pluginData:{resource:"url",url:"https://playground.wordpress.net/wordpress-importer.zip",caption:"Downloading the WordPress Importer plugin"}}));const{valid:d,errors:g}=Tt(r);if(!d){const j=new Error(`Invalid blueprint: ${g[0].message} at ${g[0].instancePath}`);throw j.errors=g,j}const x=r.steps||[],F=x.reduce((j,u)=>{var E;return j+(((E=u.progress)==null?void 0:E.weight)||1)},0),P=x.map(j=>Lt(j,{semaphore:p,rootProgressTracker:t,totalProgressWeight:F,corsProxy:m}));return{versions:{php:qt((Q=r.preferredVersions)==null?void 0:Q.php,Ne.SupportedPHPVersions,Ne.LatestSupportedPHPVersion),wp:((_=r.preferredVersions)==null?void 0:_.wp)||"latest"},features:{networking:((M=r.features)==null?void 0:M.networking)??!1},extraLibraries:r.extraLibraries||[],run:async j=>{try{for(const{resources:u}of P)for(const E of u)E.setPlayground(j),E.isAsync&&E.resolve();for(const[u,{run:E,step:z}]of Object.entries(P))try{const h=await E(j);c(h,z)}catch(h){throw ce.logger.error(h),new Error(`Error when executing the blueprint step #${u} (${JSON.stringify(z)}) ${h instanceof Error?`: ${h.message}`:h}`,{cause:h})}}finally{try{await j.goTo(r.landingPage||"/")}catch{}t.finish()}}}}function Tt(r){var m;const t=Je(r);if(t)return{valid:t};const p=new Set;for(const s of Je.errors)s.schemaPath.startsWith("#/properties/steps/items/anyOf")||p.add(s.instancePath);const c=(m=Je.errors)==null?void 0:m.filter(s=>!(s.schemaPath.startsWith("#/properties/steps/items/anyOf")&&p.has(s.instancePath)));return{valid:t,errors:c}}function qt(r,t,p){return r&&t.includes(r)?r:p}function At(r){return!!(typeof r=="object"&&r)}function Rt(r){return["setPhpIniEntry","request"].includes(r.step)?(ce.logger.warn(`The "${r.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function Lt(r,{semaphore:t,rootProgressTracker:p,totalProgressWeight:c,corsProxy:m}){var P;const s=p.stage((((P=r.progress)==null?void 0:P.weight)||1)/c),e={};for(const O of Object.keys(r)){let T=r[O];lt(T)&&(T=ke.create(T,{semaphore:t,corsProxy:m})),e[O]=T}const d=async O=>{var T;try{return s.fillSlowly(),await jt[r.step](O,await Ft(e),{tracker:s,initialCaption:(T=r.progress)==null?void 0:T.caption})}finally{s.finish()}},g=_r(e),x=_r(e).filter(O=>O.isAsync),F=1/(x.length+1);for(const O of x)O.progress=s.stage(F);return{run:d,step:r,resources:g}}function _r(r){const t=[];for(const p in r){const c=r[p];c instanceof ke&&t.push(c)}return t}async function Ft(r){const t={};for(const p in r){const c=r[p];c instanceof ke?t[p]=await c.resolve():t[p]=c}return t}async function St(r,t){await r.run(t)}function Nt(){}exports.activatePlugin=fr;exports.activateTheme=dr;exports.compileBlueprint=Et;exports.cp=Lr;exports.defineSiteUrl=hr;exports.defineWpConfigConsts=Ke;exports.enableMultisite=Rr;exports.exportWXR=Wr;exports.importThemeStarterContent=gr;exports.importWordPressFiles=Cr;exports.importWxr=Dr;exports.installPlugin=Ur;exports.installTheme=Vr;exports.login=Mr;exports.mkdir=Sr;exports.mv=Fr;exports.request=Tr;exports.resetData=zr;exports.rm=ur;exports.rmdir=Nr;exports.runBlueprintSteps=St;exports.runPHP=$r;exports.runPHPWithOptions=jr;exports.runSql=Er;exports.runWpInstallationWizard=Br;exports.setPluginProxyURL=Nt;exports.setSiteLanguage=Gr;exports.setSiteOptions=cr;exports.unzip=rr;exports.updateUserMeta=qr;exports.wpCLI=yr;exports.wpContentFilesExcludedFromExport=lr;exports.writeFile=er;exports.writeFiles=xr;exports.zipWpContent=Hr;
|