@wp-playground/blueprints 1.0.28 → 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/index.cjs CHANGED
@@ -808,6 +808,6 @@ function join_paths()
808
808
 
809
809
  - 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.
810
810
  This option is only kept in here to avoid breaking Blueprint schema validation
811
- 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.
812
- 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"]}]},xt={type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]},properties:{}},pr={validate:Ve};function Ve(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r))for(const R in r){let F=r[R];const v=e,j=e;let T=!1;const V=e;pr.validate(F,{instancePath:t+"/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:R,rootData:m})||(i=i===null?pr.validate.errors:i.concat(pr.validate.errors),e=i.length);var d=V===e;if(T=T||d,!T){const y=e;if(!(F&&typeof F=="object"&&!Array.isArray(F))&&typeof F!="string"){const M={instancePath:t+"/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:xt.additionalProperties.anyOf[1].type},message:"must be object,string"};i===null?i=[M]:i.push(M),e++}var d=y===e;T=T||d}if(T)e=j,i!==null&&(j?i.length=j:i=null);else{const y={instancePath:t+"/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[y]:i.push(y),e++,Ve.errors=i,!1}var h=v===e;if(!h)break}else return Ve.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Ve.errors=i,e===0}function Oe(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let h;if(r.files===void 0&&(h="files")||r.name===void 0&&(h="name")||r.resource===void 0&&(h="resource"))return Oe.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:h},message:"must have required property '"+h+"'"}],!1;{const R=e;for(const F in r)if(!(F==="resource"||F==="files"||F==="name"))return Oe.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:F},message:"must NOT have additional properties"}],!1;if(R===e){if(r.resource!==void 0){let F=r.resource;const v=e;if(typeof F!="string")return Oe.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(F!=="literal:directory")return Oe.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var d=v===e}else var d=!0;if(d){if(r.files!==void 0){const F=e;Ve(r.files,{instancePath:t+"/files",parentData:r,parentDataProperty:"files",rootData:m})||(i=i===null?Ve.errors:i.concat(Ve.errors),e=i.length);var d=F===e}else var d=!0;if(d)if(r.name!==void 0){const F=e;if(typeof r.name!="string")return Oe.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=F===e}else var d=!0}}}}else return Oe.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Oe.errors=i,e===0}function ye(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;const d=e;let h=!1;const R=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let T;if(r.resource===void 0&&(T="resource")||r.url===void 0&&(T="url")||r.ref===void 0&&(T="ref")||r.path===void 0&&(T="path")){const V={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:T},message:"must have required property '"+T+"'"};i===null?i=[V]:i.push(V),e++}else{const V=e;for(const y in r)if(!(y==="resource"||y==="url"||y==="ref"||y==="path")){const C={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"};i===null?i=[C]:i.push(C),e++;break}if(V===e){if(r.resource!==void 0){let y=r.resource;const C=e;if(typeof y!="string"){const M={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[M]:i.push(M),e++}if(y!=="git:directory"){const M={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};i===null?i=[M]:i.push(M),e++}var v=C===e}else var v=!0;if(v){if(r.url!==void 0){const y=e;if(typeof r.url!="string"){const M={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[M]:i.push(M),e++}var v=y===e}else var v=!0;if(v){if(r.ref!==void 0){const y=e;if(typeof r.ref!="string"){const M={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[M]:i.push(M),e++}var v=y===e}else var v=!0;if(v)if(r.path!==void 0){const y=e;if(typeof r.path!="string"){const M={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[M]:i.push(M),e++}var v=y===e}else var v=!0}}}}}else{const T={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[T]:i.push(T),e++}var j=R===e;if(h=h||j,!h){const T=e;Oe(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:m})||(i=i===null?Oe.errors:i.concat(Oe.errors),e=i.length);var j=T===e;h=h||j}if(h)e=d,i!==null&&(d?i.length=d:i=null);else{const T={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[T]:i.push(T),e++,ye.errors=i,!1}return ye.errors=i,e===0}const Jr={type:"string",enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function me(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let M;if(r.url===void 0&&(M="url"))return me.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"}],!1;{const I=e;for(const O in r)if(!(O==="method"||O==="url"||O==="headers"||O==="body"))return me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties"}],!1;if(I===e){if(r.method!==void 0){let O=r.method;const X=e;if(typeof O!="string")return me.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 me.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Jr.enum},message:"must be equal to one of the allowed values"}],!1;var d=X===e}else var d=!0;if(d){if(r.url!==void 0){const O=e;if(typeof r.url!="string")return me.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=O===e}else var d=!0;if(d){if(r.headers!==void 0){let O=r.headers;const X=e;if(e===e)if(O&&typeof O=="object"&&!Array.isArray(O))for(const q in O){const L=e;if(typeof O[q]!="string")return me.errors=[{instancePath:t+"/headers/"+q.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=L===e;if(!h)break}else return me.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=X===e}else var d=!0;if(d)if(r.body!==void 0){let O=r.body;const X=e,ee=e;let f=!1;const q=e;if(typeof O!="string"){const g={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[g]:i.push(g),e++}var R=q===e;if(f=f||R,!f){const g=e;if(e===g)if(O&&typeof O=="object"&&!Array.isArray(O)){let w;if(O.BYTES_PER_ELEMENT===void 0&&(w="BYTES_PER_ELEMENT")||O.buffer===void 0&&(w="buffer")||O.byteLength===void 0&&(w="byteLength")||O.byteOffset===void 0&&(w="byteOffset")||O.length===void 0&&(w="length")){const x={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:w},message:"must have required property '"+w+"'"};i===null?i=[x]:i.push(x),e++}else{const x=e;for(const P in O)if(!(P==="BYTES_PER_ELEMENT"||P==="buffer"||P==="byteLength"||P==="byteOffset"||P==="length")){let u=O[P];const B=e;if(!(typeof u=="number"&&isFinite(u))){const D={instancePath:t+"/body/"+P.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=[D]:i.push(D),e++}var F=B===e;if(!F)break}if(x===e){if(O.BYTES_PER_ELEMENT!==void 0){let P=O.BYTES_PER_ELEMENT;const u=e;if(!(typeof P=="number"&&isFinite(P))){const B={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[B]:i.push(B),e++}var v=u===e}else var v=!0;if(v){if(O.buffer!==void 0){let P=O.buffer;const u=e;if(e===u)if(P&&typeof P=="object"&&!Array.isArray(P)){let D;if(P.byteLength===void 0&&(D="byteLength")){const N={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"};i===null?i=[N]:i.push(N),e++}else{const N=e;for(const Z in P)if(Z!=="byteLength"){const E={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Z},message:"must NOT have additional properties"};i===null?i=[E]:i.push(E),e++;break}if(N===e&&P.byteLength!==void 0){let Z=P.byteLength;if(!(typeof Z=="number"&&isFinite(Z))){const E={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=[E]:i.push(E),e++}}}}else{const D={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[D]:i.push(D),e++}var v=u===e}else var v=!0;if(v){if(O.byteLength!==void 0){let P=O.byteLength;const u=e;if(!(typeof P=="number"&&isFinite(P))){const D={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[D]:i.push(D),e++}var v=u===e}else var v=!0;if(v){if(O.byteOffset!==void 0){let P=O.byteOffset;const u=e;if(!(typeof P=="number"&&isFinite(P))){const D={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[D]:i.push(D),e++}var v=u===e}else var v=!0;if(v)if(O.length!==void 0){let P=O.length;const u=e;if(!(typeof P=="number"&&isFinite(P))){const D={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[D]:i.push(D),e++}var v=u===e}else var v=!0}}}}}}else{const w={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[w]:i.push(w),e++}var R=g===e;if(f=f||R,!f){const w=e;if(e===w)if(O&&typeof O=="object"&&!Array.isArray(O))for(const P in O){let u=O[P];const B=e,D=e;let N=!1;const Z=e;if(typeof u!="string"){const E={instancePath:t+"/body/"+P.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=[E]:i.push(E),e++}var j=Z===e;if(N=N||j,!N){const E=e;if(e===E)if(u&&typeof u=="object"&&!Array.isArray(u)){let se;if(u.BYTES_PER_ELEMENT===void 0&&(se="BYTES_PER_ELEMENT")||u.buffer===void 0&&(se="buffer")||u.byteLength===void 0&&(se="byteLength")||u.byteOffset===void 0&&(se="byteOffset")||u.length===void 0&&(se="length")){const Y={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:se},message:"must have required property '"+se+"'"};i===null?i=[Y]:i.push(Y),e++}else{const Y=e;for(const z in u)if(!(z==="BYTES_PER_ELEMENT"||z==="buffer"||z==="byteLength"||z==="byteOffset"||z==="length")){let H=u[z];const G=e;if(!(typeof H=="number"&&isFinite(H))){const K={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+z.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=[K]:i.push(K),e++}var T=G===e;if(!T)break}if(Y===e){if(u.BYTES_PER_ELEMENT!==void 0){let z=u.BYTES_PER_ELEMENT;const H=e;if(!(typeof z=="number"&&isFinite(z))){const G={instancePath:t+"/body/"+P.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=[G]:i.push(G),e++}var V=H===e}else var V=!0;if(V){if(u.buffer!==void 0){let z=u.buffer;const H=e;if(e===H)if(z&&typeof z=="object"&&!Array.isArray(z)){let K;if(z.byteLength===void 0&&(K="byteLength")){const oe={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:K},message:"must have required property '"+K+"'"};i===null?i=[oe]:i.push(oe),e++}else{const oe=e;for(const pe in z)if(pe!=="byteLength"){const ge={instancePath:t+"/body/"+P.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=[ge]:i.push(ge),e++;break}if(oe===e&&z.byteLength!==void 0){let pe=z.byteLength;if(!(typeof pe=="number"&&isFinite(pe))){const ge={instancePath:t+"/body/"+P.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=[ge]:i.push(ge),e++}}}}else{const K={instancePath:t+"/body/"+P.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=[K]:i.push(K),e++}var V=H===e}else var V=!0;if(V){if(u.byteLength!==void 0){let z=u.byteLength;const H=e;if(!(typeof z=="number"&&isFinite(z))){const K={instancePath:t+"/body/"+P.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=[K]:i.push(K),e++}var V=H===e}else var V=!0;if(V){if(u.byteOffset!==void 0){let z=u.byteOffset;const H=e;if(!(typeof z=="number"&&isFinite(z))){const K={instancePath:t+"/body/"+P.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=[K]:i.push(K),e++}var V=H===e}else var V=!0;if(V)if(u.length!==void 0){let z=u.length;const H=e;if(!(typeof z=="number"&&isFinite(z))){const K={instancePath:t+"/body/"+P.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=[K]:i.push(K),e++}var V=H===e}else var V=!0}}}}}}else{const se={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[se]:i.push(se),e++}var j=E===e;if(N=N||j,!N){const se=e;if(e===se)if(u&&typeof u=="object"&&!Array.isArray(u)){let z;if(u.lastModified===void 0&&(z="lastModified")||u.name===void 0&&(z="name")||u.size===void 0&&(z="size")||u.type===void 0&&(z="type")||u.webkitRelativePath===void 0&&(z="webkitRelativePath")){const H={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:z},message:"must have required property '"+z+"'"};i===null?i=[H]:i.push(H),e++}else{const H=e;for(const G in u)if(!(G==="size"||G==="type"||G==="lastModified"||G==="name"||G==="webkitRelativePath")){const K={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:G},message:"must NOT have additional properties"};i===null?i=[K]:i.push(K),e++;break}if(H===e){if(u.size!==void 0){let G=u.size;const K=e;if(!(typeof G=="number"&&isFinite(G))){const oe={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[oe]:i.push(oe),e++}var y=K===e}else var y=!0;if(y){if(u.type!==void 0){const G=e;if(typeof u.type!="string"){const oe={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[oe]:i.push(oe),e++}var y=G===e}else var y=!0;if(y){if(u.lastModified!==void 0){let G=u.lastModified;const K=e;if(!(typeof G=="number"&&isFinite(G))){const pe={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[pe]:i.push(pe),e++}var y=K===e}else var y=!0;if(y){if(u.name!==void 0){const G=e;if(typeof u.name!="string"){const oe={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[oe]:i.push(oe),e++}var y=G===e}else var y=!0;if(y)if(u.webkitRelativePath!==void 0){const G=e;if(typeof u.webkitRelativePath!="string"){const oe={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[oe]:i.push(oe),e++}var y=G===e}else var y=!0}}}}}}else{const z={instancePath:t+"/body/"+P.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=[z]:i.push(z),e++}var j=se===e;N=N||j}}if(N)e=D,i!==null&&(D?i.length=D:i=null);else{const E={instancePath:t+"/body/"+P.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=[E]:i.push(E),e++}var C=B===e;if(!C)break}else{const P={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[P]:i.push(P),e++}var R=w===e;f=f||R}}if(f)e=ee,i!==null&&(ee?i.length=ee:i=null);else{const g={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[g]:i.push(g),e++,me.errors=i,!1}var d=X===e}else var d=!0}}}}}else return me.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return me.errors=i,e===0}const Dt={type:"object",properties:{relativeUri:{type:"string",description:"Request path following the domain:port part."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}},additionalProperties:!1};function ne(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const V=e;for(const y in r)if(!Gr.call(Dt.properties,y))return ne.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(V===e){if(r.relativeUri!==void 0){const y=e;if(typeof r.relativeUri!="string")return ne.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=y===e}else var d=!0;if(d){if(r.scriptPath!==void 0){const y=e;if(typeof r.scriptPath!="string")return ne.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=y===e}else var d=!0;if(d){if(r.protocol!==void 0){const y=e;if(typeof r.protocol!="string")return ne.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=y===e}else var d=!0;if(d){if(r.method!==void 0){let y=r.method;const C=e;if(typeof y!="string")return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(y==="GET"||y==="POST"||y==="HEAD"||y==="OPTIONS"||y==="PATCH"||y==="PUT"||y==="DELETE"))return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Jr.enum},message:"must be equal to one of the allowed values"}],!1;var d=C===e}else var d=!0;if(d){if(r.headers!==void 0){let y=r.headers;const C=e;if(e===e)if(y&&typeof y=="object"&&!Array.isArray(y))for(const O in y){const X=e;if(typeof y[O]!="string")return ne.errors=[{instancePath:t+"/headers/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=X===e;if(!h)break}else return ne.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=C===e}else var d=!0;if(d){if(r.body!==void 0){let y=r.body;const C=e,M=e;let I=!1;const O=e;if(typeof y!="string"){const ee={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ee]:i.push(ee),e++}var R=O===e;if(I=I||R,!I){const ee=e;if(e===ee)if(y&&typeof y=="object"&&!Array.isArray(y)){let q;if(y.BYTES_PER_ELEMENT===void 0&&(q="BYTES_PER_ELEMENT")||y.buffer===void 0&&(q="buffer")||y.byteLength===void 0&&(q="byteLength")||y.byteOffset===void 0&&(q="byteOffset")||y.length===void 0&&(q="length")){const L={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"};i===null?i=[L]:i.push(L),e++}else{const L=e;for(const g in y)if(!(g==="BYTES_PER_ELEMENT"||g==="buffer"||g==="byteLength"||g==="byteOffset"||g==="length")){let b=y[g];const w=e;if(!(typeof b=="number"&&isFinite(b))){const x={instancePath:t+"/body/"+g.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=[x]:i.push(x),e++}var F=w===e;if(!F)break}if(L===e){if(y.BYTES_PER_ELEMENT!==void 0){let g=y.BYTES_PER_ELEMENT;const b=e;if(!(typeof g=="number"&&isFinite(g))){const w={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=[w]:i.push(w),e++}var v=b===e}else var v=!0;if(v){if(y.buffer!==void 0){let g=y.buffer;const b=e;if(e===b)if(g&&typeof g=="object"&&!Array.isArray(g)){let x;if(g.byteLength===void 0&&(x="byteLength")){const P={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:x},message:"must have required property '"+x+"'"};i===null?i=[P]:i.push(P),e++}else{const P=e;for(const u in g)if(u!=="byteLength"){const B={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"};i===null?i=[B]:i.push(B),e++;break}if(P===e&&g.byteLength!==void 0){let u=g.byteLength;if(!(typeof u=="number"&&isFinite(u))){const B={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=[B]:i.push(B),e++}}}}else{const x={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[x]:i.push(x),e++}var v=b===e}else var v=!0;if(v){if(y.byteLength!==void 0){let g=y.byteLength;const b=e;if(!(typeof g=="number"&&isFinite(g))){const x={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[x]:i.push(x),e++}var v=b===e}else var v=!0;if(v){if(y.byteOffset!==void 0){let g=y.byteOffset;const b=e;if(!(typeof g=="number"&&isFinite(g))){const x={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[x]:i.push(x),e++}var v=b===e}else var v=!0;if(v)if(y.length!==void 0){let g=y.length;const b=e;if(!(typeof g=="number"&&isFinite(g))){const x={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[x]:i.push(x),e++}var v=b===e}else var v=!0}}}}}}else{const q={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[q]:i.push(q),e++}var R=ee===e;I=I||R}if(I)e=M,i!==null&&(M?i.length=M:i=null);else{const ee={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ee]:i.push(ee),e++,ne.errors=i,!1}var d=C===e}else var d=!0;if(d){if(r.env!==void 0){let y=r.env;const C=e;if(e===C)if(y&&typeof y=="object"&&!Array.isArray(y))for(const I in y){const O=e;if(typeof y[I]!="string")return ne.errors=[{instancePath:t+"/env/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=O===e;if(!j)break}else return ne.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=C===e}else var d=!0;if(d){if(r.$_SERVER!==void 0){let y=r.$_SERVER;const C=e;if(e===C)if(y&&typeof y=="object"&&!Array.isArray(y))for(const I in y){const O=e;if(typeof y[I]!="string")return ne.errors=[{instancePath:t+"/$_SERVER/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=O===e;if(!T)break}else return ne.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=C===e}else var d=!0;if(d)if(r.code!==void 0){const y=e;if(typeof r.code!="string")return ne.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=y===e}else var d=!0}}}}}}}}}else return ne.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ne.errors=i,e===0}function o(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let nr;if(r.step===void 0&&(nr="step"))return o.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:nr},message:"must have required property '"+nr+"'"}],!1;{const J=r.step;if(typeof J=="string")if(J==="activatePlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.pluginPath===void 0&&(l="pluginPath")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="pluginPath"||s==="pluginName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var d=A===e}else var d=!0;if(d)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=n===e}else var d=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=a===e}else var h=!0;if(h){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="activatePlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var h=a===e}else var h=!0;if(h){if(r.pluginPath!==void 0){const s=e;if(typeof r.pluginPath!="string")return o.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=s===e}else var h=!0;if(h)if(r.pluginName!==void 0){const s=e;if(typeof r.pluginName!="string")return o.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=s===e}else var h=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="activateTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step")||r.themeFolderName===void 0&&(l="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var R=A===e}else var R=!0;if(R)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=n===e}else var R=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var F=a===e}else var F=!0;if(F){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="activateTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var F=a===e}else var F=!0;if(F)if(r.themeFolderName!==void 0){const s=e;if(typeof r.themeFolderName!="string")return o.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=s===e}else var F=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="cp"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.fromPath===void 0&&(l="fromPath")||r.step===void 0&&(l="step")||r.toPath===void 0&&(l="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var v=A===e}else var v=!0;if(v)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var v=n===e}else var v=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var j=a===e}else var j=!0;if(j){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="cp")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var j=a===e}else var j=!0;if(j){if(r.fromPath!==void 0){const s=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=s===e}else var j=!0;if(j)if(r.toPath!==void 0){const s=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=s===e}else var j=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="defineWpConfigConsts"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.consts===void 0&&(l="consts")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="consts"||s==="method"||s==="virtualize"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var T=A===e}else var T=!0;if(T)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=n===e}else var T=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var V=a===e}else var V=!0;if(V){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="defineWpConfigConsts")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var V=a===e}else var V=!0;if(V){if(r.consts!==void 0){let s=r.consts;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var V=a===e}else var V=!0;if(V){if(r.method!==void 0){let s=r.method;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="rewrite-wp-config"||s==="define-before-run"))return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:er.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var V=a===e}else var V=!0;if(V)if(r.virtualize!==void 0){const s=e;if(typeof r.virtualize!="boolean")return o.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var V=s===e}else var V=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="defineSiteUrl"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.siteUrl===void 0&&(l="siteUrl")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="siteUrl"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var y=A===e}else var y=!0;if(y)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=n===e}else var y=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var C=a===e}else var C=!0;if(C){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="defineSiteUrl")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var C=a===e}else var C=!0;if(C)if(r.siteUrl!==void 0){const s=e;if(typeof r.siteUrl!="string")return o.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=s===e}else var C=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="enableMultisite"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var M=A===e}else var M=!0;if(M)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=n===e}else var M=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var I=a===e}else var I=!0;if(I){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="enableMultisite")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var I=a===e}else var I=!0;if(I)if(r.wpCliPath!==void 0){const s=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=s===e}else var I=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="importWxr"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.file===void 0&&(l="file")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="file"||s==="importer"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var O=A===e}else var O=!0;if(O)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=n===e}else var O=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var X=a===e}else var X=!0;if(X){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importWxr")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var X=a===e}else var X=!0;if(X){if(r.file!==void 0){const s=e;_(r.file,{instancePath:t+"/file",parentData:r,parentDataProperty:"file",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var X=s===e}else var X=!0;if(X)if(r.importer!==void 0){let s=r.importer;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="data-liberation"||s==="default"))return o.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:er.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var X=a===e}else var X=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="importThemeStarterContent"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeSlug"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ee=A===e}else var ee=!0;if(ee)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=n===e}else var ee=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=a===e}else var f=!0;if(f){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importThemeStarterContent")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var f=a===e}else var f=!0;if(f)if(r.themeSlug!==void 0){const s=e;if(typeof r.themeSlug!="string")return o.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=s===e}else var f=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="importWordPressFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step")||r.wordPressFilesZip===void 0&&(l="wordPressFilesZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wordPressFilesZip"||s==="pathInZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var q=A===e}else var q=!0;if(q)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var q=n===e}else var q=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var L=a===e}else var L=!0;if(L){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importWordPressFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var L=a===e}else var L=!0;if(L){if(r.wordPressFilesZip!==void 0){const s=e;_(r.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:r,parentDataProperty:"wordPressFilesZip",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var L=s===e}else var L=!0;if(L)if(r.pathInZip!==void 0){const s=e;if(typeof r.pathInZip!="string")return o.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=s===e}else var L=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="installPlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.pluginData===void 0&&(l="pluginData")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="pluginData"||s==="pluginZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var g=A===e}else var g=!0;if(g)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=n===e}else var g=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var b=a===e}else var b=!0;if(b){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:er.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var b=a===e}else var b=!0;if(b){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="installPlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var b=a===e}else var b=!0;if(b){if(r.pluginData!==void 0){let s=r.pluginData;const a=e,k=e;let n=!1;const A=e;_(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var w=A===e;if(n=n||w,!n){const ie=e;ye(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:m})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var w=ie===e;n=n||w}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var b=a===e}else var b=!0;if(b){if(r.pluginZipFile!==void 0){const s=e;_(r.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:r,parentDataProperty:"pluginZipFile",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var b=s===e}else var b=!0;if(b)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const A=e;for(const te in s)if(!(te==="activate"||te==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(A===e){if(s.activate!==void 0){const te=e;if(typeof s.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var x=te===e}else var x=!0;if(x)if(s.targetFolderName!==void 0){const te=e;if(typeof s.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=te===e}else var x=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var b=a===e}else var b=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="installTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step")||r.themeData===void 0&&(l="themeData"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="themeData"||s==="themeZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var P=A===e}else var P=!0;if(P)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=n===e}else var P=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=a===e}else var u=!0;if(u){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:er.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var u=a===e}else var u=!0;if(u){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="installTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var u=a===e}else var u=!0;if(u){if(r.themeData!==void 0){let s=r.themeData;const a=e,k=e;let n=!1;const A=e;_(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var B=A===e;if(n=n||B,!n){const ie=e;ye(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:m})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var B=ie===e;n=n||B}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var u=a===e}else var u=!0;if(u){if(r.themeZipFile!==void 0){const s=e;_(r.themeZipFile,{instancePath:t+"/themeZipFile",parentData:r,parentDataProperty:"themeZipFile",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var u=s===e}else var u=!0;if(u)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const A=e;for(const te in s)if(!(te==="activate"||te==="importStarterContent"||te==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(A===e){if(s.activate!==void 0){const te=e;if(typeof s.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var D=te===e}else var D=!0;if(D){if(s.importStarterContent!==void 0){const te=e;if(typeof s.importStarterContent!="boolean")return o.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var D=te===e}else var D=!0;if(D)if(s.targetFolderName!==void 0){const te=e;if(typeof s.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var D=te===e}else var D=!0}}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=a===e}else var u=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="login"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="username"||s==="password"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var N=A===e}else var N=!0;if(N)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var N=n===e}else var N=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Z=a===e}else var Z=!0;if(Z){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="login")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var Z=a===e}else var Z=!0;if(Z){if(r.username!==void 0){const s=e;if(typeof r.username!="string")return o.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=s===e}else var Z=!0;if(Z)if(r.password!==void 0){const s=e;if(typeof r.password!="string")return o.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=s===e}else var Z=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="mkdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var E=A===e}else var E=!0;if(E)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=n===e}else var E=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Q=a===e}else var Q=!0;if(Q){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="mkdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var Q=a===e}else var Q=!0;if(Q)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=s===e}else var Q=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="mv"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.fromPath===void 0&&(l="fromPath")||r.step===void 0&&(l="step")||r.toPath===void 0&&(l="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var se=A===e}else var se=!0;if(se)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var se=n===e}else var se=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Y=a===e}else var Y=!0;if(Y){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="mv")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var Y=a===e}else var Y=!0;if(Y){if(r.fromPath!==void 0){const s=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=s===e}else var Y=!0;if(Y)if(r.toPath!==void 0){const s=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=s===e}else var Y=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="resetData"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var z=A===e}else var z=!0;if(z)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=n===e}else var z=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=a===e}else var H=!0;if(H)if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="resetData")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var H=a===e}else var H=!0}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="request"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.request===void 0&&(l="request")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="request"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var G=A===e}else var G=!0;if(G)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=n===e}else var G=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var K=a===e}else var K=!0;if(K){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="request")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var K=a===e}else var K=!0;if(K)if(r.request!==void 0){const s=e;me(r.request,{instancePath:t+"/request",parentData:r,parentDataProperty:"request",rootData:m})||(i=i===null?me.errors:i.concat(me.errors),e=i.length);var K=s===e}else var K=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="rm"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var oe=A===e}else var oe=!0;if(oe)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var oe=n===e}else var oe=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=a===e}else var pe=!0;if(pe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="rm")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var pe=a===e}else var pe=!0;if(pe)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var pe=s===e}else var pe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="rmdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ge=A===e}else var ge=!0;if(ge)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ge=n===e}else var ge=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ke=a===e}else var ke=!0;if(ke){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="rmdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var ke=a===e}else var ke=!0;if(ke)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ke=s===e}else var ke=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runPHP"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.code===void 0&&(l="code")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="code"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ze=A===e}else var ze=!0;if(ze)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ze=n===e}else var ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var je=a===e}else var je=!0;if(je){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runPHP")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var je=a===e}else var je=!0;if(je)if(r.code!==void 0){const s=e;if(typeof r.code!="string")return o.errors=[{instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var je=s===e}else var je=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runPHPWithOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.options===void 0&&(l="options")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Se=A===e}else var Se=!0;if(Se)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Se=n===e}else var Se=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=a===e}else var Ae=!0;if(Ae){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runPHPWithOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var Ae=a===e}else var Ae=!0;if(Ae)if(r.options!==void 0){const s=e;ne(r.options,{instancePath:t+"/options",parentData:r,parentDataProperty:"options",rootData:m})||(i=i===null?ne.errors:i.concat(ne.errors),e=i.length);var Ae=s===e}else var Ae=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runWpInstallationWizard"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.options===void 0&&(l="options")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Le=A===e}else var Le=!0;if(Le)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Le=n===e}else var Le=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Te=a===e}else var Te=!0;if(Te){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runWpInstallationWizard")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var Te=a===e}else var Te=!0;if(Te)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const A=e;for(const te in s)if(!(te==="adminUsername"||te==="adminPassword"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(A===e){if(s.adminUsername!==void 0){const te=e;if(typeof s.adminUsername!="string")return o.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=te===e}else var Ce=!0;if(Ce)if(s.adminPassword!==void 0){const te=e;if(typeof s.adminPassword!="string")return o.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=te===e}else var Ce=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Te=a===e}else var Te=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runSql"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.sql===void 0&&(l="sql")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="sql"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Xe=A===e}else var Xe=!0;if(Xe)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Xe=n===e}else var Xe=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var xe=a===e}else var xe=!0;if(xe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runSql")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var xe=a===e}else var xe=!0;if(xe)if(r.sql!==void 0){const s=e;_(r.sql,{instancePath:t+"/sql",parentData:r,parentDataProperty:"sql",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var xe=s===e}else var xe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="setSiteOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.options===void 0&&(l="options")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ze=A===e}else var Ze=!0;if(Ze)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ze=n===e}else var Ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var De=a===e}else var De=!0;if(De){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="setSiteOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var De=a===e}else var De=!0;if(De)if(r.options!==void 0){let s=r.options;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var De=a===e}else var De=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="unzip"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.extractToPath===void 0&&(l="extractToPath")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="zipFile"||s==="zipPath"||s==="extractToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Me=A===e}else var Me=!0;if(Me)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Me=n===e}else var Me=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var le=a===e}else var le=!0;if(le){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="unzip")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var le=a===e}else var le=!0;if(le){if(r.zipFile!==void 0){const s=e;_(r.zipFile,{instancePath:t+"/zipFile",parentData:r,parentDataProperty:"zipFile",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var le=s===e}else var le=!0;if(le){if(r.zipPath!==void 0){const s=e;if(typeof r.zipPath!="string")return o.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=s===e}else var le=!0;if(le)if(r.extractToPath!==void 0){const s=e;if(typeof r.extractToPath!="string")return o.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=s===e}else var le=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="updateUserMeta"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.meta===void 0&&(l="meta")||r.step===void 0&&(l="step")||r.userId===void 0&&(l="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="meta"||s==="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ue=A===e}else var Ue=!0;if(Ue)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ue=n===e}else var Ue=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var he=a===e}else var he=!0;if(he){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="updateUserMeta")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var he=a===e}else var he=!0;if(he){if(r.meta!==void 0){let s=r.meta;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var he=a===e}else var he=!0;if(he)if(r.userId!==void 0){let s=r.userId;const a=e;if(!(typeof s=="number"&&isFinite(s)))return o.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var he=a===e}else var he=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="writeFile"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.data===void 0&&(l="data")||r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"||s==="data"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var He=A===e}else var He=!0;if(He)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var He=n===e}else var He=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var be=a===e}else var be=!0;if(be){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="writeFile")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var be=a===e}else var be=!0;if(be){if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var be=s===e}else var be=!0;if(be)if(r.data!==void 0){let s=r.data;const a=e,k=e;let n=!1;const A=e;_(s,{instancePath:t+"/data",parentData:r,parentDataProperty:"data",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var Fe=A===e;if(n=n||Fe,!n){const ie=e;if(typeof s!="string"){const ve={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ve]:i.push(ve),e++}var Fe=ie===e;if(n=n||Fe,!n){const ve=e;if(e===ve)if(s&&typeof s=="object"&&!Array.isArray(s)){let ce;if(s.BYTES_PER_ELEMENT===void 0&&(ce="BYTES_PER_ELEMENT")||s.buffer===void 0&&(ce="buffer")||s.byteLength===void 0&&(ce="byteLength")||s.byteOffset===void 0&&(ce="byteOffset")||s.length===void 0&&(ce="length")){const Ge={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:ce},message:"must have required property '"+ce+"'"};i===null?i=[Ge]:i.push(Ge),e++}else{const Ge=e;for(const $ in s)if(!($==="BYTES_PER_ELEMENT"||$==="buffer"||$==="byteLength"||$==="byteOffset"||$==="length")){let ue=s[$];const Je=e;if(!(typeof ue=="number"&&isFinite(ue))){const ae={instancePath:t+"/data/"+$.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var _r=Je===e;if(!_r)break}if(Ge===e){if(s.BYTES_PER_ELEMENT!==void 0){let $=s.BYTES_PER_ELEMENT;const ue=e;if(!(typeof $=="number"&&isFinite($))){const Je={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=[Je]:i.push(Je),e++}var de=ue===e}else var de=!0;if(de){if(s.buffer!==void 0){let $=s.buffer;const ue=e;if(e===ue)if($&&typeof $=="object"&&!Array.isArray($)){let ae;if($.byteLength===void 0&&(ae="byteLength")){const _e={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:ae},message:"must have required property '"+ae+"'"};i===null?i=[_e]:i.push(_e),e++}else{const _e=e;for(const Ee in $)if(Ee!=="byteLength"){const We={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Ee},message:"must NOT have additional properties"};i===null?i=[We]:i.push(We),e++;break}if(_e===e&&$.byteLength!==void 0){let Ee=$.byteLength;if(!(typeof Ee=="number"&&isFinite(Ee))){const We={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=[We]:i.push(We),e++}}}}else{const ae={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[ae]:i.push(ae),e++}var de=ue===e}else var de=!0;if(de){if(s.byteLength!==void 0){let $=s.byteLength;const ue=e;if(!(typeof $=="number"&&isFinite($))){const ae={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var de=ue===e}else var de=!0;if(de){if(s.byteOffset!==void 0){let $=s.byteOffset;const ue=e;if(!(typeof $=="number"&&isFinite($))){const ae={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var de=ue===e}else var de=!0;if(de)if(s.length!==void 0){let $=s.length;const ue=e;if(!(typeof $=="number"&&isFinite($))){const ae={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var de=ue===e}else var de=!0}}}}}}else{const ce={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[ce]:i.push(ce),e++}var Fe=ve===e;n=n||Fe}}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var be=a===e}else var be=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="writeFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.filesTree===void 0&&(l="filesTree")||r.step===void 0&&(l="step")||r.writeToPath===void 0&&(l="writeToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="writeToPath"||s==="filesTree"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Qe=A===e}else var Qe=!0;if(Qe)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Qe=n===e}else var Qe=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var we=a===e}else var we=!0;if(we){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="writeFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var we=a===e}else var we=!0;if(we){if(r.writeToPath!==void 0){const s=e;if(typeof r.writeToPath!="string")return o.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=s===e}else var we=!0;if(we)if(r.filesTree!==void 0){const s=e;ye(r.filesTree,{instancePath:t+"/filesTree",parentData:r,parentDataProperty:"filesTree",rootData:m})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var we=s===e}else var we=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="wp-cli"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.command===void 0&&(l="command")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="command"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ye=A===e}else var Ye=!0;if(Ye)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ye=n===e}else var Ye=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Pe=a===e}else var Pe=!0;if(Pe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="wp-cli")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var Pe=a===e}else var Pe=!0;if(Pe){if(r.command!==void 0){let s=r.command;const a=e,k=e;let n=!1;const A=e;if(typeof s!="string"){const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ie]:i.push(ie),e++}var or=A===e;if(n=n||or,!n){const ie=e;if(e===ie)if(Array.isArray(s)){var wr=!0;const ve=s.length;for(let Ie=0;Ie<ve;Ie++){const ce=e;if(typeof s[Ie]!="string"){const $={instancePath:t+"/command/"+Ie,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[$]:i.push($),e++}var wr=ce===e;if(!wr)break}}else{const ve={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};i===null?i=[ve]:i.push(ve),e++}var or=ie===e;n=n||or}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var Pe=a===e}else var Pe=!0;if(Pe)if(r.wpCliPath!==void 0){const s=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Pe=s===e}else var Pe=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="setSiteLanguage"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.language===void 0&&(l="language")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="language"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ke=A===e}else var Ke=!0;if(Ke)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ke=n===e}else var Ke=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ne=a===e}else var Ne=!0;if(Ne){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="setSiteLanguage")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var Ne=a===e}else var Ne=!0;if(Ne)if(r.language!==void 0){const s=e;if(typeof r.language!="string")return o.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ne=s===e}else var Ne=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:J},message:'value of tag "step" must be in oneOf'}],!1;else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:J},message:'tag "step" must be string'}],!1}}else return o.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return o.errors=i,e===0}function U(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const ee=e;for(const f in r)if(!Gr.call(jt.properties,f))return U.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ee===e){if(r.landingPage!==void 0){const f=e;if(typeof r.landingPage!="string")return U.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=f===e}else var d=!0;if(d){if(r.description!==void 0){const f=e;if(typeof r.description!="string")return U.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=f===e}else var d=!0;if(d){if(r.meta!==void 0){let f=r.meta;const q=e;if(e===q)if(f&&typeof f=="object"&&!Array.isArray(f)){let g;if(f.title===void 0&&(g="title")||f.author===void 0&&(g="author"))return U.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:g},message:"must have required property '"+g+"'"}],!1;{const b=e;for(const w in f)if(!(w==="title"||w==="description"||w==="author"||w==="categories"))return U.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties"}],!1;if(b===e){if(f.title!==void 0){const w=e;if(typeof f.title!="string")return U.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=w===e}else var h=!0;if(h){if(f.description!==void 0){const w=e;if(typeof f.description!="string")return U.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=w===e}else var h=!0;if(h){if(f.author!==void 0){const w=e;if(typeof f.author!="string")return U.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=w===e}else var h=!0;if(h)if(f.categories!==void 0){let w=f.categories;const x=e;if(e===x)if(Array.isArray(w)){var R=!0;const u=w.length;for(let B=0;B<u;B++){const D=e;if(typeof w[B]!="string")return U.errors=[{instancePath:t+"/meta/categories/"+B,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=D===e;if(!R)break}}else return U.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var h=x===e}else var h=!0}}}}}else return U.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=q===e}else var d=!0;if(d){if(r.preferredVersions!==void 0){let f=r.preferredVersions;const q=e;if(e===q)if(f&&typeof f=="object"&&!Array.isArray(f)){let g;if(f.php===void 0&&(g="php")||f.wp===void 0&&(g="wp"))return U.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:g},message:"must have required property '"+g+"'"}],!1;{const b=e;for(const w in f)if(!(w==="php"||w==="wp"))return U.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties"}],!1;if(b===e){if(f.php!==void 0){let w=f.php;const x=e,P=e;let u=!1;const B=e;if(typeof w!="string"){const D={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[D]:i.push(D),e++}if(!(w==="8.4"||w==="8.3"||w==="8.2"||w==="8.1"||w==="8.0"||w==="7.4"||w==="7.3"||w==="7.2"||w==="7.1"||w==="7.0")){const D={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:At.enum},message:"must be equal to one of the allowed values"};i===null?i=[D]:i.push(D),e++}var F=B===e;if(u=u||F,!u){const D=e;if(typeof w!="string"){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Z]:i.push(Z),e++}if(w!=="latest"){const Z={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=[Z]:i.push(Z),e++}var F=D===e;u=u||F}if(u)e=P,i!==null&&(P?i.length=P:i=null);else{const D={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[D]:i.push(D),e++,U.errors=i,!1}var v=x===e}else var v=!0;if(v)if(f.wp!==void 0){const w=e;if(typeof f.wp!="string")return U.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var v=w===e}else var v=!0}}}else return U.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=q===e}else var d=!0;if(d){if(r.features!==void 0){let f=r.features;const q=e;if(e===q)if(f&&typeof f=="object"&&!Array.isArray(f)){const g=e;for(const b in f)if(b!=="networking")return U.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(g===e&&f.networking!==void 0&&typeof f.networking!="boolean")return U.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1}else return U.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=q===e}else var d=!0;if(d){if(r.extraLibraries!==void 0){let f=r.extraLibraries;const q=e;if(e===q)if(Array.isArray(f)){var j=!0;const g=f.length;for(let b=0;b<g;b++){let w=f[b];const x=e;if(typeof w!="string")return U.errors=[{instancePath:t+"/extraLibraries/"+b,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(w!=="wp-cli")return U.errors=[{instancePath:t+"/extraLibraries/"+b,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var j=x===e;if(!j)break}}else return U.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=q===e}else var d=!0;if(d){if(r.constants!==void 0){let f=r.constants;const q=e;if(e===e)if(f&&typeof f=="object"&&!Array.isArray(f))for(const b in f){let w=f[b];const x=e;if(typeof w!="string"&&typeof w!="boolean"&&!(typeof w=="number"&&isFinite(w)))return U.errors=[{instancePath:t+"/constants/"+b.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:Tt.additionalProperties.type},message:"must be string,boolean,number"}],!1;var T=x===e;if(!T)break}else return U.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=q===e}else var d=!0;if(d){if(r.plugins!==void 0){let f=r.plugins;const q=e;if(e===q)if(Array.isArray(f)){var V=!0;const g=f.length;for(let b=0;b<g;b++){let w=f[b];const x=e,P=e;let u=!1;const B=e;if(typeof w!="string"){const N={instancePath:t+"/plugins/"+b,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[N]:i.push(N),e++}var y=B===e;if(u=u||y,!u){const N=e;_(w,{instancePath:t+"/plugins/"+b,parentData:f,parentDataProperty:b,rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var y=N===e;u=u||y}if(u)e=P,i!==null&&(P?i.length=P:i=null);else{const N={instancePath:t+"/plugins/"+b,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[N]:i.push(N),e++,U.errors=i,!1}var V=x===e;if(!V)break}}else return U.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=q===e}else var d=!0;if(d){if(r.siteOptions!==void 0){let f=r.siteOptions;const q=e;if(e===q)if(f&&typeof f=="object"&&!Array.isArray(f)){const g=e;for(const b in f)if(b!=="blogname"){const w=e;if(typeof f[b]!="string")return U.errors=[{instancePath:t+"/siteOptions/"+b.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=w===e;if(!C)break}if(g===e&&f.blogname!==void 0&&typeof f.blogname!="string")return U.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return U.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=q===e}else var d=!0;if(d){if(r.login!==void 0){let f=r.login;const q=e,L=e;let g=!1;const b=e;if(typeof f!="boolean"){const x={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[x]:i.push(x),e++}var M=b===e;if(g=g||M,!g){const x=e;if(e===x)if(f&&typeof f=="object"&&!Array.isArray(f)){let u;if(f.username===void 0&&(u="username")||f.password===void 0&&(u="password")){const B={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:u},message:"must have required property '"+u+"'"};i===null?i=[B]:i.push(B),e++}else{const B=e;for(const D in f)if(!(D==="username"||D==="password")){const N={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"};i===null?i=[N]:i.push(N),e++;break}if(B===e){if(f.username!==void 0){const D=e;if(typeof f.username!="string"){const N={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[N]:i.push(N),e++}var I=D===e}else var I=!0;if(I)if(f.password!==void 0){const D=e;if(typeof f.password!="string"){const Z={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Z]:i.push(Z),e++}var I=D===e}else var I=!0}}}else{const u={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[u]:i.push(u),e++}var M=x===e;g=g||M}if(g)e=L,i!==null&&(L?i.length=L:i=null);else{const x={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[x]:i.push(x),e++,U.errors=i,!1}var d=q===e}else var d=!0;if(d){if(r.steps!==void 0){let f=r.steps;const q=e;if(e===q)if(Array.isArray(f)){var O=!0;const g=f.length;for(let b=0;b<g;b++){let w=f[b];const x=e,P=e;let u=!1;const B=e;o(w,{instancePath:t+"/steps/"+b,parentData:f,parentDataProperty:b,rootData:m})||(i=i===null?o.errors:i.concat(o.errors),e=i.length);var X=B===e;if(u=u||X,!u){const N=e;if(typeof w!="string"){const E={instancePath:t+"/steps/"+b,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[E]:i.push(E),e++}var X=N===e;if(u=u||X,!u){const E=e,Q={instancePath:t+"/steps/"+b,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};i===null?i=[Q]:i.push(Q),e++;var X=E===e;if(u=u||X,!u){const Y=e;if(typeof w!="boolean"){const H={instancePath:t+"/steps/"+b,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[H]:i.push(H),e++}if(w!==!1){const H={instancePath:t+"/steps/"+b,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};i===null?i=[H]:i.push(H),e++}var X=Y===e;if(u=u||X,!u){const H=e;if(w!==null){const K={instancePath:t+"/steps/"+b,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};i===null?i=[K]:i.push(K),e++}var X=H===e;u=u||X}}}}if(u)e=P,i!==null&&(P?i.length=P:i=null);else{const N={instancePath:t+"/steps/"+b,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[N]:i.push(N),e++,U.errors=i,!1}var O=x===e;if(!O)break}}else return U.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=q===e}else var d=!0;if(d)if(r.$schema!==void 0){const f=e;if(typeof r.$schema!="string")return U.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=f===e}else var d=!0}}}}}}}}}}}}else return U.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return U.errors=i,e===0}function rr(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;return U(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:m})||(i=i===null?U.errors:i.concat(U.errors),e=i.length),rr.errors=i,e===0}const{wpCLI:Nt,...vr}=lt,Vt={...vr,"wp-cli":Nt,importFile:vr.importWxr};function Ft(r,{progress:t=new kr.ProgressTracker,semaphore:p=new S.Semaphore({concurrency:3}),onStepCompleted:c=()=>{},corsProxy:m}={}){var j,T,V,y,C,M,I,O,X,ee;r=structuredClone(r),r={...r,steps:(r.steps||[]).filter(Rt).filter(Bt)};for(const f of r.steps)!f||typeof f!="object"||(f.step==="importFile"?(f.step="importWxr",fe.logger.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(f==null?void 0:f.step)==="installPlugin"&&"pluginZipFile"in f?(f.pluginData=f.pluginZipFile,fe.logger.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(f==null?void 0:f.step)==="installTheme"&&"themeZipFile"in f&&(f.themeData=f.themeZipFile,fe.logger.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(r.constants&&r.steps.unshift({step:"defineWpConfigConsts",consts:r.constants}),r.siteOptions&&r.steps.unshift({step:"setSiteOptions",options:r.siteOptions}),r.plugins){const f=r.plugins.map(q=>typeof q=="string"?q.startsWith("https://")?{resource:"url",url:q}:{resource:"wordpress.org/plugins",slug:q}:q).map(q=>({step:"installPlugin",pluginData:q}));r.steps.unshift(...f)}r.login&&r.steps.push({step:"login",...r.login===!0?{username:"admin"}:r.login});const i=((j=r.steps)==null?void 0:j.findIndex(f=>typeof f=="object"&&(f==null?void 0:f.step)&&["wp-cli","enableMultisite"].includes(f.step)))??-1;if((T=r==null?void 0:r.extraLibraries)!=null&&T.includes("wp-cli")||i!==-1){const f={step:"writeFile",data:st,path:cr};i===-1?(V=r.steps)==null||V.push(f):(y=r.steps)==null||y.splice(i,0,f)}const e=(C=r.steps)==null?void 0:C.findIndex(f=>typeof f=="object"&&(f==null?void 0:f.step)==="importWxr");e!==void 0&&e>-1&&(r.steps[e].importer==="data-liberation"?(M=r.steps)==null||M.splice(e,0,{step:"writeFile",path:"/internal/shared/data-liberation-core.phar",data:{resource:"url",url:kt,caption:"Downloading the Data Liberation WXR importer"}}):(I=r.steps)==null||I.splice(e,0,{step:"installPlugin",pluginData:{resource:"url",url:"https://playground.wordpress.net/wordpress-importer.zip",caption:"Downloading the WordPress Importer plugin"}}));const{valid:d,errors:h}=Et(r);if(!d){const f=new Error(`Invalid blueprint: ${h[0].message} at ${h[0].instancePath}`);throw f.errors=h,f}const R=r.steps||[],F=R.reduce((f,q)=>{var L;return f+(((L=q.progress)==null?void 0:L.weight)||1)},0),v=R.map(f=>zt(f,{semaphore:p,rootProgressTracker:t,totalProgressWeight:F,corsProxy:m}));return{versions:{php:Wt((O=r.preferredVersions)==null?void 0:O.php,Re.SupportedPHPVersions,Re.LatestSupportedPHPVersion),wp:((X=r.preferredVersions)==null?void 0:X.wp)||"latest"},features:{networking:((ee=r.features)==null?void 0:ee.networking)??!1},extraLibraries:r.extraLibraries||[],run:async f=>{try{for(const{resources:q}of v)for(const L of q)L.setPlayground(f),L.isAsync&&L.resolve();for(const[q,{run:L,step:g}]of Object.entries(v))try{const b=await L(f);c(b,g)}catch(b){throw fe.logger.error(b),new Error(`Error when executing the blueprint step #${q} (${JSON.stringify(g)}) ${b instanceof Error?`: ${b.message}`:b}`,{cause:b})}}finally{try{await f.goTo(r.landingPage||"/")}catch{}t.finish()}}}}function Et(r){var m;const t=rr(r);if(t)return{valid:t};const p=new Set;for(const i of rr.errors)i.schemaPath.startsWith("#/properties/steps/items/anyOf")||p.add(i.instancePath);const c=(m=rr.errors)==null?void 0:m.filter(i=>!(i.schemaPath.startsWith("#/properties/steps/items/anyOf")&&p.has(i.instancePath)));return{valid:t,errors:c}}function Wt(r,t,p){return r&&t.includes(r)?r:p}function Rt(r){return!!(typeof r=="object"&&r)}function Bt(r){return["setPhpIniEntry","request"].includes(r.step)?(fe.logger.warn(`The "${r.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function zt(r,{semaphore:t,rootProgressTracker:p,totalProgressWeight:c,corsProxy:m}){var v;const i=p.stage((((v=r.progress)==null?void 0:v.weight)||1)/c),e={};for(const j of Object.keys(r)){let T=r[j];ut(T)&&(T=qe.create(T,{semaphore:t,corsProxy:m})),e[j]=T}const d=async j=>{var T;try{return i.fillSlowly(),await Vt[r.step](j,await St(e),{tracker:i,initialCaption:(T=r.progress)==null?void 0:T.caption})}finally{i.finish()}},h=Or(e),R=Or(e).filter(j=>j.isAsync),F=1/(R.length+1);for(const j of R)j.progress=i.stage(F);return{run:d,step:r,resources:h}}function Or(r){const t=[];for(const p in r){const c=r[p];c instanceof qe&&t.push(c)}return t}async function St(r){const t={};for(const p in r){const c=r[p];c instanceof qe?t[p]=await c.resolve():t[p]=c}return t}async function Lt(r,t){await r.run(t)}function Ct(){}exports.activatePlugin=lr;exports.activateTheme=dr;exports.compileBlueprint=Ft;exports.cp=Fr;exports.defineSiteUrl=gr;exports.defineWpConfigConsts=tr;exports.enableMultisite=Vr;exports.exportWXR=Lr;exports.importThemeStarterContent=hr;exports.importWordPressFiles=Sr;exports.importWxr=zr;exports.installPlugin=Xr;exports.installTheme=Zr;exports.login=Mr;exports.mkdir=Wr;exports.mv=Er;exports.request=xr;exports.resetData=Ur;exports.rm=ur;exports.rmdir=Rr;exports.runBlueprintSteps=Lt;exports.runPHP=jr;exports.runPHPWithOptions=Ar;exports.runSql=Tr;exports.runWpInstallationWizard=Hr;exports.setPluginProxyURL=Ct;exports.setSiteLanguage=Yr;exports.setSiteOptions=mr;exports.unzip=sr;exports.updateUserMeta=Dr;exports.wpCLI=yr;exports.wpContentFilesExcludedFromExport=fr;exports.writeFile=Be;exports.writeFiles=Br;exports.zipWpContent=Qr;
811
+ 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.
812
+ 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"]}]},xt={type:"object",additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]},properties:{}},pr={validate:Ve};function Ve(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r))for(const R in r){let F=r[R];const v=e,j=e;let T=!1;const V=e;pr.validate(F,{instancePath:t+"/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:r,parentDataProperty:R,rootData:m})||(i=i===null?pr.validate.errors:i.concat(pr.validate.errors),e=i.length);var d=V===e;if(T=T||d,!T){const y=e;if(!(F&&typeof F=="object"&&!Array.isArray(F))&&typeof F!="string"){const M={instancePath:t+"/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:xt.additionalProperties.anyOf[1].type},message:"must be object,string"};i===null?i=[M]:i.push(M),e++}var d=y===e;T=T||d}if(T)e=j,i!==null&&(j?i.length=j:i=null);else{const y={instancePath:t+"/"+R.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[y]:i.push(y),e++,Ve.errors=i,!1}var h=v===e;if(!h)break}else return Ve.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Ve.errors=i,e===0}function Oe(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let h;if(r.files===void 0&&(h="files")||r.name===void 0&&(h="name")||r.resource===void 0&&(h="resource"))return Oe.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:h},message:"must have required property '"+h+"'"}],!1;{const R=e;for(const F in r)if(!(F==="resource"||F==="files"||F==="name"))return Oe.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:F},message:"must NOT have additional properties"}],!1;if(R===e){if(r.resource!==void 0){let F=r.resource;const v=e;if(typeof F!="string")return Oe.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(F!=="literal:directory")return Oe.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var d=v===e}else var d=!0;if(d){if(r.files!==void 0){const F=e;Ve(r.files,{instancePath:t+"/files",parentData:r,parentDataProperty:"files",rootData:m})||(i=i===null?Ve.errors:i.concat(Ve.errors),e=i.length);var d=F===e}else var d=!0;if(d)if(r.name!==void 0){const F=e;if(typeof r.name!="string")return Oe.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=F===e}else var d=!0}}}}else return Oe.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Oe.errors=i,e===0}function ye(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;const d=e;let h=!1;const R=e;if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let T;if(r.resource===void 0&&(T="resource")||r.url===void 0&&(T="url")||r.ref===void 0&&(T="ref")||r.path===void 0&&(T="path")){const V={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/required",keyword:"required",params:{missingProperty:T},message:"must have required property '"+T+"'"};i===null?i=[V]:i.push(V),e++}else{const V=e;for(const y in r)if(!(y==="resource"||y==="url"||y==="ref"||y==="path")){const C={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"};i===null?i=[C]:i.push(C),e++;break}if(V===e){if(r.resource!==void 0){let y=r.resource;const C=e;if(typeof y!="string"){const M={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[M]:i.push(M),e++}if(y!=="git:directory"){const M={instancePath:t+"/resource",schemaPath:"#/definitions/GitDirectoryReference/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"};i===null?i=[M]:i.push(M),e++}var v=C===e}else var v=!0;if(v){if(r.url!==void 0){const y=e;if(typeof r.url!="string"){const M={instancePath:t+"/url",schemaPath:"#/definitions/GitDirectoryReference/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[M]:i.push(M),e++}var v=y===e}else var v=!0;if(v){if(r.ref!==void 0){const y=e;if(typeof r.ref!="string"){const M={instancePath:t+"/ref",schemaPath:"#/definitions/GitDirectoryReference/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[M]:i.push(M),e++}var v=y===e}else var v=!0;if(v)if(r.path!==void 0){const y=e;if(typeof r.path!="string"){const M={instancePath:t+"/path",schemaPath:"#/definitions/GitDirectoryReference/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[M]:i.push(M),e++}var v=y===e}else var v=!0}}}}}else{const T={instancePath:t,schemaPath:"#/definitions/GitDirectoryReference/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[T]:i.push(T),e++}var j=R===e;if(h=h||j,!h){const T=e;Oe(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:m})||(i=i===null?Oe.errors:i.concat(Oe.errors),e=i.length);var j=T===e;h=h||j}if(h)e=d,i!==null&&(d?i.length=d:i=null);else{const T={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[T]:i.push(T),e++,ye.errors=i,!1}return ye.errors=i,e===0}const Jr={type:"string",enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function me(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let M;if(r.url===void 0&&(M="url"))return me.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"}],!1;{const I=e;for(const O in r)if(!(O==="method"||O==="url"||O==="headers"||O==="body"))return me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:O},message:"must NOT have additional properties"}],!1;if(I===e){if(r.method!==void 0){let O=r.method;const X=e;if(typeof O!="string")return me.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 me.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Jr.enum},message:"must be equal to one of the allowed values"}],!1;var d=X===e}else var d=!0;if(d){if(r.url!==void 0){const O=e;if(typeof r.url!="string")return me.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=O===e}else var d=!0;if(d){if(r.headers!==void 0){let O=r.headers;const X=e;if(e===e)if(O&&typeof O=="object"&&!Array.isArray(O))for(const q in O){const L=e;if(typeof O[q]!="string")return me.errors=[{instancePath:t+"/headers/"+q.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=L===e;if(!h)break}else return me.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=X===e}else var d=!0;if(d)if(r.body!==void 0){let O=r.body;const X=e,ee=e;let f=!1;const q=e;if(typeof O!="string"){const g={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[g]:i.push(g),e++}var R=q===e;if(f=f||R,!f){const g=e;if(e===g)if(O&&typeof O=="object"&&!Array.isArray(O)){let w;if(O.BYTES_PER_ELEMENT===void 0&&(w="BYTES_PER_ELEMENT")||O.buffer===void 0&&(w="buffer")||O.byteLength===void 0&&(w="byteLength")||O.byteOffset===void 0&&(w="byteOffset")||O.length===void 0&&(w="length")){const x={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:w},message:"must have required property '"+w+"'"};i===null?i=[x]:i.push(x),e++}else{const x=e;for(const P in O)if(!(P==="BYTES_PER_ELEMENT"||P==="buffer"||P==="byteLength"||P==="byteOffset"||P==="length")){let u=O[P];const B=e;if(!(typeof u=="number"&&isFinite(u))){const D={instancePath:t+"/body/"+P.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=[D]:i.push(D),e++}var F=B===e;if(!F)break}if(x===e){if(O.BYTES_PER_ELEMENT!==void 0){let P=O.BYTES_PER_ELEMENT;const u=e;if(!(typeof P=="number"&&isFinite(P))){const B={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[B]:i.push(B),e++}var v=u===e}else var v=!0;if(v){if(O.buffer!==void 0){let P=O.buffer;const u=e;if(e===u)if(P&&typeof P=="object"&&!Array.isArray(P)){let D;if(P.byteLength===void 0&&(D="byteLength")){const N={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:D},message:"must have required property '"+D+"'"};i===null?i=[N]:i.push(N),e++}else{const N=e;for(const Z in P)if(Z!=="byteLength"){const E={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Z},message:"must NOT have additional properties"};i===null?i=[E]:i.push(E),e++;break}if(N===e&&P.byteLength!==void 0){let Z=P.byteLength;if(!(typeof Z=="number"&&isFinite(Z))){const E={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=[E]:i.push(E),e++}}}}else{const D={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[D]:i.push(D),e++}var v=u===e}else var v=!0;if(v){if(O.byteLength!==void 0){let P=O.byteLength;const u=e;if(!(typeof P=="number"&&isFinite(P))){const D={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[D]:i.push(D),e++}var v=u===e}else var v=!0;if(v){if(O.byteOffset!==void 0){let P=O.byteOffset;const u=e;if(!(typeof P=="number"&&isFinite(P))){const D={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[D]:i.push(D),e++}var v=u===e}else var v=!0;if(v)if(O.length!==void 0){let P=O.length;const u=e;if(!(typeof P=="number"&&isFinite(P))){const D={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[D]:i.push(D),e++}var v=u===e}else var v=!0}}}}}}else{const w={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[w]:i.push(w),e++}var R=g===e;if(f=f||R,!f){const w=e;if(e===w)if(O&&typeof O=="object"&&!Array.isArray(O))for(const P in O){let u=O[P];const B=e,D=e;let N=!1;const Z=e;if(typeof u!="string"){const E={instancePath:t+"/body/"+P.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=[E]:i.push(E),e++}var j=Z===e;if(N=N||j,!N){const E=e;if(e===E)if(u&&typeof u=="object"&&!Array.isArray(u)){let se;if(u.BYTES_PER_ELEMENT===void 0&&(se="BYTES_PER_ELEMENT")||u.buffer===void 0&&(se="buffer")||u.byteLength===void 0&&(se="byteLength")||u.byteOffset===void 0&&(se="byteOffset")||u.length===void 0&&(se="length")){const Y={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:se},message:"must have required property '"+se+"'"};i===null?i=[Y]:i.push(Y),e++}else{const Y=e;for(const z in u)if(!(z==="BYTES_PER_ELEMENT"||z==="buffer"||z==="byteLength"||z==="byteOffset"||z==="length")){let H=u[z];const G=e;if(!(typeof H=="number"&&isFinite(H))){const K={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+z.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=[K]:i.push(K),e++}var T=G===e;if(!T)break}if(Y===e){if(u.BYTES_PER_ELEMENT!==void 0){let z=u.BYTES_PER_ELEMENT;const H=e;if(!(typeof z=="number"&&isFinite(z))){const G={instancePath:t+"/body/"+P.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=[G]:i.push(G),e++}var V=H===e}else var V=!0;if(V){if(u.buffer!==void 0){let z=u.buffer;const H=e;if(e===H)if(z&&typeof z=="object"&&!Array.isArray(z)){let K;if(z.byteLength===void 0&&(K="byteLength")){const oe={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:K},message:"must have required property '"+K+"'"};i===null?i=[oe]:i.push(oe),e++}else{const oe=e;for(const pe in z)if(pe!=="byteLength"){const ge={instancePath:t+"/body/"+P.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=[ge]:i.push(ge),e++;break}if(oe===e&&z.byteLength!==void 0){let pe=z.byteLength;if(!(typeof pe=="number"&&isFinite(pe))){const ge={instancePath:t+"/body/"+P.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=[ge]:i.push(ge),e++}}}}else{const K={instancePath:t+"/body/"+P.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=[K]:i.push(K),e++}var V=H===e}else var V=!0;if(V){if(u.byteLength!==void 0){let z=u.byteLength;const H=e;if(!(typeof z=="number"&&isFinite(z))){const K={instancePath:t+"/body/"+P.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=[K]:i.push(K),e++}var V=H===e}else var V=!0;if(V){if(u.byteOffset!==void 0){let z=u.byteOffset;const H=e;if(!(typeof z=="number"&&isFinite(z))){const K={instancePath:t+"/body/"+P.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=[K]:i.push(K),e++}var V=H===e}else var V=!0;if(V)if(u.length!==void 0){let z=u.length;const H=e;if(!(typeof z=="number"&&isFinite(z))){const K={instancePath:t+"/body/"+P.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=[K]:i.push(K),e++}var V=H===e}else var V=!0}}}}}}else{const se={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[se]:i.push(se),e++}var j=E===e;if(N=N||j,!N){const se=e;if(e===se)if(u&&typeof u=="object"&&!Array.isArray(u)){let z;if(u.lastModified===void 0&&(z="lastModified")||u.name===void 0&&(z="name")||u.size===void 0&&(z="size")||u.type===void 0&&(z="type")||u.webkitRelativePath===void 0&&(z="webkitRelativePath")){const H={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:z},message:"must have required property '"+z+"'"};i===null?i=[H]:i.push(H),e++}else{const H=e;for(const G in u)if(!(G==="size"||G==="type"||G==="lastModified"||G==="name"||G==="webkitRelativePath")){const K={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:G},message:"must NOT have additional properties"};i===null?i=[K]:i.push(K),e++;break}if(H===e){if(u.size!==void 0){let G=u.size;const K=e;if(!(typeof G=="number"&&isFinite(G))){const oe={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[oe]:i.push(oe),e++}var y=K===e}else var y=!0;if(y){if(u.type!==void 0){const G=e;if(typeof u.type!="string"){const oe={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[oe]:i.push(oe),e++}var y=G===e}else var y=!0;if(y){if(u.lastModified!==void 0){let G=u.lastModified;const K=e;if(!(typeof G=="number"&&isFinite(G))){const pe={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[pe]:i.push(pe),e++}var y=K===e}else var y=!0;if(y){if(u.name!==void 0){const G=e;if(typeof u.name!="string"){const oe={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[oe]:i.push(oe),e++}var y=G===e}else var y=!0;if(y)if(u.webkitRelativePath!==void 0){const G=e;if(typeof u.webkitRelativePath!="string"){const oe={instancePath:t+"/body/"+P.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[oe]:i.push(oe),e++}var y=G===e}else var y=!0}}}}}}else{const z={instancePath:t+"/body/"+P.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=[z]:i.push(z),e++}var j=se===e;N=N||j}}if(N)e=D,i!==null&&(D?i.length=D:i=null);else{const E={instancePath:t+"/body/"+P.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=[E]:i.push(E),e++}var C=B===e;if(!C)break}else{const P={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[P]:i.push(P),e++}var R=w===e;f=f||R}}if(f)e=ee,i!==null&&(ee?i.length=ee:i=null);else{const g={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[g]:i.push(g),e++,me.errors=i,!1}var d=X===e}else var d=!0}}}}}else return me.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return me.errors=i,e===0}const Dt={type:"object",properties:{relativeUri:{type:"string",description:"Request path following the domain:port part."},scriptPath:{type:"string",description:"Path of the .php file to execute."},protocol:{type:"string",description:"Request protocol."},method:{$ref:"#/definitions/HTTPMethod",description:"Request method. Default: `GET`."},headers:{$ref:"#/definitions/PHPRequestHeaders",description:"Request headers."},body:{anyOf:[{type:"string"},{type:"object",properties:{BYTES_PER_ELEMENT:{type:"number"},buffer:{type:"object",properties:{byteLength:{type:"number"}},required:["byteLength"],additionalProperties:!1},byteLength:{type:"number"},byteOffset:{type:"number"},length:{type:"number"}},required:["BYTES_PER_ELEMENT","buffer","byteLength","byteOffset","length"],additionalProperties:{type:"number"}}],description:"Request body."},env:{type:"object",additionalProperties:{type:"string"},description:"Environment variables to set for this run."},$_SERVER:{type:"object",additionalProperties:{type:"string"},description:"$_SERVER entries to set for this run."},code:{type:"string",description:"The code snippet to eval instead of a php file."}},additionalProperties:!1};function ne(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const V=e;for(const y in r)if(!Gr.call(Dt.properties,y))return ne.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(V===e){if(r.relativeUri!==void 0){const y=e;if(typeof r.relativeUri!="string")return ne.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=y===e}else var d=!0;if(d){if(r.scriptPath!==void 0){const y=e;if(typeof r.scriptPath!="string")return ne.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=y===e}else var d=!0;if(d){if(r.protocol!==void 0){const y=e;if(typeof r.protocol!="string")return ne.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=y===e}else var d=!0;if(d){if(r.method!==void 0){let y=r.method;const C=e;if(typeof y!="string")return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(y==="GET"||y==="POST"||y==="HEAD"||y==="OPTIONS"||y==="PATCH"||y==="PUT"||y==="DELETE"))return ne.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Jr.enum},message:"must be equal to one of the allowed values"}],!1;var d=C===e}else var d=!0;if(d){if(r.headers!==void 0){let y=r.headers;const C=e;if(e===e)if(y&&typeof y=="object"&&!Array.isArray(y))for(const O in y){const X=e;if(typeof y[O]!="string")return ne.errors=[{instancePath:t+"/headers/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=X===e;if(!h)break}else return ne.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=C===e}else var d=!0;if(d){if(r.body!==void 0){let y=r.body;const C=e,M=e;let I=!1;const O=e;if(typeof y!="string"){const ee={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ee]:i.push(ee),e++}var R=O===e;if(I=I||R,!I){const ee=e;if(e===ee)if(y&&typeof y=="object"&&!Array.isArray(y)){let q;if(y.BYTES_PER_ELEMENT===void 0&&(q="BYTES_PER_ELEMENT")||y.buffer===void 0&&(q="buffer")||y.byteLength===void 0&&(q="byteLength")||y.byteOffset===void 0&&(q="byteOffset")||y.length===void 0&&(q="length")){const L={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:q},message:"must have required property '"+q+"'"};i===null?i=[L]:i.push(L),e++}else{const L=e;for(const g in y)if(!(g==="BYTES_PER_ELEMENT"||g==="buffer"||g==="byteLength"||g==="byteOffset"||g==="length")){let b=y[g];const w=e;if(!(typeof b=="number"&&isFinite(b))){const x={instancePath:t+"/body/"+g.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=[x]:i.push(x),e++}var F=w===e;if(!F)break}if(L===e){if(y.BYTES_PER_ELEMENT!==void 0){let g=y.BYTES_PER_ELEMENT;const b=e;if(!(typeof g=="number"&&isFinite(g))){const w={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=[w]:i.push(w),e++}var v=b===e}else var v=!0;if(v){if(y.buffer!==void 0){let g=y.buffer;const b=e;if(e===b)if(g&&typeof g=="object"&&!Array.isArray(g)){let x;if(g.byteLength===void 0&&(x="byteLength")){const P={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:x},message:"must have required property '"+x+"'"};i===null?i=[P]:i.push(P),e++}else{const P=e;for(const u in g)if(u!=="byteLength"){const B={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:u},message:"must NOT have additional properties"};i===null?i=[B]:i.push(B),e++;break}if(P===e&&g.byteLength!==void 0){let u=g.byteLength;if(!(typeof u=="number"&&isFinite(u))){const B={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=[B]:i.push(B),e++}}}}else{const x={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[x]:i.push(x),e++}var v=b===e}else var v=!0;if(v){if(y.byteLength!==void 0){let g=y.byteLength;const b=e;if(!(typeof g=="number"&&isFinite(g))){const x={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[x]:i.push(x),e++}var v=b===e}else var v=!0;if(v){if(y.byteOffset!==void 0){let g=y.byteOffset;const b=e;if(!(typeof g=="number"&&isFinite(g))){const x={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[x]:i.push(x),e++}var v=b===e}else var v=!0;if(v)if(y.length!==void 0){let g=y.length;const b=e;if(!(typeof g=="number"&&isFinite(g))){const x={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[x]:i.push(x),e++}var v=b===e}else var v=!0}}}}}}else{const q={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[q]:i.push(q),e++}var R=ee===e;I=I||R}if(I)e=M,i!==null&&(M?i.length=M:i=null);else{const ee={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ee]:i.push(ee),e++,ne.errors=i,!1}var d=C===e}else var d=!0;if(d){if(r.env!==void 0){let y=r.env;const C=e;if(e===C)if(y&&typeof y=="object"&&!Array.isArray(y))for(const I in y){const O=e;if(typeof y[I]!="string")return ne.errors=[{instancePath:t+"/env/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=O===e;if(!j)break}else return ne.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=C===e}else var d=!0;if(d){if(r.$_SERVER!==void 0){let y=r.$_SERVER;const C=e;if(e===C)if(y&&typeof y=="object"&&!Array.isArray(y))for(const I in y){const O=e;if(typeof y[I]!="string")return ne.errors=[{instancePath:t+"/$_SERVER/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=O===e;if(!T)break}else return ne.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=C===e}else var d=!0;if(d)if(r.code!==void 0){const y=e;if(typeof r.code!="string")return ne.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=y===e}else var d=!0}}}}}}}}}else return ne.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return ne.errors=i,e===0}function o(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){let nr;if(r.step===void 0&&(nr="step"))return o.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:nr},message:"must have required property '"+nr+"'"}],!1;{const J=r.step;if(typeof J=="string")if(J==="activatePlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.pluginPath===void 0&&(l="pluginPath")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="pluginPath"||s==="pluginName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var d=A===e}else var d=!0;if(d)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=n===e}else var d=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=a===e}else var h=!0;if(h){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="activatePlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var h=a===e}else var h=!0;if(h){if(r.pluginPath!==void 0){const s=e;if(typeof r.pluginPath!="string")return o.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=s===e}else var h=!0;if(h)if(r.pluginName!==void 0){const s=e;if(typeof r.pluginName!="string")return o.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=s===e}else var h=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="activateTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step")||r.themeFolderName===void 0&&(l="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeFolderName"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var R=A===e}else var R=!0;if(R)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=n===e}else var R=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var F=a===e}else var F=!0;if(F){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="activateTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var F=a===e}else var F=!0;if(F)if(r.themeFolderName!==void 0){const s=e;if(typeof r.themeFolderName!="string")return o.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var F=s===e}else var F=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="cp"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.fromPath===void 0&&(l="fromPath")||r.step===void 0&&(l="step")||r.toPath===void 0&&(l="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var v=A===e}else var v=!0;if(v)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var v=n===e}else var v=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var j=a===e}else var j=!0;if(j){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="cp")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var j=a===e}else var j=!0;if(j){if(r.fromPath!==void 0){const s=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=s===e}else var j=!0;if(j)if(r.toPath!==void 0){const s=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var j=s===e}else var j=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="defineWpConfigConsts"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.consts===void 0&&(l="consts")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="consts"||s==="method"||s==="virtualize"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var T=A===e}else var T=!0;if(T)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=n===e}else var T=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var V=a===e}else var V=!0;if(V){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="defineWpConfigConsts")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var V=a===e}else var V=!0;if(V){if(r.consts!==void 0){let s=r.consts;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var V=a===e}else var V=!0;if(V){if(r.method!==void 0){let s=r.method;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="rewrite-wp-config"||s==="define-before-run"))return o.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:er.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var V=a===e}else var V=!0;if(V)if(r.virtualize!==void 0){const s=e;if(typeof r.virtualize!="boolean")return o.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var V=s===e}else var V=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="defineSiteUrl"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.siteUrl===void 0&&(l="siteUrl")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="siteUrl"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/4/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var y=A===e}else var y=!0;if(y)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/4/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var y=n===e}else var y=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var C=a===e}else var C=!0;if(C){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="defineSiteUrl")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var C=a===e}else var C=!0;if(C)if(r.siteUrl!==void 0){const s=e;if(typeof r.siteUrl!="string")return o.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=s===e}else var C=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="enableMultisite"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var M=A===e}else var M=!0;if(M)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=n===e}else var M=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var I=a===e}else var I=!0;if(I){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="enableMultisite")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var I=a===e}else var I=!0;if(I)if(r.wpCliPath!==void 0){const s=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=s===e}else var I=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="importWxr"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.file===void 0&&(l="file")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="file"||s==="importer"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var O=A===e}else var O=!0;if(O)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=n===e}else var O=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var X=a===e}else var X=!0;if(X){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importWxr")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var X=a===e}else var X=!0;if(X){if(r.file!==void 0){const s=e;_(r.file,{instancePath:t+"/file",parentData:r,parentDataProperty:"file",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var X=s===e}else var X=!0;if(X)if(r.importer!==void 0){let s=r.importer;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="data-liberation"||s==="default"))return o.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:er.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var X=a===e}else var X=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="importThemeStarterContent"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="themeSlug"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ee=A===e}else var ee=!0;if(ee)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=n===e}else var ee=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=a===e}else var f=!0;if(f){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importThemeStarterContent")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var f=a===e}else var f=!0;if(f)if(r.themeSlug!==void 0){const s=e;if(typeof r.themeSlug!="string")return o.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=s===e}else var f=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="importWordPressFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step")||r.wordPressFilesZip===void 0&&(l="wordPressFilesZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="wordPressFilesZip"||s==="pathInZip"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var q=A===e}else var q=!0;if(q)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var q=n===e}else var q=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var L=a===e}else var L=!0;if(L){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="importWordPressFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var L=a===e}else var L=!0;if(L){if(r.wordPressFilesZip!==void 0){const s=e;_(r.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:r,parentDataProperty:"wordPressFilesZip",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var L=s===e}else var L=!0;if(L)if(r.pathInZip!==void 0){const s=e;if(typeof r.pathInZip!="string")return o.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=s===e}else var L=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="installPlugin"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.pluginData===void 0&&(l="pluginData")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="pluginData"||s==="pluginZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var g=A===e}else var g=!0;if(g)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=n===e}else var g=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var b=a===e}else var b=!0;if(b){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:er.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var b=a===e}else var b=!0;if(b){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="installPlugin")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var b=a===e}else var b=!0;if(b){if(r.pluginData!==void 0){let s=r.pluginData;const a=e,k=e;let n=!1;const A=e;_(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var w=A===e;if(n=n||w,!n){const ie=e;ye(s,{instancePath:t+"/pluginData",parentData:r,parentDataProperty:"pluginData",rootData:m})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var w=ie===e;n=n||w}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var b=a===e}else var b=!0;if(b){if(r.pluginZipFile!==void 0){const s=e;_(r.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:r,parentDataProperty:"pluginZipFile",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var b=s===e}else var b=!0;if(b)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const A=e;for(const te in s)if(!(te==="activate"||te==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(A===e){if(s.activate!==void 0){const te=e;if(typeof s.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var x=te===e}else var x=!0;if(x)if(s.targetFolderName!==void 0){const te=e;if(typeof s.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var x=te===e}else var x=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var b=a===e}else var b=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="installTheme"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step")||r.themeData===void 0&&(l="themeData"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="ifAlreadyInstalled"||s==="step"||s==="themeData"||s==="themeZipFile"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var P=A===e}else var P=!0;if(P)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var P=n===e}else var P=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=a===e}else var u=!0;if(u){if(r.ifAlreadyInstalled!==void 0){let s=r.ifAlreadyInstalled;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(s==="overwrite"||s==="skip"||s==="error"))return o.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:er.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var u=a===e}else var u=!0;if(u){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="installTheme")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var u=a===e}else var u=!0;if(u){if(r.themeData!==void 0){let s=r.themeData;const a=e,k=e;let n=!1;const A=e;_(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var B=A===e;if(n=n||B,!n){const ie=e;ye(s,{instancePath:t+"/themeData",parentData:r,parentDataProperty:"themeData",rootData:m})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var B=ie===e;n=n||B}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var u=a===e}else var u=!0;if(u){if(r.themeZipFile!==void 0){const s=e;_(r.themeZipFile,{instancePath:t+"/themeZipFile",parentData:r,parentDataProperty:"themeZipFile",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var u=s===e}else var u=!0;if(u)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const A=e;for(const te in s)if(!(te==="activate"||te==="importStarterContent"||te==="targetFolderName"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(A===e){if(s.activate!==void 0){const te=e;if(typeof s.activate!="boolean")return o.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var D=te===e}else var D=!0;if(D){if(s.importStarterContent!==void 0){const te=e;if(typeof s.importStarterContent!="boolean")return o.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var D=te===e}else var D=!0;if(D)if(s.targetFolderName!==void 0){const te=e;if(typeof s.targetFolderName!="string")return o.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var D=te===e}else var D=!0}}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var u=a===e}else var u=!0}}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="login"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="username"||s==="password"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var N=A===e}else var N=!0;if(N)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var N=n===e}else var N=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Z=a===e}else var Z=!0;if(Z){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="login")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var Z=a===e}else var Z=!0;if(Z){if(r.username!==void 0){const s=e;if(typeof r.username!="string")return o.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=s===e}else var Z=!0;if(Z)if(r.password!==void 0){const s=e;if(typeof r.password!="string")return o.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=s===e}else var Z=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="mkdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var E=A===e}else var E=!0;if(E)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=n===e}else var E=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Q=a===e}else var Q=!0;if(Q){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="mkdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var Q=a===e}else var Q=!0;if(Q)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=s===e}else var Q=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="mv"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.fromPath===void 0&&(l="fromPath")||r.step===void 0&&(l="step")||r.toPath===void 0&&(l="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="fromPath"||s==="toPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var se=A===e}else var se=!0;if(se)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var se=n===e}else var se=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Y=a===e}else var Y=!0;if(Y){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="mv")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var Y=a===e}else var Y=!0;if(Y){if(r.fromPath!==void 0){const s=e;if(typeof r.fromPath!="string")return o.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=s===e}else var Y=!0;if(Y)if(r.toPath!==void 0){const s=e;if(typeof r.toPath!="string")return o.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=s===e}else var Y=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="resetData"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var z=A===e}else var z=!0;if(z)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=n===e}else var z=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=a===e}else var H=!0;if(H)if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="resetData")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var H=a===e}else var H=!0}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="request"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.request===void 0&&(l="request")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="request"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var G=A===e}else var G=!0;if(G)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=n===e}else var G=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var K=a===e}else var K=!0;if(K){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="request")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var K=a===e}else var K=!0;if(K)if(r.request!==void 0){const s=e;me(r.request,{instancePath:t+"/request",parentData:r,parentDataProperty:"request",rootData:m})||(i=i===null?me.errors:i.concat(me.errors),e=i.length);var K=s===e}else var K=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="rm"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var oe=A===e}else var oe=!0;if(oe)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var oe=n===e}else var oe=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=a===e}else var pe=!0;if(pe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="rm")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var pe=a===e}else var pe=!0;if(pe)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var pe=s===e}else var pe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="rmdir"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ge=A===e}else var ge=!0;if(ge)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ge=n===e}else var ge=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ke=a===e}else var ke=!0;if(ke){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="rmdir")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var ke=a===e}else var ke=!0;if(ke)if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ke=s===e}else var ke=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runPHP"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.code===void 0&&(l="code")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="code"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ze=A===e}else var ze=!0;if(ze)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ze=n===e}else var ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var je=a===e}else var je=!0;if(je){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runPHP")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var je=a===e}else var je=!0;if(je)if(r.code!==void 0){const s=e;if(typeof r.code!="string")return o.errors=[{instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var je=s===e}else var je=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runPHPWithOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.options===void 0&&(l="options")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Se=A===e}else var Se=!0;if(Se)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Se=n===e}else var Se=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ae=a===e}else var Ae=!0;if(Ae){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runPHPWithOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var Ae=a===e}else var Ae=!0;if(Ae)if(r.options!==void 0){const s=e;ne(r.options,{instancePath:t+"/options",parentData:r,parentDataProperty:"options",rootData:m})||(i=i===null?ne.errors:i.concat(ne.errors),e=i.length);var Ae=s===e}else var Ae=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runWpInstallationWizard"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.options===void 0&&(l="options")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Le=A===e}else var Le=!0;if(Le)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Le=n===e}else var Le=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Te=a===e}else var Te=!0;if(Te){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runWpInstallationWizard")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var Te=a===e}else var Te=!0;if(Te)if(r.options!==void 0){let s=r.options;const a=e;if(e===e)if(s&&typeof s=="object"&&!Array.isArray(s)){const A=e;for(const te in s)if(!(te==="adminUsername"||te==="adminPassword"))return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:te},message:"must NOT have additional properties"}],!1;if(A===e){if(s.adminUsername!==void 0){const te=e;if(typeof s.adminUsername!="string")return o.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=te===e}else var Ce=!0;if(Ce)if(s.adminPassword!==void 0){const te=e;if(typeof s.adminPassword!="string")return o.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=te===e}else var Ce=!0}}else return o.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Te=a===e}else var Te=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="runSql"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.sql===void 0&&(l="sql")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="sql"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Xe=A===e}else var Xe=!0;if(Xe)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Xe=n===e}else var Xe=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var xe=a===e}else var xe=!0;if(xe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="runSql")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var xe=a===e}else var xe=!0;if(xe)if(r.sql!==void 0){const s=e;_(r.sql,{instancePath:t+"/sql",parentData:r,parentDataProperty:"sql",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var xe=s===e}else var xe=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="setSiteOptions"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.options===void 0&&(l="options")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="options"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ze=A===e}else var Ze=!0;if(Ze)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ze=n===e}else var Ze=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var De=a===e}else var De=!0;if(De){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="setSiteOptions")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var De=a===e}else var De=!0;if(De)if(r.options!==void 0){let s=r.options;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var De=a===e}else var De=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="unzip"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.extractToPath===void 0&&(l="extractToPath")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="zipFile"||s==="zipPath"||s==="extractToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Me=A===e}else var Me=!0;if(Me)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Me=n===e}else var Me=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var le=a===e}else var le=!0;if(le){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="unzip")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var le=a===e}else var le=!0;if(le){if(r.zipFile!==void 0){const s=e;_(r.zipFile,{instancePath:t+"/zipFile",parentData:r,parentDataProperty:"zipFile",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var le=s===e}else var le=!0;if(le){if(r.zipPath!==void 0){const s=e;if(typeof r.zipPath!="string")return o.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=s===e}else var le=!0;if(le)if(r.extractToPath!==void 0){const s=e;if(typeof r.extractToPath!="string")return o.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=s===e}else var le=!0}}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="updateUserMeta"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.meta===void 0&&(l="meta")||r.step===void 0&&(l="step")||r.userId===void 0&&(l="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="meta"||s==="userId"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ue=A===e}else var Ue=!0;if(Ue)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ue=n===e}else var Ue=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var he=a===e}else var he=!0;if(he){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="updateUserMeta")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var he=a===e}else var he=!0;if(he){if(r.meta!==void 0){let s=r.meta;const a=e;if(e===a&&!(s&&typeof s=="object"&&!Array.isArray(s)))return o.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var he=a===e}else var he=!0;if(he)if(r.userId!==void 0){let s=r.userId;const a=e;if(!(typeof s=="number"&&isFinite(s)))return o.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var he=a===e}else var he=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="writeFile"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.data===void 0&&(l="data")||r.path===void 0&&(l="path")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="path"||s==="data"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var He=A===e}else var He=!0;if(He)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var He=n===e}else var He=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var be=a===e}else var be=!0;if(be){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="writeFile")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var be=a===e}else var be=!0;if(be){if(r.path!==void 0){const s=e;if(typeof r.path!="string")return o.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var be=s===e}else var be=!0;if(be)if(r.data!==void 0){let s=r.data;const a=e,k=e;let n=!1;const A=e;_(s,{instancePath:t+"/data",parentData:r,parentDataProperty:"data",rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var Fe=A===e;if(n=n||Fe,!n){const ie=e;if(typeof s!="string"){const ve={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ve]:i.push(ve),e++}var Fe=ie===e;if(n=n||Fe,!n){const ve=e;if(e===ve)if(s&&typeof s=="object"&&!Array.isArray(s)){let ce;if(s.BYTES_PER_ELEMENT===void 0&&(ce="BYTES_PER_ELEMENT")||s.buffer===void 0&&(ce="buffer")||s.byteLength===void 0&&(ce="byteLength")||s.byteOffset===void 0&&(ce="byteOffset")||s.length===void 0&&(ce="length")){const Ge={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:ce},message:"must have required property '"+ce+"'"};i===null?i=[Ge]:i.push(Ge),e++}else{const Ge=e;for(const $ in s)if(!($==="BYTES_PER_ELEMENT"||$==="buffer"||$==="byteLength"||$==="byteOffset"||$==="length")){let ue=s[$];const Je=e;if(!(typeof ue=="number"&&isFinite(ue))){const ae={instancePath:t+"/data/"+$.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var _r=Je===e;if(!_r)break}if(Ge===e){if(s.BYTES_PER_ELEMENT!==void 0){let $=s.BYTES_PER_ELEMENT;const ue=e;if(!(typeof $=="number"&&isFinite($))){const Je={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=[Je]:i.push(Je),e++}var de=ue===e}else var de=!0;if(de){if(s.buffer!==void 0){let $=s.buffer;const ue=e;if(e===ue)if($&&typeof $=="object"&&!Array.isArray($)){let ae;if($.byteLength===void 0&&(ae="byteLength")){const _e={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:ae},message:"must have required property '"+ae+"'"};i===null?i=[_e]:i.push(_e),e++}else{const _e=e;for(const Ee in $)if(Ee!=="byteLength"){const We={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Ee},message:"must NOT have additional properties"};i===null?i=[We]:i.push(We),e++;break}if(_e===e&&$.byteLength!==void 0){let Ee=$.byteLength;if(!(typeof Ee=="number"&&isFinite(Ee))){const We={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=[We]:i.push(We),e++}}}}else{const ae={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[ae]:i.push(ae),e++}var de=ue===e}else var de=!0;if(de){if(s.byteLength!==void 0){let $=s.byteLength;const ue=e;if(!(typeof $=="number"&&isFinite($))){const ae={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var de=ue===e}else var de=!0;if(de){if(s.byteOffset!==void 0){let $=s.byteOffset;const ue=e;if(!(typeof $=="number"&&isFinite($))){const ae={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var de=ue===e}else var de=!0;if(de)if(s.length!==void 0){let $=s.length;const ue=e;if(!(typeof $=="number"&&isFinite($))){const ae={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};i===null?i=[ae]:i.push(ae),e++}var de=ue===e}else var de=!0}}}}}}else{const ce={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[ce]:i.push(ce),e++}var Fe=ve===e;n=n||Fe}}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var be=a===e}else var be=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="writeFiles"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.filesTree===void 0&&(l="filesTree")||r.step===void 0&&(l="step")||r.writeToPath===void 0&&(l="writeToPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="writeToPath"||s==="filesTree"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Qe=A===e}else var Qe=!0;if(Qe)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Qe=n===e}else var Qe=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var we=a===e}else var we=!0;if(we){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="writeFiles")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var we=a===e}else var we=!0;if(we){if(r.writeToPath!==void 0){const s=e;if(typeof r.writeToPath!="string")return o.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var we=s===e}else var we=!0;if(we)if(r.filesTree!==void 0){const s=e;ye(r.filesTree,{instancePath:t+"/filesTree",parentData:r,parentDataProperty:"filesTree",rootData:m})||(i=i===null?ye.errors:i.concat(ye.errors),e=i.length);var we=s===e}else var we=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="wp-cli"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.command===void 0&&(l="command")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="command"||s==="wpCliPath"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ye=A===e}else var Ye=!0;if(Ye)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ye=n===e}else var Ye=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Pe=a===e}else var Pe=!0;if(Pe){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="wp-cli")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var Pe=a===e}else var Pe=!0;if(Pe){if(r.command!==void 0){let s=r.command;const a=e,k=e;let n=!1;const A=e;if(typeof s!="string"){const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[ie]:i.push(ie),e++}var or=A===e;if(n=n||or,!n){const ie=e;if(e===ie)if(Array.isArray(s)){var wr=!0;const ve=s.length;for(let Ie=0;Ie<ve;Ie++){const ce=e;if(typeof s[Ie]!="string"){const $={instancePath:t+"/command/"+Ie,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[$]:i.push($),e++}var wr=ce===e;if(!wr)break}}else{const ve={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};i===null?i=[ve]:i.push(ve),e++}var or=ie===e;n=n||or}if(n)e=k,i!==null&&(k?i.length=k:i=null);else{const ie={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[ie]:i.push(ie),e++,o.errors=i,!1}var Pe=a===e}else var Pe=!0;if(Pe)if(r.wpCliPath!==void 0){const s=e;if(typeof r.wpCliPath!="string")return o.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Pe=s===e}else var Pe=!0}}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(J==="setSiteLanguage"){if(e===e)if(r&&typeof r=="object"&&!Array.isArray(r)){let l;if(r.language===void 0&&(l="language")||r.step===void 0&&(l="step"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:l},message:"must have required property '"+l+"'"}],!1;{const W=e;for(const s in r)if(!(s==="progress"||s==="step"||s==="language"))return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:s},message:"must NOT have additional properties"}],!1;if(W===e){if(r.progress!==void 0){let s=r.progress;const a=e;if(e===a)if(s&&typeof s=="object"&&!Array.isArray(s)){const k=e;for(const n in s)if(!(n==="weight"||n==="caption"))return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:n},message:"must NOT have additional properties"}],!1;if(k===e){if(s.weight!==void 0){let n=s.weight;const A=e;if(!(typeof n=="number"&&isFinite(n)))return o.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Ke=A===e}else var Ke=!0;if(Ke)if(s.caption!==void 0){const n=e;if(typeof s.caption!="string")return o.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ke=n===e}else var Ke=!0}}else return o.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ne=a===e}else var Ne=!0;if(Ne){if(r.step!==void 0){let s=r.step;const a=e;if(typeof s!="string")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(s!=="setSiteLanguage")return o.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var Ne=a===e}else var Ne=!0;if(Ne)if(r.language!==void 0){const s=e;if(typeof r.language!="string")return o.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ne=s===e}else var Ne=!0}}}}else return o.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:J},message:'value of tag "step" must be in oneOf'}],!1;else return o.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:J},message:'tag "step" must be string'}],!1}}else return o.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return o.errors=i,e===0}function U(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;if(e===0)if(r&&typeof r=="object"&&!Array.isArray(r)){const ee=e;for(const f in r)if(!Gr.call(jt.properties,f))return U.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:f},message:"must NOT have additional properties"}],!1;if(ee===e){if(r.landingPage!==void 0){const f=e;if(typeof r.landingPage!="string")return U.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=f===e}else var d=!0;if(d){if(r.description!==void 0){const f=e;if(typeof r.description!="string")return U.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=f===e}else var d=!0;if(d){if(r.meta!==void 0){let f=r.meta;const q=e;if(e===q)if(f&&typeof f=="object"&&!Array.isArray(f)){let g;if(f.title===void 0&&(g="title")||f.author===void 0&&(g="author"))return U.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:g},message:"must have required property '"+g+"'"}],!1;{const b=e;for(const w in f)if(!(w==="title"||w==="description"||w==="author"||w==="categories"))return U.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties"}],!1;if(b===e){if(f.title!==void 0){const w=e;if(typeof f.title!="string")return U.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=w===e}else var h=!0;if(h){if(f.description!==void 0){const w=e;if(typeof f.description!="string")return U.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=w===e}else var h=!0;if(h){if(f.author!==void 0){const w=e;if(typeof f.author!="string")return U.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=w===e}else var h=!0;if(h)if(f.categories!==void 0){let w=f.categories;const x=e;if(e===x)if(Array.isArray(w)){var R=!0;const u=w.length;for(let B=0;B<u;B++){const D=e;if(typeof w[B]!="string")return U.errors=[{instancePath:t+"/meta/categories/"+B,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var R=D===e;if(!R)break}}else return U.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var h=x===e}else var h=!0}}}}}else return U.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=q===e}else var d=!0;if(d){if(r.preferredVersions!==void 0){let f=r.preferredVersions;const q=e;if(e===q)if(f&&typeof f=="object"&&!Array.isArray(f)){let g;if(f.php===void 0&&(g="php")||f.wp===void 0&&(g="wp"))return U.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:g},message:"must have required property '"+g+"'"}],!1;{const b=e;for(const w in f)if(!(w==="php"||w==="wp"))return U.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:w},message:"must NOT have additional properties"}],!1;if(b===e){if(f.php!==void 0){let w=f.php;const x=e,P=e;let u=!1;const B=e;if(typeof w!="string"){const D={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[D]:i.push(D),e++}if(!(w==="8.4"||w==="8.3"||w==="8.2"||w==="8.1"||w==="8.0"||w==="7.4"||w==="7.3"||w==="7.2"||w==="7.1"||w==="7.0")){const D={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:At.enum},message:"must be equal to one of the allowed values"};i===null?i=[D]:i.push(D),e++}var F=B===e;if(u=u||F,!u){const D=e;if(typeof w!="string"){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Z]:i.push(Z),e++}if(w!=="latest"){const Z={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=[Z]:i.push(Z),e++}var F=D===e;u=u||F}if(u)e=P,i!==null&&(P?i.length=P:i=null);else{const D={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[D]:i.push(D),e++,U.errors=i,!1}var v=x===e}else var v=!0;if(v)if(f.wp!==void 0){const w=e;if(typeof f.wp!="string")return U.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var v=w===e}else var v=!0}}}else return U.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=q===e}else var d=!0;if(d){if(r.features!==void 0){let f=r.features;const q=e;if(e===q)if(f&&typeof f=="object"&&!Array.isArray(f)){const g=e;for(const b in f)if(b!=="networking")return U.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:b},message:"must NOT have additional properties"}],!1;if(g===e&&f.networking!==void 0&&typeof f.networking!="boolean")return U.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1}else return U.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=q===e}else var d=!0;if(d){if(r.extraLibraries!==void 0){let f=r.extraLibraries;const q=e;if(e===q)if(Array.isArray(f)){var j=!0;const g=f.length;for(let b=0;b<g;b++){let w=f[b];const x=e;if(typeof w!="string")return U.errors=[{instancePath:t+"/extraLibraries/"+b,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(w!=="wp-cli")return U.errors=[{instancePath:t+"/extraLibraries/"+b,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var j=x===e;if(!j)break}}else return U.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=q===e}else var d=!0;if(d){if(r.constants!==void 0){let f=r.constants;const q=e;if(e===e)if(f&&typeof f=="object"&&!Array.isArray(f))for(const b in f){let w=f[b];const x=e;if(typeof w!="string"&&typeof w!="boolean"&&!(typeof w=="number"&&isFinite(w)))return U.errors=[{instancePath:t+"/constants/"+b.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:Tt.additionalProperties.type},message:"must be string,boolean,number"}],!1;var T=x===e;if(!T)break}else return U.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=q===e}else var d=!0;if(d){if(r.plugins!==void 0){let f=r.plugins;const q=e;if(e===q)if(Array.isArray(f)){var V=!0;const g=f.length;for(let b=0;b<g;b++){let w=f[b];const x=e,P=e;let u=!1;const B=e;if(typeof w!="string"){const N={instancePath:t+"/plugins/"+b,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[N]:i.push(N),e++}var y=B===e;if(u=u||y,!u){const N=e;_(w,{instancePath:t+"/plugins/"+b,parentData:f,parentDataProperty:b,rootData:m})||(i=i===null?_.errors:i.concat(_.errors),e=i.length);var y=N===e;u=u||y}if(u)e=P,i!==null&&(P?i.length=P:i=null);else{const N={instancePath:t+"/plugins/"+b,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[N]:i.push(N),e++,U.errors=i,!1}var V=x===e;if(!V)break}}else return U.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=q===e}else var d=!0;if(d){if(r.siteOptions!==void 0){let f=r.siteOptions;const q=e;if(e===q)if(f&&typeof f=="object"&&!Array.isArray(f)){const g=e;for(const b in f)if(b!=="blogname"){const w=e;if(typeof f[b]!="string")return U.errors=[{instancePath:t+"/siteOptions/"+b.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=w===e;if(!C)break}if(g===e&&f.blogname!==void 0&&typeof f.blogname!="string")return U.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return U.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=q===e}else var d=!0;if(d){if(r.login!==void 0){let f=r.login;const q=e,L=e;let g=!1;const b=e;if(typeof f!="boolean"){const x={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[x]:i.push(x),e++}var M=b===e;if(g=g||M,!g){const x=e;if(e===x)if(f&&typeof f=="object"&&!Array.isArray(f)){let u;if(f.username===void 0&&(u="username")||f.password===void 0&&(u="password")){const B={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:u},message:"must have required property '"+u+"'"};i===null?i=[B]:i.push(B),e++}else{const B=e;for(const D in f)if(!(D==="username"||D==="password")){const N={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:D},message:"must NOT have additional properties"};i===null?i=[N]:i.push(N),e++;break}if(B===e){if(f.username!==void 0){const D=e;if(typeof f.username!="string"){const N={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[N]:i.push(N),e++}var I=D===e}else var I=!0;if(I)if(f.password!==void 0){const D=e;if(typeof f.password!="string"){const Z={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[Z]:i.push(Z),e++}var I=D===e}else var I=!0}}}else{const u={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};i===null?i=[u]:i.push(u),e++}var M=x===e;g=g||M}if(g)e=L,i!==null&&(L?i.length=L:i=null);else{const x={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[x]:i.push(x),e++,U.errors=i,!1}var d=q===e}else var d=!0;if(d){if(r.steps!==void 0){let f=r.steps;const q=e;if(e===q)if(Array.isArray(f)){var O=!0;const g=f.length;for(let b=0;b<g;b++){let w=f[b];const x=e,P=e;let u=!1;const B=e;o(w,{instancePath:t+"/steps/"+b,parentData:f,parentDataProperty:b,rootData:m})||(i=i===null?o.errors:i.concat(o.errors),e=i.length);var X=B===e;if(u=u||X,!u){const N=e;if(typeof w!="string"){const E={instancePath:t+"/steps/"+b,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};i===null?i=[E]:i.push(E),e++}var X=N===e;if(u=u||X,!u){const E=e,Q={instancePath:t+"/steps/"+b,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};i===null?i=[Q]:i.push(Q),e++;var X=E===e;if(u=u||X,!u){const Y=e;if(typeof w!="boolean"){const H={instancePath:t+"/steps/"+b,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};i===null?i=[H]:i.push(H),e++}if(w!==!1){const H={instancePath:t+"/steps/"+b,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};i===null?i=[H]:i.push(H),e++}var X=Y===e;if(u=u||X,!u){const H=e;if(w!==null){const K={instancePath:t+"/steps/"+b,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};i===null?i=[K]:i.push(K),e++}var X=H===e;u=u||X}}}}if(u)e=P,i!==null&&(P?i.length=P:i=null);else{const N={instancePath:t+"/steps/"+b,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return i===null?i=[N]:i.push(N),e++,U.errors=i,!1}var O=x===e;if(!O)break}}else return U.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var d=q===e}else var d=!0;if(d)if(r.$schema!==void 0){const f=e;if(typeof r.$schema!="string")return U.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var d=f===e}else var d=!0}}}}}}}}}}}}else return U.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return U.errors=i,e===0}function rr(r,{instancePath:t="",parentData:p,parentDataProperty:c,rootData:m=r}={}){let i=null,e=0;return U(r,{instancePath:t,parentData:p,parentDataProperty:c,rootData:m})||(i=i===null?U.errors:i.concat(U.errors),e=i.length),rr.errors=i,e===0}const{wpCLI:Nt,...vr}=lt,Vt={...vr,"wp-cli":Nt,importFile:vr.importWxr};function Ft(r,{progress:t=new kr.ProgressTracker,semaphore:p=new S.Semaphore({concurrency:3}),onStepCompleted:c=()=>{},corsProxy:m}={}){var j,T,V,y,C,M,I,O,X,ee;r=structuredClone(r),r={...r,steps:(r.steps||[]).filter(Rt).filter(Bt)};for(const f of r.steps)!f||typeof f!="object"||(f.step==="importFile"?(f.step="importWxr",fe.logger.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(f==null?void 0:f.step)==="installPlugin"&&"pluginZipFile"in f?(f.pluginData=f.pluginZipFile,fe.logger.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(f==null?void 0:f.step)==="installTheme"&&"themeZipFile"in f&&(f.themeData=f.themeZipFile,fe.logger.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(r.constants&&r.steps.unshift({step:"defineWpConfigConsts",consts:r.constants}),r.siteOptions&&r.steps.unshift({step:"setSiteOptions",options:r.siteOptions}),r.plugins){const f=r.plugins.map(q=>typeof q=="string"?q.startsWith("https://")?{resource:"url",url:q}:{resource:"wordpress.org/plugins",slug:q}:q).map(q=>({step:"installPlugin",pluginData:q}));r.steps.unshift(...f)}r.login&&r.steps.push({step:"login",...r.login===!0?{username:"admin"}:r.login});const i=((j=r.steps)==null?void 0:j.findIndex(f=>typeof f=="object"&&(f==null?void 0:f.step)&&["wp-cli","enableMultisite"].includes(f.step)))??-1;if((T=r==null?void 0:r.extraLibraries)!=null&&T.includes("wp-cli")||i!==-1){const f={step:"writeFile",data:st,path:cr};i===-1?(V=r.steps)==null||V.push(f):(y=r.steps)==null||y.splice(i,0,f)}const e=(C=r.steps)==null?void 0:C.findIndex(f=>typeof f=="object"&&(f==null?void 0:f.step)==="importWxr");e!==void 0&&e>-1&&(r.steps[e].importer==="data-liberation"?(M=r.steps)==null||M.splice(e,0,{step:"writeFile",path:"/internal/shared/data-liberation-core.phar",data:{resource:"url",url:kt,caption:"Downloading the Data Liberation WXR importer"}}):(I=r.steps)==null||I.splice(e,0,{step:"installPlugin",pluginData:{resource:"url",url:"https://playground.wordpress.net/wordpress-importer.zip",caption:"Downloading the WordPress Importer plugin"}}));const{valid:d,errors:h}=Et(r);if(!d){const f=new Error(`Invalid blueprint: ${h[0].message} at ${h[0].instancePath}`);throw f.errors=h,f}const R=r.steps||[],F=R.reduce((f,q)=>{var L;return f+(((L=q.progress)==null?void 0:L.weight)||1)},0),v=R.map(f=>zt(f,{semaphore:p,rootProgressTracker:t,totalProgressWeight:F,corsProxy:m}));return{versions:{php:Wt((O=r.preferredVersions)==null?void 0:O.php,Re.SupportedPHPVersions,Re.LatestSupportedPHPVersion),wp:((X=r.preferredVersions)==null?void 0:X.wp)||"latest"},features:{networking:((ee=r.features)==null?void 0:ee.networking)??!1},extraLibraries:r.extraLibraries||[],run:async f=>{try{for(const{resources:q}of v)for(const L of q)L.setPlayground(f),L.isAsync&&L.resolve();for(const[q,{run:L,step:g}]of Object.entries(v))try{const b=await L(f);c(b,g)}catch(b){throw fe.logger.error(b),new Error(`Error when executing the blueprint step #${q} (${JSON.stringify(g)}) ${b instanceof Error?`: ${b.message}`:b}`,{cause:b})}}finally{try{await f.goTo(r.landingPage||"/")}catch{}t.finish()}}}}function Et(r){var m;const t=rr(r);if(t)return{valid:t};const p=new Set;for(const i of rr.errors)i.schemaPath.startsWith("#/properties/steps/items/anyOf")||p.add(i.instancePath);const c=(m=rr.errors)==null?void 0:m.filter(i=>!(i.schemaPath.startsWith("#/properties/steps/items/anyOf")&&p.has(i.instancePath)));return{valid:t,errors:c}}function Wt(r,t,p){return r&&t.includes(r)?r:p}function Rt(r){return!!(typeof r=="object"&&r)}function Bt(r){return["setPhpIniEntry","request"].includes(r.step)?(fe.logger.warn(`The "${r.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function zt(r,{semaphore:t,rootProgressTracker:p,totalProgressWeight:c,corsProxy:m}){var v;const i=p.stage((((v=r.progress)==null?void 0:v.weight)||1)/c),e={};for(const j of Object.keys(r)){let T=r[j];ut(T)&&(T=qe.create(T,{semaphore:t,corsProxy:m})),e[j]=T}const d=async j=>{var T;try{return i.fillSlowly(),await Vt[r.step](j,await St(e),{tracker:i,initialCaption:(T=r.progress)==null?void 0:T.caption})}finally{i.finish()}},h=Or(e),R=Or(e).filter(j=>j.isAsync),F=1/(R.length+1);for(const j of R)j.progress=i.stage(F);return{run:d,step:r,resources:h}}function Or(r){const t=[];for(const p in r){const c=r[p];c instanceof qe&&t.push(c)}return t}async function St(r){const t={};for(const p in r){const c=r[p];c instanceof qe?t[p]=await c.resolve():t[p]=c}return t}async function Lt(r,t){await r.run(t)}function Ct(){}exports.activatePlugin=lr;exports.activateTheme=dr;exports.compileBlueprint=Ft;exports.cp=Fr;exports.defineSiteUrl=gr;exports.defineWpConfigConsts=tr;exports.enableMultisite=Vr;exports.exportWXR=Lr;exports.importThemeStarterContent=hr;exports.importWordPressFiles=Sr;exports.importWxr=zr;exports.installPlugin=Xr;exports.installTheme=Zr;exports.login=Mr;exports.mkdir=Wr;exports.mv=Er;exports.request=xr;exports.resetData=Ur;exports.rm=ur;exports.rmdir=Rr;exports.runBlueprintSteps=Lt;exports.runPHP=jr;exports.runPHPWithOptions=Ar;exports.runSql=Tr;exports.runWpInstallationWizard=Hr;exports.setPluginProxyURL=Ct;exports.setSiteLanguage=Yr;exports.setSiteOptions=mr;exports.unzip=sr;exports.updateUserMeta=Dr;exports.wpCLI=yr;exports.wpContentFilesExcludedFromExport=fr;exports.writeFile=Be;exports.writeFiles=Br;exports.zipWpContent=Qr;
813
813
  //# sourceMappingURL=index.cjs.map