@wp-playground/client 1.0.27 → 1.0.29

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/README.md ADDED
@@ -0,0 +1,42 @@
1
+ # Playground Client
2
+
3
+ Provides a [PlaygroundClient](https://wordpress.github.io/wordpress-playground/api/client/) that can be used to control a WordPress Playground iframe:
4
+
5
+ ```ts
6
+ import { startPlaygroundWeb } from '@wp-playground/client';
7
+
8
+ const client = await startPlaygroundWeb({
9
+ // An iframe pointing to https://playground.wordpress.net/remote.html:
10
+ iframe: document.getElementById('wp'),
11
+ remoteUrl: `https://playground.wordpress.net/remote.html`,
12
+ });
13
+
14
+ const response = await client.run({
15
+ // wp-load.php is only required if you want to interact with WordPress.
16
+ code: '<?php require_once "/wordpress/wp-load.php"; $posts = get_posts(); echo "Post Title: " . $posts[0]->post_title;',
17
+ });
18
+ console.log(response.text);
19
+ ```
20
+
21
+ Using TypeScript is highly recommended as this package ships with comprehensive types – hit ctrl+space in your IDE after `client.` and you'll see all the available methods.
22
+
23
+ Once you have a [PlaygroundClient](https://wordpress.github.io/wordpress-playground/api/client/) instance, you can use it to control the playground:
24
+
25
+ ```ts
26
+ await client.writeFile('/index.php', '<?php echo "Hi!"; ');
27
+ await client.run({
28
+ scriptPath: '/index.php',
29
+ });
30
+
31
+ console.log(await client.readFileAsText('/index.php'));
32
+
33
+ await client.request({
34
+ url: '/index.php',
35
+ method: 'POST',
36
+ body: {
37
+ foo: 'bar',
38
+ },
39
+ });
40
+ ```
41
+
42
+ To see all the available methods, check out the [PlaygroundClient](https://wordpress.github.io/wordpress-playground/api/client/) interface.
package/index.cjs CHANGED
@@ -744,7 +744,8 @@ function zipDir($root, $output, $options = array())
744
744
  $directory_path = $entry . '/';
745
745
  array_push($directories, $directory_path);
746
746
  } else if (is_file($entry)) {
747
- $zip->addFile($entry, substr($entry, strlen($zip_root)));
747
+ // ensure compliance with zip spec by only using relative paths for files
748
+ $zip->addFile($entry, ltrim(substr($entry, strlen($zip_root)), '/'));
748
749
  }
749
750
  }
750
751
  closedir($handle);
@@ -903,5 +904,5 @@ gpgsig`+Es(r)+`
903
904
 
904
905
  - 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.
905
906
  This option is only kept in here to avoid breaking Blueprint schema validation
906
- 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"},importer:{type:"string",enum:["data-liberation","default"],description:"The importer to use. Possible values:\n\n- `default`: The importer from https://github.com/humanmade/WordPress-Importer\n- `data-liberation`: The experimental Data Liberation WXR importer developed at https://github.com/WordPress/wordpress-playground/issues/1894\n\nThis option is deprecated. The syntax will not be removed, but once the Data Liberation importer matures, it will become the only supported importer and the `importer` option will be ignored.",deprecated:!0}},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.
907
- 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"]}]},Ju={type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]},properties:{}},Vs={validate:It};function It(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;if(r===0)if(e&&typeof e=="object"&&!Array.isArray(e))for(const u in e){let d=e[u];const b=r,v=r;let w=!1;const B=r;Vs.validate(d,{instancePath:t+"/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:u,rootData:o})||(i=i===null?Vs.validate.errors:i.concat(Vs.validate.errors),r=i.length);var p=B===r;if(w=w||p,!w){const O=r;if(!(d&&typeof d=="object"&&!Array.isArray(d))&&typeof d!="string"){const F={instancePath:t+"/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:Ju.additionalProperties.anyOf[1].type},message:"must be object,string"};i===null?i=[F]:i.push(F),r++}var p=O===r;w=w||p}if(w)r=v,i!==null&&(v?i.length=v:i=null);else{const O={instancePath:t+"/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[O]:i.push(O),r++,It.errors=i,!1}var m=b===r;if(!m)break}else return It.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return It.errors=i,r===0}function ot(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;if(r===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let m;if(e.files===void 0&&(m="files")||e.name===void 0&&(m="name")||e.resource===void 0&&(m="resource"))return ot.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:m},message:"must have required property '"+m+"'"}],!1;{const u=r;for(const d in e)if(!(d==="resource"||d==="files"||d==="name"))return ot.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"}],!1;if(u===r){if(e.resource!==void 0){let d=e.resource;const b=r;if(typeof d!="string")return ot.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(d!=="literal:directory")return ot.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var p=b===r}else var p=!0;if(p){if(e.files!==void 0){const d=r;It(e.files,{instancePath:t+"/files",parentData:e,parentDataProperty:"files",rootData:o})||(i=i===null?It.errors:i.concat(It.errors),r=i.length);var p=d===r}else var p=!0;if(p)if(e.name!==void 0){const d=r;if(typeof e.name!="string")return ot.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=d===r}else var p=!0}}}}else return ot.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ot.errors=i,r===0}function $e(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;const p=r;let m=!1;const u=r;if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let w;if(e.resource===void 0&&(w="resource")||e.url===void 0&&(w="url")||e.ref===void 0&&(w="ref")||e.path===void 0&&(w="path")){const B={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:w},message:"must have required property '"+w+"'"};i===null?i=[B]:i.push(B),r++}else{const B=r;for(const O in e)if(!(O==="resource"||O==="url"||O==="ref"||O==="path")){const W={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties"};i===null?i=[W]:i.push(W),r++;break}if(B===r){if(e.resource!==void 0){let O=e.resource;const W=r;if(typeof O!="string"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),r++}if(O!=="git:directory"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};i===null?i=[F]:i.push(F),r++}var b=W===r}else var b=!0;if(b){if(e.url!==void 0){const O=r;if(typeof e.url!="string"){const F={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),r++}var b=O===r}else var b=!0;if(b){if(e.ref!==void 0){const O=r;if(typeof e.ref!="string"){const F={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),r++}var b=O===r}else var b=!0;if(b)if(e.path!==void 0){const O=r;if(typeof e.path!="string"){const F={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),r++}var b=O===r}else var b=!0}}}}}else{const w={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[w]:i.push(w),r++}var v=u===r;if(m=m||v,!m){const w=r;ot(e,{instancePath:t,parentData:s,parentDataProperty:n,rootData:o})||(i=i===null?ot.errors:i.concat(ot.errors),r=i.length);var v=w===r;m=m||v}if(m)r=p,i!==null&&(p?i.length=p:i=null);else{const w={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[w]:i.push(w),r++,$e.errors=i,!1}return $e.errors=i,r===0}const xo={type:"string",enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function ze(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;if(r===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let F;if(e.url===void 0&&(F="url"))return ze.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:F},message:"must have required property '"+F+"'"}],!1;{const M=r;for(const H in e)if(!(H==="method"||H==="url"||H==="headers"||H==="body"))return ze.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:H},message:"must NOT have additional properties"}],!1;if(M===r){if(e.method!==void 0){let H=e.method;const z=r;if(typeof H!="string")return ze.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(H==="GET"||H==="POST"||H==="HEAD"||H==="OPTIONS"||H==="PATCH"||H==="PUT"||H==="DELETE"))return ze.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:xo.enum},message:"must be equal to one of the allowed values"}],!1;var p=z===r}else var p=!0;if(p){if(e.url!==void 0){const H=r;if(typeof e.url!="string")return ze.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=H===r}else var p=!0;if(p){if(e.headers!==void 0){let H=e.headers;const z=r;if(r===r)if(H&&typeof H=="object"&&!Array.isArray(H))for(const I in H){const E=r;if(typeof H[I]!="string")return ze.errors=[{instancePath:t+"/headers/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=E===r;if(!m)break}else return ze.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=z===r}else var p=!0;if(p)if(e.body!==void 0){let H=e.body;const z=r,R=r;let P=!1;const I=r;if(typeof H!="string"){const C={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[C]:i.push(C),r++}var u=I===r;if(P=P||u,!P){const C=r;if(r===C)if(H&&typeof H=="object"&&!Array.isArray(H)){let k;if(H.BYTES_PER_ELEMENT===void 0&&(k="BYTES_PER_ELEMENT")||H.buffer===void 0&&(k="buffer")||H.byteLength===void 0&&(k="byteLength")||H.byteOffset===void 0&&(k="byteOffset")||H.length===void 0&&(k="length")){const N={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:k},message:"must have required property '"+k+"'"};i===null?i=[N]:i.push(N),r++}else{const N=r;for(const j in H)if(!(j==="BYTES_PER_ELEMENT"||j==="buffer"||j==="byteLength"||j==="byteOffset"||j==="length")){let q=H[j];const G=r;if(!(typeof q=="number"&&isFinite(q))){const Z={instancePath:t+"/body/"+j.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=[Z]:i.push(Z),r++}var d=G===r;if(!d)break}if(N===r){if(H.BYTES_PER_ELEMENT!==void 0){let j=H.BYTES_PER_ELEMENT;const q=r;if(!(typeof j=="number"&&isFinite(j))){const G={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=[G]:i.push(G),r++}var b=q===r}else var b=!0;if(b){if(H.buffer!==void 0){let j=H.buffer;const q=r;if(r===q)if(j&&typeof j=="object"&&!Array.isArray(j)){let Z;if(j.byteLength===void 0&&(Z="byteLength")){const V={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:Z},message:"must have required property '"+Z+"'"};i===null?i=[V]:i.push(V),r++}else{const V=r;for(const Q in j)if(Q!=="byteLength"){const X={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Q},message:"must NOT have additional properties"};i===null?i=[X]:i.push(X),r++;break}if(V===r&&j.byteLength!==void 0){let Q=j.byteLength;if(!(typeof Q=="number"&&isFinite(Q))){const X={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=[X]:i.push(X),r++}}}}else{const Z={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[Z]:i.push(Z),r++}var b=q===r}else var b=!0;if(b){if(H.byteLength!==void 0){let j=H.byteLength;const q=r;if(!(typeof j=="number"&&isFinite(j))){const Z={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Z]:i.push(Z),r++}var b=q===r}else var b=!0;if(b){if(H.byteOffset!==void 0){let j=H.byteOffset;const q=r;if(!(typeof j=="number"&&isFinite(j))){const Z={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Z]:i.push(Z),r++}var b=q===r}else var b=!0;if(b)if(H.length!==void 0){let j=H.length;const q=r;if(!(typeof j=="number"&&isFinite(j))){const Z={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Z]:i.push(Z),r++}var b=q===r}else var b=!0}}}}}}else{const k={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[k]:i.push(k),r++}var u=C===r;if(P=P||u,!P){const k=r;if(r===k)if(H&&typeof H=="object"&&!Array.isArray(H))for(const j in H){let q=H[j];const G=r,Z=r;let V=!1;const Q=r;if(typeof q!="string"){const X={instancePath:t+"/body/"+j.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=[X]:i.push(X),r++}var v=Q===r;if(V=V||v,!V){const X=r;if(r===X)if(q&&typeof q=="object"&&!Array.isArray(q)){let ee;if(q.BYTES_PER_ELEMENT===void 0&&(ee="BYTES_PER_ELEMENT")||q.buffer===void 0&&(ee="buffer")||q.byteLength===void 0&&(ee="byteLength")||q.byteOffset===void 0&&(ee="byteOffset")||q.length===void 0&&(ee="length")){const J={instancePath:t+"/body/"+j.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:ee},message:"must have required property '"+ee+"'"};i===null?i=[J]:i.push(J),r++}else{const J=r;for(const _ in q)if(!(_==="BYTES_PER_ELEMENT"||_==="buffer"||_==="byteLength"||_==="byteOffset"||_==="length")){let te=q[_];const ne=r;if(!(typeof te=="number"&&isFinite(te))){const re={instancePath:t+"/body/"+j.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+_.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=[re]:i.push(re),r++}var w=ne===r;if(!w)break}if(J===r){if(q.BYTES_PER_ELEMENT!==void 0){let _=q.BYTES_PER_ELEMENT;const te=r;if(!(typeof _=="number"&&isFinite(_))){const ne={instancePath:t+"/body/"+j.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=[ne]:i.push(ne),r++}var B=te===r}else var B=!0;if(B){if(q.buffer!==void 0){let _=q.buffer;const te=r;if(r===te)if(_&&typeof _=="object"&&!Array.isArray(_)){let re;if(_.byteLength===void 0&&(re="byteLength")){const we={instancePath:t+"/body/"+j.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:re},message:"must have required property '"+re+"'"};i===null?i=[we]:i.push(we),r++}else{const we=r;for(const Pe in _)if(Pe!=="byteLength"){const Ie={instancePath:t+"/body/"+j.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=[Ie]:i.push(Ie),r++;break}if(we===r&&_.byteLength!==void 0){let Pe=_.byteLength;if(!(typeof Pe=="number"&&isFinite(Pe))){const Ie={instancePath:t+"/body/"+j.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=[Ie]:i.push(Ie),r++}}}}else{const re={instancePath:t+"/body/"+j.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=[re]:i.push(re),r++}var B=te===r}else var B=!0;if(B){if(q.byteLength!==void 0){let _=q.byteLength;const te=r;if(!(typeof _=="number"&&isFinite(_))){const re={instancePath:t+"/body/"+j.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=[re]:i.push(re),r++}var B=te===r}else var B=!0;if(B){if(q.byteOffset!==void 0){let _=q.byteOffset;const te=r;if(!(typeof _=="number"&&isFinite(_))){const re={instancePath:t+"/body/"+j.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=[re]:i.push(re),r++}var B=te===r}else var B=!0;if(B)if(q.length!==void 0){let _=q.length;const te=r;if(!(typeof _=="number"&&isFinite(_))){const re={instancePath:t+"/body/"+j.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=[re]:i.push(re),r++}var B=te===r}else var B=!0}}}}}}else{const ee={instancePath:t+"/body/"+j.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=[ee]:i.push(ee),r++}var v=X===r;if(V=V||v,!V){const ee=r;if(r===ee)if(q&&typeof q=="object"&&!Array.isArray(q)){let _;if(q.lastModified===void 0&&(_="lastModified")||q.name===void 0&&(_="name")||q.size===void 0&&(_="size")||q.type===void 0&&(_="type")||q.webkitRelativePath===void 0&&(_="webkitRelativePath")){const te={instancePath:t+"/body/"+j.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:_},message:"must have required property '"+_+"'"};i===null?i=[te]:i.push(te),r++}else{const te=r;for(const ne in q)if(!(ne==="size"||ne==="type"||ne==="lastModified"||ne==="name"||ne==="webkitRelativePath")){const re={instancePath:t+"/body/"+j.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ne},message:"must NOT have additional properties"};i===null?i=[re]:i.push(re),r++;break}if(te===r){if(q.size!==void 0){let ne=q.size;const re=r;if(!(typeof ne=="number"&&isFinite(ne))){const we={instancePath:t+"/body/"+j.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=[we]:i.push(we),r++}var O=re===r}else var O=!0;if(O){if(q.type!==void 0){const ne=r;if(typeof q.type!="string"){const we={instancePath:t+"/body/"+j.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=[we]:i.push(we),r++}var O=ne===r}else var O=!0;if(O){if(q.lastModified!==void 0){let ne=q.lastModified;const re=r;if(!(typeof ne=="number"&&isFinite(ne))){const Pe={instancePath:t+"/body/"+j.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),r++}var O=re===r}else var O=!0;if(O){if(q.name!==void 0){const ne=r;if(typeof q.name!="string"){const we={instancePath:t+"/body/"+j.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=[we]:i.push(we),r++}var O=ne===r}else var O=!0;if(O)if(q.webkitRelativePath!==void 0){const ne=r;if(typeof q.webkitRelativePath!="string"){const we={instancePath:t+"/body/"+j.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=[we]:i.push(we),r++}var O=ne===r}else var O=!0}}}}}}else{const _={instancePath:t+"/body/"+j.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=[_]:i.push(_),r++}var v=ee===r;V=V||v}}if(V)r=Z,i!==null&&(Z?i.length=Z:i=null);else{const X={instancePath:t+"/body/"+j.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=[X]:i.push(X),r++}var W=G===r;if(!W)break}else{const j={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[j]:i.push(j),r++}var u=k===r;P=P||u}}if(P)r=R,i!==null&&(R?i.length=R:i=null);else{const C={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[C]:i.push(C),r++,ze.errors=i,!1}var p=z===r}else var p=!0}}}}}else return ze.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ze.errors=i,r===0}const _u={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 Te(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;if(r===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const B=r;for(const O in e)if(!Eo.call(_u.properties,O))return Te.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties"}],!1;if(B===r){if(e.relativeUri!==void 0){const O=r;if(typeof e.relativeUri!="string")return Te.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=O===r}else var p=!0;if(p){if(e.scriptPath!==void 0){const O=r;if(typeof e.scriptPath!="string")return Te.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=O===r}else var p=!0;if(p){if(e.protocol!==void 0){const O=r;if(typeof e.protocol!="string")return Te.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=O===r}else var p=!0;if(p){if(e.method!==void 0){let O=e.method;const W=r;if(typeof O!="string")return Te.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(O==="GET"||O==="POST"||O==="HEAD"||O==="OPTIONS"||O==="PATCH"||O==="PUT"||O==="DELETE"))return Te.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:xo.enum},message:"must be equal to one of the allowed values"}],!1;var p=W===r}else var p=!0;if(p){if(e.headers!==void 0){let O=e.headers;const W=r;if(r===r)if(O&&typeof O=="object"&&!Array.isArray(O))for(const H in O){const z=r;if(typeof O[H]!="string")return Te.errors=[{instancePath:t+"/headers/"+H.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=z===r;if(!m)break}else return Te.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=W===r}else var p=!0;if(p){if(e.body!==void 0){let O=e.body;const W=r,F=r;let M=!1;const H=r;if(typeof O!="string"){const R={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),r++}var u=H===r;if(M=M||u,!M){const R=r;if(r===R)if(O&&typeof O=="object"&&!Array.isArray(O)){let I;if(O.BYTES_PER_ELEMENT===void 0&&(I="BYTES_PER_ELEMENT")||O.buffer===void 0&&(I="buffer")||O.byteLength===void 0&&(I="byteLength")||O.byteOffset===void 0&&(I="byteOffset")||O.length===void 0&&(I="length")){const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:I},message:"must have required property '"+I+"'"};i===null?i=[E]:i.push(E),r++}else{const E=r;for(const C in O)if(!(C==="BYTES_PER_ELEMENT"||C==="buffer"||C==="byteLength"||C==="byteOffset"||C==="length")){let S=O[C];const k=r;if(!(typeof S=="number"&&isFinite(S))){const N={instancePath:t+"/body/"+C.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=[N]:i.push(N),r++}var d=k===r;if(!d)break}if(E===r){if(O.BYTES_PER_ELEMENT!==void 0){let C=O.BYTES_PER_ELEMENT;const S=r;if(!(typeof C=="number"&&isFinite(C))){const k={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=[k]:i.push(k),r++}var b=S===r}else var b=!0;if(b){if(O.buffer!==void 0){let C=O.buffer;const S=r;if(r===S)if(C&&typeof C=="object"&&!Array.isArray(C)){let N;if(C.byteLength===void 0&&(N="byteLength")){const j={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"};i===null?i=[j]:i.push(j),r++}else{const j=r;for(const q in C)if(q!=="byteLength"){const G={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:q},message:"must NOT have additional properties"};i===null?i=[G]:i.push(G),r++;break}if(j===r&&C.byteLength!==void 0){let q=C.byteLength;if(!(typeof q=="number"&&isFinite(q))){const G={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=[G]:i.push(G),r++}}}}else{const N={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[N]:i.push(N),r++}var b=S===r}else var b=!0;if(b){if(O.byteLength!==void 0){let C=O.byteLength;const S=r;if(!(typeof C=="number"&&isFinite(C))){const N={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[N]:i.push(N),r++}var b=S===r}else var b=!0;if(b){if(O.byteOffset!==void 0){let C=O.byteOffset;const S=r;if(!(typeof C=="number"&&isFinite(C))){const N={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[N]:i.push(N),r++}var b=S===r}else var b=!0;if(b)if(O.length!==void 0){let C=O.length;const S=r;if(!(typeof C=="number"&&isFinite(C))){const N={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[N]:i.push(N),r++}var b=S===r}else var b=!0}}}}}}else{const I={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[I]:i.push(I),r++}var u=R===r;M=M||u}if(M)r=F,i!==null&&(F?i.length=F:i=null);else{const R={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[R]:i.push(R),r++,Te.errors=i,!1}var p=W===r}else var p=!0;if(p){if(e.env!==void 0){let O=e.env;const W=r;if(r===W)if(O&&typeof O=="object"&&!Array.isArray(O))for(const M in O){const H=r;if(typeof O[M]!="string")return Te.errors=[{instancePath:t+"/env/"+M.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var v=H===r;if(!v)break}else return Te.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=W===r}else var p=!0;if(p){if(e.$_SERVER!==void 0){let O=e.$_SERVER;const W=r;if(r===W)if(O&&typeof O=="object"&&!Array.isArray(O))for(const M in O){const H=r;if(typeof O[M]!="string")return Te.errors=[{instancePath:t+"/$_SERVER/"+M.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=H===r;if(!w)break}else return Te.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=W===r}else var p=!0;if(p)if(e.code!==void 0){const O=r;if(typeof e.code!="string")return Te.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=O===r}else var p=!0}}}}}}}}}else return Te.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Te.errors=i,r===0}function h(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;if(r===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let Ps;if(e.step===void 0&&(Ps="step"))return h.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:Ps},message:"must have required property '"+Ps+"'"}],!1;{const pe=e.step;if(typeof pe=="string")if(pe==="activatePlugin"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.pluginPath===void 0&&(D="pluginPath")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="pluginPath"||a==="pluginName"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var p=K===r}else var p=!0;if(p)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=y===r}else var p=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=T===r}else var m=!0;if(m){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="activatePlugin")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var m=T===r}else var m=!0;if(m){if(e.pluginPath!==void 0){const a=r;if(typeof e.pluginPath!="string")return h.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=a===r}else var m=!0;if(m)if(e.pluginName!==void 0){const a=r;if(typeof e.pluginName!="string")return h.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=a===r}else var m=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="activateTheme"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step")||e.themeFolderName===void 0&&(D="themeFolderName"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="themeFolderName"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var u=K===r}else var u=!0;if(u)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=y===r}else var u=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=T===r}else var d=!0;if(d){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="activateTheme")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var d=T===r}else var d=!0;if(d)if(e.themeFolderName!==void 0){const a=r;if(typeof e.themeFolderName!="string")return h.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=a===r}else var d=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="cp"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.fromPath===void 0&&(D="fromPath")||e.step===void 0&&(D="step")||e.toPath===void 0&&(D="toPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="fromPath"||a==="toPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var b=K===r}else var b=!0;if(b)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=y===r}else var b=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=T===r}else var v=!0;if(v){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="cp")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var v=T===r}else var v=!0;if(v){if(e.fromPath!==void 0){const a=r;if(typeof e.fromPath!="string")return h.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var v=a===r}else var v=!0;if(v)if(e.toPath!==void 0){const a=r;if(typeof e.toPath!="string")return h.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var v=a===r}else var v=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="defineWpConfigConsts"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.consts===void 0&&(D="consts")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="consts"||a==="method"||a==="virtualize"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var w=K===r}else var w=!0;if(w)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=y===r}else var w=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var B=T===r}else var B=!0;if(B){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="defineWpConfigConsts")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var B=T===r}else var B=!0;if(B){if(e.consts!==void 0){let a=e.consts;const T=r;if(r===T&&!(a&&typeof a=="object"&&!Array.isArray(a)))return h.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var B=T===r}else var B=!0;if(B){if(e.method!==void 0){let a=e.method;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(a==="rewrite-wp-config"||a==="define-before-run"))return h.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:Kr.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var B=T===r}else var B=!0;if(B)if(e.virtualize!==void 0){const a=r;if(typeof e.virtualize!="boolean")return h.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var B=a===r}else var B=!0}}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="defineSiteUrl"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.siteUrl===void 0&&(D="siteUrl")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="siteUrl"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var O=K===r}else var O=!0;if(O)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=y===r}else var O=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var W=T===r}else var W=!0;if(W){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="defineSiteUrl")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var W=T===r}else var W=!0;if(W)if(e.siteUrl!==void 0){const a=r;if(typeof e.siteUrl!="string")return h.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=a===r}else var W=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="enableMultisite"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="wpCliPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var F=K===r}else var F=!0;if(F)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=y===r}else var F=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var M=T===r}else var M=!0;if(M){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="enableMultisite")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var M=T===r}else var M=!0;if(M)if(e.wpCliPath!==void 0){const a=r;if(typeof e.wpCliPath!="string")return h.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=a===r}else var M=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="importWxr"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.file===void 0&&(D="file")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="file"||a==="importer"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var H=K===r}else var H=!0;if(H)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var H=y===r}else var H=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=T===r}else var z=!0;if(z){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="importWxr")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var z=T===r}else var z=!0;if(z){if(e.file!==void 0){const a=r;le(e.file,{instancePath:t+"/file",parentData:e,parentDataProperty:"file",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var z=a===r}else var z=!0;if(z)if(e.importer!==void 0){let a=e.importer;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(a==="data-liberation"||a==="default"))return h.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:Kr.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var z=T===r}else var z=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="importThemeStarterContent"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="themeSlug"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var R=K===r}else var R=!0;if(R)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=y===r}else var R=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var P=T===r}else var P=!0;if(P){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="importThemeStarterContent")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var P=T===r}else var P=!0;if(P)if(e.themeSlug!==void 0){const a=r;if(typeof e.themeSlug!="string")return h.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=a===r}else var P=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="importWordPressFiles"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step")||e.wordPressFilesZip===void 0&&(D="wordPressFilesZip"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="wordPressFilesZip"||a==="pathInZip"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var I=K===r}else var I=!0;if(I)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=y===r}else var I=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var E=T===r}else var E=!0;if(E){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="importWordPressFiles")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var E=T===r}else var E=!0;if(E){if(e.wordPressFilesZip!==void 0){const a=r;le(e.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:e,parentDataProperty:"wordPressFilesZip",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var E=a===r}else var E=!0;if(E)if(e.pathInZip!==void 0){const a=r;if(typeof e.pathInZip!="string")return h.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=a===r}else var E=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="installPlugin"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.pluginData===void 0&&(D="pluginData")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="ifAlreadyInstalled"||a==="step"||a==="pluginData"||a==="pluginZipFile"||a==="options"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var C=K===r}else var C=!0;if(C)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=y===r}else var C=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var S=T===r}else var S=!0;if(S){if(e.ifAlreadyInstalled!==void 0){let a=e.ifAlreadyInstalled;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(a==="overwrite"||a==="skip"||a==="error"))return h.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Kr.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var S=T===r}else var S=!0;if(S){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="installPlugin")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var S=T===r}else var S=!0;if(S){if(e.pluginData!==void 0){let a=e.pluginData;const T=r,U=r;let y=!1;const K=r;le(a,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var k=K===r;if(y=y||k,!y){const Ae=r;$e(a,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:o})||(i=i===null?$e.errors:i.concat($e.errors),r=i.length);var k=Ae===r;y=y||k}if(y)r=U,i!==null&&(U?i.length=U:i=null);else{const Ae={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[Ae]:i.push(Ae),r++,h.errors=i,!1}var S=T===r}else var S=!0;if(S){if(e.pluginZipFile!==void 0){const a=r;le(e.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:e,parentDataProperty:"pluginZipFile",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var S=a===r}else var S=!0;if(S)if(e.options!==void 0){let a=e.options;const T=r;if(r===r)if(a&&typeof a=="object"&&!Array.isArray(a)){const K=r;for(const ge in a)if(!(ge==="activate"||ge==="targetFolderName"))return h.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ge},message:"must NOT have additional properties"}],!1;if(K===r){if(a.activate!==void 0){const ge=r;if(typeof a.activate!="boolean")return h.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var N=ge===r}else var N=!0;if(N)if(a.targetFolderName!==void 0){const ge=r;if(typeof a.targetFolderName!="string")return h.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var N=ge===r}else var N=!0}}else return h.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var S=T===r}else var S=!0}}}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="installTheme"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step")||e.themeData===void 0&&(D="themeData"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="ifAlreadyInstalled"||a==="step"||a==="themeData"||a==="themeZipFile"||a==="options"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var j=K===r}else var j=!0;if(j)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=y===r}else var j=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var q=T===r}else var q=!0;if(q){if(e.ifAlreadyInstalled!==void 0){let a=e.ifAlreadyInstalled;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(a==="overwrite"||a==="skip"||a==="error"))return h.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Kr.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var q=T===r}else var q=!0;if(q){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="installTheme")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var q=T===r}else var q=!0;if(q){if(e.themeData!==void 0){let a=e.themeData;const T=r,U=r;let y=!1;const K=r;le(a,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var G=K===r;if(y=y||G,!y){const Ae=r;$e(a,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:o})||(i=i===null?$e.errors:i.concat($e.errors),r=i.length);var G=Ae===r;y=y||G}if(y)r=U,i!==null&&(U?i.length=U:i=null);else{const Ae={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[Ae]:i.push(Ae),r++,h.errors=i,!1}var q=T===r}else var q=!0;if(q){if(e.themeZipFile!==void 0){const a=r;le(e.themeZipFile,{instancePath:t+"/themeZipFile",parentData:e,parentDataProperty:"themeZipFile",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var q=a===r}else var q=!0;if(q)if(e.options!==void 0){let a=e.options;const T=r;if(r===r)if(a&&typeof a=="object"&&!Array.isArray(a)){const K=r;for(const ge in a)if(!(ge==="activate"||ge==="importStarterContent"||ge==="targetFolderName"))return h.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ge},message:"must NOT have additional properties"}],!1;if(K===r){if(a.activate!==void 0){const ge=r;if(typeof a.activate!="boolean")return h.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var Z=ge===r}else var Z=!0;if(Z){if(a.importStarterContent!==void 0){const ge=r;if(typeof a.importStarterContent!="boolean")return h.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var Z=ge===r}else var Z=!0;if(Z)if(a.targetFolderName!==void 0){const ge=r;if(typeof a.targetFolderName!="string")return h.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=ge===r}else var Z=!0}}}else return h.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var q=T===r}else var q=!0}}}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="login"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="username"||a==="password"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var V=K===r}else var V=!0;if(V)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=y===r}else var V=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Q=T===r}else var Q=!0;if(Q){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="login")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var Q=T===r}else var Q=!0;if(Q){if(e.username!==void 0){const a=r;if(typeof e.username!="string")return h.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=a===r}else var Q=!0;if(Q)if(e.password!==void 0){const a=r;if(typeof e.password!="string")return h.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=a===r}else var Q=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="mkdir"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.path===void 0&&(D="path")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="path"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var X=K===r}else var X=!0;if(X)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var X=y===r}else var X=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var se=T===r}else var se=!0;if(se){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="mkdir")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var se=T===r}else var se=!0;if(se)if(e.path!==void 0){const a=r;if(typeof e.path!="string")return h.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var se=a===r}else var se=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="mv"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.fromPath===void 0&&(D="fromPath")||e.step===void 0&&(D="step")||e.toPath===void 0&&(D="toPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="fromPath"||a==="toPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ee=K===r}else var ee=!0;if(ee)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=y===r}else var ee=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var J=T===r}else var J=!0;if(J){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="mv")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var J=T===r}else var J=!0;if(J){if(e.fromPath!==void 0){const a=r;if(typeof e.fromPath!="string")return h.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var J=a===r}else var J=!0;if(J)if(e.toPath!==void 0){const a=r;if(typeof e.toPath!="string")return h.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var J=a===r}else var J=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="resetData"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _=K===r}else var _=!0;if(_)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=y===r}else var _=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var te=T===r}else var te=!0;if(te)if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="resetData")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var te=T===r}else var te=!0}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="request"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.request===void 0&&(D="request")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="request"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ne=K===r}else var ne=!0;if(ne)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ne=y===r}else var ne=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var re=T===r}else var re=!0;if(re){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="request")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var re=T===r}else var re=!0;if(re)if(e.request!==void 0){const a=r;ze(e.request,{instancePath:t+"/request",parentData:e,parentDataProperty:"request",rootData:o})||(i=i===null?ze.errors:i.concat(ze.errors),r=i.length);var re=a===r}else var re=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="rm"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.path===void 0&&(D="path")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="path"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var we=K===r}else var we=!0;if(we)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=y===r}else var we=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Pe=T===r}else var Pe=!0;if(Pe){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="rm")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var Pe=T===r}else var Pe=!0;if(Pe)if(e.path!==void 0){const a=r;if(typeof e.path!="string")return h.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Pe=a===r}else var Pe=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="rmdir"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.path===void 0&&(D="path")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="path"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ie=K===r}else var Ie=!0;if(Ie)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ie=y===r}else var Ie=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var rt=T===r}else var rt=!0;if(rt){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="rmdir")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var rt=T===r}else var rt=!0;if(rt)if(e.path!==void 0){const a=r;if(typeof e.path!="string")return h.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var rt=a===r}else var rt=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="runPHP"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.code===void 0&&(D="code")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="code"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Kt=K===r}else var Kt=!0;if(Kt)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Kt=y===r}else var Kt=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var st=T===r}else var st=!0;if(st){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="runPHP")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var st=T===r}else var st=!0;if(st)if(e.code!==void 0){const a=r;if(typeof e.code!="string")return h.errors=[{instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var st=a===r}else var st=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="runPHPWithOptions"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.options===void 0&&(D="options")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="options"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _e=K===r}else var _e=!0;if(_e)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _e=y===r}else var _e=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ne=T===r}else var Ne=!0;if(Ne){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="runPHPWithOptions")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var Ne=T===r}else var Ne=!0;if(Ne)if(e.options!==void 0){const a=r;Te(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:o})||(i=i===null?Te.errors:i.concat(Te.errors),r=i.length);var Ne=a===r}else var Ne=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="runWpInstallationWizard"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.options===void 0&&(D="options")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="options"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Vt=K===r}else var Vt=!0;if(Vt)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Vt=y===r}else var Vt=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ct=T===r}else var ct=!0;if(ct){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="runWpInstallationWizard")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var ct=T===r}else var ct=!0;if(ct)if(e.options!==void 0){let a=e.options;const T=r;if(r===r)if(a&&typeof a=="object"&&!Array.isArray(a)){const K=r;for(const ge in a)if(!(ge==="adminUsername"||ge==="adminPassword"))return h.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ge},message:"must NOT have additional properties"}],!1;if(K===r){if(a.adminUsername!==void 0){const ge=r;if(typeof a.adminUsername!="string")return h.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var At=ge===r}else var At=!0;if(At)if(a.adminPassword!==void 0){const ge=r;if(typeof a.adminPassword!="string")return h.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var At=ge===r}else var At=!0}}else return h.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ct=T===r}else var ct=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="runSql"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.sql===void 0&&(D="sql")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="sql"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Zt=K===r}else var Zt=!0;if(Zt)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Zt=y===r}else var Zt=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var dt=T===r}else var dt=!0;if(dt){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="runSql")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var dt=T===r}else var dt=!0;if(dt)if(e.sql!==void 0){const a=r;le(e.sql,{instancePath:t+"/sql",parentData:e,parentDataProperty:"sql",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var dt=a===r}else var dt=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="setSiteOptions"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.options===void 0&&(D="options")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="options"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Dt=K===r}else var Dt=!0;if(Dt)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Dt=y===r}else var Dt=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Me=T===r}else var Me=!0;if(Me){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="setSiteOptions")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var Me=T===r}else var Me=!0;if(Me)if(e.options!==void 0){let a=e.options;const T=r;if(r===T&&!(a&&typeof a=="object"&&!Array.isArray(a)))return h.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Me=T===r}else var Me=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="unzip"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.extractToPath===void 0&&(D="extractToPath")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="zipFile"||a==="zipPath"||a==="extractToPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var He=K===r}else var He=!0;if(He)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var He=y===r}else var He=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var De=T===r}else var De=!0;if(De){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="unzip")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var De=T===r}else var De=!0;if(De){if(e.zipFile!==void 0){const a=r;le(e.zipFile,{instancePath:t+"/zipFile",parentData:e,parentDataProperty:"zipFile",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var De=a===r}else var De=!0;if(De){if(e.zipPath!==void 0){const a=r;if(typeof e.zipPath!="string")return h.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var De=a===r}else var De=!0;if(De)if(e.extractToPath!==void 0){const a=r;if(typeof e.extractToPath!="string")return h.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var De=a===r}else var De=!0}}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="updateUserMeta"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.meta===void 0&&(D="meta")||e.step===void 0&&(D="step")||e.userId===void 0&&(D="userId"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="meta"||a==="userId"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Xt=K===r}else var Xt=!0;if(Xt)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Xt=y===r}else var Xt=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Se=T===r}else var Se=!0;if(Se){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="updateUserMeta")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var Se=T===r}else var Se=!0;if(Se){if(e.meta!==void 0){let a=e.meta;const T=r;if(r===T&&!(a&&typeof a=="object"&&!Array.isArray(a)))return h.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Se=T===r}else var Se=!0;if(Se)if(e.userId!==void 0){let a=e.userId;const T=r;if(!(typeof a=="number"&&isFinite(a)))return h.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Se=T===r}else var Se=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="writeFile"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.data===void 0&&(D="data")||e.path===void 0&&(D="path")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="path"||a==="data"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Yt=K===r}else var Yt=!0;if(Yt)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Yt=y===r}else var Yt=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var c=T===r}else var c=!0;if(c){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="writeFile")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var c=T===r}else var c=!0;if(c){if(e.path!==void 0){const a=r;if(typeof e.path!="string")return h.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=a===r}else var c=!0;if(c)if(e.data!==void 0){let a=e.data;const T=r,U=r;let y=!1;const K=r;le(a,{instancePath:t+"/data",parentData:e,parentDataProperty:"data",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var f=K===r;if(y=y||f,!y){const Ae=r;if(typeof a!="string"){const it={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[it]:i.push(it),r++}var f=Ae===r;if(y=y||f,!y){const it=r;if(r===it)if(a&&typeof a=="object"&&!Array.isArray(a)){let Ke;if(a.BYTES_PER_ELEMENT===void 0&&(Ke="BYTES_PER_ELEMENT")||a.buffer===void 0&&(Ke="buffer")||a.byteLength===void 0&&(Ke="byteLength")||a.byteOffset===void 0&&(Ke="byteOffset")||a.length===void 0&&(Ke="length")){const jr={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:Ke},message:"must have required property '"+Ke+"'"};i===null?i=[jr]:i.push(jr),r++}else{const jr=r;for(const ue in a)if(!(ue==="BYTES_PER_ELEMENT"||ue==="buffer"||ue==="byteLength"||ue==="byteOffset"||ue==="length")){let Fe=a[ue];const Ir=r;if(!(typeof Fe=="number"&&isFinite(Fe))){const Ee={instancePath:t+"/data/"+ue.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=[Ee]:i.push(Ee),r++}var l=Ir===r;if(!l)break}if(jr===r){if(a.BYTES_PER_ELEMENT!==void 0){let ue=a.BYTES_PER_ELEMENT;const Fe=r;if(!(typeof ue=="number"&&isFinite(ue))){const Ir={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=[Ir]:i.push(Ir),r++}var g=Fe===r}else var g=!0;if(g){if(a.buffer!==void 0){let ue=a.buffer;const Fe=r;if(r===Fe)if(ue&&typeof ue=="object"&&!Array.isArray(ue)){let Ee;if(ue.byteLength===void 0&&(Ee="byteLength")){const Rr={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:Ee},message:"must have required property '"+Ee+"'"};i===null?i=[Rr]:i.push(Rr),r++}else{const Rr=r;for(const pr in ue)if(pr!=="byteLength"){const fr={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:pr},message:"must NOT have additional properties"};i===null?i=[fr]:i.push(fr),r++;break}if(Rr===r&&ue.byteLength!==void 0){let pr=ue.byteLength;if(!(typeof pr=="number"&&isFinite(pr))){const fr={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=[fr]:i.push(fr),r++}}}}else{const Ee={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=[Ee]:i.push(Ee),r++}var g=Fe===r}else var g=!0;if(g){if(a.byteLength!==void 0){let ue=a.byteLength;const Fe=r;if(!(typeof ue=="number"&&isFinite(ue))){const Ee={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=[Ee]:i.push(Ee),r++}var g=Fe===r}else var g=!0;if(g){if(a.byteOffset!==void 0){let ue=a.byteOffset;const Fe=r;if(!(typeof ue=="number"&&isFinite(ue))){const Ee={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=[Ee]:i.push(Ee),r++}var g=Fe===r}else var g=!0;if(g)if(a.length!==void 0){let ue=a.length;const Fe=r;if(!(typeof ue=="number"&&isFinite(ue))){const Ee={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=[Ee]:i.push(Ee),r++}var g=Fe===r}else var g=!0}}}}}}else{const Ke={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[Ke]:i.push(Ke),r++}var f=it===r;y=y||f}}if(y)r=U,i!==null&&(U?i.length=U:i=null);else{const Ae={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[Ae]:i.push(Ae),r++,h.errors=i,!1}var c=T===r}else var c=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="writeFiles"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.filesTree===void 0&&(D="filesTree")||e.step===void 0&&(D="step")||e.writeToPath===void 0&&(D="writeToPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="writeToPath"||a==="filesTree"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var A=K===r}else var A=!0;if(A)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=y===r}else var A=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var x=T===r}else var x=!0;if(x){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="writeFiles")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var x=T===r}else var x=!0;if(x){if(e.writeToPath!==void 0){const a=r;if(typeof e.writeToPath!="string")return h.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=a===r}else var x=!0;if(x)if(e.filesTree!==void 0){const a=r;$e(e.filesTree,{instancePath:t+"/filesTree",parentData:e,parentDataProperty:"filesTree",rootData:o})||(i=i===null?$e.errors:i.concat($e.errors),r=i.length);var x=a===r}else var x=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="wp-cli"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.command===void 0&&(D="command")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="command"||a==="wpCliPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var L=K===r}else var L=!0;if(L)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=y===r}else var L=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var $=T===r}else var $=!0;if($){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="wp-cli")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var $=T===r}else var $=!0;if($){if(e.command!==void 0){let a=e.command;const T=r,U=r;let y=!1;const K=r;if(typeof a!="string"){const Ae={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Ae]:i.push(Ae),r++}var ye=K===r;if(y=y||ye,!y){const Ae=r;if(r===Ae)if(Array.isArray(a)){var he=!0;const it=a.length;for(let Lr=0;Lr<it;Lr++){const Ke=r;if(typeof a[Lr]!="string"){const ue={instancePath:t+"/command/"+Lr,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ue]:i.push(ue),r++}var he=Ke===r;if(!he)break}}else{const it={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};i===null?i=[it]:i.push(it),r++}var ye=Ae===r;y=y||ye}if(y)r=U,i!==null&&(U?i.length=U:i=null);else{const Ae={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[Ae]:i.push(Ae),r++,h.errors=i,!1}var $=T===r}else var $=!0;if($)if(e.wpCliPath!==void 0){const a=r;if(typeof e.wpCliPath!="string")return h.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=a===r}else var $=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="setSiteLanguage"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.language===void 0&&(D="language")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="language"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var me=K===r}else var me=!0;if(me)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var me=y===r}else var me=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ae=T===r}else var ae=!0;if(ae){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="setSiteLanguage")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var ae=T===r}else var ae=!0;if(ae)if(e.language!==void 0){const a=r;if(typeof e.language!="string")return h.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ae=a===r}else var ae=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return h.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:pe},message:'value of tag "step" must be in oneOf'}],!1;else return h.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:pe},message:'tag "step" must be string'}],!1}}else return h.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return h.errors=i,r===0}function ie(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;if(r===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const R=r;for(const P in e)if(!Eo.call(Yu.properties,P))return ie.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"}],!1;if(R===r){if(e.landingPage!==void 0){const P=r;if(typeof e.landingPage!="string")return ie.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=P===r}else var p=!0;if(p){if(e.description!==void 0){const P=r;if(typeof e.description!="string")return ie.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=P===r}else var p=!0;if(p){if(e.meta!==void 0){let P=e.meta;const I=r;if(r===I)if(P&&typeof P=="object"&&!Array.isArray(P)){let C;if(P.title===void 0&&(C="title")||P.author===void 0&&(C="author"))return ie.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"}],!1;{const S=r;for(const k in P)if(!(k==="title"||k==="description"||k==="author"||k==="categories"))return ie.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(S===r){if(P.title!==void 0){const k=r;if(typeof P.title!="string")return ie.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=k===r}else var m=!0;if(m){if(P.description!==void 0){const k=r;if(typeof P.description!="string")return ie.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=k===r}else var m=!0;if(m){if(P.author!==void 0){const k=r;if(typeof P.author!="string")return ie.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=k===r}else var m=!0;if(m)if(P.categories!==void 0){let k=P.categories;const N=r;if(r===N)if(Array.isArray(k)){var u=!0;const q=k.length;for(let G=0;G<q;G++){const Z=r;if(typeof k[G]!="string")return ie.errors=[{instancePath:t+"/meta/categories/"+G,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=Z===r;if(!u)break}}else return ie.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var m=N===r}else var m=!0}}}}}else return ie.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=I===r}else var p=!0;if(p){if(e.preferredVersions!==void 0){let P=e.preferredVersions;const I=r;if(r===I)if(P&&typeof P=="object"&&!Array.isArray(P)){let C;if(P.php===void 0&&(C="php")||P.wp===void 0&&(C="wp"))return ie.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"}],!1;{const S=r;for(const k in P)if(!(k==="php"||k==="wp"))return ie.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(S===r){if(P.php!==void 0){let k=P.php;const N=r,j=r;let q=!1;const G=r;if(typeof k!="string"){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Z]:i.push(Z),r++}if(!(k==="8.4"||k==="8.3"||k==="8.2"||k==="8.1"||k==="8.0"||k==="7.4"||k==="7.3"||k==="7.2"||k==="7.1"||k==="7.0")){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:Gu.enum},message:"must be equal to one of the allowed values"};i===null?i=[Z]:i.push(Z),r++}var d=G===r;if(q=q||d,!q){const Z=r;if(typeof k!="string"){const Q={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Q]:i.push(Q),r++}if(k!=="latest"){const Q={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=[Q]:i.push(Q),r++}var d=Z===r;q=q||d}if(q)r=j,i!==null&&(j?i.length=j:i=null);else{const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[Z]:i.push(Z),r++,ie.errors=i,!1}var b=N===r}else var b=!0;if(b)if(P.wp!==void 0){const k=r;if(typeof P.wp!="string")return ie.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=k===r}else var b=!0}}}else return ie.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=I===r}else var p=!0;if(p){if(e.features!==void 0){let P=e.features;const I=r;if(r===I)if(P&&typeof P=="object"&&!Array.isArray(P)){const C=r;for(const S in P)if(S!=="networking")return ie.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties"}],!1;if(C===r&&P.networking!==void 0&&typeof P.networking!="boolean")return ie.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1}else return ie.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=I===r}else var p=!0;if(p){if(e.extraLibraries!==void 0){let P=e.extraLibraries;const I=r;if(r===I)if(Array.isArray(P)){var v=!0;const C=P.length;for(let S=0;S<C;S++){let k=P[S];const N=r;if(typeof k!="string")return ie.errors=[{instancePath:t+"/extraLibraries/"+S,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(k!=="wp-cli")return ie.errors=[{instancePath:t+"/extraLibraries/"+S,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var v=N===r;if(!v)break}}else return ie.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var p=I===r}else var p=!0;if(p){if(e.constants!==void 0){let P=e.constants;const I=r;if(r===r)if(P&&typeof P=="object"&&!Array.isArray(P))for(const S in P){let k=P[S];const N=r;if(typeof k!="string"&&typeof k!="boolean"&&!(typeof k=="number"&&isFinite(k)))return ie.errors=[{instancePath:t+"/constants/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:Qu.additionalProperties.type},message:"must be string,boolean,number"}],!1;var w=N===r;if(!w)break}else return ie.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=I===r}else var p=!0;if(p){if(e.plugins!==void 0){let P=e.plugins;const I=r;if(r===I)if(Array.isArray(P)){var B=!0;const C=P.length;for(let S=0;S<C;S++){let k=P[S];const N=r,j=r;let q=!1;const G=r;if(typeof k!="string"){const V={instancePath:t+"/plugins/"+S,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),r++}var O=G===r;if(q=q||O,!q){const V=r;le(k,{instancePath:t+"/plugins/"+S,parentData:P,parentDataProperty:S,rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var O=V===r;q=q||O}if(q)r=j,i!==null&&(j?i.length=j:i=null);else{const V={instancePath:t+"/plugins/"+S,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[V]:i.push(V),r++,ie.errors=i,!1}var B=N===r;if(!B)break}}else return ie.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var p=I===r}else var p=!0;if(p){if(e.siteOptions!==void 0){let P=e.siteOptions;const I=r;if(r===I)if(P&&typeof P=="object"&&!Array.isArray(P)){const C=r;for(const S in P)if(S!=="blogname"){const k=r;if(typeof P[S]!="string")return ie.errors=[{instancePath:t+"/siteOptions/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=k===r;if(!W)break}if(C===r&&P.blogname!==void 0&&typeof P.blogname!="string")return ie.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return ie.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=I===r}else var p=!0;if(p){if(e.login!==void 0){let P=e.login;const I=r,E=r;let C=!1;const S=r;if(typeof P!="boolean"){const N={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[N]:i.push(N),r++}var F=S===r;if(C=C||F,!C){const N=r;if(r===N)if(P&&typeof P=="object"&&!Array.isArray(P)){let q;if(P.username===void 0&&(q="username")||P.password===void 0&&(q="password")){const G={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"};i===null?i=[G]:i.push(G),r++}else{const G=r;for(const Z in P)if(!(Z==="username"||Z==="password")){const V={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Z},message:"must NOT have additional properties"};i===null?i=[V]:i.push(V),r++;break}if(G===r){if(P.username!==void 0){const Z=r;if(typeof P.username!="string"){const V={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),r++}var M=Z===r}else var M=!0;if(M)if(P.password!==void 0){const Z=r;if(typeof P.password!="string"){const Q={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Q]:i.push(Q),r++}var M=Z===r}else var M=!0}}}else{const q={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[q]:i.push(q),r++}var F=N===r;C=C||F}if(C)r=E,i!==null&&(E?i.length=E:i=null);else{const N={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[N]:i.push(N),r++,ie.errors=i,!1}var p=I===r}else var p=!0;if(p){if(e.steps!==void 0){let P=e.steps;const I=r;if(r===I)if(Array.isArray(P)){var H=!0;const C=P.length;for(let S=0;S<C;S++){let k=P[S];const N=r,j=r;let q=!1;const G=r;h(k,{instancePath:t+"/steps/"+S,parentData:P,parentDataProperty:S,rootData:o})||(i=i===null?h.errors:i.concat(h.errors),r=i.length);var z=G===r;if(q=q||z,!q){const V=r;if(typeof k!="string"){const X={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[X]:i.push(X),r++}var z=V===r;if(q=q||z,!q){const X=r,se={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};i===null?i=[se]:i.push(se),r++;var z=X===r;if(q=q||z,!q){const J=r;if(typeof k!="boolean"){const te={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[te]:i.push(te),r++}if(k!==!1){const te={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};i===null?i=[te]:i.push(te),r++}var z=J===r;if(q=q||z,!q){const te=r;if(k!==null){const re={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};i===null?i=[re]:i.push(re),r++}var z=te===r;q=q||z}}}}if(q)r=j,i!==null&&(j?i.length=j:i=null);else{const V={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[V]:i.push(V),r++,ie.errors=i,!1}var H=N===r;if(!H)break}}else return ie.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var p=I===r}else var p=!0;if(p)if(e.$schema!==void 0){const P=r;if(typeof e.$schema!="string")return ie.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=P===r}else var p=!0}}}}}}}}}}}}else return ie.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ie.errors=i,r===0}function _r(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;return ie(e,{instancePath:t,parentData:s,parentDataProperty:n,rootData:o})||(i=i===null?ie.errors:i.concat(ie.errors),r=i.length),_r.errors=i,r===0}const{wpCLI:$u,...Ln}=fp,ec={...Ln,"wp-cli":$u,importFile:Ln.importWxr};function Co(e,{progress:t=new ds,semaphore:s=new Wn({concurrency:3}),onStepCompleted:n=()=>{},corsProxy:o}={}){var v,w,B,O,W,F,M,H,z,R;e=structuredClone(e),e={...e,steps:(e.steps||[]).filter(sc).filter(ic)};for(const P of e.steps)!P||typeof P!="object"||(P.step==="importFile"?(P.step="importWxr",Ce.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(P==null?void 0:P.step)==="installPlugin"&&"pluginZipFile"in P?(P.pluginData=P.pluginZipFile,Ce.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(P==null?void 0:P.step)==="installTheme"&&"themeZipFile"in P&&(P.themeData=P.themeZipFile,Ce.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(e.constants&&e.steps.unshift({step:"defineWpConfigConsts",consts:e.constants}),e.siteOptions&&e.steps.unshift({step:"setSiteOptions",options:e.siteOptions}),e.plugins){const P=e.plugins.map(I=>typeof I=="string"?I.startsWith("https://")?{resource:"url",url:I}:{resource:"wordpress.org/plugins",slug:I}:I).map(I=>({step:"installPlugin",pluginData:I}));e.steps.unshift(...P)}e.login&&e.steps.push({step:"login",...e.login===!0?{username:"admin"}:e.login});const i=((v=e.steps)==null?void 0:v.findIndex(P=>typeof P=="object"&&(P==null?void 0:P.step)&&["wp-cli","enableMultisite"].includes(P.step)))??-1;if((w=e==null?void 0:e.extraLibraries)!=null&&w.includes("wp-cli")||i!==-1){const P={step:"writeFile",data:Yo,path:hi};i===-1?(B=e.steps)==null||B.push(P):(O=e.steps)==null||O.splice(i,0,P)}const r=(W=e.steps)==null?void 0:W.findIndex(P=>typeof P=="object"&&(P==null?void 0:P.step)==="importWxr");r!==void 0&&r>-1&&(e.steps[r].importer==="data-liberation"?(F=e.steps)==null||F.splice(r,0,{step:"writeFile",path:"/internal/shared/data-liberation-core.phar",data:{resource:"url",url:Xu,caption:"Downloading the Data Liberation WXR importer"}}):(M=e.steps)==null||M.splice(r,0,{step:"installPlugin",pluginData:{resource:"url",url:"https://playground.wordpress.net/wordpress-importer.zip",caption:"Downloading the WordPress Importer plugin"}}));const{valid:p,errors:m}=tc(e);if(!p){const P=new Error(`Invalid blueprint: ${m[0].message} at ${m[0].instancePath}`);throw P.errors=m,P}const u=e.steps||[],d=u.reduce((P,I)=>{var E;return P+(((E=I.progress)==null?void 0:E.weight)||1)},0),b=u.map(P=>nc(P,{semaphore:s,rootProgressTracker:t,totalProgressWeight:d,corsProxy:o}));return{versions:{php:rc((H=e.preferredVersions)==null?void 0:H.php,fs,$n),wp:((z=e.preferredVersions)==null?void 0:z.wp)||"latest"},features:{networking:((R=e.features)==null?void 0:R.networking)??!1},extraLibraries:e.extraLibraries||[],run:async P=>{try{for(const{resources:I}of b)for(const E of I)E.setPlayground(P),E.isAsync&&E.resolve();for(const[I,{run:E,step:C}]of Object.entries(b))try{const S=await E(P);n(S,C)}catch(S){throw Ce.error(S),new Error(`Error when executing the blueprint step #${I} (${JSON.stringify(C)}) ${S instanceof Error?`: ${S.message}`:S}`,{cause:S})}}finally{try{await P.goTo(e.landingPage||"/")}catch{}t.finish()}}}}function tc(e){var o;const t=_r(e);if(t)return{valid:t};const s=new Set;for(const i of _r.errors)i.schemaPath.startsWith("#/properties/steps/items/anyOf")||s.add(i.instancePath);const n=(o=_r.errors)==null?void 0:o.filter(i=>!(i.schemaPath.startsWith("#/properties/steps/items/anyOf")&&s.has(i.instancePath)));return{valid:t,errors:n}}function rc(e,t,s){return e&&t.includes(e)?e:s}function sc(e){return!!(typeof e=="object"&&e)}function ic(e){return["setPhpIniEntry","request"].includes(e.step)?(Ce.warn(`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function nc(e,{semaphore:t,rootProgressTracker:s,totalProgressWeight:n,corsProxy:o}){var b;const i=s.stage((((b=e.progress)==null?void 0:b.weight)||1)/n),r={};for(const v of Object.keys(e)){let w=e[v];ju(w)&&(w=Pt.create(w,{semaphore:t,corsProxy:o})),r[v]=w}const p=async v=>{var w;try{return i.fillSlowly(),await ec[e.step](v,await ac(r),{tracker:i,initialCaption:(w=e.progress)==null?void 0:w.caption})}finally{i.finish()}},m=jn(r),u=jn(r).filter(v=>v.isAsync),d=1/(u.length+1);for(const v of u)v.progress=i.stage(d);return{run:p,step:e,resources:m}}function jn(e){const t=[];for(const s in e){const n=e[s];n instanceof Pt&&t.push(n)}return t}async function ac(e){const t={};for(const s in e){const n=e[s];n instanceof Pt?t[s]=await n.resolve():t[s]=n}return t}async function Do(e,t){await e.run(t)}function oc(){}async function pc({iframe:e,blueprint:t,remoteUrl:s,progressTracker:n=new ds,disableProgressBar:o,onBlueprintStepCompleted:i,onClientConnected:r=()=>{},sapiName:p,onBeforeBlueprint:m,mounts:u,scope:d,corsProxy:b,shouldInstallWordPress:v}){lc(s),fc(e),s=uc(s,{progressbar:!o}),n.setCaption("Preparing WordPress"),t||(t={});const w=Co(t,{progress:n.stage(.5),onStepCompleted:i,corsProxy:b});await new Promise(W=>{e.src=s,e.addEventListener("load",W,!1)});const B=vu(e.contentWindow,e.ownerDocument.defaultView);await B.isConnected(),n.pipe(B);const O=n.stage();return await B.onDownloadProgress(O.loadingListener),await B.boot({mounts:u,sapiName:p,scope:d??Math.random().toFixed(16),shouldInstallWordPress:v,phpVersion:w.versions.php,wpVersion:w.versions.wp,withNetworking:w.features.networking,corsProxyUrl:b}),await B.isReady(),O.finish(),jo(Ce,B),r(B),m&&await m(),await Do(w,B),n.finish(),B}function fc(e){var t,s;(t=e.sandbox)!=null&&t.length&&!((s=e.sandbox)!=null&&s.contains("allow-storage-access-by-user-activation"))&&e.sandbox.add("allow-storage-access-by-user-activation")}const $r="https://playground.wordpress.net";function lc(e){const t=new URL(e,$r);if((t.origin===$r||t.hostname==="localhost")&&t.pathname!=="/remote.html")throw new Error(`Invalid remote URL: ${t}. Expected origin to be ${$r}/remote.html.`)}function uc(e,t){const s=new URL(e,$r),n=new URLSearchParams(s.search);for(const[o,i]of Object.entries(t))if(i!=null&&i!==!1)if(Array.isArray(i))for(const r of i)n.append(o,r.toString());else n.set(o,i.toString());return s.search=n.toString(),s.toString()}exports.LatestSupportedPHPVersion=$n;exports.SupportedPHPVersions=fs;exports.SupportedPHPVersionsList=tp;exports.activatePlugin=fi;exports.activateTheme=li;exports.compileBlueprint=Co;exports.cp=Xn;exports.defineSiteUrl=gi;exports.defineWpConfigConsts=ps;exports.enableMultisite=Zn;exports.exportWXR=ia;exports.importThemeStarterContent=wi;exports.importWordPressFiles=sa;exports.importWxr=ta;exports.installPlugin=aa;exports.installTheme=oa;exports.login=pa;exports.mkdir=Gn;exports.mv=Yn;exports.phpVar=Be;exports.phpVars=Er;exports.request=Mn;exports.resetData=fa;exports.rm=ui;exports.rmdir=Qn;exports.runBlueprintSteps=Do;exports.runPHP=Rn;exports.runPHPWithOptions=Nn;exports.runSql=Un;exports.runWpInstallationWizard=la;exports.setPhpIniEntries=ep;exports.setPluginProxyURL=oc;exports.setSiteLanguage=ca;exports.setSiteOptions=di;exports.startPlaygroundWeb=pc;exports.unzip=us;exports.updateUserMeta=Kn;exports.wpCLI=mi;exports.wpContentFilesExcludedFromExport=pi;exports.writeFile=xr;exports.writeFiles=ea;exports.zipWpContent=ua;
907
+ 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"},importer:{type:"string",enum:["data-liberation","default"],description:"The importer to use. Possible values:\n\n- `default`: The importer from https://github.com/humanmade/WordPress-Importer\n- `data-liberation`: The experimental Data Liberation WXR importer developed at https://github.com/WordPress/wordpress-playground/issues/1894\n\nThis option is deprecated. The syntax will not be removed, but once the Data Liberation importer matures, it will become the only supported importer and the `importer` option will be ignored.",deprecated:!0}},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.
908
+ 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 'filesTree' defines the directory structure, supporting 'literal:directory' or 'git:directory' types. The 'name' represents the root directory, while 'files' is an object where keys are file paths, and values contain either file content as a string or nested objects for subdirectories."}},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"]}]},Ju={type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]},properties:{}},Vs={validate:It};function It(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;if(r===0)if(e&&typeof e=="object"&&!Array.isArray(e))for(const u in e){let d=e[u];const b=r,v=r;let w=!1;const B=r;Vs.validate(d,{instancePath:t+"/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:u,rootData:o})||(i=i===null?Vs.validate.errors:i.concat(Vs.validate.errors),r=i.length);var p=B===r;if(w=w||p,!w){const O=r;if(!(d&&typeof d=="object"&&!Array.isArray(d))&&typeof d!="string"){const F={instancePath:t+"/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:Ju.additionalProperties.anyOf[1].type},message:"must be object,string"};i===null?i=[F]:i.push(F),r++}var p=O===r;w=w||p}if(w)r=v,i!==null&&(v?i.length=v:i=null);else{const O={instancePath:t+"/"+u.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[O]:i.push(O),r++,It.errors=i,!1}var m=b===r;if(!m)break}else return It.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return It.errors=i,r===0}function ot(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;if(r===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let m;if(e.files===void 0&&(m="files")||e.name===void 0&&(m="name")||e.resource===void 0&&(m="resource"))return ot.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:m},message:"must have required property '"+m+"'"}],!1;{const u=r;for(const d in e)if(!(d==="resource"||d==="files"||d==="name"))return ot.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:d},message:"must NOT have additional properties"}],!1;if(u===r){if(e.resource!==void 0){let d=e.resource;const b=r;if(typeof d!="string")return ot.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(d!=="literal:directory")return ot.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var p=b===r}else var p=!0;if(p){if(e.files!==void 0){const d=r;It(e.files,{instancePath:t+"/files",parentData:e,parentDataProperty:"files",rootData:o})||(i=i===null?It.errors:i.concat(It.errors),r=i.length);var p=d===r}else var p=!0;if(p)if(e.name!==void 0){const d=r;if(typeof e.name!="string")return ot.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=d===r}else var p=!0}}}}else return ot.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ot.errors=i,r===0}function $e(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;const p=r;let m=!1;const u=r;if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let w;if(e.resource===void 0&&(w="resource")||e.url===void 0&&(w="url")||e.ref===void 0&&(w="ref")||e.path===void 0&&(w="path")){const B={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:w},message:"must have required property '"+w+"'"};i===null?i=[B]:i.push(B),r++}else{const B=r;for(const O in e)if(!(O==="resource"||O==="url"||O==="ref"||O==="path")){const W={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties"};i===null?i=[W]:i.push(W),r++;break}if(B===r){if(e.resource!==void 0){let O=e.resource;const W=r;if(typeof O!="string"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),r++}if(O!=="git:directory"){const F={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};i===null?i=[F]:i.push(F),r++}var b=W===r}else var b=!0;if(b){if(e.url!==void 0){const O=r;if(typeof e.url!="string"){const F={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),r++}var b=O===r}else var b=!0;if(b){if(e.ref!==void 0){const O=r;if(typeof e.ref!="string"){const F={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),r++}var b=O===r}else var b=!0;if(b)if(e.path!==void 0){const O=r;if(typeof e.path!="string"){const F={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[F]:i.push(F),r++}var b=O===r}else var b=!0}}}}}else{const w={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[w]:i.push(w),r++}var v=u===r;if(m=m||v,!m){const w=r;ot(e,{instancePath:t,parentData:s,parentDataProperty:n,rootData:o})||(i=i===null?ot.errors:i.concat(ot.errors),r=i.length);var v=w===r;m=m||v}if(m)r=p,i!==null&&(p?i.length=p:i=null);else{const w={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[w]:i.push(w),r++,$e.errors=i,!1}return $e.errors=i,r===0}const xo={type:"string",enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function ze(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;if(r===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let F;if(e.url===void 0&&(F="url"))return ze.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:F},message:"must have required property '"+F+"'"}],!1;{const M=r;for(const H in e)if(!(H==="method"||H==="url"||H==="headers"||H==="body"))return ze.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:H},message:"must NOT have additional properties"}],!1;if(M===r){if(e.method!==void 0){let H=e.method;const z=r;if(typeof H!="string")return ze.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(H==="GET"||H==="POST"||H==="HEAD"||H==="OPTIONS"||H==="PATCH"||H==="PUT"||H==="DELETE"))return ze.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:xo.enum},message:"must be equal to one of the allowed values"}],!1;var p=z===r}else var p=!0;if(p){if(e.url!==void 0){const H=r;if(typeof e.url!="string")return ze.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=H===r}else var p=!0;if(p){if(e.headers!==void 0){let H=e.headers;const z=r;if(r===r)if(H&&typeof H=="object"&&!Array.isArray(H))for(const I in H){const E=r;if(typeof H[I]!="string")return ze.errors=[{instancePath:t+"/headers/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=E===r;if(!m)break}else return ze.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=z===r}else var p=!0;if(p)if(e.body!==void 0){let H=e.body;const z=r,R=r;let P=!1;const I=r;if(typeof H!="string"){const C={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[C]:i.push(C),r++}var u=I===r;if(P=P||u,!P){const C=r;if(r===C)if(H&&typeof H=="object"&&!Array.isArray(H)){let k;if(H.BYTES_PER_ELEMENT===void 0&&(k="BYTES_PER_ELEMENT")||H.buffer===void 0&&(k="buffer")||H.byteLength===void 0&&(k="byteLength")||H.byteOffset===void 0&&(k="byteOffset")||H.length===void 0&&(k="length")){const N={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:k},message:"must have required property '"+k+"'"};i===null?i=[N]:i.push(N),r++}else{const N=r;for(const j in H)if(!(j==="BYTES_PER_ELEMENT"||j==="buffer"||j==="byteLength"||j==="byteOffset"||j==="length")){let q=H[j];const G=r;if(!(typeof q=="number"&&isFinite(q))){const Z={instancePath:t+"/body/"+j.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=[Z]:i.push(Z),r++}var d=G===r;if(!d)break}if(N===r){if(H.BYTES_PER_ELEMENT!==void 0){let j=H.BYTES_PER_ELEMENT;const q=r;if(!(typeof j=="number"&&isFinite(j))){const G={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=[G]:i.push(G),r++}var b=q===r}else var b=!0;if(b){if(H.buffer!==void 0){let j=H.buffer;const q=r;if(r===q)if(j&&typeof j=="object"&&!Array.isArray(j)){let Z;if(j.byteLength===void 0&&(Z="byteLength")){const V={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:Z},message:"must have required property '"+Z+"'"};i===null?i=[V]:i.push(V),r++}else{const V=r;for(const Q in j)if(Q!=="byteLength"){const X={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Q},message:"must NOT have additional properties"};i===null?i=[X]:i.push(X),r++;break}if(V===r&&j.byteLength!==void 0){let Q=j.byteLength;if(!(typeof Q=="number"&&isFinite(Q))){const X={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=[X]:i.push(X),r++}}}}else{const Z={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[Z]:i.push(Z),r++}var b=q===r}else var b=!0;if(b){if(H.byteLength!==void 0){let j=H.byteLength;const q=r;if(!(typeof j=="number"&&isFinite(j))){const Z={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Z]:i.push(Z),r++}var b=q===r}else var b=!0;if(b){if(H.byteOffset!==void 0){let j=H.byteOffset;const q=r;if(!(typeof j=="number"&&isFinite(j))){const Z={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Z]:i.push(Z),r++}var b=q===r}else var b=!0;if(b)if(H.length!==void 0){let j=H.length;const q=r;if(!(typeof j=="number"&&isFinite(j))){const Z={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[Z]:i.push(Z),r++}var b=q===r}else var b=!0}}}}}}else{const k={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[k]:i.push(k),r++}var u=C===r;if(P=P||u,!P){const k=r;if(r===k)if(H&&typeof H=="object"&&!Array.isArray(H))for(const j in H){let q=H[j];const G=r,Z=r;let V=!1;const Q=r;if(typeof q!="string"){const X={instancePath:t+"/body/"+j.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=[X]:i.push(X),r++}var v=Q===r;if(V=V||v,!V){const X=r;if(r===X)if(q&&typeof q=="object"&&!Array.isArray(q)){let ee;if(q.BYTES_PER_ELEMENT===void 0&&(ee="BYTES_PER_ELEMENT")||q.buffer===void 0&&(ee="buffer")||q.byteLength===void 0&&(ee="byteLength")||q.byteOffset===void 0&&(ee="byteOffset")||q.length===void 0&&(ee="length")){const J={instancePath:t+"/body/"+j.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:ee},message:"must have required property '"+ee+"'"};i===null?i=[J]:i.push(J),r++}else{const J=r;for(const _ in q)if(!(_==="BYTES_PER_ELEMENT"||_==="buffer"||_==="byteLength"||_==="byteOffset"||_==="length")){let te=q[_];const ne=r;if(!(typeof te=="number"&&isFinite(te))){const re={instancePath:t+"/body/"+j.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+_.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=[re]:i.push(re),r++}var w=ne===r;if(!w)break}if(J===r){if(q.BYTES_PER_ELEMENT!==void 0){let _=q.BYTES_PER_ELEMENT;const te=r;if(!(typeof _=="number"&&isFinite(_))){const ne={instancePath:t+"/body/"+j.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=[ne]:i.push(ne),r++}var B=te===r}else var B=!0;if(B){if(q.buffer!==void 0){let _=q.buffer;const te=r;if(r===te)if(_&&typeof _=="object"&&!Array.isArray(_)){let re;if(_.byteLength===void 0&&(re="byteLength")){const we={instancePath:t+"/body/"+j.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:re},message:"must have required property '"+re+"'"};i===null?i=[we]:i.push(we),r++}else{const we=r;for(const Pe in _)if(Pe!=="byteLength"){const Ie={instancePath:t+"/body/"+j.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=[Ie]:i.push(Ie),r++;break}if(we===r&&_.byteLength!==void 0){let Pe=_.byteLength;if(!(typeof Pe=="number"&&isFinite(Pe))){const Ie={instancePath:t+"/body/"+j.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=[Ie]:i.push(Ie),r++}}}}else{const re={instancePath:t+"/body/"+j.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=[re]:i.push(re),r++}var B=te===r}else var B=!0;if(B){if(q.byteLength!==void 0){let _=q.byteLength;const te=r;if(!(typeof _=="number"&&isFinite(_))){const re={instancePath:t+"/body/"+j.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=[re]:i.push(re),r++}var B=te===r}else var B=!0;if(B){if(q.byteOffset!==void 0){let _=q.byteOffset;const te=r;if(!(typeof _=="number"&&isFinite(_))){const re={instancePath:t+"/body/"+j.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=[re]:i.push(re),r++}var B=te===r}else var B=!0;if(B)if(q.length!==void 0){let _=q.length;const te=r;if(!(typeof _=="number"&&isFinite(_))){const re={instancePath:t+"/body/"+j.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=[re]:i.push(re),r++}var B=te===r}else var B=!0}}}}}}else{const ee={instancePath:t+"/body/"+j.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=[ee]:i.push(ee),r++}var v=X===r;if(V=V||v,!V){const ee=r;if(r===ee)if(q&&typeof q=="object"&&!Array.isArray(q)){let _;if(q.lastModified===void 0&&(_="lastModified")||q.name===void 0&&(_="name")||q.size===void 0&&(_="size")||q.type===void 0&&(_="type")||q.webkitRelativePath===void 0&&(_="webkitRelativePath")){const te={instancePath:t+"/body/"+j.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:_},message:"must have required property '"+_+"'"};i===null?i=[te]:i.push(te),r++}else{const te=r;for(const ne in q)if(!(ne==="size"||ne==="type"||ne==="lastModified"||ne==="name"||ne==="webkitRelativePath")){const re={instancePath:t+"/body/"+j.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ne},message:"must NOT have additional properties"};i===null?i=[re]:i.push(re),r++;break}if(te===r){if(q.size!==void 0){let ne=q.size;const re=r;if(!(typeof ne=="number"&&isFinite(ne))){const we={instancePath:t+"/body/"+j.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=[we]:i.push(we),r++}var O=re===r}else var O=!0;if(O){if(q.type!==void 0){const ne=r;if(typeof q.type!="string"){const we={instancePath:t+"/body/"+j.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=[we]:i.push(we),r++}var O=ne===r}else var O=!0;if(O){if(q.lastModified!==void 0){let ne=q.lastModified;const re=r;if(!(typeof ne=="number"&&isFinite(ne))){const Pe={instancePath:t+"/body/"+j.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),r++}var O=re===r}else var O=!0;if(O){if(q.name!==void 0){const ne=r;if(typeof q.name!="string"){const we={instancePath:t+"/body/"+j.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=[we]:i.push(we),r++}var O=ne===r}else var O=!0;if(O)if(q.webkitRelativePath!==void 0){const ne=r;if(typeof q.webkitRelativePath!="string"){const we={instancePath:t+"/body/"+j.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=[we]:i.push(we),r++}var O=ne===r}else var O=!0}}}}}}else{const _={instancePath:t+"/body/"+j.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=[_]:i.push(_),r++}var v=ee===r;V=V||v}}if(V)r=Z,i!==null&&(Z?i.length=Z:i=null);else{const X={instancePath:t+"/body/"+j.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=[X]:i.push(X),r++}var W=G===r;if(!W)break}else{const j={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[j]:i.push(j),r++}var u=k===r;P=P||u}}if(P)r=R,i!==null&&(R?i.length=R:i=null);else{const C={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[C]:i.push(C),r++,ze.errors=i,!1}var p=z===r}else var p=!0}}}}}else return ze.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ze.errors=i,r===0}const _u={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 Te(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;if(r===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const B=r;for(const O in e)if(!Eo.call(_u.properties,O))return Te.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties"}],!1;if(B===r){if(e.relativeUri!==void 0){const O=r;if(typeof e.relativeUri!="string")return Te.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=O===r}else var p=!0;if(p){if(e.scriptPath!==void 0){const O=r;if(typeof e.scriptPath!="string")return Te.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=O===r}else var p=!0;if(p){if(e.protocol!==void 0){const O=r;if(typeof e.protocol!="string")return Te.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=O===r}else var p=!0;if(p){if(e.method!==void 0){let O=e.method;const W=r;if(typeof O!="string")return Te.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(O==="GET"||O==="POST"||O==="HEAD"||O==="OPTIONS"||O==="PATCH"||O==="PUT"||O==="DELETE"))return Te.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:xo.enum},message:"must be equal to one of the allowed values"}],!1;var p=W===r}else var p=!0;if(p){if(e.headers!==void 0){let O=e.headers;const W=r;if(r===r)if(O&&typeof O=="object"&&!Array.isArray(O))for(const H in O){const z=r;if(typeof O[H]!="string")return Te.errors=[{instancePath:t+"/headers/"+H.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=z===r;if(!m)break}else return Te.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=W===r}else var p=!0;if(p){if(e.body!==void 0){let O=e.body;const W=r,F=r;let M=!1;const H=r;if(typeof O!="string"){const R={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[R]:i.push(R),r++}var u=H===r;if(M=M||u,!M){const R=r;if(r===R)if(O&&typeof O=="object"&&!Array.isArray(O)){let I;if(O.BYTES_PER_ELEMENT===void 0&&(I="BYTES_PER_ELEMENT")||O.buffer===void 0&&(I="buffer")||O.byteLength===void 0&&(I="byteLength")||O.byteOffset===void 0&&(I="byteOffset")||O.length===void 0&&(I="length")){const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:I},message:"must have required property '"+I+"'"};i===null?i=[E]:i.push(E),r++}else{const E=r;for(const C in O)if(!(C==="BYTES_PER_ELEMENT"||C==="buffer"||C==="byteLength"||C==="byteOffset"||C==="length")){let S=O[C];const k=r;if(!(typeof S=="number"&&isFinite(S))){const N={instancePath:t+"/body/"+C.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=[N]:i.push(N),r++}var d=k===r;if(!d)break}if(E===r){if(O.BYTES_PER_ELEMENT!==void 0){let C=O.BYTES_PER_ELEMENT;const S=r;if(!(typeof C=="number"&&isFinite(C))){const k={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=[k]:i.push(k),r++}var b=S===r}else var b=!0;if(b){if(O.buffer!==void 0){let C=O.buffer;const S=r;if(r===S)if(C&&typeof C=="object"&&!Array.isArray(C)){let N;if(C.byteLength===void 0&&(N="byteLength")){const j={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"};i===null?i=[j]:i.push(j),r++}else{const j=r;for(const q in C)if(q!=="byteLength"){const G={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:q},message:"must NOT have additional properties"};i===null?i=[G]:i.push(G),r++;break}if(j===r&&C.byteLength!==void 0){let q=C.byteLength;if(!(typeof q=="number"&&isFinite(q))){const G={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=[G]:i.push(G),r++}}}}else{const N={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[N]:i.push(N),r++}var b=S===r}else var b=!0;if(b){if(O.byteLength!==void 0){let C=O.byteLength;const S=r;if(!(typeof C=="number"&&isFinite(C))){const N={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[N]:i.push(N),r++}var b=S===r}else var b=!0;if(b){if(O.byteOffset!==void 0){let C=O.byteOffset;const S=r;if(!(typeof C=="number"&&isFinite(C))){const N={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[N]:i.push(N),r++}var b=S===r}else var b=!0;if(b)if(O.length!==void 0){let C=O.length;const S=r;if(!(typeof C=="number"&&isFinite(C))){const N={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[N]:i.push(N),r++}var b=S===r}else var b=!0}}}}}}else{const I={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[I]:i.push(I),r++}var u=R===r;M=M||u}if(M)r=F,i!==null&&(F?i.length=F:i=null);else{const R={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[R]:i.push(R),r++,Te.errors=i,!1}var p=W===r}else var p=!0;if(p){if(e.env!==void 0){let O=e.env;const W=r;if(r===W)if(O&&typeof O=="object"&&!Array.isArray(O))for(const M in O){const H=r;if(typeof O[M]!="string")return Te.errors=[{instancePath:t+"/env/"+M.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var v=H===r;if(!v)break}else return Te.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=W===r}else var p=!0;if(p){if(e.$_SERVER!==void 0){let O=e.$_SERVER;const W=r;if(r===W)if(O&&typeof O=="object"&&!Array.isArray(O))for(const M in O){const H=r;if(typeof O[M]!="string")return Te.errors=[{instancePath:t+"/$_SERVER/"+M.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=H===r;if(!w)break}else return Te.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=W===r}else var p=!0;if(p)if(e.code!==void 0){const O=r;if(typeof e.code!="string")return Te.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=O===r}else var p=!0}}}}}}}}}else return Te.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Te.errors=i,r===0}function h(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;if(r===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let Ps;if(e.step===void 0&&(Ps="step"))return h.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:Ps},message:"must have required property '"+Ps+"'"}],!1;{const pe=e.step;if(typeof pe=="string")if(pe==="activatePlugin"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.pluginPath===void 0&&(D="pluginPath")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="pluginPath"||a==="pluginName"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var p=K===r}else var p=!0;if(p)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=y===r}else var p=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var m=T===r}else var m=!0;if(m){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="activatePlugin")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var m=T===r}else var m=!0;if(m){if(e.pluginPath!==void 0){const a=r;if(typeof e.pluginPath!="string")return h.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=a===r}else var m=!0;if(m)if(e.pluginName!==void 0){const a=r;if(typeof e.pluginName!="string")return h.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=a===r}else var m=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="activateTheme"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step")||e.themeFolderName===void 0&&(D="themeFolderName"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="themeFolderName"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var u=K===r}else var u=!0;if(u)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=y===r}else var u=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=T===r}else var d=!0;if(d){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="activateTheme")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var d=T===r}else var d=!0;if(d)if(e.themeFolderName!==void 0){const a=r;if(typeof e.themeFolderName!="string")return h.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=a===r}else var d=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="cp"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.fromPath===void 0&&(D="fromPath")||e.step===void 0&&(D="step")||e.toPath===void 0&&(D="toPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="fromPath"||a==="toPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var b=K===r}else var b=!0;if(b)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=y===r}else var b=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=T===r}else var v=!0;if(v){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="cp")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var v=T===r}else var v=!0;if(v){if(e.fromPath!==void 0){const a=r;if(typeof e.fromPath!="string")return h.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var v=a===r}else var v=!0;if(v)if(e.toPath!==void 0){const a=r;if(typeof e.toPath!="string")return h.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var v=a===r}else var v=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="defineWpConfigConsts"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.consts===void 0&&(D="consts")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="consts"||a==="method"||a==="virtualize"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var w=K===r}else var w=!0;if(w)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var w=y===r}else var w=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var B=T===r}else var B=!0;if(B){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="defineWpConfigConsts")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var B=T===r}else var B=!0;if(B){if(e.consts!==void 0){let a=e.consts;const T=r;if(r===T&&!(a&&typeof a=="object"&&!Array.isArray(a)))return h.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var B=T===r}else var B=!0;if(B){if(e.method!==void 0){let a=e.method;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(a==="rewrite-wp-config"||a==="define-before-run"))return h.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:Kr.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var B=T===r}else var B=!0;if(B)if(e.virtualize!==void 0){const a=r;if(typeof e.virtualize!="boolean")return h.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var B=a===r}else var B=!0}}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="defineSiteUrl"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.siteUrl===void 0&&(D="siteUrl")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="siteUrl"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var O=K===r}else var O=!0;if(O)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=y===r}else var O=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var W=T===r}else var W=!0;if(W){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="defineSiteUrl")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var W=T===r}else var W=!0;if(W)if(e.siteUrl!==void 0){const a=r;if(typeof e.siteUrl!="string")return h.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=a===r}else var W=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="enableMultisite"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="wpCliPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var F=K===r}else var F=!0;if(F)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=y===r}else var F=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var M=T===r}else var M=!0;if(M){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="enableMultisite")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var M=T===r}else var M=!0;if(M)if(e.wpCliPath!==void 0){const a=r;if(typeof e.wpCliPath!="string")return h.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=a===r}else var M=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="importWxr"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.file===void 0&&(D="file")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="file"||a==="importer"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var H=K===r}else var H=!0;if(H)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var H=y===r}else var H=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=T===r}else var z=!0;if(z){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="importWxr")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var z=T===r}else var z=!0;if(z){if(e.file!==void 0){const a=r;le(e.file,{instancePath:t+"/file",parentData:e,parentDataProperty:"file",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var z=a===r}else var z=!0;if(z)if(e.importer!==void 0){let a=e.importer;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(a==="data-liberation"||a==="default"))return h.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:Kr.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var z=T===r}else var z=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="importThemeStarterContent"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="themeSlug"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var R=K===r}else var R=!0;if(R)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=y===r}else var R=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var P=T===r}else var P=!0;if(P){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="importThemeStarterContent")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var P=T===r}else var P=!0;if(P)if(e.themeSlug!==void 0){const a=r;if(typeof e.themeSlug!="string")return h.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=a===r}else var P=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="importWordPressFiles"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step")||e.wordPressFilesZip===void 0&&(D="wordPressFilesZip"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="wordPressFilesZip"||a==="pathInZip"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var I=K===r}else var I=!0;if(I)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=y===r}else var I=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var E=T===r}else var E=!0;if(E){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="importWordPressFiles")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var E=T===r}else var E=!0;if(E){if(e.wordPressFilesZip!==void 0){const a=r;le(e.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:e,parentDataProperty:"wordPressFilesZip",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var E=a===r}else var E=!0;if(E)if(e.pathInZip!==void 0){const a=r;if(typeof e.pathInZip!="string")return h.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=a===r}else var E=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="installPlugin"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.pluginData===void 0&&(D="pluginData")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="ifAlreadyInstalled"||a==="step"||a==="pluginData"||a==="pluginZipFile"||a==="options"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var C=K===r}else var C=!0;if(C)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=y===r}else var C=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var S=T===r}else var S=!0;if(S){if(e.ifAlreadyInstalled!==void 0){let a=e.ifAlreadyInstalled;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(a==="overwrite"||a==="skip"||a==="error"))return h.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Kr.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var S=T===r}else var S=!0;if(S){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="installPlugin")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var S=T===r}else var S=!0;if(S){if(e.pluginData!==void 0){let a=e.pluginData;const T=r,U=r;let y=!1;const K=r;le(a,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var k=K===r;if(y=y||k,!y){const Ae=r;$e(a,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:o})||(i=i===null?$e.errors:i.concat($e.errors),r=i.length);var k=Ae===r;y=y||k}if(y)r=U,i!==null&&(U?i.length=U:i=null);else{const Ae={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[Ae]:i.push(Ae),r++,h.errors=i,!1}var S=T===r}else var S=!0;if(S){if(e.pluginZipFile!==void 0){const a=r;le(e.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:e,parentDataProperty:"pluginZipFile",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var S=a===r}else var S=!0;if(S)if(e.options!==void 0){let a=e.options;const T=r;if(r===r)if(a&&typeof a=="object"&&!Array.isArray(a)){const K=r;for(const ge in a)if(!(ge==="activate"||ge==="targetFolderName"))return h.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ge},message:"must NOT have additional properties"}],!1;if(K===r){if(a.activate!==void 0){const ge=r;if(typeof a.activate!="boolean")return h.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var N=ge===r}else var N=!0;if(N)if(a.targetFolderName!==void 0){const ge=r;if(typeof a.targetFolderName!="string")return h.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var N=ge===r}else var N=!0}}else return h.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var S=T===r}else var S=!0}}}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="installTheme"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step")||e.themeData===void 0&&(D="themeData"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="ifAlreadyInstalled"||a==="step"||a==="themeData"||a==="themeZipFile"||a==="options"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var j=K===r}else var j=!0;if(j)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=y===r}else var j=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var q=T===r}else var q=!0;if(q){if(e.ifAlreadyInstalled!==void 0){let a=e.ifAlreadyInstalled;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(a==="overwrite"||a==="skip"||a==="error"))return h.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Kr.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var q=T===r}else var q=!0;if(q){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="installTheme")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var q=T===r}else var q=!0;if(q){if(e.themeData!==void 0){let a=e.themeData;const T=r,U=r;let y=!1;const K=r;le(a,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var G=K===r;if(y=y||G,!y){const Ae=r;$e(a,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:o})||(i=i===null?$e.errors:i.concat($e.errors),r=i.length);var G=Ae===r;y=y||G}if(y)r=U,i!==null&&(U?i.length=U:i=null);else{const Ae={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[Ae]:i.push(Ae),r++,h.errors=i,!1}var q=T===r}else var q=!0;if(q){if(e.themeZipFile!==void 0){const a=r;le(e.themeZipFile,{instancePath:t+"/themeZipFile",parentData:e,parentDataProperty:"themeZipFile",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var q=a===r}else var q=!0;if(q)if(e.options!==void 0){let a=e.options;const T=r;if(r===r)if(a&&typeof a=="object"&&!Array.isArray(a)){const K=r;for(const ge in a)if(!(ge==="activate"||ge==="importStarterContent"||ge==="targetFolderName"))return h.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ge},message:"must NOT have additional properties"}],!1;if(K===r){if(a.activate!==void 0){const ge=r;if(typeof a.activate!="boolean")return h.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var Z=ge===r}else var Z=!0;if(Z){if(a.importStarterContent!==void 0){const ge=r;if(typeof a.importStarterContent!="boolean")return h.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var Z=ge===r}else var Z=!0;if(Z)if(a.targetFolderName!==void 0){const ge=r;if(typeof a.targetFolderName!="string")return h.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=ge===r}else var Z=!0}}}else return h.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var q=T===r}else var q=!0}}}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="login"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="username"||a==="password"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var V=K===r}else var V=!0;if(V)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=y===r}else var V=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Q=T===r}else var Q=!0;if(Q){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="login")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var Q=T===r}else var Q=!0;if(Q){if(e.username!==void 0){const a=r;if(typeof e.username!="string")return h.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=a===r}else var Q=!0;if(Q)if(e.password!==void 0){const a=r;if(typeof e.password!="string")return h.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=a===r}else var Q=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="mkdir"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.path===void 0&&(D="path")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="path"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var X=K===r}else var X=!0;if(X)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var X=y===r}else var X=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var se=T===r}else var se=!0;if(se){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="mkdir")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var se=T===r}else var se=!0;if(se)if(e.path!==void 0){const a=r;if(typeof e.path!="string")return h.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var se=a===r}else var se=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="mv"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.fromPath===void 0&&(D="fromPath")||e.step===void 0&&(D="step")||e.toPath===void 0&&(D="toPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="fromPath"||a==="toPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ee=K===r}else var ee=!0;if(ee)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=y===r}else var ee=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var J=T===r}else var J=!0;if(J){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="mv")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var J=T===r}else var J=!0;if(J){if(e.fromPath!==void 0){const a=r;if(typeof e.fromPath!="string")return h.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var J=a===r}else var J=!0;if(J)if(e.toPath!==void 0){const a=r;if(typeof e.toPath!="string")return h.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var J=a===r}else var J=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="resetData"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _=K===r}else var _=!0;if(_)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=y===r}else var _=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var te=T===r}else var te=!0;if(te)if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="resetData")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var te=T===r}else var te=!0}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="request"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.request===void 0&&(D="request")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="request"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ne=K===r}else var ne=!0;if(ne)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ne=y===r}else var ne=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var re=T===r}else var re=!0;if(re){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="request")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var re=T===r}else var re=!0;if(re)if(e.request!==void 0){const a=r;ze(e.request,{instancePath:t+"/request",parentData:e,parentDataProperty:"request",rootData:o})||(i=i===null?ze.errors:i.concat(ze.errors),r=i.length);var re=a===r}else var re=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="rm"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.path===void 0&&(D="path")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="path"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var we=K===r}else var we=!0;if(we)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=y===r}else var we=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Pe=T===r}else var Pe=!0;if(Pe){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="rm")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var Pe=T===r}else var Pe=!0;if(Pe)if(e.path!==void 0){const a=r;if(typeof e.path!="string")return h.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Pe=a===r}else var Pe=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="rmdir"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.path===void 0&&(D="path")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="path"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ie=K===r}else var Ie=!0;if(Ie)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ie=y===r}else var Ie=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var rt=T===r}else var rt=!0;if(rt){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="rmdir")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var rt=T===r}else var rt=!0;if(rt)if(e.path!==void 0){const a=r;if(typeof e.path!="string")return h.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var rt=a===r}else var rt=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="runPHP"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.code===void 0&&(D="code")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="code"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Kt=K===r}else var Kt=!0;if(Kt)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Kt=y===r}else var Kt=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var st=T===r}else var st=!0;if(st){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="runPHP")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var st=T===r}else var st=!0;if(st)if(e.code!==void 0){const a=r;if(typeof e.code!="string")return h.errors=[{instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var st=a===r}else var st=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="runPHPWithOptions"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.options===void 0&&(D="options")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="options"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _e=K===r}else var _e=!0;if(_e)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _e=y===r}else var _e=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ne=T===r}else var Ne=!0;if(Ne){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="runPHPWithOptions")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var Ne=T===r}else var Ne=!0;if(Ne)if(e.options!==void 0){const a=r;Te(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:o})||(i=i===null?Te.errors:i.concat(Te.errors),r=i.length);var Ne=a===r}else var Ne=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="runWpInstallationWizard"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.options===void 0&&(D="options")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="options"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Vt=K===r}else var Vt=!0;if(Vt)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Vt=y===r}else var Vt=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ct=T===r}else var ct=!0;if(ct){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="runWpInstallationWizard")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var ct=T===r}else var ct=!0;if(ct)if(e.options!==void 0){let a=e.options;const T=r;if(r===r)if(a&&typeof a=="object"&&!Array.isArray(a)){const K=r;for(const ge in a)if(!(ge==="adminUsername"||ge==="adminPassword"))return h.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ge},message:"must NOT have additional properties"}],!1;if(K===r){if(a.adminUsername!==void 0){const ge=r;if(typeof a.adminUsername!="string")return h.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var At=ge===r}else var At=!0;if(At)if(a.adminPassword!==void 0){const ge=r;if(typeof a.adminPassword!="string")return h.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var At=ge===r}else var At=!0}}else return h.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ct=T===r}else var ct=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="runSql"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.sql===void 0&&(D="sql")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="sql"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Zt=K===r}else var Zt=!0;if(Zt)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Zt=y===r}else var Zt=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var dt=T===r}else var dt=!0;if(dt){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="runSql")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var dt=T===r}else var dt=!0;if(dt)if(e.sql!==void 0){const a=r;le(e.sql,{instancePath:t+"/sql",parentData:e,parentDataProperty:"sql",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var dt=a===r}else var dt=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="setSiteOptions"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.options===void 0&&(D="options")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="options"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Dt=K===r}else var Dt=!0;if(Dt)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Dt=y===r}else var Dt=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Me=T===r}else var Me=!0;if(Me){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="setSiteOptions")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var Me=T===r}else var Me=!0;if(Me)if(e.options!==void 0){let a=e.options;const T=r;if(r===T&&!(a&&typeof a=="object"&&!Array.isArray(a)))return h.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Me=T===r}else var Me=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="unzip"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.extractToPath===void 0&&(D="extractToPath")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="zipFile"||a==="zipPath"||a==="extractToPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var He=K===r}else var He=!0;if(He)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var He=y===r}else var He=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var De=T===r}else var De=!0;if(De){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="unzip")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var De=T===r}else var De=!0;if(De){if(e.zipFile!==void 0){const a=r;le(e.zipFile,{instancePath:t+"/zipFile",parentData:e,parentDataProperty:"zipFile",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var De=a===r}else var De=!0;if(De){if(e.zipPath!==void 0){const a=r;if(typeof e.zipPath!="string")return h.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var De=a===r}else var De=!0;if(De)if(e.extractToPath!==void 0){const a=r;if(typeof e.extractToPath!="string")return h.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var De=a===r}else var De=!0}}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="updateUserMeta"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.meta===void 0&&(D="meta")||e.step===void 0&&(D="step")||e.userId===void 0&&(D="userId"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="meta"||a==="userId"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Xt=K===r}else var Xt=!0;if(Xt)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Xt=y===r}else var Xt=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Se=T===r}else var Se=!0;if(Se){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="updateUserMeta")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var Se=T===r}else var Se=!0;if(Se){if(e.meta!==void 0){let a=e.meta;const T=r;if(r===T&&!(a&&typeof a=="object"&&!Array.isArray(a)))return h.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Se=T===r}else var Se=!0;if(Se)if(e.userId!==void 0){let a=e.userId;const T=r;if(!(typeof a=="number"&&isFinite(a)))return h.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Se=T===r}else var Se=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="writeFile"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.data===void 0&&(D="data")||e.path===void 0&&(D="path")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="path"||a==="data"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Yt=K===r}else var Yt=!0;if(Yt)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Yt=y===r}else var Yt=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var c=T===r}else var c=!0;if(c){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="writeFile")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var c=T===r}else var c=!0;if(c){if(e.path!==void 0){const a=r;if(typeof e.path!="string")return h.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=a===r}else var c=!0;if(c)if(e.data!==void 0){let a=e.data;const T=r,U=r;let y=!1;const K=r;le(a,{instancePath:t+"/data",parentData:e,parentDataProperty:"data",rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var f=K===r;if(y=y||f,!y){const Ae=r;if(typeof a!="string"){const it={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[it]:i.push(it),r++}var f=Ae===r;if(y=y||f,!y){const it=r;if(r===it)if(a&&typeof a=="object"&&!Array.isArray(a)){let Ke;if(a.BYTES_PER_ELEMENT===void 0&&(Ke="BYTES_PER_ELEMENT")||a.buffer===void 0&&(Ke="buffer")||a.byteLength===void 0&&(Ke="byteLength")||a.byteOffset===void 0&&(Ke="byteOffset")||a.length===void 0&&(Ke="length")){const jr={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:Ke},message:"must have required property '"+Ke+"'"};i===null?i=[jr]:i.push(jr),r++}else{const jr=r;for(const ue in a)if(!(ue==="BYTES_PER_ELEMENT"||ue==="buffer"||ue==="byteLength"||ue==="byteOffset"||ue==="length")){let Fe=a[ue];const Ir=r;if(!(typeof Fe=="number"&&isFinite(Fe))){const Ee={instancePath:t+"/data/"+ue.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=[Ee]:i.push(Ee),r++}var l=Ir===r;if(!l)break}if(jr===r){if(a.BYTES_PER_ELEMENT!==void 0){let ue=a.BYTES_PER_ELEMENT;const Fe=r;if(!(typeof ue=="number"&&isFinite(ue))){const Ir={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=[Ir]:i.push(Ir),r++}var g=Fe===r}else var g=!0;if(g){if(a.buffer!==void 0){let ue=a.buffer;const Fe=r;if(r===Fe)if(ue&&typeof ue=="object"&&!Array.isArray(ue)){let Ee;if(ue.byteLength===void 0&&(Ee="byteLength")){const Rr={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:Ee},message:"must have required property '"+Ee+"'"};i===null?i=[Rr]:i.push(Rr),r++}else{const Rr=r;for(const pr in ue)if(pr!=="byteLength"){const fr={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:pr},message:"must NOT have additional properties"};i===null?i=[fr]:i.push(fr),r++;break}if(Rr===r&&ue.byteLength!==void 0){let pr=ue.byteLength;if(!(typeof pr=="number"&&isFinite(pr))){const fr={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=[fr]:i.push(fr),r++}}}}else{const Ee={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=[Ee]:i.push(Ee),r++}var g=Fe===r}else var g=!0;if(g){if(a.byteLength!==void 0){let ue=a.byteLength;const Fe=r;if(!(typeof ue=="number"&&isFinite(ue))){const Ee={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=[Ee]:i.push(Ee),r++}var g=Fe===r}else var g=!0;if(g){if(a.byteOffset!==void 0){let ue=a.byteOffset;const Fe=r;if(!(typeof ue=="number"&&isFinite(ue))){const Ee={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=[Ee]:i.push(Ee),r++}var g=Fe===r}else var g=!0;if(g)if(a.length!==void 0){let ue=a.length;const Fe=r;if(!(typeof ue=="number"&&isFinite(ue))){const Ee={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=[Ee]:i.push(Ee),r++}var g=Fe===r}else var g=!0}}}}}}else{const Ke={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[Ke]:i.push(Ke),r++}var f=it===r;y=y||f}}if(y)r=U,i!==null&&(U?i.length=U:i=null);else{const Ae={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[Ae]:i.push(Ae),r++,h.errors=i,!1}var c=T===r}else var c=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="writeFiles"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.filesTree===void 0&&(D="filesTree")||e.step===void 0&&(D="step")||e.writeToPath===void 0&&(D="writeToPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="writeToPath"||a==="filesTree"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var A=K===r}else var A=!0;if(A)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=y===r}else var A=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var x=T===r}else var x=!0;if(x){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="writeFiles")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var x=T===r}else var x=!0;if(x){if(e.writeToPath!==void 0){const a=r;if(typeof e.writeToPath!="string")return h.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=a===r}else var x=!0;if(x)if(e.filesTree!==void 0){const a=r;$e(e.filesTree,{instancePath:t+"/filesTree",parentData:e,parentDataProperty:"filesTree",rootData:o})||(i=i===null?$e.errors:i.concat($e.errors),r=i.length);var x=a===r}else var x=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="wp-cli"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.command===void 0&&(D="command")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="command"||a==="wpCliPath"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var L=K===r}else var L=!0;if(L)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=y===r}else var L=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var $=T===r}else var $=!0;if($){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="wp-cli")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var $=T===r}else var $=!0;if($){if(e.command!==void 0){let a=e.command;const T=r,U=r;let y=!1;const K=r;if(typeof a!="string"){const Ae={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Ae]:i.push(Ae),r++}var ye=K===r;if(y=y||ye,!y){const Ae=r;if(r===Ae)if(Array.isArray(a)){var he=!0;const it=a.length;for(let Lr=0;Lr<it;Lr++){const Ke=r;if(typeof a[Lr]!="string"){const ue={instancePath:t+"/command/"+Lr,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ue]:i.push(ue),r++}var he=Ke===r;if(!he)break}}else{const it={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};i===null?i=[it]:i.push(it),r++}var ye=Ae===r;y=y||ye}if(y)r=U,i!==null&&(U?i.length=U:i=null);else{const Ae={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[Ae]:i.push(Ae),r++,h.errors=i,!1}var $=T===r}else var $=!0;if($)if(e.wpCliPath!==void 0){const a=r;if(typeof e.wpCliPath!="string")return h.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=a===r}else var $=!0}}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(pe==="setSiteLanguage"){if(r===r)if(e&&typeof e=="object"&&!Array.isArray(e)){let D;if(e.language===void 0&&(D="language")||e.step===void 0&&(D="step"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"}],!1;{const Y=r;for(const a in e)if(!(a==="progress"||a==="step"||a==="language"))return h.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:a},message:"must NOT have additional properties"}],!1;if(Y===r){if(e.progress!==void 0){let a=e.progress;const T=r;if(r===T)if(a&&typeof a=="object"&&!Array.isArray(a)){const U=r;for(const y in a)if(!(y==="weight"||y==="caption"))return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(U===r){if(a.weight!==void 0){let y=a.weight;const K=r;if(!(typeof y=="number"&&isFinite(y)))return h.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var me=K===r}else var me=!0;if(me)if(a.caption!==void 0){const y=r;if(typeof a.caption!="string")return h.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var me=y===r}else var me=!0}}else return h.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ae=T===r}else var ae=!0;if(ae){if(e.step!==void 0){let a=e.step;const T=r;if(typeof a!="string")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(a!=="setSiteLanguage")return h.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var ae=T===r}else var ae=!0;if(ae)if(e.language!==void 0){const a=r;if(typeof e.language!="string")return h.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ae=a===r}else var ae=!0}}}}else return h.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return h.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:pe},message:'value of tag "step" must be in oneOf'}],!1;else return h.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:pe},message:'tag "step" must be string'}],!1}}else return h.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return h.errors=i,r===0}function ie(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;if(r===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const R=r;for(const P in e)if(!Eo.call(Yu.properties,P))return ie.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"}],!1;if(R===r){if(e.landingPage!==void 0){const P=r;if(typeof e.landingPage!="string")return ie.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=P===r}else var p=!0;if(p){if(e.description!==void 0){const P=r;if(typeof e.description!="string")return ie.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=P===r}else var p=!0;if(p){if(e.meta!==void 0){let P=e.meta;const I=r;if(r===I)if(P&&typeof P=="object"&&!Array.isArray(P)){let C;if(P.title===void 0&&(C="title")||P.author===void 0&&(C="author"))return ie.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"}],!1;{const S=r;for(const k in P)if(!(k==="title"||k==="description"||k==="author"||k==="categories"))return ie.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(S===r){if(P.title!==void 0){const k=r;if(typeof P.title!="string")return ie.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=k===r}else var m=!0;if(m){if(P.description!==void 0){const k=r;if(typeof P.description!="string")return ie.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=k===r}else var m=!0;if(m){if(P.author!==void 0){const k=r;if(typeof P.author!="string")return ie.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=k===r}else var m=!0;if(m)if(P.categories!==void 0){let k=P.categories;const N=r;if(r===N)if(Array.isArray(k)){var u=!0;const q=k.length;for(let G=0;G<q;G++){const Z=r;if(typeof k[G]!="string")return ie.errors=[{instancePath:t+"/meta/categories/"+G,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=Z===r;if(!u)break}}else return ie.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var m=N===r}else var m=!0}}}}}else return ie.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=I===r}else var p=!0;if(p){if(e.preferredVersions!==void 0){let P=e.preferredVersions;const I=r;if(r===I)if(P&&typeof P=="object"&&!Array.isArray(P)){let C;if(P.php===void 0&&(C="php")||P.wp===void 0&&(C="wp"))return ie.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:C},message:"must have required property '"+C+"'"}],!1;{const S=r;for(const k in P)if(!(k==="php"||k==="wp"))return ie.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(S===r){if(P.php!==void 0){let k=P.php;const N=r,j=r;let q=!1;const G=r;if(typeof k!="string"){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Z]:i.push(Z),r++}if(!(k==="8.4"||k==="8.3"||k==="8.2"||k==="8.1"||k==="8.0"||k==="7.4"||k==="7.3"||k==="7.2"||k==="7.1"||k==="7.0")){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:Gu.enum},message:"must be equal to one of the allowed values"};i===null?i=[Z]:i.push(Z),r++}var d=G===r;if(q=q||d,!q){const Z=r;if(typeof k!="string"){const Q={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Q]:i.push(Q),r++}if(k!=="latest"){const Q={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=[Q]:i.push(Q),r++}var d=Z===r;q=q||d}if(q)r=j,i!==null&&(j?i.length=j:i=null);else{const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[Z]:i.push(Z),r++,ie.errors=i,!1}var b=N===r}else var b=!0;if(b)if(P.wp!==void 0){const k=r;if(typeof P.wp!="string")return ie.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=k===r}else var b=!0}}}else return ie.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=I===r}else var p=!0;if(p){if(e.features!==void 0){let P=e.features;const I=r;if(r===I)if(P&&typeof P=="object"&&!Array.isArray(P)){const C=r;for(const S in P)if(S!=="networking")return ie.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:S},message:"must NOT have additional properties"}],!1;if(C===r&&P.networking!==void 0&&typeof P.networking!="boolean")return ie.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1}else return ie.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=I===r}else var p=!0;if(p){if(e.extraLibraries!==void 0){let P=e.extraLibraries;const I=r;if(r===I)if(Array.isArray(P)){var v=!0;const C=P.length;for(let S=0;S<C;S++){let k=P[S];const N=r;if(typeof k!="string")return ie.errors=[{instancePath:t+"/extraLibraries/"+S,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(k!=="wp-cli")return ie.errors=[{instancePath:t+"/extraLibraries/"+S,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var v=N===r;if(!v)break}}else return ie.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var p=I===r}else var p=!0;if(p){if(e.constants!==void 0){let P=e.constants;const I=r;if(r===r)if(P&&typeof P=="object"&&!Array.isArray(P))for(const S in P){let k=P[S];const N=r;if(typeof k!="string"&&typeof k!="boolean"&&!(typeof k=="number"&&isFinite(k)))return ie.errors=[{instancePath:t+"/constants/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:Qu.additionalProperties.type},message:"must be string,boolean,number"}],!1;var w=N===r;if(!w)break}else return ie.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=I===r}else var p=!0;if(p){if(e.plugins!==void 0){let P=e.plugins;const I=r;if(r===I)if(Array.isArray(P)){var B=!0;const C=P.length;for(let S=0;S<C;S++){let k=P[S];const N=r,j=r;let q=!1;const G=r;if(typeof k!="string"){const V={instancePath:t+"/plugins/"+S,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),r++}var O=G===r;if(q=q||O,!q){const V=r;le(k,{instancePath:t+"/plugins/"+S,parentData:P,parentDataProperty:S,rootData:o})||(i=i===null?le.errors:i.concat(le.errors),r=i.length);var O=V===r;q=q||O}if(q)r=j,i!==null&&(j?i.length=j:i=null);else{const V={instancePath:t+"/plugins/"+S,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[V]:i.push(V),r++,ie.errors=i,!1}var B=N===r;if(!B)break}}else return ie.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var p=I===r}else var p=!0;if(p){if(e.siteOptions!==void 0){let P=e.siteOptions;const I=r;if(r===I)if(P&&typeof P=="object"&&!Array.isArray(P)){const C=r;for(const S in P)if(S!=="blogname"){const k=r;if(typeof P[S]!="string")return ie.errors=[{instancePath:t+"/siteOptions/"+S.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=k===r;if(!W)break}if(C===r&&P.blogname!==void 0&&typeof P.blogname!="string")return ie.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return ie.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var p=I===r}else var p=!0;if(p){if(e.login!==void 0){let P=e.login;const I=r,E=r;let C=!1;const S=r;if(typeof P!="boolean"){const N={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[N]:i.push(N),r++}var F=S===r;if(C=C||F,!C){const N=r;if(r===N)if(P&&typeof P=="object"&&!Array.isArray(P)){let q;if(P.username===void 0&&(q="username")||P.password===void 0&&(q="password")){const G={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"};i===null?i=[G]:i.push(G),r++}else{const G=r;for(const Z in P)if(!(Z==="username"||Z==="password")){const V={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Z},message:"must NOT have additional properties"};i===null?i=[V]:i.push(V),r++;break}if(G===r){if(P.username!==void 0){const Z=r;if(typeof P.username!="string"){const V={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[V]:i.push(V),r++}var M=Z===r}else var M=!0;if(M)if(P.password!==void 0){const Z=r;if(typeof P.password!="string"){const Q={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Q]:i.push(Q),r++}var M=Z===r}else var M=!0}}}else{const q={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[q]:i.push(q),r++}var F=N===r;C=C||F}if(C)r=E,i!==null&&(E?i.length=E:i=null);else{const N={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[N]:i.push(N),r++,ie.errors=i,!1}var p=I===r}else var p=!0;if(p){if(e.steps!==void 0){let P=e.steps;const I=r;if(r===I)if(Array.isArray(P)){var H=!0;const C=P.length;for(let S=0;S<C;S++){let k=P[S];const N=r,j=r;let q=!1;const G=r;h(k,{instancePath:t+"/steps/"+S,parentData:P,parentDataProperty:S,rootData:o})||(i=i===null?h.errors:i.concat(h.errors),r=i.length);var z=G===r;if(q=q||z,!q){const V=r;if(typeof k!="string"){const X={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[X]:i.push(X),r++}var z=V===r;if(q=q||z,!q){const X=r,se={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};i===null?i=[se]:i.push(se),r++;var z=X===r;if(q=q||z,!q){const J=r;if(typeof k!="boolean"){const te={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[te]:i.push(te),r++}if(k!==!1){const te={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};i===null?i=[te]:i.push(te),r++}var z=J===r;if(q=q||z,!q){const te=r;if(k!==null){const re={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};i===null?i=[re]:i.push(re),r++}var z=te===r;q=q||z}}}}if(q)r=j,i!==null&&(j?i.length=j:i=null);else{const V={instancePath:t+"/steps/"+S,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[V]:i.push(V),r++,ie.errors=i,!1}var H=N===r;if(!H)break}}else return ie.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var p=I===r}else var p=!0;if(p)if(e.$schema!==void 0){const P=r;if(typeof e.$schema!="string")return ie.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=P===r}else var p=!0}}}}}}}}}}}}else return ie.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ie.errors=i,r===0}function _r(e,{instancePath:t="",parentData:s,parentDataProperty:n,rootData:o=e}={}){let i=null,r=0;return ie(e,{instancePath:t,parentData:s,parentDataProperty:n,rootData:o})||(i=i===null?ie.errors:i.concat(ie.errors),r=i.length),_r.errors=i,r===0}const{wpCLI:$u,...Ln}=fp,ec={...Ln,"wp-cli":$u,importFile:Ln.importWxr};function Co(e,{progress:t=new ds,semaphore:s=new Wn({concurrency:3}),onStepCompleted:n=()=>{},corsProxy:o}={}){var v,w,B,O,W,F,M,H,z,R;e=structuredClone(e),e={...e,steps:(e.steps||[]).filter(sc).filter(ic)};for(const P of e.steps)!P||typeof P!="object"||(P.step==="importFile"?(P.step="importWxr",Ce.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(P==null?void 0:P.step)==="installPlugin"&&"pluginZipFile"in P?(P.pluginData=P.pluginZipFile,Ce.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(P==null?void 0:P.step)==="installTheme"&&"themeZipFile"in P&&(P.themeData=P.themeZipFile,Ce.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(e.constants&&e.steps.unshift({step:"defineWpConfigConsts",consts:e.constants}),e.siteOptions&&e.steps.unshift({step:"setSiteOptions",options:e.siteOptions}),e.plugins){const P=e.plugins.map(I=>typeof I=="string"?I.startsWith("https://")?{resource:"url",url:I}:{resource:"wordpress.org/plugins",slug:I}:I).map(I=>({step:"installPlugin",pluginData:I}));e.steps.unshift(...P)}e.login&&e.steps.push({step:"login",...e.login===!0?{username:"admin"}:e.login});const i=((v=e.steps)==null?void 0:v.findIndex(P=>typeof P=="object"&&(P==null?void 0:P.step)&&["wp-cli","enableMultisite"].includes(P.step)))??-1;if((w=e==null?void 0:e.extraLibraries)!=null&&w.includes("wp-cli")||i!==-1){const P={step:"writeFile",data:Yo,path:hi};i===-1?(B=e.steps)==null||B.push(P):(O=e.steps)==null||O.splice(i,0,P)}const r=(W=e.steps)==null?void 0:W.findIndex(P=>typeof P=="object"&&(P==null?void 0:P.step)==="importWxr");r!==void 0&&r>-1&&(e.steps[r].importer==="data-liberation"?(F=e.steps)==null||F.splice(r,0,{step:"writeFile",path:"/internal/shared/data-liberation-core.phar",data:{resource:"url",url:Xu,caption:"Downloading the Data Liberation WXR importer"}}):(M=e.steps)==null||M.splice(r,0,{step:"installPlugin",pluginData:{resource:"url",url:"https://playground.wordpress.net/wordpress-importer.zip",caption:"Downloading the WordPress Importer plugin"}}));const{valid:p,errors:m}=tc(e);if(!p){const P=new Error(`Invalid blueprint: ${m[0].message} at ${m[0].instancePath}`);throw P.errors=m,P}const u=e.steps||[],d=u.reduce((P,I)=>{var E;return P+(((E=I.progress)==null?void 0:E.weight)||1)},0),b=u.map(P=>nc(P,{semaphore:s,rootProgressTracker:t,totalProgressWeight:d,corsProxy:o}));return{versions:{php:rc((H=e.preferredVersions)==null?void 0:H.php,fs,$n),wp:((z=e.preferredVersions)==null?void 0:z.wp)||"latest"},features:{networking:((R=e.features)==null?void 0:R.networking)??!1},extraLibraries:e.extraLibraries||[],run:async P=>{try{for(const{resources:I}of b)for(const E of I)E.setPlayground(P),E.isAsync&&E.resolve();for(const[I,{run:E,step:C}]of Object.entries(b))try{const S=await E(P);n(S,C)}catch(S){throw Ce.error(S),new Error(`Error when executing the blueprint step #${I} (${JSON.stringify(C)}) ${S instanceof Error?`: ${S.message}`:S}`,{cause:S})}}finally{try{await P.goTo(e.landingPage||"/")}catch{}t.finish()}}}}function tc(e){var o;const t=_r(e);if(t)return{valid:t};const s=new Set;for(const i of _r.errors)i.schemaPath.startsWith("#/properties/steps/items/anyOf")||s.add(i.instancePath);const n=(o=_r.errors)==null?void 0:o.filter(i=>!(i.schemaPath.startsWith("#/properties/steps/items/anyOf")&&s.has(i.instancePath)));return{valid:t,errors:n}}function rc(e,t,s){return e&&t.includes(e)?e:s}function sc(e){return!!(typeof e=="object"&&e)}function ic(e){return["setPhpIniEntry","request"].includes(e.step)?(Ce.warn(`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function nc(e,{semaphore:t,rootProgressTracker:s,totalProgressWeight:n,corsProxy:o}){var b;const i=s.stage((((b=e.progress)==null?void 0:b.weight)||1)/n),r={};for(const v of Object.keys(e)){let w=e[v];ju(w)&&(w=Pt.create(w,{semaphore:t,corsProxy:o})),r[v]=w}const p=async v=>{var w;try{return i.fillSlowly(),await ec[e.step](v,await ac(r),{tracker:i,initialCaption:(w=e.progress)==null?void 0:w.caption})}finally{i.finish()}},m=jn(r),u=jn(r).filter(v=>v.isAsync),d=1/(u.length+1);for(const v of u)v.progress=i.stage(d);return{run:p,step:e,resources:m}}function jn(e){const t=[];for(const s in e){const n=e[s];n instanceof Pt&&t.push(n)}return t}async function ac(e){const t={};for(const s in e){const n=e[s];n instanceof Pt?t[s]=await n.resolve():t[s]=n}return t}async function Do(e,t){await e.run(t)}function oc(){}async function pc({iframe:e,blueprint:t,remoteUrl:s,progressTracker:n=new ds,disableProgressBar:o,onBlueprintStepCompleted:i,onClientConnected:r=()=>{},sapiName:p,onBeforeBlueprint:m,mounts:u,scope:d,corsProxy:b,shouldInstallWordPress:v}){lc(s),fc(e),s=uc(s,{progressbar:!o}),n.setCaption("Preparing WordPress"),t||(t={});const w=Co(t,{progress:n.stage(.5),onStepCompleted:i,corsProxy:b});await new Promise(W=>{e.src=s,e.addEventListener("load",W,!1)});const B=vu(e.contentWindow,e.ownerDocument.defaultView);await B.isConnected(),n.pipe(B);const O=n.stage();return await B.onDownloadProgress(O.loadingListener),await B.boot({mounts:u,sapiName:p,scope:d??Math.random().toFixed(16),shouldInstallWordPress:v,phpVersion:w.versions.php,wpVersion:w.versions.wp,withNetworking:w.features.networking,corsProxyUrl:b}),await B.isReady(),O.finish(),jo(Ce,B),r(B),m&&await m(),await Do(w,B),n.finish(),B}function fc(e){var t,s;(t=e.sandbox)!=null&&t.length&&!((s=e.sandbox)!=null&&s.contains("allow-storage-access-by-user-activation"))&&e.sandbox.add("allow-storage-access-by-user-activation")}const $r="https://playground.wordpress.net";function lc(e){const t=new URL(e,$r);if((t.origin===$r||t.hostname==="localhost")&&t.pathname!=="/remote.html")throw new Error(`Invalid remote URL: ${t}. Expected origin to be ${$r}/remote.html.`)}function uc(e,t){const s=new URL(e,$r),n=new URLSearchParams(s.search);for(const[o,i]of Object.entries(t))if(i!=null&&i!==!1)if(Array.isArray(i))for(const r of i)n.append(o,r.toString());else n.set(o,i.toString());return s.search=n.toString(),s.toString()}exports.LatestSupportedPHPVersion=$n;exports.SupportedPHPVersions=fs;exports.SupportedPHPVersionsList=tp;exports.activatePlugin=fi;exports.activateTheme=li;exports.compileBlueprint=Co;exports.cp=Xn;exports.defineSiteUrl=gi;exports.defineWpConfigConsts=ps;exports.enableMultisite=Zn;exports.exportWXR=ia;exports.importThemeStarterContent=wi;exports.importWordPressFiles=sa;exports.importWxr=ta;exports.installPlugin=aa;exports.installTheme=oa;exports.login=pa;exports.mkdir=Gn;exports.mv=Yn;exports.phpVar=Be;exports.phpVars=Er;exports.request=Mn;exports.resetData=fa;exports.rm=ui;exports.rmdir=Qn;exports.runBlueprintSteps=Do;exports.runPHP=Rn;exports.runPHPWithOptions=Nn;exports.runSql=Un;exports.runWpInstallationWizard=la;exports.setPhpIniEntries=ep;exports.setPluginProxyURL=oc;exports.setSiteLanguage=ca;exports.setSiteOptions=di;exports.startPlaygroundWeb=pc;exports.unzip=us;exports.updateUserMeta=Kn;exports.wpCLI=mi;exports.wpContentFilesExcludedFromExport=pi;exports.writeFile=xr;exports.writeFiles=ea;exports.zipWpContent=ua;
package/index.js CHANGED
@@ -2164,7 +2164,8 @@ function zipDir($root, $output, $options = array())
2164
2164
  $directory_path = $entry . '/';
2165
2165
  array_push($directories, $directory_path);
2166
2166
  } else if (is_file($entry)) {
2167
- $zip->addFile($entry, substr($entry, strlen($zip_root)));
2167
+ // ensure compliance with zip spec by only using relative paths for files
2168
+ $zip->addFile($entry, ltrim(substr($entry, strlen($zip_root)), '/'));
2168
2169
  }
2169
2170
  }
2170
2171
  closedir($handle);
@@ -9056,7 +9057,7 @@ for existing apps using this option.`
9056
9057
  },
9057
9058
  pluginZipFile: {
9058
9059
  $ref: "#/definitions/FileReference",
9059
- deprecated: ". Use `pluginData` instead."
9060
+ deprecated: ". Use 'pluginData' instead."
9060
9061
  },
9061
9062
  options: {
9062
9063
  $ref: "#/definitions/InstallPluginOptions",
@@ -9096,7 +9097,7 @@ for existing apps using this option.`
9096
9097
  },
9097
9098
  themeZipFile: {
9098
9099
  $ref: "#/definitions/FileReference",
9099
- deprecated: ". Use `themeData` instead."
9100
+ deprecated: ". Use 'themeData' instead."
9100
9101
  },
9101
9102
  options: {
9102
9103
  $ref: "#/definitions/InstallThemeOptions",
@@ -9467,7 +9468,7 @@ Only the username field is required for user authentication.`
9467
9468
  },
9468
9469
  filesTree: {
9469
9470
  $ref: "#/definitions/DirectoryReference",
9470
- description: "The data to write"
9471
+ description: "The 'filesTree' defines the directory structure, supporting 'literal:directory' or 'git:directory' types. The 'name' represents the root directory, while 'files' is an object where keys are file paths, and values contain either file content as a string or nested objects for subdirectories."
9471
9472
  }
9472
9473
  },
9473
9474
  required: ["filesTree", "step", "writeToPath"]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/client",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "WordPress Playground client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,7 +37,7 @@
37
37
  "main": "./index.cjs",
38
38
  "module": "./index.js",
39
39
  "types": "index.d.ts",
40
- "gitHead": "c6ad54edb507b18ccb5fd812c70dd2c9f622a716",
40
+ "gitHead": "173e69f62e1b43bd7353b875054bb1ef5e394de8",
41
41
  "engines": {
42
42
  "node": ">=18.18.0",
43
43
  "npm": ">=8.11.0"
@@ -50,6 +50,8 @@
50
50
  "comlink": "^4.4.1",
51
51
  "crc-32": "1.2.2",
52
52
  "diff3": "0.0.4",
53
+ "events": "3.3.0",
54
+ "express": "4.19.2",
53
55
  "ignore": "5.2.4",
54
56
  "ini": "4.1.2",
55
57
  "minimisted": "2.0.1",
@@ -60,12 +62,14 @@
60
62
  "sha.js": "2.4.11",
61
63
  "simple-get": "4.0.1",
62
64
  "wasm-feature-detect": "1.8.0",
63
- "@wp-playground/blueprints": "1.0.27",
64
- "@php-wasm/universal": "1.0.27",
65
- "@php-wasm/util": "1.0.27",
66
- "@php-wasm/web": "1.0.27",
67
- "@php-wasm/progress": "1.0.27",
68
- "@wp-playground/remote": "1.0.27",
69
- "@php-wasm/logger": "1.0.27"
65
+ "ws": "8.18.0",
66
+ "yargs": "17.7.2",
67
+ "@wp-playground/blueprints": "1.0.29",
68
+ "@php-wasm/universal": "1.0.29",
69
+ "@php-wasm/util": "1.0.29",
70
+ "@php-wasm/web": "1.0.29",
71
+ "@php-wasm/progress": "1.0.29",
72
+ "@wp-playground/remote": "1.0.29",
73
+ "@php-wasm/logger": "1.0.29"
70
74
  }
71
75
  }