@wp-playground/client 3.0.18 → 3.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs +2 -2
  2. package/index.js +2 -2
  3. package/package.json +2 -2
package/index.cjs CHANGED
@@ -689,7 +689,7 @@ This will ensure your code works reliably regardless of the current working dire
689
689
  define('STDERR', fopen('php://stderr', 'wb'));
690
690
 
691
691
  require( ${ht(r)} );
692
- `);const f=await e.run({scriptPath:Ae(o,"run-cli.php")});if(f.errors)throw new Error(f.errors);return f};function kb(e){let i=0,a="";const s=[];let n="";for(let o=0;o<e.length;o++){const f=e[o];i===0?f==='"'||f==="'"?(i=1,a=f):f.match(/\s/)?(n&&s.push(n),n=""):n+=f:i===1&&(f==="\\"?(o++,n+=e[o]):f===a?(i=0,a=""):n+=f)}return n&&s.push(n),s}const od=async(e,{wpCliPath:t})=>{await ad(e,t),await _i(e,{consts:{WP_ALLOW_MULTISITE:1}});const r=new URL(await e.absoluteUrl);if(r.port!==""){let s=`The current host is ${r.host}, but WordPress multisites do not support custom ports.`;throw r.hostname==="localhost"&&(s+=" For development, you can set up a playground.test domain using the instructions at https://wordpress.github.io/wordpress-playground/contributing/code."),new Error(s)}const i=r.pathname.replace(/\/$/,"")+"/",a=`${r.protocol}//${r.hostname}${i}`;await Ho(e,{options:{siteurl:a,home:a}}),await Bo(e,{command:"wp core multisite-convert"})},ld=async(e,{fromPath:t,toPath:r})=>{(!t.startsWith("/")||!r.startsWith("/"))&&Te.error(`
692
+ `);const f=await e.run({scriptPath:Ae(o,"run-cli.php")});if(f.errors)throw new Error(f.errors);return f};function kb(e){let i=0,a="";const s=[];let n="";for(let o=0;o<e.length;o++){const f=e[o];i===0?f==='"'||f==="'"?(i=1,a=f):f.match(/\s/)?(n&&s.push(n),n=""):n+=f:i===1&&(f==="\\"?(o++,n+=e[o]):f===a?(i=0,a=""):n+=f)}return n&&s.push(n),s}const od=async(e,{wpCliPath:t})=>{await ad(e,t),await _i(e,{consts:{WP_ALLOW_MULTISITE:1}});const r=new URL(await e.absoluteUrl);if(r.port!==""){let s=`The current host is ${r.host}, but WordPress multisites do not support custom ports.`;throw r.hostname==="localhost"&&(s+=" For development, you can set up a playground.test domain using the instructions at https://wordpress.github.io/wordpress-playground/contributing/code."),new Error(s)}const i=r.pathname.replace(/\/$/,"")+"/",a=`${r.protocol}//${r.hostname}${i}`;await Ho(e,{options:{siteurl:a,home:a}}),await Bo(e,{command:`wp core multisite-convert --base="${i}"`})},ld=async(e,{fromPath:t,toPath:r})=>{(!t.startsWith("/")||!r.startsWith("/"))&&Te.error(`
693
693
  The cp() step in your Blueprint refers to a relative path.
694
694
 
695
695
  Playground recently changed the working directory from '/' to '/wordpress' to better mimic
@@ -995,7 +995,7 @@ function join_paths()
995
995
  - 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.
996
996
  This option is only kept in here to avoid breaking Blueprint schema validation
997
997
  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.
998
- 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:{anyOf:[{type:"string"},{type:"object",properties:{filename:{type:"string",description:"This property is ignored during Blueprint v1 execution but exists so the same runPHP step structure can be used for Blueprints v1 and v2."},content:{type:"string"}},required:["filename","content"],additionalProperties:!1}],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"]}]},Ib={enum:["branch","tag","commit","refname"]};function st(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(e&&typeof e=="object"&&!Array.isArray(e)){let f;if(e.resource===void 0&&(f="resource")||e.url===void 0&&(f="url")||e.ref===void 0&&(f="ref"))return st.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;for(const p in e)if(!(p==="resource"||p==="url"||p==="ref"||p==="refType"||p==="path"||p===".git"))return st.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"}],!1;{if(e.resource!==void 0){let p=e.resource;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(p!=="git:directory")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"}],!1;var o=c===n}else var o=!0;if(o){if(e.url!==void 0){const p=n;if(typeof e.url!="string")return st.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.ref!==void 0){const p=n;if(typeof e.ref!="string")return st.errors=[{instancePath:t+"/ref",schemaPath:"#/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.refType!==void 0){let p=e.refType;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(p==="branch"||p==="tag"||p==="commit"||p==="refname"))return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/enum",keyword:"enum",params:{allowedValues:Ib.enum},message:"must be equal to one of the allowed values"}],!1;var o=c===n}else var o=!0;if(o){if(e.path!==void 0){const p=n;if(typeof e.path!="string")return st.errors=[{instancePath:t+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o)if(e[".git"]!==void 0){const p=n;if(typeof e[".git"]!="boolean")return st.errors=[{instancePath:t+"/.git",schemaPath:"#/properties/.git/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var o=p===n}else var o=!0}}}}}}else return st.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return st.errors=s,n===0}const $b={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},Oa={validate:$r};function $r(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e))for(const p in e){let c=e[p];const m=n,h=n;let g=!1;const R=n;Oa.validate(c,{instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:p,rootData:a})||(s=s===null?Oa.validate.errors:s.concat(Oa.validate.errors),n=s.length);var o=R===n;if(g=g||o,!g){const y=n;if(!(c&&typeof c=="object"&&!Array.isArray(c))&&typeof c!="string"){const b={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:$b.additionalProperties.anyOf[1].type},message:"must be object,string"};s===null?s=[b]:s.push(b),n++}var o=y===n;g=g||o}if(g)n=h,s!==null&&(h?s.length=h:s=null);else{const y={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[y]:s.push(y),n++,$r.errors=s,!1}var f=m===n;if(!f)break}else return $r.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return $r.errors=s,n===0}function Mt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let f;if(e.files===void 0&&(f="files")||e.name===void 0&&(f="name")||e.resource===void 0&&(f="resource"))return Mt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const p=n;for(const c in e)if(!(c==="resource"||c==="files"||c==="name"))return Mt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;if(p===n){if(e.resource!==void 0){let c=e.resource;const m=n;if(typeof c!="string")return Mt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(c!=="literal:directory")return Mt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var o=m===n}else var o=!0;if(o){if(e.files!==void 0){const c=n;$r(e.files,{instancePath:t+"/files",parentData:e,parentDataProperty:"files",rootData:a})||(s=s===null?$r.errors:s.concat($r.errors),n=s.length);var o=c===n}else var o=!0;if(o)if(e.name!==void 0){const c=n;if(typeof e.name!="string")return Mt.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=c===n}else var o=!0}}}}else return Mt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Mt.errors=s,n===0}function $t(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let f=!1;const p=n;st(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?st.errors:s.concat(st.errors),n=s.length);var c=p===n;if(f=f||c,!f){const m=n;Mt(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?Mt.errors:s.concat(Mt.errors),n=s.length);var c=m===n;f=f||c}if(f)n=o,s!==null&&(o?s.length=o:s=null);else{const m={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[m]:s.push(m),n++,$t.errors=s,!1}return $t.errors=s,n===0}const Ed={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function bt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let b;if(e.url===void 0&&(b="url"))return bt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"}],!1;{const O=n;for(const k in e)if(!(k==="method"||k==="url"||k==="headers"||k==="body"))return bt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(O===n){if(e.method!==void 0){let k=e.method;const D=n;if(typeof k!="string")return bt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(k==="GET"||k==="POST"||k==="HEAD"||k==="OPTIONS"||k==="PATCH"||k==="PUT"||k==="DELETE"))return bt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Ed.enum},message:"must be equal to one of the allowed values"}],!1;var o=D===n}else var o=!0;if(o){if(e.url!==void 0){const k=n;if(typeof e.url!="string")return bt.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=k===n}else var o=!0;if(o){if(e.headers!==void 0){let k=e.headers;const D=n;if(n===n)if(k&&typeof k=="object"&&!Array.isArray(k))for(const E in k){const A=n;if(typeof k[E]!="string")return bt.errors=[{instancePath:t+"/headers/"+E.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=A===n;if(!f)break}else return bt.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=D===n}else var o=!0;if(o)if(e.body!==void 0){let k=e.body;const D=n,T=n;let H=!1;const E=n;if(typeof k!="string"){const L={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[L]:s.push(L),n++}var p=E===n;if(H=H||p,!H){const L=n;if(n===L)if(k&&typeof k=="object"&&!Array.isArray(k)){let P;if(k.BYTES_PER_ELEMENT===void 0&&(P="BYTES_PER_ELEMENT")||k.buffer===void 0&&(P="buffer")||k.byteLength===void 0&&(P="byteLength")||k.byteOffset===void 0&&(P="byteOffset")||k.length===void 0&&(P="length")){const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"};s===null?s=[$]:s.push($),n++}else{const $=n;for(const I in k)if(!(I==="BYTES_PER_ELEMENT"||I==="buffer"||I==="byteLength"||I==="byteOffset"||I==="length")){let j=k[I];const U=n;if(!(typeof j=="number"&&isFinite(j))){const M={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[M]:s.push(M),n++}var c=U===n;if(!c)break}if($===n){if(k.BYTES_PER_ELEMENT!==void 0){let I=k.BYTES_PER_ELEMENT;const j=n;if(!(typeof I=="number"&&isFinite(I))){const U={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[U]:s.push(U),n++}var m=j===n}else var m=!0;if(m){if(k.buffer!==void 0){let I=k.buffer;const j=n;if(n===j)if(I&&typeof I=="object"&&!Array.isArray(I)){let M;if(I.byteLength===void 0&&(M="byteLength")){const Z={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"};s===null?s=[Z]:s.push(Z),n++}else{const Z=n;for(const z in I)if(z!=="byteLength"){const se={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:z},message:"must NOT have additional properties"};s===null?s=[se]:s.push(se),n++;break}if(Z===n&&I.byteLength!==void 0){let z=I.byteLength;if(!(typeof z=="number"&&isFinite(z))){const se={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[se]:s.push(se),n++}}}}else{const M={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[M]:s.push(M),n++}var m=j===n}else var m=!0;if(m){if(k.byteLength!==void 0){let I=k.byteLength;const j=n;if(!(typeof I=="number"&&isFinite(I))){const M={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[M]:s.push(M),n++}var m=j===n}else var m=!0;if(m){if(k.byteOffset!==void 0){let I=k.byteOffset;const j=n;if(!(typeof I=="number"&&isFinite(I))){const M={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[M]:s.push(M),n++}var m=j===n}else var m=!0;if(m)if(k.length!==void 0){let I=k.length;const j=n;if(!(typeof I=="number"&&isFinite(I))){const M={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[M]:s.push(M),n++}var m=j===n}else var m=!0}}}}}}else{const P={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[P]:s.push(P),n++}var p=L===n;if(H=H||p,!H){const P=n;if(n===P)if(k&&typeof k=="object"&&!Array.isArray(k))for(const I in k){let j=k[I];const U=n,M=n;let Z=!1;const z=n;if(typeof j!="string"){const se={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}var h=z===n;if(Z=Z||h,!Z){const se=n;if(n===se)if(j&&typeof j=="object"&&!Array.isArray(j)){let Q;if(j.BYTES_PER_ELEMENT===void 0&&(Q="BYTES_PER_ELEMENT")||j.buffer===void 0&&(Q="buffer")||j.byteLength===void 0&&(Q="byteLength")||j.byteOffset===void 0&&(Q="byteOffset")||j.length===void 0&&(Q="length")){const ee={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:Q},message:"must have required property '"+Q+"'"};s===null?s=[ee]:s.push(ee),n++}else{const ee=n;for(const V in j)if(!(V==="BYTES_PER_ELEMENT"||V==="buffer"||V==="byteLength"||V==="byteOffset"||V==="length")){let fe=j[V];const ie=n;if(!(typeof fe=="number"&&isFinite(fe))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+V.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var g=ie===n;if(!g)break}if(ee===n){if(j.BYTES_PER_ELEMENT!==void 0){let V=j.BYTES_PER_ELEMENT;const fe=n;if(!(typeof V=="number"&&isFinite(V))){const ie={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}var R=fe===n}else var R=!0;if(R){if(j.buffer!==void 0){let V=j.buffer;const fe=n;if(n===fe)if(V&&typeof V=="object"&&!Array.isArray(V)){let ae;if(V.byteLength===void 0&&(ae="byteLength")){const Pe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:ae},message:"must have required property '"+ae+"'"};s===null?s=[Pe]:s.push(Pe),n++}else{const Pe=n;for(const Ce in V)if(Ce!=="byteLength"){const Xe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Ce},message:"must NOT have additional properties"};s===null?s=[Xe]:s.push(Xe),n++;break}if(Pe===n&&V.byteLength!==void 0){let Ce=V.byteLength;if(!(typeof Ce=="number"&&isFinite(Ce))){const Xe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Xe]:s.push(Xe),n++}}}}else{const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ae]:s.push(ae),n++}var R=fe===n}else var R=!0;if(R){if(j.byteLength!==void 0){let V=j.byteLength;const fe=n;if(!(typeof V=="number"&&isFinite(V))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var R=fe===n}else var R=!0;if(R){if(j.byteOffset!==void 0){let V=j.byteOffset;const fe=n;if(!(typeof V=="number"&&isFinite(V))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteOffset",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var R=fe===n}else var R=!0;if(R)if(j.length!==void 0){let V=j.length;const fe=n;if(!(typeof V=="number"&&isFinite(V))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/length",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var R=fe===n}else var R=!0}}}}}}else{const Q={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Q]:s.push(Q),n++}var h=se===n;if(Z=Z||h,!Z){const Q=n;if(n===Q)if(j&&typeof j=="object"&&!Array.isArray(j)){let V;if(j.lastModified===void 0&&(V="lastModified")||j.name===void 0&&(V="name")||j.size===void 0&&(V="size")||j.type===void 0&&(V="type")||j.webkitRelativePath===void 0&&(V="webkitRelativePath")){const fe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const ie in j)if(!(ie==="size"||ie==="type"||ie==="lastModified"||ie==="name"||ie==="webkitRelativePath")){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ie},message:"must NOT have additional properties"};s===null?s=[ae]:s.push(ae),n++;break}if(fe===n){if(j.size!==void 0){let ie=j.size;const ae=n;if(!(typeof ie=="number"&&isFinite(ie))){const Pe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Pe]:s.push(Pe),n++}var y=ae===n}else var y=!0;if(y){if(j.type!==void 0){const ie=n;if(typeof j.type!="string"){const Pe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Pe]:s.push(Pe),n++}var y=ie===n}else var y=!0;if(y){if(j.lastModified!==void 0){let ie=j.lastModified;const ae=n;if(!(typeof ie=="number"&&isFinite(ie))){const Ce={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ce]:s.push(Ce),n++}var y=ae===n}else var y=!0;if(y){if(j.name!==void 0){const ie=n;if(typeof j.name!="string"){const Pe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Pe]:s.push(Pe),n++}var y=ie===n}else var y=!0;if(y)if(j.webkitRelativePath!==void 0){const ie=n;if(typeof j.webkitRelativePath!="string"){const Pe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Pe]:s.push(Pe),n++}var y=ie===n}else var y=!0}}}}}}else{const V={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[V]:s.push(V),n++}var h=Q===n;Z=Z||h}}if(Z)n=M,s!==null&&(M?s.length=M:s=null);else{const se={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[se]:s.push(se),n++}var _=U===n;if(!_)break}else{const I={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[I]:s.push(I),n++}var p=P===n;H=H||p}}if(H)n=T,s!==null&&(T?s.length=T:s=null);else{const L={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[L]:s.push(L),n++,bt.errors=s,!1}var o=D===n}else var o=!0}}}}}else return bt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return bt.errors=s,n===0}const Db={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."}}};function Me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const R=n;for(const y in e)if(!kd.call(Db.properties,y))return Me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(R===n){if(e.relativeUri!==void 0){const y=n;if(typeof e.relativeUri!="string")return Me.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.scriptPath!==void 0){const y=n;if(typeof e.scriptPath!="string")return Me.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.protocol!==void 0){const y=n;if(typeof e.protocol!="string")return Me.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.method!==void 0){let y=e.method;const _=n;if(typeof y!="string")return Me.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 Me.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Ed.enum},message:"must be equal to one of the allowed values"}],!1;var o=_===n}else var o=!0;if(o){if(e.headers!==void 0){let y=e.headers;const _=n;if(n===n)if(y&&typeof y=="object"&&!Array.isArray(y))for(const k in y){const D=n;if(typeof y[k]!="string")return Me.errors=[{instancePath:t+"/headers/"+k.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=D===n;if(!f)break}else return Me.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=_===n}else var o=!0;if(o){if(e.body!==void 0){let y=e.body;const _=n,b=n;let O=!1;const k=n;if(typeof y!="string"){const T={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[T]:s.push(T),n++}var p=k===n;if(O=O||p,!O){const T=n;if(n===T)if(y&&typeof y=="object"&&!Array.isArray(y)){let E;if(y.BYTES_PER_ELEMENT===void 0&&(E="BYTES_PER_ELEMENT")||y.buffer===void 0&&(E="buffer")||y.byteLength===void 0&&(E="byteLength")||y.byteOffset===void 0&&(E="byteOffset")||y.length===void 0&&(E="length")){const A={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"};s===null?s=[A]:s.push(A),n++}else{const A=n;for(const L in y)if(!(L==="BYTES_PER_ELEMENT"||L==="buffer"||L==="byteLength"||L==="byteOffset"||L==="length")){let S=y[L];const P=n;if(!(typeof S=="number"&&isFinite(S))){const $={instancePath:t+"/body/"+L.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[$]:s.push($),n++}var c=P===n;if(!c)break}if(A===n){if(y.BYTES_PER_ELEMENT!==void 0){let L=y.BYTES_PER_ELEMENT;const S=n;if(!(typeof L=="number"&&isFinite(L))){const P={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[P]:s.push(P),n++}var m=S===n}else var m=!0;if(m){if(y.buffer!==void 0){let L=y.buffer;const S=n;if(n===S)if(L&&typeof L=="object"&&!Array.isArray(L)){let $;if(L.byteLength===void 0&&($="byteLength")){const I={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:$},message:"must have required property '"+$+"'"};s===null?s=[I]:s.push(I),n++}else{const I=n;for(const j in L)if(j!=="byteLength"){const U={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:j},message:"must NOT have additional properties"};s===null?s=[U]:s.push(U),n++;break}if(I===n&&L.byteLength!==void 0){let j=L.byteLength;if(!(typeof j=="number"&&isFinite(j))){const U={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[U]:s.push(U),n++}}}}else{const $={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[$]:s.push($),n++}var m=S===n}else var m=!0;if(m){if(y.byteLength!==void 0){let L=y.byteLength;const S=n;if(!(typeof L=="number"&&isFinite(L))){const $={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[$]:s.push($),n++}var m=S===n}else var m=!0;if(m){if(y.byteOffset!==void 0){let L=y.byteOffset;const S=n;if(!(typeof L=="number"&&isFinite(L))){const $={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[$]:s.push($),n++}var m=S===n}else var m=!0;if(m)if(y.length!==void 0){let L=y.length;const S=n;if(!(typeof L=="number"&&isFinite(L))){const $={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[$]:s.push($),n++}var m=S===n}else var m=!0}}}}}}else{const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[E]:s.push(E),n++}var p=T===n;O=O||p}if(O)n=b,s!==null&&(b?s.length=b:s=null);else{const T={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[T]:s.push(T),n++,Me.errors=s,!1}var o=_===n}else var o=!0;if(o){if(e.env!==void 0){let y=e.env;const _=n;if(n===_)if(y&&typeof y=="object"&&!Array.isArray(y))for(const O in y){const k=n;if(typeof y[O]!="string")return Me.errors=[{instancePath:t+"/env/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=k===n;if(!h)break}else return Me.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=_===n}else var o=!0;if(o){if(e.$_SERVER!==void 0){let y=e.$_SERVER;const _=n;if(n===_)if(y&&typeof y=="object"&&!Array.isArray(y))for(const O in y){const k=n;if(typeof y[O]!="string")return Me.errors=[{instancePath:t+"/$_SERVER/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=k===n;if(!g)break}else return Me.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=_===n}else var o=!0;if(o)if(e.code!==void 0){const y=n;if(typeof e.code!="string")return Me.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0}}}}}}}}}else return Me.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Me.errors=s,n===0}function w(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let We;if(e.step===void 0&&(We="step"))return w.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:We},message:"must have required property '"+We+"'"}],!1;{const ce=e.step;if(typeof ce=="string")if(ce==="activatePlugin"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.pluginPath===void 0&&(N="pluginPath")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="pluginPath"||l==="pluginName"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=re===n}else var o=!0;if(o)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=x===n}else var o=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=F===n}else var f=!0;if(f){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="activatePlugin")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var f=F===n}else var f=!0;if(f){if(e.pluginPath!==void 0){const l=n;if(typeof e.pluginPath!="string")return w.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=l===n}else var f=!0;if(f)if(e.pluginName!==void 0){const l=n;if(typeof e.pluginName!="string")return w.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=l===n}else var f=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="activateTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step")||e.themeFolderName===void 0&&(N="themeFolderName"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="themeFolderName"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var p=re===n}else var p=!0;if(p)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=x===n}else var p=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var c=F===n}else var c=!0;if(c){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="activateTheme")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var c=F===n}else var c=!0;if(c)if(e.themeFolderName!==void 0){const l=n;if(typeof e.themeFolderName!="string")return w.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=l===n}else var c=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="cp"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.fromPath===void 0&&(N="fromPath")||e.step===void 0&&(N="step")||e.toPath===void 0&&(N="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="fromPath"||l==="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var m=re===n}else var m=!0;if(m)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=x===n}else var m=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=F===n}else var h=!0;if(h){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="cp")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var h=F===n}else var h=!0;if(h){if(e.fromPath!==void 0){const l=n;if(typeof e.fromPath!="string")return w.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=l===n}else var h=!0;if(h)if(e.toPath!==void 0){const l=n;if(typeof e.toPath!="string")return w.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=l===n}else var h=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineWpConfigConsts"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.consts===void 0&&(N="consts")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="consts"||l==="method"||l==="virtualize"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var g=re===n}else var g=!0;if(g)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=x===n}else var g=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var R=F===n}else var R=!0;if(R){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="defineWpConfigConsts")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var R=F===n}else var R=!0;if(R){if(e.consts!==void 0){let l=e.consts;const F=n;if(n===F&&!(l&&typeof l=="object"&&!Array.isArray(l)))return w.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var R=F===n}else var R=!0;if(R){if(e.method!==void 0){let l=e.method;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="rewrite-wp-config"||l==="define-before-run"))return w.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:Es.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var R=F===n}else var R=!0;if(R)if(e.virtualize!==void 0){const l=n;if(typeof e.virtualize!="boolean")return w.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var R=l===n}else var R=!0}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineSiteUrl"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.siteUrl===void 0&&(N="siteUrl")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="siteUrl"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.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=re===n}else var y=!0;if(y)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.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=x===n}else var y=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=F===n}else var _=!0;if(_){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="defineSiteUrl")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var _=F===n}else var _=!0;if(_)if(e.siteUrl!==void 0){const l=n;if(typeof e.siteUrl!="string")return w.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=l===n}else var _=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="enableMultisite"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="wpCliPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var b=re===n}else var b=!0;if(b)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=x===n}else var b=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var O=F===n}else var O=!0;if(O){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="enableMultisite")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var O=F===n}else var O=!0;if(O)if(e.wpCliPath!==void 0){const l=n;if(typeof e.wpCliPath!="string")return w.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=l===n}else var O=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWxr"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.file===void 0&&(N="file")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="file"||l==="importer"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var k=re===n}else var k=!0;if(k)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var k=x===n}else var k=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var D=F===n}else var D=!0;if(D){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="importWxr")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var D=F===n}else var D=!0;if(D){if(e.file!==void 0){const l=n;ke(e.file,{instancePath:t+"/file",parentData:e,parentDataProperty:"file",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var D=l===n}else var D=!0;if(D)if(e.importer!==void 0){let l=e.importer;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="data-liberation"||l==="default"))return w.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:Es.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var D=F===n}else var D=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importThemeStarterContent"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="themeSlug"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var T=re===n}else var T=!0;if(T)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=x===n}else var T=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=F===n}else var H=!0;if(H){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="importThemeStarterContent")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var H=F===n}else var H=!0;if(H)if(e.themeSlug!==void 0){const l=n;if(typeof e.themeSlug!="string")return w.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var H=l===n}else var H=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWordPressFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step")||e.wordPressFilesZip===void 0&&(N="wordPressFilesZip"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="wordPressFilesZip"||l==="pathInZip"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var E=re===n}else var E=!0;if(E)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=x===n}else var E=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var A=F===n}else var A=!0;if(A){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="importWordPressFiles")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var A=F===n}else var A=!0;if(A){if(e.wordPressFilesZip!==void 0){const l=n;ke(e.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:e,parentDataProperty:"wordPressFilesZip",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var A=l===n}else var A=!0;if(A)if(e.pathInZip!==void 0){const l=n;if(typeof e.pathInZip!="string")return w.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=l===n}else var A=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installPlugin"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.pluginData===void 0&&(N="pluginData")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="ifAlreadyInstalled"||l==="step"||l==="pluginData"||l==="pluginZipFile"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var L=re===n}else var L=!0;if(L)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=x===n}else var L=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var S=F===n}else var S=!0;if(S){if(e.ifAlreadyInstalled!==void 0){let l=e.ifAlreadyInstalled;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="overwrite"||l==="skip"||l==="error"))return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Es.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var S=F===n}else var S=!0;if(S){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="installPlugin")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var S=F===n}else var S=!0;if(S){if(e.pluginData!==void 0){let l=e.pluginData;const F=n,te=n;let x=!1;const re=n;ke(l,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var P=re===n;if(x=x||P,!x){const xe=n;$t(l,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?$t.errors:s.concat($t.errors),n=s.length);var P=xe===n;x=x||P}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var S=F===n}else var S=!0;if(S){if(e.pluginZipFile!==void 0){const l=n;ke(e.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:e,parentDataProperty:"pluginZipFile",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var S=l===n}else var S=!0;if(S)if(e.options!==void 0){let l=e.options;const F=n;if(n===n)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=n;for(const Oe in l)if(!(Oe==="activate"||Oe==="targetFolderName"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Oe},message:"must NOT have additional properties"}],!1;if(re===n){if(l.activate!==void 0){const Oe=n;if(typeof l.activate!="boolean")return w.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var $=Oe===n}else var $=!0;if($)if(l.targetFolderName!==void 0){const Oe=n;if(typeof l.targetFolderName!="string")return w.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=Oe===n}else var $=!0}}else return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var S=F===n}else var S=!0}}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step")||e.themeData===void 0&&(N="themeData"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="ifAlreadyInstalled"||l==="step"||l==="themeData"||l==="themeZipFile"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var I=re===n}else var I=!0;if(I)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=x===n}else var I=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var j=F===n}else var j=!0;if(j){if(e.ifAlreadyInstalled!==void 0){let l=e.ifAlreadyInstalled;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="overwrite"||l==="skip"||l==="error"))return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Es.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var j=F===n}else var j=!0;if(j){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="installTheme")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var j=F===n}else var j=!0;if(j){if(e.themeData!==void 0){let l=e.themeData;const F=n,te=n;let x=!1;const re=n;ke(l,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var U=re===n;if(x=x||U,!x){const xe=n;$t(l,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?$t.errors:s.concat($t.errors),n=s.length);var U=xe===n;x=x||U}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var j=F===n}else var j=!0;if(j){if(e.themeZipFile!==void 0){const l=n;ke(e.themeZipFile,{instancePath:t+"/themeZipFile",parentData:e,parentDataProperty:"themeZipFile",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var j=l===n}else var j=!0;if(j)if(e.options!==void 0){let l=e.options;const F=n;if(n===n)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=n;for(const Oe in l)if(!(Oe==="activate"||Oe==="importStarterContent"||Oe==="targetFolderName"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Oe},message:"must NOT have additional properties"}],!1;if(re===n){if(l.activate!==void 0){const Oe=n;if(typeof l.activate!="boolean")return w.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var M=Oe===n}else var M=!0;if(M){if(l.importStarterContent!==void 0){const Oe=n;if(typeof l.importStarterContent!="boolean")return w.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var M=Oe===n}else var M=!0;if(M)if(l.targetFolderName!==void 0){const Oe=n;if(typeof l.targetFolderName!="string")return w.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=Oe===n}else var M=!0}}}else return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var j=F===n}else var j=!0}}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="login"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="username"||l==="password"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Z=re===n}else var Z=!0;if(Z)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=x===n}else var Z=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=F===n}else var z=!0;if(z){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="login")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var z=F===n}else var z=!0;if(z){if(e.username!==void 0){const l=n;if(typeof e.username!="string")return w.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=l===n}else var z=!0;if(z)if(e.password!==void 0){const l=n;if(typeof e.password!="string")return w.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=l===n}else var z=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mkdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var se=re===n}else var se=!0;if(se)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var se=x===n}else var se=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var G=F===n}else var G=!0;if(G){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="mkdir")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var G=F===n}else var G=!0;if(G)if(e.path!==void 0){const l=n;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=l===n}else var G=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mv"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.fromPath===void 0&&(N="fromPath")||e.step===void 0&&(N="step")||e.toPath===void 0&&(N="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="fromPath"||l==="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Q=re===n}else var Q=!0;if(Q)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=x===n}else var Q=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ee=F===n}else var ee=!0;if(ee){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="mv")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var ee=F===n}else var ee=!0;if(ee){if(e.fromPath!==void 0){const l=n;if(typeof e.fromPath!="string")return w.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=l===n}else var ee=!0;if(ee)if(e.toPath!==void 0){const l=n;if(typeof e.toPath!="string")return w.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=l===n}else var ee=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="resetData"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var V=re===n}else var V=!0;if(V)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=x===n}else var V=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var fe=F===n}else var fe=!0;if(fe)if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="resetData")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var fe=F===n}else var fe=!0}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="request"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.request===void 0&&(N="request")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="request"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ie=re===n}else var ie=!0;if(ie)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ie=x===n}else var ie=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ae=F===n}else var ae=!0;if(ae){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="request")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var ae=F===n}else var ae=!0;if(ae)if(e.request!==void 0){const l=n;bt(e.request,{instancePath:t+"/request",parentData:e,parentDataProperty:"request",rootData:a})||(s=s===null?bt.errors:s.concat(bt.errors),n=s.length);var ae=l===n}else var ae=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rm"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Pe=re===n}else var Pe=!0;if(Pe)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Pe=x===n}else var Pe=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ce=F===n}else var Ce=!0;if(Ce){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="rm")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var Ce=F===n}else var Ce=!0;if(Ce)if(e.path!==void 0){const l=n;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=l===n}else var Ce=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rmdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Xe=re===n}else var Xe=!0;if(Xe)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Xe=x===n}else var Xe=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var tt=F===n}else var tt=!0;if(tt){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="rmdir")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var tt=F===n}else var tt=!0;if(tt)if(e.path!==void 0){const l=n;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var tt=l===n}else var tt=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHP"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.code===void 0&&(N="code")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="code"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var St=re===n}else var St=!0;if(St)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var St=x===n}else var St=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var $e=F===n}else var $e=!0;if($e){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runPHP")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var $e=F===n}else var $e=!0;if($e)if(e.code!==void 0){let l=e.code;const F=n,te=n;let x=!1;const re=n;if(typeof l!="string"){const xe={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[xe]:s.push(xe),n++}var De=re===n;if(x=x||De,!x){const xe=n;if(n===xe)if(l&&typeof l=="object"&&!Array.isArray(l)){let Ke;if(l.filename===void 0&&(Ke="filename")||l.content===void 0&&(Ke="content")){const Qt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/required",keyword:"required",params:{missingProperty:Ke},message:"must have required property '"+Ke+"'"};s===null?s=[Qt]:s.push(Qt),n++}else{const Qt=n;for(const Ue in l)if(!(Ue==="filename"||Ue==="content")){const Bt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Ue},message:"must NOT have additional properties"};s===null?s=[Bt]:s.push(Bt),n++;break}if(Qt===n){if(l.filename!==void 0){const Ue=n;if(typeof l.filename!="string"){const Bt={instancePath:t+"/code/filename",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Bt]:s.push(Bt),n++}var ft=Ue===n}else var ft=!0;if(ft)if(l.content!==void 0){const Ue=n;if(typeof l.content!="string"){const we={instancePath:t+"/code/content",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[we]:s.push(we),n++}var ft=Ue===n}else var ft=!0}}}else{const Ke={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Ke]:s.push(Ke),n++}var De=xe===n;x=x||De}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var $e=F===n}else var $e=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHPWithOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.options===void 0&&(N="options")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Le=re===n}else var Le=!0;if(Le)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Le=x===n}else var Le=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=F===n}else var v=!0;if(v){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runPHPWithOptions")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var v=F===n}else var v=!0;if(v)if(e.options!==void 0){const l=n;Me(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:a})||(s=s===null?Me.errors:s.concat(Me.errors),n=s.length);var v=l===n}else var v=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runWpInstallationWizard"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.options===void 0&&(N="options")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var u=re===n}else var u=!0;if(u)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=x===n}else var u=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=F===n}else var d=!0;if(d){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runWpInstallationWizard")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var d=F===n}else var d=!0;if(d)if(e.options!==void 0){let l=e.options;const F=n;if(n===n)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=n;for(const Oe in l)if(!(Oe==="adminUsername"||Oe==="adminPassword"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Oe},message:"must NOT have additional properties"}],!1;if(re===n){if(l.adminUsername!==void 0){const Oe=n;if(typeof l.adminUsername!="string")return w.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=Oe===n}else var C=!0;if(C)if(l.adminPassword!==void 0){const Oe=n;if(typeof l.adminPassword!="string")return w.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=Oe===n}else var C=!0}}else return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=F===n}else var d=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runSql"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.sql===void 0&&(N="sql")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="sql"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var B=re===n}else var B=!0;if(B)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var B=x===n}else var B=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var K=F===n}else var K=!0;if(K){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runSql")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var K=F===n}else var K=!0;if(K)if(e.sql!==void 0){const l=n;ke(e.sql,{instancePath:t+"/sql",parentData:e,parentDataProperty:"sql",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var K=l===n}else var K=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.options===void 0&&(N="options")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var X=re===n}else var X=!0;if(X)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var X=x===n}else var X=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=F===n}else var pe=!0;if(pe){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="setSiteOptions")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var pe=F===n}else var pe=!0;if(pe)if(e.options!==void 0){let l=e.options;const F=n;if(n===F&&!(l&&typeof l=="object"&&!Array.isArray(l)))return w.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=F===n}else var pe=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="unzip"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.extractToPath===void 0&&(N="extractToPath")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="zipFile"||l==="zipPath"||l==="extractToPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _e=re===n}else var _e=!0;if(_e)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _e=x===n}else var _e=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var he=F===n}else var he=!0;if(he){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="unzip")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var he=F===n}else var he=!0;if(he){if(e.zipFile!==void 0){const l=n;ke(e.zipFile,{instancePath:t+"/zipFile",parentData:e,parentDataProperty:"zipFile",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var he=l===n}else var he=!0;if(he){if(e.zipPath!==void 0){const l=n;if(typeof e.zipPath!="string")return w.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=l===n}else var he=!0;if(he)if(e.extractToPath!==void 0){const l=n;if(typeof e.extractToPath!="string")return w.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=l===n}else var he=!0}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="updateUserMeta"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.meta===void 0&&(N="meta")||e.step===void 0&&(N="step")||e.userId===void 0&&(N="userId"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="meta"||l==="userId"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Be=re===n}else var Be=!0;if(Be)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Be=x===n}else var Be=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=F===n}else var ue=!0;if(ue){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="updateUserMeta")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ue=F===n}else var ue=!0;if(ue){if(e.meta!==void 0){let l=e.meta;const F=n;if(n===F&&!(l&&typeof l=="object"&&!Array.isArray(l)))return w.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=F===n}else var ue=!0;if(ue)if(e.userId!==void 0){let l=e.userId;const F=n;if(!(typeof l=="number"&&isFinite(l)))return w.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ue=F===n}else var ue=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFile"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.data===void 0&&(N="data")||e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"||l==="data"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var mt=re===n}else var mt=!0;if(mt)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var mt=x===n}else var mt=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var rt=F===n}else var rt=!0;if(rt){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="writeFile")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var rt=F===n}else var rt=!0;if(rt){if(e.path!==void 0){const l=n;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var rt=l===n}else var rt=!0;if(rt)if(e.data!==void 0){let l=e.data;const F=n,te=n;let x=!1;const re=n;ke(l,{instancePath:t+"/data",parentData:e,parentDataProperty:"data",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var Ot=re===n;if(x=x||Ot,!x){const xe=n;if(typeof l!="string"){const Ke={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Ke]:s.push(Ke),n++}var Ot=xe===n;if(x=x||Ot,!x){const Ke=n;if(n===Ke)if(l&&typeof l=="object"&&!Array.isArray(l)){let Ue;if(l.BYTES_PER_ELEMENT===void 0&&(Ue="BYTES_PER_ELEMENT")||l.buffer===void 0&&(Ue="buffer")||l.byteLength===void 0&&(Ue="byteLength")||l.byteOffset===void 0&&(Ue="byteOffset")||l.length===void 0&&(Ue="length")){const Bt={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:Ue},message:"must have required property '"+Ue+"'"};s===null?s=[Bt]:s.push(Bt),n++}else{const Bt=n;for(const we in l)if(!(we==="BYTES_PER_ELEMENT"||we==="buffer"||we==="byteLength"||we==="byteOffset"||we==="length")){let yt=l[we];const os=n;if(!(typeof yt=="number"&&isFinite(yt))){const ze={instancePath:t+"/data/"+we.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var xi=os===n;if(!xi)break}if(Bt===n){if(l.BYTES_PER_ELEMENT!==void 0){let we=l.BYTES_PER_ELEMENT;const yt=n;if(!(typeof we=="number"&&isFinite(we))){const os={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[os]:s.push(os),n++}var nt=yt===n}else var nt=!0;if(nt){if(l.buffer!==void 0){let we=l.buffer;const yt=n;if(n===yt)if(we&&typeof we=="object"&&!Array.isArray(we)){let ze;if(we.byteLength===void 0&&(ze="byteLength")){const ls={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:ze},message:"must have required property '"+ze+"'"};s===null?s=[ls]:s.push(ls),n++}else{const ls=n;for(const gn in we)if(gn!=="byteLength"){const _n={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:gn},message:"must NOT have additional properties"};s===null?s=[_n]:s.push(_n),n++;break}if(ls===n&&we.byteLength!==void 0){let gn=we.byteLength;if(!(typeof gn=="number"&&isFinite(gn))){const _n={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[_n]:s.push(_n),n++}}}}else{const ze={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ze]:s.push(ze),n++}var nt=yt===n}else var nt=!0;if(nt){if(l.byteLength!==void 0){let we=l.byteLength;const yt=n;if(!(typeof we=="number"&&isFinite(we))){const ze={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var nt=yt===n}else var nt=!0;if(nt){if(l.byteOffset!==void 0){let we=l.byteOffset;const yt=n;if(!(typeof we=="number"&&isFinite(we))){const ze={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var nt=yt===n}else var nt=!0;if(nt)if(l.length!==void 0){let we=l.length;const yt=n;if(!(typeof we=="number"&&isFinite(we))){const ze={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var nt=yt===n}else var nt=!0}}}}}}else{const Ue={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Ue]:s.push(Ue),n++}var Ot=Ke===n;x=x||Ot}}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var rt=F===n}else var rt=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.filesTree===void 0&&(N="filesTree")||e.step===void 0&&(N="step")||e.writeToPath===void 0&&(N="writeToPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="writeToPath"||l==="filesTree"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Mr=re===n}else var Mr=!0;if(Mr)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Mr=x===n}else var Mr=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var W=F===n}else var W=!0;if(W){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="writeFiles")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var W=F===n}else var W=!0;if(W){if(e.writeToPath!==void 0){const l=n;if(typeof e.writeToPath!="string")return w.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=l===n}else var W=!0;if(W)if(e.filesTree!==void 0){const l=n;$t(e.filesTree,{instancePath:t+"/filesTree",parentData:e,parentDataProperty:"filesTree",rootData:a})||(s=s===null?$t.errors:s.concat($t.errors),n=s.length);var W=l===n}else var W=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="wp-cli"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.command===void 0&&(N="command")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="command"||l==="wpCliPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Y=re===n}else var Y=!0;if(Y)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=x===n}else var Y=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var q=F===n}else var q=!0;if(q){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="wp-cli")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var q=F===n}else var q=!0;if(q){if(e.command!==void 0){let l=e.command;const F=n,te=n;let x=!1;const re=n;if(typeof l!="string"){const xe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[xe]:s.push(xe),n++}var J=re===n;if(x=x||J,!x){const xe=n;if(n===xe)if(Array.isArray(l)){var ne=!0;const Ke=l.length;for(let Qt=0;Qt<Ke;Qt++){const Ue=n;if(typeof l[Qt]!="string"){const we={instancePath:t+"/command/"+Qt,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[we]:s.push(we),n++}var ne=Ue===n;if(!ne)break}}else{const Ke={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[Ke]:s.push(Ke),n++}var J=xe===n;x=x||J}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var q=F===n}else var q=!0;if(q)if(e.wpCliPath!==void 0){const l=n;if(typeof e.wpCliPath!="string")return w.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var q=l===n}else var q=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteLanguage"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.language===void 0&&(N="language")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="language"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var le=re===n}else var le=!0;if(le)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=x===n}else var le=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var de=F===n}else var de=!0;if(de){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="setSiteLanguage")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var de=F===n}else var de=!0;if(de)if(e.language!==void 0){const l=n;if(typeof e.language!="string")return w.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var de=l===n}else var de=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return w.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:ce},message:'value of tag "step" must be in oneOf'}],!1;else return w.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:ce},message:'tag "step" must be string'}],!1}}else return w.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return w.errors=s,n===0}function me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const H=n;for(const E in e)if(!kd.call(Ob.properties,E))return me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:E},message:"must NOT have additional properties"}],!1;if(H===n){if(e.landingPage!==void 0){const E=n;if(typeof e.landingPage!="string")return me.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0;if(o){if(e.description!==void 0){const E=n;if(typeof e.description!="string")return me.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0;if(o){if(e.meta!==void 0){let E=e.meta;const A=n;if(n===A)if(E&&typeof E=="object"&&!Array.isArray(E)){let S;if(E.title===void 0&&(S="title")||E.author===void 0&&(S="author"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"}],!1;{const P=n;for(const $ in E)if(!($==="title"||$==="description"||$==="author"||$==="categories"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$},message:"must NOT have additional properties"}],!1;if(P===n){if(E.title!==void 0){const $=n;if(typeof E.title!="string")return me.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=$===n}else var f=!0;if(f){if(E.description!==void 0){const $=n;if(typeof E.description!="string")return me.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=$===n}else var f=!0;if(f){if(E.author!==void 0){const $=n;if(typeof E.author!="string")return me.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=$===n}else var f=!0;if(f)if(E.categories!==void 0){let $=E.categories;const I=n;if(n===I)if(Array.isArray($)){var p=!0;const U=$.length;for(let M=0;M<U;M++){const Z=n;if(typeof $[M]!="string")return me.errors=[{instancePath:t+"/meta/categories/"+M,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=Z===n;if(!p)break}}else return me.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var f=I===n}else var f=!0}}}}}else return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.preferredVersions!==void 0){let E=e.preferredVersions;const A=n;if(n===A)if(E&&typeof E=="object"&&!Array.isArray(E)){let S;if(E.php===void 0&&(S="php")||E.wp===void 0&&(S="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"}],!1;{const P=n;for(const $ in E)if(!($==="php"||$==="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$},message:"must NOT have additional properties"}],!1;if(P===n){if(E.php!==void 0){let $=E.php;const I=n,j=n;let U=!1;const M=n;if(typeof $!="string"){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Z]:s.push(Z),n++}if(!($==="8.4"||$==="8.3"||$==="8.2"||$==="8.1"||$==="8.0"||$==="7.4"||$==="7.3"||$==="7.2")){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:Lb.enum},message:"must be equal to one of the allowed values"};s===null?s=[Z]:s.push(Z),n++}var c=M===n;if(U=U||c,!U){const Z=n;if(typeof $!="string"){const se={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}if($!=="latest"){const se={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};s===null?s=[se]:s.push(se),n++}var c=Z===n;U=U||c}if(U)n=j,s!==null&&(j?s.length=j:s=null);else{const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[Z]:s.push(Z),n++,me.errors=s,!1}var m=I===n}else var m=!0;if(m)if(E.wp!==void 0){const $=n;if(typeof E.wp!="string")return me.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=$===n}else var m=!0}}}else return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.features!==void 0){let E=e.features;const A=n;if(n===A)if(E&&typeof E=="object"&&!Array.isArray(E)){const S=n;for(const P in E)if(!(P==="intl"||P==="networking"))return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"}],!1;if(S===n){if(E.intl!==void 0){const P=n;if(typeof E.intl!="boolean")return me.errors=[{instancePath:t+"/features/intl",schemaPath:"#/properties/features/properties/intl/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var h=P===n}else var h=!0;if(h)if(E.networking!==void 0){const P=n;if(typeof E.networking!="boolean")return me.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var h=P===n}else var h=!0}}else return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.extraLibraries!==void 0){let E=e.extraLibraries;const A=n;if(n===A)if(Array.isArray(E)){var g=!0;const S=E.length;for(let P=0;P<S;P++){let $=E[P];const I=n;if(typeof $!="string")return me.errors=[{instancePath:t+"/extraLibraries/"+P,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if($!=="wp-cli")return me.errors=[{instancePath:t+"/extraLibraries/"+P,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var g=I===n;if(!g)break}}else return me.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=A===n}else var o=!0;if(o){if(e.constants!==void 0){let E=e.constants;const A=n;if(n===n)if(E&&typeof E=="object"&&!Array.isArray(E))for(const P in E){let $=E[P];const I=n;if(typeof $!="string"&&typeof $!="boolean"&&!(typeof $=="number"&&isFinite($)))return me.errors=[{instancePath:t+"/constants/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:Rb.additionalProperties.type},message:"must be string,boolean,number"}],!1;var R=I===n;if(!R)break}else return me.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.plugins!==void 0){let E=e.plugins;const A=n;if(n===A)if(Array.isArray(E)){var y=!0;const S=E.length;for(let P=0;P<S;P++){let $=E[P];const I=n,j=n;let U=!1;const M=n;if(typeof $!="string"){const z={instancePath:t+"/plugins/"+P,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),n++}var _=M===n;if(U=U||_,!U){const z=n;ke($,{instancePath:t+"/plugins/"+P,parentData:E,parentDataProperty:P,rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var _=z===n;U=U||_}if(U)n=j,s!==null&&(j?s.length=j:s=null);else{const z={instancePath:t+"/plugins/"+P,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[z]:s.push(z),n++,me.errors=s,!1}var y=I===n;if(!y)break}}else return me.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=A===n}else var o=!0;if(o){if(e.siteOptions!==void 0){let E=e.siteOptions;const A=n;if(n===A)if(E&&typeof E=="object"&&!Array.isArray(E)){const S=n;for(const P in E)if(P!=="blogname"){const $=n;if(typeof E[P]!="string")return me.errors=[{instancePath:t+"/siteOptions/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=$===n;if(!b)break}if(S===n&&E.blogname!==void 0&&typeof E.blogname!="string")return me.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return me.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.login!==void 0){let E=e.login;const A=n,L=n;let S=!1;const P=n;if(typeof E!="boolean"){const I={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[I]:s.push(I),n++}var O=P===n;if(S=S||O,!S){const I=n;if(n===I)if(E&&typeof E=="object"&&!Array.isArray(E)){let U;if(E.username===void 0&&(U="username")||E.password===void 0&&(U="password")){const M={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:U},message:"must have required property '"+U+"'"};s===null?s=[M]:s.push(M),n++}else{const M=n;for(const Z in E)if(!(Z==="username"||Z==="password")){const z={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Z},message:"must NOT have additional properties"};s===null?s=[z]:s.push(z),n++;break}if(M===n){if(E.username!==void 0){const Z=n;if(typeof E.username!="string"){const z={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),n++}var k=Z===n}else var k=!0;if(k)if(E.password!==void 0){const Z=n;if(typeof E.password!="string"){const se={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}var k=Z===n}else var k=!0}}}else{const U={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[U]:s.push(U),n++}var O=I===n;S=S||O}if(S)n=L,s!==null&&(L?s.length=L:s=null);else{const I={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[I]:s.push(I),n++,me.errors=s,!1}var o=A===n}else var o=!0;if(o){if(e.steps!==void 0){let E=e.steps;const A=n;if(n===A)if(Array.isArray(E)){var D=!0;const S=E.length;for(let P=0;P<S;P++){let $=E[P];const I=n,j=n;let U=!1;const M=n;w($,{instancePath:t+"/steps/"+P,parentData:E,parentDataProperty:P,rootData:a})||(s=s===null?w.errors:s.concat(w.errors),n=s.length);var T=M===n;if(U=U||T,!U){const z=n;if(typeof $!="string"){const G={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),n++}var T=z===n;if(U=U||T,!U){const G=n,Q={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};s===null?s=[Q]:s.push(Q),n++;var T=G===n;if(U=U||T,!U){const V=n;if(typeof $!="boolean"){const ie={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[ie]:s.push(ie),n++}if($!==!1){const ie={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};s===null?s=[ie]:s.push(ie),n++}var T=V===n;if(U=U||T,!U){const ie=n;if($!==null){const Pe={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};s===null?s=[Pe]:s.push(Pe),n++}var T=ie===n;U=U||T}}}}if(U)n=j,s!==null&&(j?s.length=j:s=null);else{const z={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[z]:s.push(z),n++,me.errors=s,!1}var D=I===n;if(!D)break}}else return me.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=A===n}else var o=!0;if(o)if(e.$schema!==void 0){const E=n;if(typeof e.$schema!="string")return me.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0}}}}}}}}}}}}else return me.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return me.errors=s,n===0}function Ns(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;return me(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?me.errors:s.concat(me.errors),n=s.length),Ns.errors=s,n===0}const{wpCLI:Hb,...Sp}=Cb,Fb={...Sp,"wp-cli":Hb,importFile:Sp.importWxr};async function vi(e,t={}){const r={...t};let i;return Wo(e)?(i=await Pd(e),r.streamBundledFile=function(...a){return e.read(...a)}):i=e,Bb(i,r)}function Wo(e){return e&&"read"in e&&typeof e.read=="function"}async function Pd(e){if(!Wo(e))return e;const r=await(await e.read("blueprint.json")).text();return JSON.parse(r)}function Bb(e,{progress:t=new ni,semaphore:r=new un({concurrency:3}),onStepCompleted:i=()=>{},onBlueprintValidated:a=()=>{},corsProxy:s,streamBundledFile:n,additionalSteps:o}={}){var y,_,b,O,k,D,T,H,E,A;e=structuredClone(e),e={...e,steps:(e.steps||[]).filter(Ub).filter(Wb)},e.steps=[...e.steps||[],...o||[]];for(const L of e.steps)!L||typeof L!="object"||(L.step==="importFile"?(L.step="importWxr",Te.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(L==null?void 0:L.step)==="installPlugin"&&"pluginZipFile"in L?(L.pluginData=L.pluginZipFile,Te.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(L==null?void 0:L.step)==="installTheme"&&"themeZipFile"in L&&(L.themeData=L.themeZipFile,Te.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(e.constants&&e.steps.unshift({step:"defineWpConfigConsts",consts:e.constants}),e.siteOptions&&e.steps.unshift({step:"setSiteOptions",options:e.siteOptions}),e.plugins){const L=e.plugins.map(S=>typeof S=="string"?S.startsWith("https://")?{resource:"url",url:S}:{resource:"wordpress.org/plugins",slug:S}:S).map(S=>({step:"installPlugin",pluginData:S}));e.steps.unshift(...L)}e.login&&e.steps.push({step:"login",...e.login===!0?{username:"admin"}:e.login});const f=((y=e.steps)==null?void 0:y.findIndex(L=>typeof L=="object"&&(L==null?void 0:L.step)&&["wp-cli","enableMultisite"].includes(L.step)))??-1;if((_=e==null?void 0:e.extraLibraries)!=null&&_.includes("wp-cli")||f!==-1){const L={step:"writeFile",data:Sb,path:Fo};f===-1?(b=e.steps)==null||b.push(L):(O=e.steps)==null||O.splice(f,0,L)}const p=(k=e.steps)==null?void 0:k.findIndex(L=>typeof L=="object"&&(L==null?void 0:L.step)==="importWxr");p!==void 0&&p>-1&&((D=e.steps)==null||D.splice(p,0,{step:"installPlugin",pluginData:{resource:"wordpress.org/plugins",slug:"wordpress-importer"}}));const{valid:c,errors:m}=jb(e);if(!c){const L=new Error(`Invalid blueprint: ${m[0].message} at ${m[0].instancePath}`);throw L.errors=m,L}a(e);const h=e.steps||[],g=h.reduce((L,S)=>{var P;return L+(((P=S.progress)==null?void 0:P.weight)||1)},0),R=h.map(L=>Mb(L,{semaphore:r,rootProgressTracker:t,totalProgressWeight:g,corsProxy:s,streamBundledFile:n}));return{versions:{php:Nb((T=e.preferredVersions)==null?void 0:T.php,ii,Hp),wp:((H=e.preferredVersions)==null?void 0:H.wp)||"latest"},features:{intl:((E=e.features)==null?void 0:E.intl)??!1,networking:((A=e.features)==null?void 0:A.networking)??!0},extraLibraries:e.extraLibraries||[],run:async L=>{try{for(const{resources:S}of R)for(const P of S)P.setPlayground(L),P.isAsync&&P.resolve().catch(()=>{});for(const[S,{run:P,step:$}]of Object.entries(R))try{const I=await P(L);i(I,$)}catch(I){throw new Error(`Error when executing the blueprint step #${S} (${JSON.stringify($)}) ${I instanceof Error?`: ${I.message}`:I}`,{cause:I})}}finally{try{const S=await L.pathToInternalUrl(e.landingPage||"/");await L.goTo("/index.php?playground-redirection-handler&next="+encodeURIComponent(S))}catch{}t.finish()}}}}function jb(e){var a;const t=Ns(e);if(t)return{valid:t};const r=new Set;for(const s of Ns.errors)s.schemaPath.startsWith("#/properties/steps/items/anyOf")||r.add(s.instancePath);const i=(a=Ns.errors)==null?void 0:a.filter(s=>!(s.schemaPath.startsWith("#/properties/steps/items/anyOf")&&r.has(s.instancePath)));return{valid:t,errors:i}}function Nb(e,t,r){return e&&t.includes(e)?e:r}function Ub(e){return!!(typeof e=="object"&&e)}function Wb(e){return["setPhpIniEntry","request"].includes(e.step)?(Te.warn(`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function Mb(e,{semaphore:t,rootProgressTracker:r,totalProgressWeight:i,corsProxy:a,streamBundledFile:s}){var h;const n=r.stage((((h=e.progress)==null?void 0:h.weight)||1)/i),o={};for(const g of Object.keys(e)){let R=e[g];ib(R)&&(R=Jt.create(R,{semaphore:t,corsProxy:a,streamBundledFile:s})),o[g]=R}const f=async g=>{var R;try{return n.fillSlowly(),await Fb[e.step](g,await qb(o),{tracker:n,initialCaption:(R=e.progress)==null?void 0:R.caption})}finally{n.finish()}},p=kp(o),c=kp(o).filter(g=>g.isAsync),m=1/(c.length+1);for(const g of c)g.progress=n.stage(m);return{run:f,step:e,resources:p}}function kp(e){const t=[];for(const r in e){const i=e[r];i instanceof Jt&&t.push(i)}return t}async function qb(e){const t={};for(const r in e){const i=e[r];i instanceof Jt?t[r]=await i.resolve():t[r]=i}return t}async function Mo(e,t){await e.run(t)}async function Ad(){const e=(await Promise.resolve().then(()=>require("./blueprints-DY7omvFh.cjs"))).default;return new File([e],"blueprints.phar",{type:"application/zip"})}function Kb(e){if(typeof e=="object"&&"type"in e&&["inline-file","file-reference"].includes(e.type))return e;if(!e)return{type:"inline-file",contents:"{}"};if(typeof e!="string")return{type:"inline-file",contents:JSON.stringify(e)};try{return JSON.parse(e),{type:"inline-file",contents:e}}catch{return{type:"file-reference",reference:e}}}async function zb(e){var c,m;const t=e.cliArgs||[];for(const h of t)if(h.startsWith("--site-path="))throw new Error("The --site-path CLI argument must not be provided. In Playground, it is always set to /wordpress.");t.push("--site-path=/wordpress"),t.find(h=>h.startsWith("--db-engine="))||t.push("--db-engine=sqlite");const i=e.php,a=(e==null?void 0:e.onMessage)||(()=>{}),s=await Ad();i.writeFile("/tmp/blueprints.phar",new Uint8Array(await s.arrayBuffer()));const n=Kb(e.blueprint);let o="";switch(n.type){case"inline-file":i.writeFile("/tmp/blueprint.json",n.contents),o="/tmp/blueprint.json";break;case"file-reference":o=n.reference;break}const f=await i.onMessage(async h=>{try{const g=typeof h=="string"?JSON.parse(h):h;if(!g)return;await new Promise(R=>setTimeout(R,0)),g.type.startsWith("blueprint.")&&await a(g)}catch(g){Te.warn("Failed to parse message as JSON:",h,g)}});await(i==null?void 0:i.writeFile("/tmp/run-blueprints.php",`<?php
998
+ 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:{anyOf:[{type:"string"},{type:"object",properties:{filename:{type:"string",description:"This property is ignored during Blueprint v1 execution but exists so the same runPHP step structure can be used for Blueprints v1 and v2."},content:{type:"string"}},required:["filename","content"],additionalProperties:!1}],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"]}]},Ib={enum:["branch","tag","commit","refname"]};function st(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(e&&typeof e=="object"&&!Array.isArray(e)){let f;if(e.resource===void 0&&(f="resource")||e.url===void 0&&(f="url")||e.ref===void 0&&(f="ref"))return st.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;for(const p in e)if(!(p==="resource"||p==="url"||p==="ref"||p==="refType"||p==="path"||p===".git"))return st.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:p},message:"must NOT have additional properties"}],!1;{if(e.resource!==void 0){let p=e.resource;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(p!=="git:directory")return st.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"git:directory"},message:"must be equal to constant"}],!1;var o=c===n}else var o=!0;if(o){if(e.url!==void 0){const p=n;if(typeof e.url!="string")return st.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.ref!==void 0){const p=n;if(typeof e.ref!="string")return st.errors=[{instancePath:t+"/ref",schemaPath:"#/properties/ref/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o){if(e.refType!==void 0){let p=e.refType;const c=n;if(typeof p!="string")return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(p==="branch"||p==="tag"||p==="commit"||p==="refname"))return st.errors=[{instancePath:t+"/refType",schemaPath:"#/definitions/GitDirectoryRefType/enum",keyword:"enum",params:{allowedValues:Ib.enum},message:"must be equal to one of the allowed values"}],!1;var o=c===n}else var o=!0;if(o){if(e.path!==void 0){const p=n;if(typeof e.path!="string")return st.errors=[{instancePath:t+"/path",schemaPath:"#/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=p===n}else var o=!0;if(o)if(e[".git"]!==void 0){const p=n;if(typeof e[".git"]!="boolean")return st.errors=[{instancePath:t+"/.git",schemaPath:"#/properties/.git/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var o=p===n}else var o=!0}}}}}}else return st.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return st.errors=s,n===0}const $b={additionalProperties:{anyOf:[{$ref:"#/definitions/FileTree"},{type:["object","string"]}]}},Oa={validate:$r};function $r(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e))for(const p in e){let c=e[p];const m=n,h=n;let g=!1;const R=n;Oa.validate(c,{instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),parentData:e,parentDataProperty:p,rootData:a})||(s=s===null?Oa.validate.errors:s.concat(Oa.validate.errors),n=s.length);var o=R===n;if(g=g||o,!g){const y=n;if(!(c&&typeof c=="object"&&!Array.isArray(c))&&typeof c!="string"){const b={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf/1/type",keyword:"type",params:{type:$b.additionalProperties.anyOf[1].type},message:"must be object,string"};s===null?s=[b]:s.push(b),n++}var o=y===n;g=g||o}if(g)n=h,s!==null&&(h?s.length=h:s=null);else{const y={instancePath:t+"/"+p.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[y]:s.push(y),n++,$r.errors=s,!1}var f=m===n;if(!f)break}else return $r.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return $r.errors=s,n===0}function Mt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let f;if(e.files===void 0&&(f="files")||e.name===void 0&&(f="name")||e.resource===void 0&&(f="resource"))return Mt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:f},message:"must have required property '"+f+"'"}],!1;{const p=n;for(const c in e)if(!(c==="resource"||c==="files"||c==="name"))return Mt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:c},message:"must NOT have additional properties"}],!1;if(p===n){if(e.resource!==void 0){let c=e.resource;const m=n;if(typeof c!="string")return Mt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(c!=="literal:directory")return Mt.errors=[{instancePath:t+"/resource",schemaPath:"#/properties/resource/const",keyword:"const",params:{allowedValue:"literal:directory"},message:"must be equal to constant"}],!1;var o=m===n}else var o=!0;if(o){if(e.files!==void 0){const c=n;$r(e.files,{instancePath:t+"/files",parentData:e,parentDataProperty:"files",rootData:a})||(s=s===null?$r.errors:s.concat($r.errors),n=s.length);var o=c===n}else var o=!0;if(o)if(e.name!==void 0){const c=n;if(typeof e.name!="string")return Mt.errors=[{instancePath:t+"/name",schemaPath:"#/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=c===n}else var o=!0}}}}else return Mt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Mt.errors=s,n===0}function $t(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;const o=n;let f=!1;const p=n;st(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?st.errors:s.concat(st.errors),n=s.length);var c=p===n;if(f=f||c,!f){const m=n;Mt(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?Mt.errors:s.concat(Mt.errors),n=s.length);var c=m===n;f=f||c}if(f)n=o,s!==null&&(o?s.length=o:s=null);else{const m={instancePath:t,schemaPath:"#/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[m]:s.push(m),n++,$t.errors=s,!1}return $t.errors=s,n===0}const Ed={enum:["GET","POST","HEAD","OPTIONS","PATCH","PUT","DELETE"]};function bt(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let b;if(e.url===void 0&&(b="url"))return bt.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:b},message:"must have required property '"+b+"'"}],!1;{const O=n;for(const k in e)if(!(k==="method"||k==="url"||k==="headers"||k==="body"))return bt.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:k},message:"must NOT have additional properties"}],!1;if(O===n){if(e.method!==void 0){let k=e.method;const D=n;if(typeof k!="string")return bt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(k==="GET"||k==="POST"||k==="HEAD"||k==="OPTIONS"||k==="PATCH"||k==="PUT"||k==="DELETE"))return bt.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Ed.enum},message:"must be equal to one of the allowed values"}],!1;var o=D===n}else var o=!0;if(o){if(e.url!==void 0){const k=n;if(typeof e.url!="string")return bt.errors=[{instancePath:t+"/url",schemaPath:"#/properties/url/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=k===n}else var o=!0;if(o){if(e.headers!==void 0){let k=e.headers;const D=n;if(n===n)if(k&&typeof k=="object"&&!Array.isArray(k))for(const E in k){const A=n;if(typeof k[E]!="string")return bt.errors=[{instancePath:t+"/headers/"+E.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=A===n;if(!f)break}else return bt.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=D===n}else var o=!0;if(o)if(e.body!==void 0){let k=e.body;const D=n,T=n;let H=!1;const E=n;if(typeof k!="string"){const L={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[L]:s.push(L),n++}var p=E===n;if(H=H||p,!H){const L=n;if(n===L)if(k&&typeof k=="object"&&!Array.isArray(k)){let P;if(k.BYTES_PER_ELEMENT===void 0&&(P="BYTES_PER_ELEMENT")||k.buffer===void 0&&(P="buffer")||k.byteLength===void 0&&(P="byteLength")||k.byteOffset===void 0&&(P="byteOffset")||k.length===void 0&&(P="length")){const $={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:P},message:"must have required property '"+P+"'"};s===null?s=[$]:s.push($),n++}else{const $=n;for(const I in k)if(!(I==="BYTES_PER_ELEMENT"||I==="buffer"||I==="byteLength"||I==="byteOffset"||I==="length")){let j=k[I];const U=n;if(!(typeof j=="number"&&isFinite(j))){const M={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[M]:s.push(M),n++}var c=U===n;if(!c)break}if($===n){if(k.BYTES_PER_ELEMENT!==void 0){let I=k.BYTES_PER_ELEMENT;const j=n;if(!(typeof I=="number"&&isFinite(I))){const U={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[U]:s.push(U),n++}var m=j===n}else var m=!0;if(m){if(k.buffer!==void 0){let I=k.buffer;const j=n;if(n===j)if(I&&typeof I=="object"&&!Array.isArray(I)){let M;if(I.byteLength===void 0&&(M="byteLength")){const Z={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:M},message:"must have required property '"+M+"'"};s===null?s=[Z]:s.push(Z),n++}else{const Z=n;for(const z in I)if(z!=="byteLength"){const se={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:z},message:"must NOT have additional properties"};s===null?s=[se]:s.push(se),n++;break}if(Z===n&&I.byteLength!==void 0){let z=I.byteLength;if(!(typeof z=="number"&&isFinite(z))){const se={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[se]:s.push(se),n++}}}}else{const M={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[M]:s.push(M),n++}var m=j===n}else var m=!0;if(m){if(k.byteLength!==void 0){let I=k.byteLength;const j=n;if(!(typeof I=="number"&&isFinite(I))){const M={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[M]:s.push(M),n++}var m=j===n}else var m=!0;if(m){if(k.byteOffset!==void 0){let I=k.byteOffset;const j=n;if(!(typeof I=="number"&&isFinite(I))){const M={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[M]:s.push(M),n++}var m=j===n}else var m=!0;if(m)if(k.length!==void 0){let I=k.length;const j=n;if(!(typeof I=="number"&&isFinite(I))){const M={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[M]:s.push(M),n++}var m=j===n}else var m=!0}}}}}}else{const P={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[P]:s.push(P),n++}var p=L===n;if(H=H||p,!H){const P=n;if(n===P)if(k&&typeof k=="object"&&!Array.isArray(k))for(const I in k){let j=k[I];const U=n,M=n;let Z=!1;const z=n;if(typeof j!="string"){const se={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}var h=z===n;if(Z=Z||h,!Z){const se=n;if(n===se)if(j&&typeof j=="object"&&!Array.isArray(j)){let Q;if(j.BYTES_PER_ELEMENT===void 0&&(Q="BYTES_PER_ELEMENT")||j.buffer===void 0&&(Q="buffer")||j.byteLength===void 0&&(Q="byteLength")||j.byteOffset===void 0&&(Q="byteOffset")||j.length===void 0&&(Q="length")){const ee={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/required",keyword:"required",params:{missingProperty:Q},message:"must have required property '"+Q+"'"};s===null?s=[ee]:s.push(ee),n++}else{const ee=n;for(const V in j)if(!(V==="BYTES_PER_ELEMENT"||V==="buffer"||V==="byteLength"||V==="byteOffset"||V==="length")){let fe=j[V];const ie=n;if(!(typeof fe=="number"&&isFinite(fe))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/"+V.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var g=ie===n;if(!g)break}if(ee===n){if(j.BYTES_PER_ELEMENT!==void 0){let V=j.BYTES_PER_ELEMENT;const fe=n;if(!(typeof V=="number"&&isFinite(V))){const ie={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ie]:s.push(ie),n++}var R=fe===n}else var R=!0;if(R){if(j.buffer!==void 0){let V=j.buffer;const fe=n;if(n===fe)if(V&&typeof V=="object"&&!Array.isArray(V)){let ae;if(V.byteLength===void 0&&(ae="byteLength")){const Pe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:ae},message:"must have required property '"+ae+"'"};s===null?s=[Pe]:s.push(Pe),n++}else{const Pe=n;for(const Ce in V)if(Ce!=="byteLength"){const Xe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Ce},message:"must NOT have additional properties"};s===null?s=[Xe]:s.push(Xe),n++;break}if(Pe===n&&V.byteLength!==void 0){let Ce=V.byteLength;if(!(typeof Ce=="number"&&isFinite(Ce))){const Xe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Xe]:s.push(Xe),n++}}}}else{const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/buffer",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ae]:s.push(ae),n++}var R=fe===n}else var R=!0;if(R){if(j.byteLength!==void 0){let V=j.byteLength;const fe=n;if(!(typeof V=="number"&&isFinite(V))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteLength",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var R=fe===n}else var R=!0;if(R){if(j.byteOffset!==void 0){let V=j.byteOffset;const fe=n;if(!(typeof V=="number"&&isFinite(V))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/byteOffset",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var R=fe===n}else var R=!0;if(R)if(j.length!==void 0){let V=j.length;const fe=n;if(!(typeof V=="number"&&isFinite(V))){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/length",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ae]:s.push(ae),n++}var R=fe===n}else var R=!0}}}}}}else{const Q={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Q]:s.push(Q),n++}var h=se===n;if(Z=Z||h,!Z){const Q=n;if(n===Q)if(j&&typeof j=="object"&&!Array.isArray(j)){let V;if(j.lastModified===void 0&&(V="lastModified")||j.name===void 0&&(V="name")||j.size===void 0&&(V="size")||j.type===void 0&&(V="type")||j.webkitRelativePath===void 0&&(V="webkitRelativePath")){const fe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/required",keyword:"required",params:{missingProperty:V},message:"must have required property '"+V+"'"};s===null?s=[fe]:s.push(fe),n++}else{const fe=n;for(const ie in j)if(!(ie==="size"||ie==="type"||ie==="lastModified"||ie==="name"||ie==="webkitRelativePath")){const ae={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:ie},message:"must NOT have additional properties"};s===null?s=[ae]:s.push(ae),n++;break}if(fe===n){if(j.size!==void 0){let ie=j.size;const ae=n;if(!(typeof ie=="number"&&isFinite(ie))){const Pe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/size",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/size/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Pe]:s.push(Pe),n++}var y=ae===n}else var y=!0;if(y){if(j.type!==void 0){const ie=n;if(typeof j.type!="string"){const Pe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/type",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/type/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Pe]:s.push(Pe),n++}var y=ie===n}else var y=!0;if(y){if(j.lastModified!==void 0){let ie=j.lastModified;const ae=n;if(!(typeof ie=="number"&&isFinite(ie))){const Ce={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/lastModified",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/lastModified/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[Ce]:s.push(Ce),n++}var y=ae===n}else var y=!0;if(y){if(j.name!==void 0){const ie=n;if(typeof j.name!="string"){const Pe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/name",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/name/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Pe]:s.push(Pe),n++}var y=ie===n}else var y=!0;if(y)if(j.webkitRelativePath!==void 0){const ie=n;if(typeof j.webkitRelativePath!="string"){const Pe={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1")+"/webkitRelativePath",schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/properties/webkitRelativePath/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Pe]:s.push(Pe),n++}var y=ie===n}else var y=!0}}}}}}else{const V={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[V]:s.push(V),n++}var h=Q===n;Z=Z||h}}if(Z)n=M,s!==null&&(M?s.length=M:s=null);else{const se={instancePath:t+"/body/"+I.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/2/additionalProperties/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};s===null?s=[se]:s.push(se),n++}var _=U===n;if(!_)break}else{const I={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[I]:s.push(I),n++}var p=P===n;H=H||p}}if(H)n=T,s!==null&&(T?s.length=T:s=null);else{const L={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[L]:s.push(L),n++,bt.errors=s,!1}var o=D===n}else var o=!0}}}}}else return bt.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return bt.errors=s,n===0}const Db={properties:{relativeUri:{type:"string",description:"Request path following the domain:port part – after any URL rewriting rules (e.g. apache .htaccess) have been applied."},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."}}};function Me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const R=n;for(const y in e)if(!kd.call(Db.properties,y))return Me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:y},message:"must NOT have additional properties"}],!1;if(R===n){if(e.relativeUri!==void 0){const y=n;if(typeof e.relativeUri!="string")return Me.errors=[{instancePath:t+"/relativeUri",schemaPath:"#/properties/relativeUri/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.scriptPath!==void 0){const y=n;if(typeof e.scriptPath!="string")return Me.errors=[{instancePath:t+"/scriptPath",schemaPath:"#/properties/scriptPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.protocol!==void 0){const y=n;if(typeof e.protocol!="string")return Me.errors=[{instancePath:t+"/protocol",schemaPath:"#/properties/protocol/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0;if(o){if(e.method!==void 0){let y=e.method;const _=n;if(typeof y!="string")return Me.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 Me.errors=[{instancePath:t+"/method",schemaPath:"#/definitions/HTTPMethod/enum",keyword:"enum",params:{allowedValues:Ed.enum},message:"must be equal to one of the allowed values"}],!1;var o=_===n}else var o=!0;if(o){if(e.headers!==void 0){let y=e.headers;const _=n;if(n===n)if(y&&typeof y=="object"&&!Array.isArray(y))for(const k in y){const D=n;if(typeof y[k]!="string")return Me.errors=[{instancePath:t+"/headers/"+k.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPRequestHeaders/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=D===n;if(!f)break}else return Me.errors=[{instancePath:t+"/headers",schemaPath:"#/definitions/PHPRequestHeaders/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=_===n}else var o=!0;if(o){if(e.body!==void 0){let y=e.body;const _=n,b=n;let O=!1;const k=n;if(typeof y!="string"){const T={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[T]:s.push(T),n++}var p=k===n;if(O=O||p,!O){const T=n;if(n===T)if(y&&typeof y=="object"&&!Array.isArray(y)){let E;if(y.BYTES_PER_ELEMENT===void 0&&(E="BYTES_PER_ELEMENT")||y.buffer===void 0&&(E="buffer")||y.byteLength===void 0&&(E="byteLength")||y.byteOffset===void 0&&(E="byteOffset")||y.length===void 0&&(E="length")){const A={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/required",keyword:"required",params:{missingProperty:E},message:"must have required property '"+E+"'"};s===null?s=[A]:s.push(A),n++}else{const A=n;for(const L in y)if(!(L==="BYTES_PER_ELEMENT"||L==="buffer"||L==="byteLength"||L==="byteOffset"||L==="length")){let S=y[L];const P=n;if(!(typeof S=="number"&&isFinite(S))){const $={instancePath:t+"/body/"+L.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/body/anyOf/1/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[$]:s.push($),n++}var c=P===n;if(!c)break}if(A===n){if(y.BYTES_PER_ELEMENT!==void 0){let L=y.BYTES_PER_ELEMENT;const S=n;if(!(typeof L=="number"&&isFinite(L))){const P={instancePath:t+"/body/BYTES_PER_ELEMENT",schemaPath:"#/properties/body/anyOf/1/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[P]:s.push(P),n++}var m=S===n}else var m=!0;if(m){if(y.buffer!==void 0){let L=y.buffer;const S=n;if(n===S)if(L&&typeof L=="object"&&!Array.isArray(L)){let $;if(L.byteLength===void 0&&($="byteLength")){const I={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/required",keyword:"required",params:{missingProperty:$},message:"must have required property '"+$+"'"};s===null?s=[I]:s.push(I),n++}else{const I=n;for(const j in L)if(j!=="byteLength"){const U={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:j},message:"must NOT have additional properties"};s===null?s=[U]:s.push(U),n++;break}if(I===n&&L.byteLength!==void 0){let j=L.byteLength;if(!(typeof j=="number"&&isFinite(j))){const U={instancePath:t+"/body/buffer/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[U]:s.push(U),n++}}}}else{const $={instancePath:t+"/body/buffer",schemaPath:"#/properties/body/anyOf/1/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[$]:s.push($),n++}var m=S===n}else var m=!0;if(m){if(y.byteLength!==void 0){let L=y.byteLength;const S=n;if(!(typeof L=="number"&&isFinite(L))){const $={instancePath:t+"/body/byteLength",schemaPath:"#/properties/body/anyOf/1/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[$]:s.push($),n++}var m=S===n}else var m=!0;if(m){if(y.byteOffset!==void 0){let L=y.byteOffset;const S=n;if(!(typeof L=="number"&&isFinite(L))){const $={instancePath:t+"/body/byteOffset",schemaPath:"#/properties/body/anyOf/1/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[$]:s.push($),n++}var m=S===n}else var m=!0;if(m)if(y.length!==void 0){let L=y.length;const S=n;if(!(typeof L=="number"&&isFinite(L))){const $={instancePath:t+"/body/length",schemaPath:"#/properties/body/anyOf/1/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[$]:s.push($),n++}var m=S===n}else var m=!0}}}}}}else{const E={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[E]:s.push(E),n++}var p=T===n;O=O||p}if(O)n=b,s!==null&&(b?s.length=b:s=null);else{const T={instancePath:t+"/body",schemaPath:"#/properties/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[T]:s.push(T),n++,Me.errors=s,!1}var o=_===n}else var o=!0;if(o){if(e.env!==void 0){let y=e.env;const _=n;if(n===_)if(y&&typeof y=="object"&&!Array.isArray(y))for(const O in y){const k=n;if(typeof y[O]!="string")return Me.errors=[{instancePath:t+"/env/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/env/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=k===n;if(!h)break}else return Me.errors=[{instancePath:t+"/env",schemaPath:"#/properties/env/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=_===n}else var o=!0;if(o){if(e.$_SERVER!==void 0){let y=e.$_SERVER;const _=n;if(n===_)if(y&&typeof y=="object"&&!Array.isArray(y))for(const O in y){const k=n;if(typeof y[O]!="string")return Me.errors=[{instancePath:t+"/$_SERVER/"+O.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/%24_SERVER/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=k===n;if(!g)break}else return Me.errors=[{instancePath:t+"/$_SERVER",schemaPath:"#/properties/%24_SERVER/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=_===n}else var o=!0;if(o)if(e.code!==void 0){const y=n;if(typeof e.code!="string")return Me.errors=[{instancePath:t+"/code",schemaPath:"#/properties/code/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=y===n}else var o=!0}}}}}}}}}else return Me.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return Me.errors=s,n===0}function w(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){let We;if(e.step===void 0&&(We="step"))return w.errors=[{instancePath:t,schemaPath:"#/required",keyword:"required",params:{missingProperty:We},message:"must have required property '"+We+"'"}],!1;{const ce=e.step;if(typeof ce=="string")if(ce==="activatePlugin"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.pluginPath===void 0&&(N="pluginPath")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/0/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="pluginPath"||l==="pluginName"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/0/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/0/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var o=re===n}else var o=!0;if(o)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/0/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=x===n}else var o=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/0/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var f=F===n}else var f=!0;if(f){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="activatePlugin")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/0/properties/step/const",keyword:"const",params:{allowedValue:"activatePlugin"},message:"must be equal to constant"}],!1;var f=F===n}else var f=!0;if(f){if(e.pluginPath!==void 0){const l=n;if(typeof e.pluginPath!="string")return w.errors=[{instancePath:t+"/pluginPath",schemaPath:"#/oneOf/0/properties/pluginPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=l===n}else var f=!0;if(f)if(e.pluginName!==void 0){const l=n;if(typeof e.pluginName!="string")return w.errors=[{instancePath:t+"/pluginName",schemaPath:"#/oneOf/0/properties/pluginName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=l===n}else var f=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/0/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="activateTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step")||e.themeFolderName===void 0&&(N="themeFolderName"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="themeFolderName"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/1/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var p=re===n}else var p=!0;if(p)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/1/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=x===n}else var p=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/1/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var c=F===n}else var c=!0;if(c){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="activateTheme")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/1/properties/step/const",keyword:"const",params:{allowedValue:"activateTheme"},message:"must be equal to constant"}],!1;var c=F===n}else var c=!0;if(c)if(e.themeFolderName!==void 0){const l=n;if(typeof e.themeFolderName!="string")return w.errors=[{instancePath:t+"/themeFolderName",schemaPath:"#/oneOf/1/properties/themeFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var c=l===n}else var c=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="cp"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.fromPath===void 0&&(N="fromPath")||e.step===void 0&&(N="step")||e.toPath===void 0&&(N="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/2/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="fromPath"||l==="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/2/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/2/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var m=re===n}else var m=!0;if(m)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/2/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=x===n}else var m=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/2/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var h=F===n}else var h=!0;if(h){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="cp")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/2/properties/step/const",keyword:"const",params:{allowedValue:"cp"},message:"must be equal to constant"}],!1;var h=F===n}else var h=!0;if(h){if(e.fromPath!==void 0){const l=n;if(typeof e.fromPath!="string")return w.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/2/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=l===n}else var h=!0;if(h)if(e.toPath!==void 0){const l=n;if(typeof e.toPath!="string")return w.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/2/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var h=l===n}else var h=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineWpConfigConsts"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.consts===void 0&&(N="consts")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/3/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="consts"||l==="method"||l==="virtualize"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/3/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/3/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var g=re===n}else var g=!0;if(g)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/3/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var g=x===n}else var g=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/3/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var R=F===n}else var R=!0;if(R){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="defineWpConfigConsts")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/3/properties/step/const",keyword:"const",params:{allowedValue:"defineWpConfigConsts"},message:"must be equal to constant"}],!1;var R=F===n}else var R=!0;if(R){if(e.consts!==void 0){let l=e.consts;const F=n;if(n===F&&!(l&&typeof l=="object"&&!Array.isArray(l)))return w.errors=[{instancePath:t+"/consts",schemaPath:"#/oneOf/3/properties/consts/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var R=F===n}else var R=!0;if(R){if(e.method!==void 0){let l=e.method;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="rewrite-wp-config"||l==="define-before-run"))return w.errors=[{instancePath:t+"/method",schemaPath:"#/oneOf/3/properties/method/enum",keyword:"enum",params:{allowedValues:Es.oneOf[3].properties.method.enum},message:"must be equal to one of the allowed values"}],!1;var R=F===n}else var R=!0;if(R)if(e.virtualize!==void 0){const l=n;if(typeof e.virtualize!="boolean")return w.errors=[{instancePath:t+"/virtualize",schemaPath:"#/oneOf/3/properties/virtualize/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var R=l===n}else var R=!0}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/3/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="defineSiteUrl"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.siteUrl===void 0&&(N="siteUrl")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/4/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="siteUrl"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/4/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.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=re===n}else var y=!0;if(y)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.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=x===n}else var y=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/4/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var _=F===n}else var _=!0;if(_){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="defineSiteUrl")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/4/properties/step/const",keyword:"const",params:{allowedValue:"defineSiteUrl"},message:"must be equal to constant"}],!1;var _=F===n}else var _=!0;if(_)if(e.siteUrl!==void 0){const l=n;if(typeof e.siteUrl!="string")return w.errors=[{instancePath:t+"/siteUrl",schemaPath:"#/oneOf/4/properties/siteUrl/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _=l===n}else var _=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/4/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="enableMultisite"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/5/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="wpCliPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/5/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/5/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var b=re===n}else var b=!0;if(b)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/5/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=x===n}else var b=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/5/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var O=F===n}else var O=!0;if(O){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="enableMultisite")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/5/properties/step/const",keyword:"const",params:{allowedValue:"enableMultisite"},message:"must be equal to constant"}],!1;var O=F===n}else var O=!0;if(O)if(e.wpCliPath!==void 0){const l=n;if(typeof e.wpCliPath!="string")return w.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/5/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var O=l===n}else var O=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/5/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWxr"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.file===void 0&&(N="file")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/6/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="file"||l==="importer"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/6/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/6/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var k=re===n}else var k=!0;if(k)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/6/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var k=x===n}else var k=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/6/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var D=F===n}else var D=!0;if(D){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="importWxr")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/6/properties/step/const",keyword:"const",params:{allowedValue:"importWxr"},message:"must be equal to constant"}],!1;var D=F===n}else var D=!0;if(D){if(e.file!==void 0){const l=n;ke(e.file,{instancePath:t+"/file",parentData:e,parentDataProperty:"file",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var D=l===n}else var D=!0;if(D)if(e.importer!==void 0){let l=e.importer;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="data-liberation"||l==="default"))return w.errors=[{instancePath:t+"/importer",schemaPath:"#/oneOf/6/properties/importer/enum",keyword:"enum",params:{allowedValues:Es.oneOf[6].properties.importer.enum},message:"must be equal to one of the allowed values"}],!1;var D=F===n}else var D=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/6/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importThemeStarterContent"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/7/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="themeSlug"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/7/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/7/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var T=re===n}else var T=!0;if(T)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/7/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var T=x===n}else var T=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/7/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var H=F===n}else var H=!0;if(H){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="importThemeStarterContent")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/7/properties/step/const",keyword:"const",params:{allowedValue:"importThemeStarterContent"},message:"must be equal to constant"}],!1;var H=F===n}else var H=!0;if(H)if(e.themeSlug!==void 0){const l=n;if(typeof e.themeSlug!="string")return w.errors=[{instancePath:t+"/themeSlug",schemaPath:"#/oneOf/7/properties/themeSlug/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var H=l===n}else var H=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/7/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="importWordPressFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step")||e.wordPressFilesZip===void 0&&(N="wordPressFilesZip"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/8/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="wordPressFilesZip"||l==="pathInZip"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/8/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/8/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var E=re===n}else var E=!0;if(E)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/8/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var E=x===n}else var E=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/8/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var A=F===n}else var A=!0;if(A){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="importWordPressFiles")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/8/properties/step/const",keyword:"const",params:{allowedValue:"importWordPressFiles"},message:"must be equal to constant"}],!1;var A=F===n}else var A=!0;if(A){if(e.wordPressFilesZip!==void 0){const l=n;ke(e.wordPressFilesZip,{instancePath:t+"/wordPressFilesZip",parentData:e,parentDataProperty:"wordPressFilesZip",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var A=l===n}else var A=!0;if(A)if(e.pathInZip!==void 0){const l=n;if(typeof e.pathInZip!="string")return w.errors=[{instancePath:t+"/pathInZip",schemaPath:"#/oneOf/8/properties/pathInZip/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var A=l===n}else var A=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/8/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installPlugin"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.pluginData===void 0&&(N="pluginData")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/9/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="ifAlreadyInstalled"||l==="step"||l==="pluginData"||l==="pluginZipFile"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/9/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/9/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var L=re===n}else var L=!0;if(L)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/9/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var L=x===n}else var L=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/9/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var S=F===n}else var S=!0;if(S){if(e.ifAlreadyInstalled!==void 0){let l=e.ifAlreadyInstalled;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="overwrite"||l==="skip"||l==="error"))return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/9/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Es.oneOf[9].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var S=F===n}else var S=!0;if(S){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="installPlugin")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/9/properties/step/const",keyword:"const",params:{allowedValue:"installPlugin"},message:"must be equal to constant"}],!1;var S=F===n}else var S=!0;if(S){if(e.pluginData!==void 0){let l=e.pluginData;const F=n,te=n;let x=!1;const re=n;ke(l,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var P=re===n;if(x=x||P,!x){const xe=n;$t(l,{instancePath:t+"/pluginData",parentData:e,parentDataProperty:"pluginData",rootData:a})||(s=s===null?$t.errors:s.concat($t.errors),n=s.length);var P=xe===n;x=x||P}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/pluginData",schemaPath:"#/oneOf/9/properties/pluginData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var S=F===n}else var S=!0;if(S){if(e.pluginZipFile!==void 0){const l=n;ke(e.pluginZipFile,{instancePath:t+"/pluginZipFile",parentData:e,parentDataProperty:"pluginZipFile",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var S=l===n}else var S=!0;if(S)if(e.options!==void 0){let l=e.options;const F=n;if(n===n)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=n;for(const Oe in l)if(!(Oe==="activate"||Oe==="targetFolderName"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Oe},message:"must NOT have additional properties"}],!1;if(re===n){if(l.activate!==void 0){const Oe=n;if(typeof l.activate!="boolean")return w.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallPluginOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var $=Oe===n}else var $=!0;if($)if(l.targetFolderName!==void 0){const Oe=n;if(typeof l.targetFolderName!="string")return w.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallPluginOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var $=Oe===n}else var $=!0}}else return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallPluginOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var S=F===n}else var S=!0}}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/9/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="installTheme"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step")||e.themeData===void 0&&(N="themeData"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/10/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="ifAlreadyInstalled"||l==="step"||l==="themeData"||l==="themeZipFile"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/10/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/10/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var I=re===n}else var I=!0;if(I)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/10/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var I=x===n}else var I=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/10/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var j=F===n}else var j=!0;if(j){if(e.ifAlreadyInstalled!==void 0){let l=e.ifAlreadyInstalled;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(!(l==="overwrite"||l==="skip"||l==="error"))return w.errors=[{instancePath:t+"/ifAlreadyInstalled",schemaPath:"#/oneOf/10/properties/ifAlreadyInstalled/enum",keyword:"enum",params:{allowedValues:Es.oneOf[10].properties.ifAlreadyInstalled.enum},message:"must be equal to one of the allowed values"}],!1;var j=F===n}else var j=!0;if(j){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="installTheme")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/10/properties/step/const",keyword:"const",params:{allowedValue:"installTheme"},message:"must be equal to constant"}],!1;var j=F===n}else var j=!0;if(j){if(e.themeData!==void 0){let l=e.themeData;const F=n,te=n;let x=!1;const re=n;ke(l,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var U=re===n;if(x=x||U,!x){const xe=n;$t(l,{instancePath:t+"/themeData",parentData:e,parentDataProperty:"themeData",rootData:a})||(s=s===null?$t.errors:s.concat($t.errors),n=s.length);var U=xe===n;x=x||U}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/themeData",schemaPath:"#/oneOf/10/properties/themeData/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var j=F===n}else var j=!0;if(j){if(e.themeZipFile!==void 0){const l=n;ke(e.themeZipFile,{instancePath:t+"/themeZipFile",parentData:e,parentDataProperty:"themeZipFile",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var j=l===n}else var j=!0;if(j)if(e.options!==void 0){let l=e.options;const F=n;if(n===n)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=n;for(const Oe in l)if(!(Oe==="activate"||Oe==="importStarterContent"||Oe==="targetFolderName"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Oe},message:"must NOT have additional properties"}],!1;if(re===n){if(l.activate!==void 0){const Oe=n;if(typeof l.activate!="boolean")return w.errors=[{instancePath:t+"/options/activate",schemaPath:"#/definitions/InstallThemeOptions/properties/activate/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var M=Oe===n}else var M=!0;if(M){if(l.importStarterContent!==void 0){const Oe=n;if(typeof l.importStarterContent!="boolean")return w.errors=[{instancePath:t+"/options/importStarterContent",schemaPath:"#/definitions/InstallThemeOptions/properties/importStarterContent/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var M=Oe===n}else var M=!0;if(M)if(l.targetFolderName!==void 0){const Oe=n;if(typeof l.targetFolderName!="string")return w.errors=[{instancePath:t+"/options/targetFolderName",schemaPath:"#/definitions/InstallThemeOptions/properties/targetFolderName/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var M=Oe===n}else var M=!0}}}else return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/InstallThemeOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var j=F===n}else var j=!0}}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/10/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="login"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/11/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="username"||l==="password"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/11/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/11/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Z=re===n}else var Z=!0;if(Z)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/11/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Z=x===n}else var Z=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/11/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var z=F===n}else var z=!0;if(z){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="login")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/11/properties/step/const",keyword:"const",params:{allowedValue:"login"},message:"must be equal to constant"}],!1;var z=F===n}else var z=!0;if(z){if(e.username!==void 0){const l=n;if(typeof e.username!="string")return w.errors=[{instancePath:t+"/username",schemaPath:"#/oneOf/11/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=l===n}else var z=!0;if(z)if(e.password!==void 0){const l=n;if(typeof e.password!="string")return w.errors=[{instancePath:t+"/password",schemaPath:"#/oneOf/11/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var z=l===n}else var z=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/11/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mkdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/12/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/12/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/12/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var se=re===n}else var se=!0;if(se)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/12/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var se=x===n}else var se=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/12/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var G=F===n}else var G=!0;if(G){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="mkdir")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/12/properties/step/const",keyword:"const",params:{allowedValue:"mkdir"},message:"must be equal to constant"}],!1;var G=F===n}else var G=!0;if(G)if(e.path!==void 0){const l=n;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/12/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var G=l===n}else var G=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/12/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="mv"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.fromPath===void 0&&(N="fromPath")||e.step===void 0&&(N="step")||e.toPath===void 0&&(N="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/13/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="fromPath"||l==="toPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/13/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/13/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Q=re===n}else var Q=!0;if(Q)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/13/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Q=x===n}else var Q=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/13/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ee=F===n}else var ee=!0;if(ee){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="mv")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/13/properties/step/const",keyword:"const",params:{allowedValue:"mv"},message:"must be equal to constant"}],!1;var ee=F===n}else var ee=!0;if(ee){if(e.fromPath!==void 0){const l=n;if(typeof e.fromPath!="string")return w.errors=[{instancePath:t+"/fromPath",schemaPath:"#/oneOf/13/properties/fromPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=l===n}else var ee=!0;if(ee)if(e.toPath!==void 0){const l=n;if(typeof e.toPath!="string")return w.errors=[{instancePath:t+"/toPath",schemaPath:"#/oneOf/13/properties/toPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ee=l===n}else var ee=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/13/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="resetData"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/14/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/14/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/14/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var V=re===n}else var V=!0;if(V)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/14/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var V=x===n}else var V=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/14/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var fe=F===n}else var fe=!0;if(fe)if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="resetData")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/14/properties/step/const",keyword:"const",params:{allowedValue:"resetData"},message:"must be equal to constant"}],!1;var fe=F===n}else var fe=!0}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/14/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="request"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.request===void 0&&(N="request")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/15/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="request"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/15/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/15/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ie=re===n}else var ie=!0;if(ie)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/15/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var ie=x===n}else var ie=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/15/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ae=F===n}else var ae=!0;if(ae){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="request")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/15/properties/step/const",keyword:"const",params:{allowedValue:"request"},message:"must be equal to constant"}],!1;var ae=F===n}else var ae=!0;if(ae)if(e.request!==void 0){const l=n;bt(e.request,{instancePath:t+"/request",parentData:e,parentDataProperty:"request",rootData:a})||(s=s===null?bt.errors:s.concat(bt.errors),n=s.length);var ae=l===n}else var ae=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/15/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rm"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/16/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/16/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/16/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Pe=re===n}else var Pe=!0;if(Pe)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/16/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Pe=x===n}else var Pe=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/16/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var Ce=F===n}else var Ce=!0;if(Ce){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="rm")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/16/properties/step/const",keyword:"const",params:{allowedValue:"rm"},message:"must be equal to constant"}],!1;var Ce=F===n}else var Ce=!0;if(Ce)if(e.path!==void 0){const l=n;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/16/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Ce=l===n}else var Ce=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/16/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="rmdir"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/17/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/17/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/17/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Xe=re===n}else var Xe=!0;if(Xe)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/17/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Xe=x===n}else var Xe=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/17/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var tt=F===n}else var tt=!0;if(tt){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="rmdir")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/17/properties/step/const",keyword:"const",params:{allowedValue:"rmdir"},message:"must be equal to constant"}],!1;var tt=F===n}else var tt=!0;if(tt)if(e.path!==void 0){const l=n;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/17/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var tt=l===n}else var tt=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/17/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHP"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.code===void 0&&(N="code")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/18/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="code"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/18/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/18/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var St=re===n}else var St=!0;if(St)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/18/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var St=x===n}else var St=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/18/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var $e=F===n}else var $e=!0;if($e){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runPHP")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/18/properties/step/const",keyword:"const",params:{allowedValue:"runPHP"},message:"must be equal to constant"}],!1;var $e=F===n}else var $e=!0;if($e)if(e.code!==void 0){let l=e.code;const F=n,te=n;let x=!1;const re=n;if(typeof l!="string"){const xe={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[xe]:s.push(xe),n++}var De=re===n;if(x=x||De,!x){const xe=n;if(n===xe)if(l&&typeof l=="object"&&!Array.isArray(l)){let Ke;if(l.filename===void 0&&(Ke="filename")||l.content===void 0&&(Ke="content")){const Qt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/required",keyword:"required",params:{missingProperty:Ke},message:"must have required property '"+Ke+"'"};s===null?s=[Qt]:s.push(Qt),n++}else{const Qt=n;for(const Ue in l)if(!(Ue==="filename"||Ue==="content")){const Bt={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Ue},message:"must NOT have additional properties"};s===null?s=[Bt]:s.push(Bt),n++;break}if(Qt===n){if(l.filename!==void 0){const Ue=n;if(typeof l.filename!="string"){const Bt={instancePath:t+"/code/filename",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/filename/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Bt]:s.push(Bt),n++}var ft=Ue===n}else var ft=!0;if(ft)if(l.content!==void 0){const Ue=n;if(typeof l.content!="string"){const we={instancePath:t+"/code/content",schemaPath:"#/oneOf/18/properties/code/anyOf/1/properties/content/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[we]:s.push(we),n++}var ft=Ue===n}else var ft=!0}}}else{const Ke={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Ke]:s.push(Ke),n++}var De=xe===n;x=x||De}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/code",schemaPath:"#/oneOf/18/properties/code/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var $e=F===n}else var $e=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/18/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runPHPWithOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.options===void 0&&(N="options")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/19/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/19/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/19/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Le=re===n}else var Le=!0;if(Le)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/19/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Le=x===n}else var Le=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/19/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var v=F===n}else var v=!0;if(v){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runPHPWithOptions")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/19/properties/step/const",keyword:"const",params:{allowedValue:"runPHPWithOptions"},message:"must be equal to constant"}],!1;var v=F===n}else var v=!0;if(v)if(e.options!==void 0){const l=n;Me(e.options,{instancePath:t+"/options",parentData:e,parentDataProperty:"options",rootData:a})||(s=s===null?Me.errors:s.concat(Me.errors),n=s.length);var v=l===n}else var v=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/19/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runWpInstallationWizard"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.options===void 0&&(N="options")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/20/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/20/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/20/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var u=re===n}else var u=!0;if(u)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/20/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var u=x===n}else var u=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/20/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=F===n}else var d=!0;if(d){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runWpInstallationWizard")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/20/properties/step/const",keyword:"const",params:{allowedValue:"runWpInstallationWizard"},message:"must be equal to constant"}],!1;var d=F===n}else var d=!0;if(d)if(e.options!==void 0){let l=e.options;const F=n;if(n===n)if(l&&typeof l=="object"&&!Array.isArray(l)){const re=n;for(const Oe in l)if(!(Oe==="adminUsername"||Oe==="adminPassword"))return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Oe},message:"must NOT have additional properties"}],!1;if(re===n){if(l.adminUsername!==void 0){const Oe=n;if(typeof l.adminUsername!="string")return w.errors=[{instancePath:t+"/options/adminUsername",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminUsername/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=Oe===n}else var C=!0;if(C)if(l.adminPassword!==void 0){const Oe=n;if(typeof l.adminPassword!="string")return w.errors=[{instancePath:t+"/options/adminPassword",schemaPath:"#/definitions/WordPressInstallationOptions/properties/adminPassword/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var C=Oe===n}else var C=!0}}else return w.errors=[{instancePath:t+"/options",schemaPath:"#/definitions/WordPressInstallationOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var d=F===n}else var d=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/20/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="runSql"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.sql===void 0&&(N="sql")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/21/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="sql"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/21/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/21/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var B=re===n}else var B=!0;if(B)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/21/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var B=x===n}else var B=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/21/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var K=F===n}else var K=!0;if(K){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="runSql")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/21/properties/step/const",keyword:"const",params:{allowedValue:"runSql"},message:"must be equal to constant"}],!1;var K=F===n}else var K=!0;if(K)if(e.sql!==void 0){const l=n;ke(e.sql,{instancePath:t+"/sql",parentData:e,parentDataProperty:"sql",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var K=l===n}else var K=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/21/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteOptions"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.options===void 0&&(N="options")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/22/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="options"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/22/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/22/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var X=re===n}else var X=!0;if(X)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/22/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var X=x===n}else var X=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/22/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=F===n}else var pe=!0;if(pe){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="setSiteOptions")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/22/properties/step/const",keyword:"const",params:{allowedValue:"setSiteOptions"},message:"must be equal to constant"}],!1;var pe=F===n}else var pe=!0;if(pe)if(e.options!==void 0){let l=e.options;const F=n;if(n===F&&!(l&&typeof l=="object"&&!Array.isArray(l)))return w.errors=[{instancePath:t+"/options",schemaPath:"#/oneOf/22/properties/options/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var pe=F===n}else var pe=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/22/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="unzip"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.extractToPath===void 0&&(N="extractToPath")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/23/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="zipFile"||l==="zipPath"||l==="extractToPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/23/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/23/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var _e=re===n}else var _e=!0;if(_e)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/23/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var _e=x===n}else var _e=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/23/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var he=F===n}else var he=!0;if(he){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="unzip")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/23/properties/step/const",keyword:"const",params:{allowedValue:"unzip"},message:"must be equal to constant"}],!1;var he=F===n}else var he=!0;if(he){if(e.zipFile!==void 0){const l=n;ke(e.zipFile,{instancePath:t+"/zipFile",parentData:e,parentDataProperty:"zipFile",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var he=l===n}else var he=!0;if(he){if(e.zipPath!==void 0){const l=n;if(typeof e.zipPath!="string")return w.errors=[{instancePath:t+"/zipPath",schemaPath:"#/oneOf/23/properties/zipPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=l===n}else var he=!0;if(he)if(e.extractToPath!==void 0){const l=n;if(typeof e.extractToPath!="string")return w.errors=[{instancePath:t+"/extractToPath",schemaPath:"#/oneOf/23/properties/extractToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var he=l===n}else var he=!0}}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/23/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="updateUserMeta"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.meta===void 0&&(N="meta")||e.step===void 0&&(N="step")||e.userId===void 0&&(N="userId"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/24/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="meta"||l==="userId"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/24/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/24/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Be=re===n}else var Be=!0;if(Be)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/24/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Be=x===n}else var Be=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/24/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=F===n}else var ue=!0;if(ue){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="updateUserMeta")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/24/properties/step/const",keyword:"const",params:{allowedValue:"updateUserMeta"},message:"must be equal to constant"}],!1;var ue=F===n}else var ue=!0;if(ue){if(e.meta!==void 0){let l=e.meta;const F=n;if(n===F&&!(l&&typeof l=="object"&&!Array.isArray(l)))return w.errors=[{instancePath:t+"/meta",schemaPath:"#/oneOf/24/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var ue=F===n}else var ue=!0;if(ue)if(e.userId!==void 0){let l=e.userId;const F=n;if(!(typeof l=="number"&&isFinite(l)))return w.errors=[{instancePath:t+"/userId",schemaPath:"#/oneOf/24/properties/userId/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var ue=F===n}else var ue=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/24/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFile"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.data===void 0&&(N="data")||e.path===void 0&&(N="path")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/25/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="path"||l==="data"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/25/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/25/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var mt=re===n}else var mt=!0;if(mt)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/25/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var mt=x===n}else var mt=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/25/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var rt=F===n}else var rt=!0;if(rt){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="writeFile")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/25/properties/step/const",keyword:"const",params:{allowedValue:"writeFile"},message:"must be equal to constant"}],!1;var rt=F===n}else var rt=!0;if(rt){if(e.path!==void 0){const l=n;if(typeof e.path!="string")return w.errors=[{instancePath:t+"/path",schemaPath:"#/oneOf/25/properties/path/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var rt=l===n}else var rt=!0;if(rt)if(e.data!==void 0){let l=e.data;const F=n,te=n;let x=!1;const re=n;ke(l,{instancePath:t+"/data",parentData:e,parentDataProperty:"data",rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var Ot=re===n;if(x=x||Ot,!x){const xe=n;if(typeof l!="string"){const Ke={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Ke]:s.push(Ke),n++}var Ot=xe===n;if(x=x||Ot,!x){const Ke=n;if(n===Ke)if(l&&typeof l=="object"&&!Array.isArray(l)){let Ue;if(l.BYTES_PER_ELEMENT===void 0&&(Ue="BYTES_PER_ELEMENT")||l.buffer===void 0&&(Ue="buffer")||l.byteLength===void 0&&(Ue="byteLength")||l.byteOffset===void 0&&(Ue="byteOffset")||l.length===void 0&&(Ue="length")){const Bt={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/required",keyword:"required",params:{missingProperty:Ue},message:"must have required property '"+Ue+"'"};s===null?s=[Bt]:s.push(Bt),n++}else{const Bt=n;for(const we in l)if(!(we==="BYTES_PER_ELEMENT"||we==="buffer"||we==="byteLength"||we==="byteOffset"||we==="length")){let yt=l[we];const os=n;if(!(typeof yt=="number"&&isFinite(yt))){const ze={instancePath:t+"/data/"+we.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/oneOf/25/properties/data/anyOf/2/additionalProperties/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var xi=os===n;if(!xi)break}if(Bt===n){if(l.BYTES_PER_ELEMENT!==void 0){let we=l.BYTES_PER_ELEMENT;const yt=n;if(!(typeof we=="number"&&isFinite(we))){const os={instancePath:t+"/data/BYTES_PER_ELEMENT",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/BYTES_PER_ELEMENT/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[os]:s.push(os),n++}var nt=yt===n}else var nt=!0;if(nt){if(l.buffer!==void 0){let we=l.buffer;const yt=n;if(n===yt)if(we&&typeof we=="object"&&!Array.isArray(we)){let ze;if(we.byteLength===void 0&&(ze="byteLength")){const ls={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/required",keyword:"required",params:{missingProperty:ze},message:"must have required property '"+ze+"'"};s===null?s=[ls]:s.push(ls),n++}else{const ls=n;for(const gn in we)if(gn!=="byteLength"){const _n={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:gn},message:"must NOT have additional properties"};s===null?s=[_n]:s.push(_n),n++;break}if(ls===n&&we.byteLength!==void 0){let gn=we.byteLength;if(!(typeof gn=="number"&&isFinite(gn))){const _n={instancePath:t+"/data/buffer/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[_n]:s.push(_n),n++}}}}else{const ze={instancePath:t+"/data/buffer",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/buffer/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[ze]:s.push(ze),n++}var nt=yt===n}else var nt=!0;if(nt){if(l.byteLength!==void 0){let we=l.byteLength;const yt=n;if(!(typeof we=="number"&&isFinite(we))){const ze={instancePath:t+"/data/byteLength",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteLength/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var nt=yt===n}else var nt=!0;if(nt){if(l.byteOffset!==void 0){let we=l.byteOffset;const yt=n;if(!(typeof we=="number"&&isFinite(we))){const ze={instancePath:t+"/data/byteOffset",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/byteOffset/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var nt=yt===n}else var nt=!0;if(nt)if(l.length!==void 0){let we=l.length;const yt=n;if(!(typeof we=="number"&&isFinite(we))){const ze={instancePath:t+"/data/length",schemaPath:"#/oneOf/25/properties/data/anyOf/2/properties/length/type",keyword:"type",params:{type:"number"},message:"must be number"};s===null?s=[ze]:s.push(ze),n++}var nt=yt===n}else var nt=!0}}}}}}else{const Ue={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf/2/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[Ue]:s.push(Ue),n++}var Ot=Ke===n;x=x||Ot}}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/data",schemaPath:"#/oneOf/25/properties/data/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var rt=F===n}else var rt=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/25/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="writeFiles"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.filesTree===void 0&&(N="filesTree")||e.step===void 0&&(N="step")||e.writeToPath===void 0&&(N="writeToPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/26/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="writeToPath"||l==="filesTree"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/26/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/26/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Mr=re===n}else var Mr=!0;if(Mr)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/26/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Mr=x===n}else var Mr=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/26/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var W=F===n}else var W=!0;if(W){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="writeFiles")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/26/properties/step/const",keyword:"const",params:{allowedValue:"writeFiles"},message:"must be equal to constant"}],!1;var W=F===n}else var W=!0;if(W){if(e.writeToPath!==void 0){const l=n;if(typeof e.writeToPath!="string")return w.errors=[{instancePath:t+"/writeToPath",schemaPath:"#/oneOf/26/properties/writeToPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var W=l===n}else var W=!0;if(W)if(e.filesTree!==void 0){const l=n;$t(e.filesTree,{instancePath:t+"/filesTree",parentData:e,parentDataProperty:"filesTree",rootData:a})||(s=s===null?$t.errors:s.concat($t.errors),n=s.length);var W=l===n}else var W=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/26/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="wp-cli"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.command===void 0&&(N="command")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/27/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="command"||l==="wpCliPath"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/27/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/27/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var Y=re===n}else var Y=!0;if(Y)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/27/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var Y=x===n}else var Y=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/27/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var q=F===n}else var q=!0;if(q){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="wp-cli")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/27/properties/step/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var q=F===n}else var q=!0;if(q){if(e.command!==void 0){let l=e.command;const F=n,te=n;let x=!1;const re=n;if(typeof l!="string"){const xe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[xe]:s.push(xe),n++}var J=re===n;if(x=x||J,!x){const xe=n;if(n===xe)if(Array.isArray(l)){var ne=!0;const Ke=l.length;for(let Qt=0;Qt<Ke;Qt++){const Ue=n;if(typeof l[Qt]!="string"){const we={instancePath:t+"/command/"+Qt,schemaPath:"#/oneOf/27/properties/command/anyOf/1/items/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[we]:s.push(we),n++}var ne=Ue===n;if(!ne)break}}else{const Ke={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf/1/type",keyword:"type",params:{type:"array"},message:"must be array"};s===null?s=[Ke]:s.push(Ke),n++}var J=xe===n;x=x||J}if(x)n=te,s!==null&&(te?s.length=te:s=null);else{const xe={instancePath:t+"/command",schemaPath:"#/oneOf/27/properties/command/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[xe]:s.push(xe),n++,w.errors=s,!1}var q=F===n}else var q=!0;if(q)if(e.wpCliPath!==void 0){const l=n;if(typeof e.wpCliPath!="string")return w.errors=[{instancePath:t+"/wpCliPath",schemaPath:"#/oneOf/27/properties/wpCliPath/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var q=l===n}else var q=!0}}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/27/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else if(ce==="setSiteLanguage"){if(n===n)if(e&&typeof e=="object"&&!Array.isArray(e)){let N;if(e.language===void 0&&(N="language")||e.step===void 0&&(N="step"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/28/required",keyword:"required",params:{missingProperty:N},message:"must have required property '"+N+"'"}],!1;{const oe=n;for(const l in e)if(!(l==="progress"||l==="step"||l==="language"))return w.errors=[{instancePath:t,schemaPath:"#/oneOf/28/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:l},message:"must NOT have additional properties"}],!1;if(oe===n){if(e.progress!==void 0){let l=e.progress;const F=n;if(n===F)if(l&&typeof l=="object"&&!Array.isArray(l)){const te=n;for(const x in l)if(!(x==="weight"||x==="caption"))return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:x},message:"must NOT have additional properties"}],!1;if(te===n){if(l.weight!==void 0){let x=l.weight;const re=n;if(!(typeof x=="number"&&isFinite(x)))return w.errors=[{instancePath:t+"/progress/weight",schemaPath:"#/oneOf/28/properties/progress/properties/weight/type",keyword:"type",params:{type:"number"},message:"must be number"}],!1;var le=re===n}else var le=!0;if(le)if(l.caption!==void 0){const x=n;if(typeof l.caption!="string")return w.errors=[{instancePath:t+"/progress/caption",schemaPath:"#/oneOf/28/properties/progress/properties/caption/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var le=x===n}else var le=!0}}else return w.errors=[{instancePath:t+"/progress",schemaPath:"#/oneOf/28/properties/progress/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var de=F===n}else var de=!0;if(de){if(e.step!==void 0){let l=e.step;const F=n;if(typeof l!="string")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if(l!=="setSiteLanguage")return w.errors=[{instancePath:t+"/step",schemaPath:"#/oneOf/28/properties/step/const",keyword:"const",params:{allowedValue:"setSiteLanguage"},message:"must be equal to constant"}],!1;var de=F===n}else var de=!0;if(de)if(e.language!==void 0){const l=n;if(typeof e.language!="string")return w.errors=[{instancePath:t+"/language",schemaPath:"#/oneOf/28/properties/language/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var de=l===n}else var de=!0}}}}else return w.errors=[{instancePath:t,schemaPath:"#/oneOf/28/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1}else return w.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"mapping",tag:"step",tagValue:ce},message:'value of tag "step" must be in oneOf'}],!1;else return w.errors=[{instancePath:t,schemaPath:"#/discriminator",keyword:"discriminator",params:{error:"tag",tag:"step",tagValue:ce},message:'tag "step" must be string'}],!1}}else return w.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return w.errors=s,n===0}function me(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;if(n===0)if(e&&typeof e=="object"&&!Array.isArray(e)){const H=n;for(const E in e)if(!kd.call(Ob.properties,E))return me.errors=[{instancePath:t,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:E},message:"must NOT have additional properties"}],!1;if(H===n){if(e.landingPage!==void 0){const E=n;if(typeof e.landingPage!="string")return me.errors=[{instancePath:t+"/landingPage",schemaPath:"#/properties/landingPage/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0;if(o){if(e.description!==void 0){const E=n;if(typeof e.description!="string")return me.errors=[{instancePath:t+"/description",schemaPath:"#/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0;if(o){if(e.meta!==void 0){let E=e.meta;const A=n;if(n===A)if(E&&typeof E=="object"&&!Array.isArray(E)){let S;if(E.title===void 0&&(S="title")||E.author===void 0&&(S="author"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"}],!1;{const P=n;for(const $ in E)if(!($==="title"||$==="description"||$==="author"||$==="categories"))return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$},message:"must NOT have additional properties"}],!1;if(P===n){if(E.title!==void 0){const $=n;if(typeof E.title!="string")return me.errors=[{instancePath:t+"/meta/title",schemaPath:"#/properties/meta/properties/title/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=$===n}else var f=!0;if(f){if(E.description!==void 0){const $=n;if(typeof E.description!="string")return me.errors=[{instancePath:t+"/meta/description",schemaPath:"#/properties/meta/properties/description/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=$===n}else var f=!0;if(f){if(E.author!==void 0){const $=n;if(typeof E.author!="string")return me.errors=[{instancePath:t+"/meta/author",schemaPath:"#/properties/meta/properties/author/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var f=$===n}else var f=!0;if(f)if(E.categories!==void 0){let $=E.categories;const I=n;if(n===I)if(Array.isArray($)){var p=!0;const U=$.length;for(let M=0;M<U;M++){const Z=n;if(typeof $[M]!="string")return me.errors=[{instancePath:t+"/meta/categories/"+M,schemaPath:"#/properties/meta/properties/categories/items/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var p=Z===n;if(!p)break}}else return me.errors=[{instancePath:t+"/meta/categories",schemaPath:"#/properties/meta/properties/categories/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var f=I===n}else var f=!0}}}}}else return me.errors=[{instancePath:t+"/meta",schemaPath:"#/properties/meta/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.preferredVersions!==void 0){let E=e.preferredVersions;const A=n;if(n===A)if(E&&typeof E=="object"&&!Array.isArray(E)){let S;if(E.php===void 0&&(S="php")||E.wp===void 0&&(S="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/required",keyword:"required",params:{missingProperty:S},message:"must have required property '"+S+"'"}],!1;{const P=n;for(const $ in E)if(!($==="php"||$==="wp"))return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:$},message:"must NOT have additional properties"}],!1;if(P===n){if(E.php!==void 0){let $=E.php;const I=n,j=n;let U=!1;const M=n;if(typeof $!="string"){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[Z]:s.push(Z),n++}if(!($==="8.4"||$==="8.3"||$==="8.2"||$==="8.1"||$==="8.0"||$==="7.4"||$==="7.3"||$==="7.2")){const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/definitions/SupportedPHPVersion/enum",keyword:"enum",params:{allowedValues:Lb.enum},message:"must be equal to one of the allowed values"};s===null?s=[Z]:s.push(Z),n++}var c=M===n;if(U=U||c,!U){const Z=n;if(typeof $!="string"){const se={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}if($!=="latest"){const se={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf/1/const",keyword:"const",params:{allowedValue:"latest"},message:"must be equal to constant"};s===null?s=[se]:s.push(se),n++}var c=Z===n;U=U||c}if(U)n=j,s!==null&&(j?s.length=j:s=null);else{const Z={instancePath:t+"/preferredVersions/php",schemaPath:"#/properties/preferredVersions/properties/php/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[Z]:s.push(Z),n++,me.errors=s,!1}var m=I===n}else var m=!0;if(m)if(E.wp!==void 0){const $=n;if(typeof E.wp!="string")return me.errors=[{instancePath:t+"/preferredVersions/wp",schemaPath:"#/properties/preferredVersions/properties/wp/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var m=$===n}else var m=!0}}}else return me.errors=[{instancePath:t+"/preferredVersions",schemaPath:"#/properties/preferredVersions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.features!==void 0){let E=e.features;const A=n;if(n===A)if(E&&typeof E=="object"&&!Array.isArray(E)){const S=n;for(const P in E)if(!(P==="intl"||P==="networking"))return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:P},message:"must NOT have additional properties"}],!1;if(S===n){if(E.intl!==void 0){const P=n;if(typeof E.intl!="boolean")return me.errors=[{instancePath:t+"/features/intl",schemaPath:"#/properties/features/properties/intl/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var h=P===n}else var h=!0;if(h)if(E.networking!==void 0){const P=n;if(typeof E.networking!="boolean")return me.errors=[{instancePath:t+"/features/networking",schemaPath:"#/properties/features/properties/networking/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"}],!1;var h=P===n}else var h=!0}}else return me.errors=[{instancePath:t+"/features",schemaPath:"#/properties/features/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.extraLibraries!==void 0){let E=e.extraLibraries;const A=n;if(n===A)if(Array.isArray(E)){var g=!0;const S=E.length;for(let P=0;P<S;P++){let $=E[P];const I=n;if(typeof $!="string")return me.errors=[{instancePath:t+"/extraLibraries/"+P,schemaPath:"#/definitions/ExtraLibrary/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;if($!=="wp-cli")return me.errors=[{instancePath:t+"/extraLibraries/"+P,schemaPath:"#/definitions/ExtraLibrary/const",keyword:"const",params:{allowedValue:"wp-cli"},message:"must be equal to constant"}],!1;var g=I===n;if(!g)break}}else return me.errors=[{instancePath:t+"/extraLibraries",schemaPath:"#/properties/extraLibraries/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=A===n}else var o=!0;if(o){if(e.constants!==void 0){let E=e.constants;const A=n;if(n===n)if(E&&typeof E=="object"&&!Array.isArray(E))for(const P in E){let $=E[P];const I=n;if(typeof $!="string"&&typeof $!="boolean"&&!(typeof $=="number"&&isFinite($)))return me.errors=[{instancePath:t+"/constants/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/definitions/PHPConstants/additionalProperties/type",keyword:"type",params:{type:Rb.additionalProperties.type},message:"must be string,boolean,number"}],!1;var R=I===n;if(!R)break}else return me.errors=[{instancePath:t+"/constants",schemaPath:"#/definitions/PHPConstants/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.plugins!==void 0){let E=e.plugins;const A=n;if(n===A)if(Array.isArray(E)){var y=!0;const S=E.length;for(let P=0;P<S;P++){let $=E[P];const I=n,j=n;let U=!1;const M=n;if(typeof $!="string"){const z={instancePath:t+"/plugins/"+P,schemaPath:"#/properties/plugins/items/anyOf/0/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),n++}var _=M===n;if(U=U||_,!U){const z=n;ke($,{instancePath:t+"/plugins/"+P,parentData:E,parentDataProperty:P,rootData:a})||(s=s===null?ke.errors:s.concat(ke.errors),n=s.length);var _=z===n;U=U||_}if(U)n=j,s!==null&&(j?s.length=j:s=null);else{const z={instancePath:t+"/plugins/"+P,schemaPath:"#/properties/plugins/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[z]:s.push(z),n++,me.errors=s,!1}var y=I===n;if(!y)break}}else return me.errors=[{instancePath:t+"/plugins",schemaPath:"#/properties/plugins/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=A===n}else var o=!0;if(o){if(e.siteOptions!==void 0){let E=e.siteOptions;const A=n;if(n===A)if(E&&typeof E=="object"&&!Array.isArray(E)){const S=n;for(const P in E)if(P!=="blogname"){const $=n;if(typeof E[P]!="string")return me.errors=[{instancePath:t+"/siteOptions/"+P.replace(/~/g,"~0").replace(/\//g,"~1"),schemaPath:"#/properties/siteOptions/additionalProperties/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var b=$===n;if(!b)break}if(S===n&&E.blogname!==void 0&&typeof E.blogname!="string")return me.errors=[{instancePath:t+"/siteOptions/blogname",schemaPath:"#/properties/siteOptions/properties/blogname/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1}else return me.errors=[{instancePath:t+"/siteOptions",schemaPath:"#/properties/siteOptions/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;var o=A===n}else var o=!0;if(o){if(e.login!==void 0){let E=e.login;const A=n,L=n;let S=!1;const P=n;if(typeof E!="boolean"){const I={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/0/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[I]:s.push(I),n++}var O=P===n;if(S=S||O,!S){const I=n;if(n===I)if(E&&typeof E=="object"&&!Array.isArray(E)){let U;if(E.username===void 0&&(U="username")||E.password===void 0&&(U="password")){const M={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/required",keyword:"required",params:{missingProperty:U},message:"must have required property '"+U+"'"};s===null?s=[M]:s.push(M),n++}else{const M=n;for(const Z in E)if(!(Z==="username"||Z==="password")){const z={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty:Z},message:"must NOT have additional properties"};s===null?s=[z]:s.push(z),n++;break}if(M===n){if(E.username!==void 0){const Z=n;if(typeof E.username!="string"){const z={instancePath:t+"/login/username",schemaPath:"#/properties/login/anyOf/1/properties/username/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[z]:s.push(z),n++}var k=Z===n}else var k=!0;if(k)if(E.password!==void 0){const Z=n;if(typeof E.password!="string"){const se={instancePath:t+"/login/password",schemaPath:"#/properties/login/anyOf/1/properties/password/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[se]:s.push(se),n++}var k=Z===n}else var k=!0}}}else{const U={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf/1/type",keyword:"type",params:{type:"object"},message:"must be object"};s===null?s=[U]:s.push(U),n++}var O=I===n;S=S||O}if(S)n=L,s!==null&&(L?s.length=L:s=null);else{const I={instancePath:t+"/login",schemaPath:"#/properties/login/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[I]:s.push(I),n++,me.errors=s,!1}var o=A===n}else var o=!0;if(o){if(e.steps!==void 0){let E=e.steps;const A=n;if(n===A)if(Array.isArray(E)){var D=!0;const S=E.length;for(let P=0;P<S;P++){let $=E[P];const I=n,j=n;let U=!1;const M=n;w($,{instancePath:t+"/steps/"+P,parentData:E,parentDataProperty:P,rootData:a})||(s=s===null?w.errors:s.concat(w.errors),n=s.length);var T=M===n;if(U=U||T,!U){const z=n;if(typeof $!="string"){const G={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/1/type",keyword:"type",params:{type:"string"},message:"must be string"};s===null?s=[G]:s.push(G),n++}var T=z===n;if(U=U||T,!U){const G=n,Q={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};s===null?s=[Q]:s.push(Q),n++;var T=G===n;if(U=U||T,!U){const V=n;if(typeof $!="boolean"){const ie={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/3/type",keyword:"type",params:{type:"boolean"},message:"must be boolean"};s===null?s=[ie]:s.push(ie),n++}if($!==!1){const ie={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/3/const",keyword:"const",params:{allowedValue:!1},message:"must be equal to constant"};s===null?s=[ie]:s.push(ie),n++}var T=V===n;if(U=U||T,!U){const ie=n;if($!==null){const Pe={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf/4/type",keyword:"type",params:{type:"null"},message:"must be null"};s===null?s=[Pe]:s.push(Pe),n++}var T=ie===n;U=U||T}}}}if(U)n=j,s!==null&&(j?s.length=j:s=null);else{const z={instancePath:t+"/steps/"+P,schemaPath:"#/properties/steps/items/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};return s===null?s=[z]:s.push(z),n++,me.errors=s,!1}var D=I===n;if(!D)break}}else return me.errors=[{instancePath:t+"/steps",schemaPath:"#/properties/steps/type",keyword:"type",params:{type:"array"},message:"must be array"}],!1;var o=A===n}else var o=!0;if(o)if(e.$schema!==void 0){const E=n;if(typeof e.$schema!="string")return me.errors=[{instancePath:t+"/$schema",schemaPath:"#/properties/%24schema/type",keyword:"type",params:{type:"string"},message:"must be string"}],!1;var o=E===n}else var o=!0}}}}}}}}}}}}else return me.errors=[{instancePath:t,schemaPath:"#/type",keyword:"type",params:{type:"object"},message:"must be object"}],!1;return me.errors=s,n===0}function Ns(e,{instancePath:t="",parentData:r,parentDataProperty:i,rootData:a=e}={}){let s=null,n=0;return me(e,{instancePath:t,parentData:r,parentDataProperty:i,rootData:a})||(s=s===null?me.errors:s.concat(me.errors),n=s.length),Ns.errors=s,n===0}const{wpCLI:Hb,...Sp}=Cb,Fb={...Sp,"wp-cli":Hb,importFile:Sp.importWxr};async function vi(e,t={}){const r={...t};let i;return Wo(e)?(i=await Pd(e),r.streamBundledFile=function(...a){return e.read(...a)}):i=e,Bb(i,r)}function Wo(e){return e&&"read"in e&&typeof e.read=="function"}async function Pd(e){if(!Wo(e))return e;const r=await(await e.read("blueprint.json")).text();return JSON.parse(r)}function Bb(e,{progress:t=new ni,semaphore:r=new un({concurrency:3}),onStepCompleted:i=()=>{},onBlueprintValidated:a=()=>{},corsProxy:s,streamBundledFile:n,additionalSteps:o}={}){var y,_,b,O,k,D,T,H,E,A;e=structuredClone(e),e={...e,steps:(e.steps||[]).filter(Ub).filter(Wb)},e.steps=[...e.steps||[],...o||[]];for(const L of e.steps)!L||typeof L!="object"||(L.step==="importFile"?(L.step="importWxr",Te.warn('The "importFile" step is deprecated. Use "importWxr" instead.')):(L==null?void 0:L.step)==="installPlugin"&&"pluginZipFile"in L?(L.pluginData=L.pluginZipFile,Te.warn('The "pluginZipFile" option of the "installPlugin" step is deprecated. Use "pluginData" instead.')):(L==null?void 0:L.step)==="installTheme"&&"themeZipFile"in L&&(L.themeData=L.themeZipFile,Te.warn('The "themeZipFile" option of the "installTheme" step is deprecated. Use "themeData" instead.')));if(e.constants&&e.steps.unshift({step:"defineWpConfigConsts",consts:e.constants}),e.siteOptions&&e.steps.unshift({step:"setSiteOptions",options:e.siteOptions}),e.plugins){const L=e.plugins.map(S=>typeof S=="string"?S.startsWith("https://")?{resource:"url",url:S}:{resource:"wordpress.org/plugins",slug:S}:S).map(S=>({step:"installPlugin",pluginData:S}));e.steps.unshift(...L)}e.login&&e.steps.push({step:"login",...e.login===!0?{username:"admin"}:e.login});const f=((y=e.steps)==null?void 0:y.findIndex(L=>typeof L=="object"&&(L==null?void 0:L.step)&&["wp-cli","enableMultisite"].includes(L.step)))??-1;if((_=e==null?void 0:e.extraLibraries)!=null&&_.includes("wp-cli")||f!==-1){const L={step:"writeFile",data:Sb,path:Fo};f===-1?(b=e.steps)==null||b.push(L):(O=e.steps)==null||O.splice(f,0,L)}const p=(k=e.steps)==null?void 0:k.findIndex(L=>typeof L=="object"&&(L==null?void 0:L.step)==="importWxr");p!==void 0&&p>-1&&((D=e.steps)==null||D.splice(p,0,{step:"installPlugin",pluginData:{resource:"wordpress.org/plugins",slug:"wordpress-importer"}}));const{valid:c,errors:m}=jb(e);if(!c){const L=new Error(`Invalid blueprint: ${m[0].message} at ${m[0].instancePath}`);throw L.errors=m,L}a(e);const h=e.steps||[],g=h.reduce((L,S)=>{var P;return L+(((P=S.progress)==null?void 0:P.weight)||1)},0),R=h.map(L=>Mb(L,{semaphore:r,rootProgressTracker:t,totalProgressWeight:g,corsProxy:s,streamBundledFile:n}));return{versions:{php:Nb((T=e.preferredVersions)==null?void 0:T.php,ii,Hp),wp:((H=e.preferredVersions)==null?void 0:H.wp)||"latest"},features:{intl:((E=e.features)==null?void 0:E.intl)??!1,networking:((A=e.features)==null?void 0:A.networking)??!0},extraLibraries:e.extraLibraries||[],run:async L=>{try{for(const{resources:S}of R)for(const P of S)P.setPlayground(L),P.isAsync&&P.resolve().catch(()=>{});for(const[S,{run:P,step:$}]of Object.entries(R))try{const I=await P(L);i(I,$)}catch(I){throw new Error(`Error when executing the blueprint step #${S} (${JSON.stringify($)}) ${I instanceof Error?`: ${I.message}`:I}`,{cause:I})}}finally{try{const S=await L.pathToInternalUrl(e.landingPage||"/");await L.goTo("/index.php?playground-redirection-handler&next="+encodeURIComponent(S))}catch{}t.finish()}}}}function jb(e){var a;const t=Ns(e);if(t)return{valid:t};const r=new Set;for(const s of Ns.errors)s.schemaPath.startsWith("#/properties/steps/items/anyOf")||r.add(s.instancePath);const i=(a=Ns.errors)==null?void 0:a.filter(s=>!(s.schemaPath.startsWith("#/properties/steps/items/anyOf")&&r.has(s.instancePath)));return{valid:t,errors:i}}function Nb(e,t,r){return e&&t.includes(e)?e:r}function Ub(e){return!!(typeof e=="object"&&e)}function Wb(e){return["setPhpIniEntry","request"].includes(e.step)?(Te.warn(`The "${e.step}" Blueprint is no longer supported and you can remove it from your Blueprint.`),!1):!0}function Mb(e,{semaphore:t,rootProgressTracker:r,totalProgressWeight:i,corsProxy:a,streamBundledFile:s}){var h;const n=r.stage((((h=e.progress)==null?void 0:h.weight)||1)/i),o={};for(const g of Object.keys(e)){let R=e[g];ib(R)&&(R=Jt.create(R,{semaphore:t,corsProxy:a,streamBundledFile:s})),o[g]=R}const f=async g=>{var R;try{return n.fillSlowly(),await Fb[e.step](g,await qb(o),{tracker:n,initialCaption:(R=e.progress)==null?void 0:R.caption})}finally{n.finish()}},p=kp(o),c=kp(o).filter(g=>g.isAsync),m=1/(c.length+1);for(const g of c)g.progress=n.stage(m);return{run:f,step:e,resources:p}}function kp(e){const t=[];for(const r in e){const i=e[r];i instanceof Jt&&t.push(i)}return t}async function qb(e){const t={};for(const r in e){const i=e[r];i instanceof Jt?t[r]=await i.resolve():t[r]=i}return t}async function Mo(e,t){await e.run(t)}async function Ad(){const e=(await Promise.resolve().then(()=>require("./blueprints-DY7omvFh.cjs"))).default;return new File([e],"blueprints.phar",{type:"application/zip"})}function Kb(e){if(typeof e=="object"&&"type"in e&&["inline-file","file-reference"].includes(e.type))return e;if(!e)return{type:"inline-file",contents:"{}"};if(typeof e!="string")return{type:"inline-file",contents:JSON.stringify(e)};try{return JSON.parse(e),{type:"inline-file",contents:e}}catch{return{type:"file-reference",reference:e}}}async function zb(e){var c,m;const t=e.cliArgs||[];for(const h of t)if(h.startsWith("--site-path="))throw new Error("The --site-path CLI argument must not be provided. In Playground, it is always set to /wordpress.");t.push("--site-path=/wordpress"),t.find(h=>h.startsWith("--db-engine="))||t.push("--db-engine=sqlite");const i=e.php,a=(e==null?void 0:e.onMessage)||(()=>{}),s=await Ad();i.writeFile("/tmp/blueprints.phar",new Uint8Array(await s.arrayBuffer()));const n=Kb(e.blueprint);let o="";switch(n.type){case"inline-file":i.writeFile("/tmp/blueprint.json",n.contents),o="/tmp/blueprint.json";break;case"file-reference":o=n.reference;break}const f=await i.onMessage(async h=>{try{const g=typeof h=="string"?JSON.parse(h):h;if(!g)return;await new Promise(R=>setTimeout(R,0)),g.type.startsWith("blueprint.")&&await a(g)}catch(g){Te.warn("Failed to parse message as JSON:",h,g)}});await(i==null?void 0:i.writeFile("/tmp/run-blueprints.php",`<?php
999
999
  function playground_http_client_factory() {
1000
1000
  return new WordPress\\HttpClient\\Client([
1001
1001
  // sockets transport is somehow faster than curl in Playground. Maybe
package/index.js CHANGED
@@ -15416,7 +15416,7 @@ const rb = async (e, { wpCliPath: t }) => {
15416
15416
  home: a
15417
15417
  }
15418
15418
  }), await Gu(e, {
15419
- command: "wp core multisite-convert"
15419
+ command: `wp core multisite-convert --base="${i}"`
15420
15420
  });
15421
15421
  }, nb = async (e, { fromPath: t, toPath: r }) => {
15422
15422
  (!t.startsWith("/") || !r.startsWith("/")) && Te.error(
@@ -19295,7 +19295,7 @@ const Tb = {
19295
19295
  properties: {
19296
19296
  relativeUri: {
19297
19297
  type: "string",
19298
- description: "Request path following the domain:port part."
19298
+ description: "Request path following the domain:port part – after any URL rewriting rules (e.g. apache .htaccess) have been applied."
19299
19299
  },
19300
19300
  scriptPath: {
19301
19301
  type: "string",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wp-playground/client",
3
- "version": "3.0.18",
3
+ "version": "3.0.20",
4
4
  "description": "WordPress Playground client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,7 +37,7 @@
37
37
  "main": "./index.cjs",
38
38
  "module": "./index.js",
39
39
  "types": "index.d.ts",
40
- "gitHead": "0cc6674fcad128d2f9cdbc1163d671309d0e3211",
40
+ "gitHead": "8fb1044d507cb9fc8d53a24b60d8d37a277c2a9f",
41
41
  "engines": {
42
42
  "node": ">=20.18.3",
43
43
  "npm": ">=10.1.0"