@bpmn-io/element-templates-validator 2.18.0 → 2.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@
3
3
  var minDash = require('min-dash');
4
4
 
5
5
  var name$1 = "@camunda/element-templates-json-schema";
6
- var version$1 = "0.20.0";
6
+ var version$1 = "0.21.0";
7
7
 
8
8
  function getDefaultExportFromCjs (x) {
9
9
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -86,7 +86,7 @@ var hasRequiredStandaloneValidator;
86
86
  function requireStandaloneValidator () {
87
87
  if (hasRequiredStandaloneValidator) return standaloneValidator.exports;
88
88
  hasRequiredStandaloneValidator = 1;
89
- standaloneValidator.exports = validate14;standaloneValidator.exports.default = validate14;const schema17 = {"allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"$schema":{"$id":"#/$schema","type":"string","description":"Reference to the Element Template JSON schema this document follows."},"name":{"$id":"#/name","type":"string","description":"Template name. Shown during template selection and editing of a templated element. Required."},"id":{"$id":"#/id","type":"string","description":"Template identifier. Required."},"description":{"$id":"#/description","type":"string","description":"Template description. Shown during template selection and editing of a templated element."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template, it will be considered unique based on its ID and version. Two templates can have the same ID if their versions are different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Marks the template as deprecated. Value can be either a boolean or an object with a message and a link to migration documentation.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"URL pointing to template documentation. Must be a valid http(s) URL."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to. Required.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"Object that sets the type of the element. Some properties require a specific value for elementType.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","description":"Specifies the target BPMN element type. The element is replaced with the specified type when a user applies the template. Required if using elementType.","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"keywords":{"$id":"#/keywords","type":"array","items":{"type":"string"},"description":"List of keywords to help users find the template. Used in search and filtering, but not displayed in the UI.","default":[]},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Defines whether all property input fields are shown, even those normally hidden by the template."},"groups":{"$id":"#/groups","type":"array","description":"List of custom groups to organize related fields in the properties panel.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"Uniquely identifies a group object. Required if using groups."},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the group, shown as a section header in the properties panel. Required if using groups."}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}}],"properties":{"scopes":{"items":{"properties":{"type":{"enum":["camunda:Connector","bpmn:Error"]}},"errorMessage":{"required":{"type":"invalid scope, missing type","properties":"invalid scope ${0/type}, missing properties=[]"}}}}}};const schema29 = {"items":{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"]},"variables":{"enum":["all","local"]}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const schema18 = {"allOf":[{"type":"array","description":"List of the template's properties.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"Defines the type of the condition (always \"simple\").","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"Reference to the property used to evaluate the condition."}},"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property. Can be used to, for example, reference the property for checks."},"condition":{"type":"object","description":"Object that defines when a property should be displayed in the properties panel and its value should be included in the XML.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1,"description":"List of conditions that must all be met for the property to be active."}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string","description":"Placeholder text shown in the property input field when it is empty. Can be used to show example input."}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"Default value to be used if the user does not provide a value or if the type is Hidden."},"description":{"$id":"#/properties/property/description","type":"string","description":"Hint text shown below the property input field."},"label":{"$id":"#/properties/property/label","type":"string","description":"Label text shown above the property input field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Defines whether users can edit the property in the properties panel. By default, all non-hidden properties are editable."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"List of choices for a dropdown field.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"Display name for a choice in a dropdown field. Shown to the user."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"Value for a choice in a dropdown field. Stored in the XML."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"Object that contains rules to validate user input to the template.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"String or object that defines a regular expression that the user's input must match.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The value of the regular expression."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"Custom error message to show when the user's input does not match the regular expression."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"Group in the properties panel that the property belongs to."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Object that defines how the property is mapped to BPMN or Camunda extensions. Required.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"description":"The type of a property binding.","errorMessage":"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}}]};const schema19 = {"properties":{"property":{"const":{"$data":"2/id"}}}};const schema20 = {"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};const func0 = requireEqual().default;function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}}}if(!valid2){const err8 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err9 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err11 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err13 of vErrors){if((((((err13.keyword !== "errorMessage") && (!err13.emUsed)) && (err13.instancePath === instancePath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(68)))){emPropParams0 = obj0[err13.keyword];emParamsErrors0 = emErrors0[err13.keyword][err13.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err13);err13.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err14 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}const emErrs0 = [];for(const err15 of vErrors){if(!err15.emUsed){emErrs0.push(err15);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.allMatch !== undefined){let data6 = data.allMatch;if(Array.isArray(data6)){if(data6.length < 1){const err17 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const len1 = data6.length;for(let i1=0; i1<len1; i1++){let data7 = data6[i1];const _errs26 = errors;let valid13 = false;let passing2 = null;const _errs27 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.equals === undefined){const err18 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data7.equals !== undefined){let data8 = data7.equals;if(((typeof data8 !== "string") && (!(typeof data8 == "number"))) && (typeof data8 !== "boolean")){const err19 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2){valid13 = true;passing2 = 0;}const _errs30 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.oneOf === undefined){const err20 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data7.oneOf !== undefined){let data9 = data7.oneOf;if(Array.isArray(data9)){const len2 = data9.length;for(let i2=0; i2<len2; i2++){let data10 = data9[i2];if((typeof data10 !== "string") && (!(typeof data10 == "number"))){const err21 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 1];}else {if(_valid2){valid13 = true;passing2 = 1;}const _errs35 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.isActive === undefined){const err23 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data7.isActive !== undefined){if(typeof data7.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs35 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 2];}else {if(_valid2){valid13 = true;passing2 = 2;}}}if(!valid13){const err25 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.property === undefined){const err26 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if("simple" !== data7.type){const err27 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data7.property !== undefined){if(typeof data7.property !== "string"){const err28 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams1 = obj0[err30.keyword];emParamsErrors1 = emErrors1[err30.keyword][err30.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err30);err30.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err31 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs1 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs1.push(err32);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err33 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid0 = _errs20 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err34 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs12 = errors;let valid8 = true;const _errs13 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0(data2.property, schema19.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid1){const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid12 = _errs19 === errors;if(valid12){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/allOf/0/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/allOf/0/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs17 === errors;valid8 = _valid1;}if(!valid8){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs25 = errors;let valid14 = false;let passing0 = null;const _errs26 = errors;const _errs29 = errors;let valid16 = false;let passing1 = null;const _errs30 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs30 === errors;if(_valid3){valid16 = true;passing1 = 0;}const _errs33 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs33 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 1];}else {if(_valid3){valid16 = true;passing1 = 1;}const _errs38 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs38 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 2];}else {if(_valid3){valid16 = true;passing1 = 2;}}}if(!valid16){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs26 === errors;if(_valid2){valid14 = true;passing0 = 0;}const _errs44 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs50 = errors;let valid27 = false;let passing2 = null;const _errs51 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs51 === errors;if(_valid4){valid27 = true;passing2 = 0;}const _errs54 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs54 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 1];}else {if(_valid4){valid27 = true;passing2 = 1;}const _errs59 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs59 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 2];}else {if(_valid4){valid27 = true;passing2 = 2;}}}if(!valid27){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs44 === errors;if(_valid2 && valid14){valid14 = false;passing0 = [passing0, 1];}else {if(_valid2){valid14 = true;passing0 = 1;}}if(!valid14){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}}}const _errs66 = errors;let valid35 = true;const _errs67 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs69 = errors;const _errs70 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid37 = _errs70 === errors;if(valid37){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs69;if(vErrors !== null){if(_errs69){vErrors.length = _errs69;}else {vErrors = null;}}}}}}var _valid5 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid5){const _errs71 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs71 === errors;valid35 = _valid5;}if(!valid35){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}const _errs75 = errors;let valid39 = true;const _errs76 = errors;const _errs77 = errors;let valid40 = false;const _errs78 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data0.type !== undefined){let data22 = data0.type;if(!((data22 === "String") || (data22 === "Text"))){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}var _valid7 = _errs78 === errors;if(_valid7){valid40 = true;}const _errs80 = errors;const _errs81 = errors;const _errs82 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid42 = _errs82 === errors;if(valid42){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}}var _valid7 = _errs80 === errors;if(_valid7 && valid40){valid40 = false;}else {if(_valid7){valid40 = true;}}if(!valid40){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}var _valid6 = _errs76 === errors;errors = _errs75;if(vErrors !== null){if(_errs75){vErrors.length = _errs75;}else {vErrors = null;}}let ifClause0;if(_valid6){const _errs83 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.placeholder !== undefined){if(typeof data0.placeholder !== "string"){const err62 = {instancePath:instancePath+"/" + i0+"/placeholder",schemaPath:"#/allOf/0/items/allOf/3/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var _valid6 = _errs83 === errors;valid39 = _valid6;ifClause0 = "then";}else {const _errs86 = errors;const _errs87 = errors;const _errs88 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.placeholder === undefined) && ("placeholder")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var valid44 = _errs88 === errors;if(valid44){const err64 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}var _valid6 = _errs86 === errors;valid39 = _valid6;ifClause0 = "else";}if(!valid39){const err65 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data24 = data0.value;if(((typeof data24 !== "string") && (!(typeof data24 == "number"))) && (typeof data24 !== "boolean")){const err66 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err67 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err68 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err69 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err70 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.choices !== undefined){let data29 = data0.choices;if(Array.isArray(data29)){const len4 = data29.length;for(let i4=0; i4<len4; i4++){let data30 = data29[i4];if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err71 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data30.name === undefined){const err72 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data30.name !== undefined){if(typeof data30.name !== "string"){const err73 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data30.value !== undefined){if(typeof data30.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data30.condition !== undefined){if(!(validate17(data30.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data30,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err75 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err76 of vErrors){if((((((err76.keyword !== "errorMessage") && (!err76.emUsed)) && (err76.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err76.keyword in emErrors2)) && (err76.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err76.schemaPath.slice(40)))){emErrors2[err76.keyword].push(err76);err76.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err77 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema18.allOf[0].items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}const emErrs6 = [];for(const err78 of vErrors){if(!err78.emUsed){emErrs6.push(err78);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.constraints !== undefined){let data34 = data0.constraints;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.notEmpty !== undefined){if(typeof data34.notEmpty !== "boolean"){const err80 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data34.minLength !== undefined){if(!(typeof data34.minLength == "number")){const err81 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data34.maxLength !== undefined){if(!(typeof data34.maxLength == "number")){const err82 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data34.pattern !== undefined){let data38 = data34.pattern;const _errs117 = errors;let valid51 = false;let passing4 = null;const _errs118 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.value !== undefined){if(typeof data38.value !== "string"){const err83 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data38.message !== undefined){if(typeof data38.message !== "string"){const err84 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid8 = _errs118 === errors;if(_valid8){valid51 = true;passing4 = 0;}const _errs124 = errors;if(typeof data38 !== "string"){const err86 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid8 = _errs124 === errors;if(_valid8 && valid51){valid51 = false;passing4 = [passing4, 1];}else {if(_valid8){valid51 = true;passing4 = 1;}}if(!valid51){const err87 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs117;if(vErrors !== null){if(_errs117){vErrors.length = _errs117;}else {vErrors = null;}}}}}else {const err88 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err89 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath,schemaPath:"#/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data42 = data[i5];const _errs133 = errors;let valid56 = true;const _errs134 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data42.binding !== undefined){let data43 = data42.binding;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data43.type !== undefined){if("property" !== data43.type){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}}}}}var _valid9 = _errs134 === errors;errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}if(_valid9){const _errs137 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data45 = data42.type;if(!(((((data45 === "String") || (data45 === "Text")) || (data45 === "Hidden")) || (data45 === "Dropdown")) || (data45 === "Boolean"))){const err95 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(errors > 0){const emErrs7 = [];for(const err96 of vErrors){if(((((err96.keyword !== "errorMessage") && (!err96.emUsed)) && ((err96.instancePath === instancePath+"/" + i5+"/type") || ((err96.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err96.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err96.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err96.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs7.push(err96);err96.emUsed = true;}}if(emErrs7.length){const err97 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data45) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const emErrs8 = [];for(const err98 of vErrors){if(!err98.emUsed){emErrs8.push(err98);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid9 = _errs137 === errors;valid56 = _valid9;}if(!valid56){const err99 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const _errs140 = errors;let valid60 = true;const _errs141 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {if(data42.binding !== undefined){let data46 = data42.binding;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data46.type !== undefined){if("camunda:executionListener" !== data46.type){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}}}}var _valid10 = _errs141 === errors;errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}if(_valid10){const _errs144 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){if(!(data42.type === "Hidden")){const err103 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(errors > 0){const emErrs9 = [];for(const err104 of vErrors){if(((((err104.keyword !== "errorMessage") && (!err104.emUsed)) && ((err104.instancePath === instancePath+"/" + i5+"/type") || ((err104.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err104.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err104.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err104.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs9.push(err104);err104.emUsed = true;}}if(emErrs9.length){const err105 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data42 && data42.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const emErrs10 = [];for(const err106 of vErrors){if(!err106.emUsed){emErrs10.push(err106);}}vErrors = emErrs10;errors = emErrs10.length;}}if(data42.binding !== undefined){let data49 = data42.binding;const _errs147 = errors;let valid64 = false;let passing5 = null;const _errs148 = errors;const _errs149 = errors;const _errs150 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.implementationType !== undefined){if("script" !== data49.implementationType){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}var valid65 = _errs150 === errors;if(valid65){const err108 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}else {errors = _errs149;if(vErrors !== null){if(_errs149){vErrors.length = _errs149;}else {vErrors = null;}}}var _valid11 = _errs148 === errors;if(_valid11){valid64 = true;passing5 = 0;}const _errs152 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.scriptFormat === undefined){const err109 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",keyword:"required",params:{missingProperty: "scriptFormat"},message:"must have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}var _valid11 = _errs152 === errors;if(_valid11 && valid64){valid64 = false;passing5 = [passing5, 1];}else {if(_valid11){valid64 = true;passing5 = 1;}const _errs153 = errors;const _errs155 = errors;const _errs156 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.implementationType === undefined) && ("implementationType")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}var valid68 = _errs156 === errors;if(valid68){const err111 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {errors = _errs155;if(vErrors !== null){if(_errs155){vErrors.length = _errs155;}else {vErrors = null;}}}const _errs158 = errors;const _errs159 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.scriptFormat === undefined) && ("scriptFormat")){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}var valid69 = _errs159 === errors;if(valid69){const err113 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs158;if(vErrors !== null){if(_errs158){vErrors.length = _errs158;}else {vErrors = null;}}}var _valid11 = _errs153 === errors;if(_valid11 && valid64){valid64 = false;passing5 = [passing5, 2];}else {if(_valid11){valid64 = true;passing5 = 2;}}}if(!valid64){const err114 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.implementationType !== undefined){let data51 = data49.implementationType;if(!((((data51 === "class") || (data51 === "delegateExpression")) || (data51 === "expression")) || (data51 === "script"))){const err115 = {instancePath:instancePath+"/" + i5+"/binding/implementationType",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}}}var _valid10 = _errs144 === errors;valid60 = _valid10;}if(!valid60){const err116 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}const _errs162 = errors;let valid71 = true;const _errs163 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {if(data42.binding !== undefined){let data52 = data42.binding;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data52.type !== undefined){let data53 = data52.type;if(!((((((data53 === "camunda:property") || (data53 === "camunda:outputParameter")) || (data53 === "camunda:in")) || (data53 === "camunda:in:businessKey")) || (data53 === "camunda:out")) || (data53 === "camunda:errorEventDefinition"))){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}}}}}var _valid12 = _errs163 === errors;errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}if(_valid12){const _errs166 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data54 = data42.type;if(!(((data54 === "String") || (data54 === "Hidden")) || (data54 === "Dropdown"))){const err120 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}if(errors > 0){const emErrs11 = [];for(const err121 of vErrors){if(((((err121.keyword !== "errorMessage") && (!err121.emUsed)) && ((err121.instancePath === instancePath+"/" + i5+"/type") || ((err121.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err121.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err121.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err121.schemaPath["#/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs11.push(err121);err121.emUsed = true;}}if(emErrs11.length){const err122 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data54) + " for binding type " + JSON.stringify(data42 && data42.binding && data42.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}const emErrs12 = [];for(const err123 of vErrors){if(!err123.emUsed){emErrs12.push(err123);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid12 = _errs166 === errors;valid71 = _valid12;}if(!valid71){const err124 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}const _errs169 = errors;let valid75 = true;const _errs170 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}else {if(data42.binding !== undefined){let data55 = data42.binding;if(data55 && typeof data55 == "object" && !Array.isArray(data55)){if((data55.type === undefined) && ("type")){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}else {if(data55.type !== undefined){let data56 = data55.type;if(!((data56 === "camunda:inputParameter") || (data56 === "camunda:field"))){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}}}}}var _valid13 = _errs170 === errors;errors = _errs169;if(vErrors !== null){if(_errs169){vErrors.length = _errs169;}else {vErrors = null;}}if(_valid13){const _errs173 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data57 = data42.type;if(!((((data57 === "String") || (data57 === "Text")) || (data57 === "Hidden")) || (data57 === "Dropdown"))){const err128 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[3].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(errors > 0){const emErrs13 = [];for(const err129 of vErrors){if(((((err129.keyword !== "errorMessage") && (!err129.emUsed)) && ((err129.instancePath === instancePath+"/" + i5+"/type") || ((err129.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err129.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err129.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err129.schemaPath["#/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs13.push(err129);err129.emUsed = true;}}if(emErrs13.length){const err130 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs13},message:"invalid property type " + JSON.stringify(data57) + " for binding type " + JSON.stringify(data42 && data42.binding && data42.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}const emErrs14 = [];for(const err131 of vErrors){if(!err131.emUsed){emErrs14.push(err131);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid13 = _errs173 === errors;valid75 = _valid13;}if(!valid75){const err132 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding === undefined){const err133 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}if(data42.binding !== undefined){let data58 = data42.binding;const _errs178 = errors;let valid81 = true;const _errs179 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {if(data58.type !== undefined){let data59 = data58.type;if(!((((data59 === "property") || (data59 === "camunda:property")) || (data59 === "camunda:inputParameter")) || (data59 === "camunda:field"))){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}}}var _valid14 = _errs179 === errors;errors = _errs178;if(vErrors !== null){if(_errs178){vErrors.length = _errs178;}else {vErrors = null;}}if(_valid14){const _errs181 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.name === undefined){const err136 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(errors > 0){const emErrs15 = [];for(const err137 of vErrors){if(((((err137.keyword !== "errorMessage") && (!err137.emUsed)) && ((err137.instancePath === instancePath+"/" + i5+"/binding") || ((err137.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err137.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err137.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err137.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs15.push(err137);err137.emUsed = true;}}if(emErrs15.length){const err138 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs15},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires name"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}const emErrs16 = [];for(const err139 of vErrors){if(!err139.emUsed){emErrs16.push(err139);}}vErrors = emErrs16;errors = emErrs16.length;}var _valid14 = _errs181 === errors;valid81 = _valid14;}if(!valid81){const err140 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const _errs183 = errors;let valid83 = true;const _errs184 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}else {if(data58.type !== undefined){if("camunda:outputParameter" !== data58.type){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}}}var _valid15 = _errs184 === errors;errors = _errs183;if(vErrors !== null){if(_errs183){vErrors.length = _errs183;}else {vErrors = null;}}if(_valid15){const _errs186 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.source === undefined){const err143 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(errors > 0){const emErrs17 = [];for(const err144 of vErrors){if(((((err144.keyword !== "errorMessage") && (!err144.emUsed)) && ((err144.instancePath === instancePath+"/" + i5+"/binding") || ((err144.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err144.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err144.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err144.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs17.push(err144);err144.emUsed = true;}}if(emErrs17.length){const err145 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires source"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}const emErrs18 = [];for(const err146 of vErrors){if(!err146.emUsed){emErrs18.push(err146);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid15 = _errs186 === errors;valid83 = _valid15;}if(!valid83){const err147 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}const _errs188 = errors;let valid85 = true;const _errs189 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {if(data58.type !== undefined){if("camunda:in" !== data58.type){const err149 = {};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}}var _valid16 = _errs189 === errors;errors = _errs188;if(vErrors !== null){if(_errs188){vErrors.length = _errs188;}else {vErrors = null;}}if(_valid16){const _errs191 = errors;const _errs192 = errors;let valid87 = false;const _errs193 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.variables === undefined){const err150 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var _valid17 = _errs193 === errors;valid87 = valid87 || _valid17;if(!valid87){const _errs194 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.target === undefined){const err151 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var _valid17 = _errs194 === errors;valid87 = valid87 || _valid17;}if(!valid87){const err152 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {errors = _errs192;if(vErrors !== null){if(_errs192){vErrors.length = _errs192;}else {vErrors = null;}}}if(errors > 0){const emErrs19 = [];for(const err153 of vErrors){if(((((err153.keyword !== "errorMessage") && (!err153.emUsed)) && ((err153.instancePath === instancePath+"/" + i5+"/binding") || ((err153.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err153.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err153.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err153.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs19.push(err153);err153.emUsed = true;}}if(emErrs19.length){const err154 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}const emErrs20 = [];for(const err155 of vErrors){if(!err155.emUsed){emErrs20.push(err155);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid16 = _errs191 === errors;valid85 = _valid16;}if(!valid85){const err156 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}const _errs196 = errors;let valid88 = true;const _errs197 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {if(data58.type !== undefined){if("camunda:out" !== data58.type){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}}var _valid18 = _errs197 === errors;errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}if(_valid18){const _errs199 = errors;const _errs200 = errors;let valid90 = false;let passing6 = null;const _errs201 = errors;const _errs202 = errors;const _errs203 = errors;const _errs204 = errors;let valid92 = false;const _errs205 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.source === undefined) && ("source")){const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var _valid20 = _errs205 === errors;valid92 = valid92 || _valid20;if(!valid92){const _errs206 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.sourceExpression === undefined) && ("sourceExpression")){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}var _valid20 = _errs206 === errors;valid92 = valid92 || _valid20;}if(!valid92){const err161 = {};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}else {errors = _errs204;if(vErrors !== null){if(_errs204){vErrors.length = _errs204;}else {vErrors = null;}}}var valid91 = _errs203 === errors;if(valid91){const err162 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}else {errors = _errs202;if(vErrors !== null){if(_errs202){vErrors.length = _errs202;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.variables === undefined){const err163 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}var _valid19 = _errs201 === errors;if(_valid19){valid90 = true;passing6 = 0;}const _errs207 = errors;const _errs208 = errors;const _errs209 = errors;const _errs210 = errors;let valid94 = false;const _errs211 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.variables === undefined) && ("variables")){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}var _valid21 = _errs211 === errors;valid94 = valid94 || _valid21;if(!valid94){const _errs212 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.sourceExpression === undefined) && ("sourceExpression")){const err165 = {};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}var _valid21 = _errs212 === errors;valid94 = valid94 || _valid21;}if(!valid94){const err166 = {};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}else {errors = _errs210;if(vErrors !== null){if(_errs210){vErrors.length = _errs210;}else {vErrors = null;}}}var valid93 = _errs209 === errors;if(valid93){const err167 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}else {errors = _errs208;if(vErrors !== null){if(_errs208){vErrors.length = _errs208;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.source === undefined){const err168 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}var _valid19 = _errs207 === errors;if(_valid19 && valid90){valid90 = false;passing6 = [passing6, 1];}else {if(_valid19){valid90 = true;passing6 = 1;}const _errs213 = errors;const _errs214 = errors;const _errs215 = errors;const _errs216 = errors;let valid96 = false;const _errs217 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.variables === undefined) && ("variables")){const err169 = {};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}var _valid22 = _errs217 === errors;valid96 = valid96 || _valid22;if(!valid96){const _errs218 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.source === undefined) && ("source")){const err170 = {};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}var _valid22 = _errs218 === errors;valid96 = valid96 || _valid22;}if(!valid96){const err171 = {};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}else {errors = _errs216;if(vErrors !== null){if(_errs216){vErrors.length = _errs216;}else {vErrors = null;}}}var valid95 = _errs215 === errors;if(valid95){const err172 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}else {errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.sourceExpression === undefined){const err173 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}var _valid19 = _errs213 === errors;if(_valid19 && valid90){valid90 = false;passing6 = [passing6, 2];}else {if(_valid19){valid90 = true;passing6 = 2;}const _errs219 = errors;const _errs220 = errors;const _errs221 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.source === undefined) && ("source")){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}var valid97 = _errs221 === errors;if(valid97){const err175 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {errors = _errs220;if(vErrors !== null){if(_errs220){vErrors.length = _errs220;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.variables === undefined){const err176 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if(data58.sourceExpression === undefined){const err177 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}var _valid19 = _errs219 === errors;if(_valid19 && valid90){valid90 = false;passing6 = [passing6, 3];}else {if(_valid19){valid90 = true;passing6 = 3;}const _errs222 = errors;const _errs223 = errors;const _errs224 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.sourceExpression === undefined) && ("sourceExpression")){const err178 = {};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}var valid98 = _errs224 === errors;if(valid98){const err179 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}else {errors = _errs223;if(vErrors !== null){if(_errs223){vErrors.length = _errs223;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.variables === undefined){const err180 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(data58.source === undefined){const err181 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}var _valid19 = _errs222 === errors;if(_valid19 && valid90){valid90 = false;passing6 = [passing6, 4];}else {if(_valid19){valid90 = true;passing6 = 4;}}}}}if(!valid90){const err182 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}else {errors = _errs200;if(vErrors !== null){if(_errs200){vErrors.length = _errs200;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err183 of vErrors){if(((((err183.keyword !== "errorMessage") && (!err183.emUsed)) && ((err183.instancePath === instancePath+"/" + i5+"/binding") || ((err183.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err183.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err183.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err183.schemaPath["#/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs21.push(err183);err183.emUsed = true;}}if(emErrs21.length){const err184 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}const emErrs22 = [];for(const err185 of vErrors){if(!err185.emUsed){emErrs22.push(err185);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid18 = _errs199 === errors;valid88 = _valid18;}if(!valid88){const err186 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}const _errs226 = errors;let valid99 = true;const _errs227 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err187 = {};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}else {if(data58.type !== undefined){if("camunda:errorEventDefinition" !== data58.type){const err188 = {};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}}var _valid23 = _errs227 === errors;errors = _errs226;if(vErrors !== null){if(_errs226){vErrors.length = _errs226;}else {vErrors = null;}}if(_valid23){const _errs229 = errors;const _errs230 = errors;let valid101 = false;let passing7 = null;const _errs231 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.errorRef === undefined){const err189 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",keyword:"required",params:{missingProperty: "errorRef"},message:"must have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}var _valid24 = _errs231 === errors;if(_valid24){valid101 = true;passing7 = 0;}if(!valid101){const err190 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing7},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}else {errors = _errs230;if(vErrors !== null){if(_errs230){vErrors.length = _errs230;}else {vErrors = null;}}}if(errors > 0){const emErrs23 = [];for(const err191 of vErrors){if(((((err191.keyword !== "errorMessage") && (!err191.emUsed)) && ((err191.instancePath === instancePath+"/" + i5+"/binding") || ((err191.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err191.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err191.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err191.schemaPath["#/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs23.push(err191);err191.emUsed = true;}}if(emErrs23.length){const err192 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires errorRef"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}const emErrs24 = [];for(const err193 of vErrors){if(!err193.emUsed){emErrs24.push(err193);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid23 = _errs229 === errors;valid99 = _valid23;}if(!valid99){const err194 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.type === undefined){const err195 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(data58.type !== undefined){let data64 = data58.type;if(typeof data64 !== "string"){const err196 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(!((((((((((data64 === "property") || (data64 === "camunda:property")) || (data64 === "camunda:inputParameter")) || (data64 === "camunda:outputParameter")) || (data64 === "camunda:in")) || (data64 === "camunda:out")) || (data64 === "camunda:in:businessKey")) || (data64 === "camunda:executionListener")) || (data64 === "camunda:field")) || (data64 === "camunda:errorEventDefinition"))){const err197 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(errors > 0){const emErrs25 = [];for(const err198 of vErrors){if(((((err198.keyword !== "errorMessage") && (!err198.emUsed)) && ((err198.instancePath === instancePath+"/" + i5+"/binding/type") || ((err198.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err198.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err198.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err198.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs25.push(err198);err198.emUsed = true;}}if(emErrs25.length){const err199 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs25},message:"invalid property.binding type " + JSON.stringify(data64) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}const emErrs26 = [];for(const err200 of vErrors){if(!err200.emUsed){emErrs26.push(err200);}}vErrors = emErrs26;errors = emErrs26.length;}}if(data58.name !== undefined){if(typeof data58.name !== "string"){const err201 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data58.event !== undefined){if(typeof data58.event !== "string"){const err202 = {instancePath:instancePath+"/" + i5+"/binding/event",schemaPath:"#/allOf/1/items/properties/binding/properties/event/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data58.scriptFormat !== undefined){if(typeof data58.scriptFormat !== "string"){const err203 = {instancePath:instancePath+"/" + i5+"/binding/scriptFormat",schemaPath:"#/allOf/1/items/properties/binding/properties/scriptFormat/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(data58.source !== undefined){if(typeof data58.source !== "string"){const err204 = {instancePath:instancePath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}if(data58.target !== undefined){if(typeof data58.target !== "string"){const err205 = {instancePath:instancePath+"/" + i5+"/binding/target",schemaPath:"#/allOf/1/items/properties/binding/properties/target/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(data58.expression !== undefined){if(typeof data58.expression !== "boolean"){const err206 = {instancePath:instancePath+"/" + i5+"/binding/expression",schemaPath:"#/allOf/1/items/properties/binding/properties/expression/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}if(data58.variables !== undefined){let data71 = data58.variables;if(typeof data71 !== "string"){const err207 = {instancePath:instancePath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(!((data71 === "all") || (data71 === "local"))){const err208 = {instancePath:instancePath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.variables.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(data58.sourceExpression !== undefined){if(typeof data58.sourceExpression !== "string"){const err209 = {instancePath:instancePath+"/" + i5+"/binding/sourceExpression",schemaPath:"#/allOf/1/items/properties/binding/properties/sourceExpression/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}}else {const err210 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}}else {const err211 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if(errors > 0){const emErrors3 = {"required":[]};const templates3 = {required:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}};for(const err212 of vErrors){if((((((err212.keyword !== "errorMessage") && (!err212.emUsed)) && (err212.instancePath === instancePath+"/" + i5)) && (err212.keyword in emErrors3)) && (err212.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err212.schemaPath.slice(15)))){emErrors3[err212.keyword].push(err212);err212.emUsed = true;}}for(const key3 in emErrors3){if(emErrors3[key3].length){const err213 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors3[key3]},message:key3 in templates3 ? templates3[key3]() : schema18.allOf[1].items.errorMessage[key3]};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}const emErrs27 = [];for(const err214 of vErrors){if(!err214.emUsed){emErrs27.push(err214);}}vErrors = emErrs27;errors = emErrs27.length;}}}else {const err215 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}validate16.errors = vErrors;return errors === 0;}const schema25 = {"items":{"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"Defines the type of the condition (always \"simple\").","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"Reference to the property used to evaluate the condition."}},"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property. Can be used to, for example, reference the property for checks."},"condition":{"type":"object","description":"Object that defines when a property should be displayed in the properties panel and its value should be included in the XML.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1,"description":"List of conditions that must all be met for the property to be active."}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string","description":"Placeholder text shown in the property input field when it is empty. Can be used to show example input."}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"type":["string","number","boolean"]},"choices":{"items":{"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}}}}};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs4 = errors;let valid4 = true;const _errs5 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs5 === errors;errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}if(_valid0){const _errs7 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/items/allOf/0/then") === 0)) && (err3.schemaPath["#/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs7 === errors;valid4 = _valid0;}if(!valid4){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs11 = errors;let valid7 = true;const _errs12 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0(data2.property, schema19.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs12 === errors;errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}if(_valid1){const _errs16 = errors;const _errs17 = errors;const _errs18 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid11 = _errs18 === errors;if(valid11){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs16 === errors;valid7 = _valid1;}if(!valid7){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs24 = errors;let valid13 = false;let passing0 = null;const _errs25 = errors;const _errs28 = errors;let valid15 = false;let passing1 = null;const _errs29 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs29 === errors;if(_valid3){valid15 = true;passing1 = 0;}const _errs32 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs32 === errors;if(_valid3 && valid15){valid15 = false;passing1 = [passing1, 1];}else {if(_valid3){valid15 = true;passing1 = 1;}const _errs37 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs37 === errors;if(_valid3 && valid15){valid15 = false;passing1 = [passing1, 2];}else {if(_valid3){valid15 = true;passing1 = 2;}}}if(!valid15){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs25 === errors;if(_valid2){valid13 = true;passing0 = 0;}const _errs43 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs49 = errors;let valid26 = false;let passing2 = null;const _errs50 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs50 === errors;if(_valid4){valid26 = true;passing2 = 0;}const _errs53 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs53 === errors;if(_valid4 && valid26){valid26 = false;passing2 = [passing2, 1];}else {if(_valid4){valid26 = true;passing2 = 1;}const _errs58 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs58 === errors;if(_valid4 && valid26){valid26 = false;passing2 = [passing2, 2];}else {if(_valid4){valid26 = true;passing2 = 2;}}}if(!valid26){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs43 === errors;if(_valid2 && valid13){valid13 = false;passing0 = [passing0, 1];}else {if(_valid2){valid13 = true;passing0 = 1;}}if(!valid13){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs24;if(vErrors !== null){if(_errs24){vErrors.length = _errs24;}else {vErrors = null;}}}}}const _errs65 = errors;let valid34 = true;const _errs66 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs68 = errors;const _errs69 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid36 = _errs69 === errors;if(valid36){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs68;if(vErrors !== null){if(_errs68){vErrors.length = _errs68;}else {vErrors = null;}}}}}}var _valid5 = _errs66 === errors;errors = _errs65;if(vErrors !== null){if(_errs65){vErrors.length = _errs65;}else {vErrors = null;}}if(_valid5){const _errs70 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema25.items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs70 === errors;valid34 = _valid5;}if(!valid34){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}const _errs74 = errors;let valid38 = true;const _errs75 = errors;const _errs76 = errors;let valid39 = false;const _errs77 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data0.type !== undefined){let data22 = data0.type;if(!((data22 === "String") || (data22 === "Text"))){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}var _valid7 = _errs77 === errors;if(_valid7){valid39 = true;}const _errs79 = errors;const _errs80 = errors;const _errs81 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid41 = _errs81 === errors;if(valid41){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {errors = _errs80;if(vErrors !== null){if(_errs80){vErrors.length = _errs80;}else {vErrors = null;}}}var _valid7 = _errs79 === errors;if(_valid7 && valid39){valid39 = false;}else {if(_valid7){valid39 = true;}}if(!valid39){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}}var _valid6 = _errs75 === errors;errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}let ifClause0;if(_valid6){const _errs82 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.placeholder !== undefined){if(typeof data0.placeholder !== "string"){const err62 = {instancePath:instancePath+"/" + i0+"/placeholder",schemaPath:"#/items/allOf/3/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var _valid6 = _errs82 === errors;valid38 = _valid6;ifClause0 = "then";}else {const _errs85 = errors;const _errs86 = errors;const _errs87 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.placeholder === undefined) && ("placeholder")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var valid43 = _errs87 === errors;if(valid43){const err64 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/3/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs86;if(vErrors !== null){if(_errs86){vErrors.length = _errs86;}else {vErrors = null;}}}var _valid6 = _errs85 === errors;valid38 = _valid6;ifClause0 = "else";}if(!valid38){const err65 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/3/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data24 = data0.value;if(((typeof data24 !== "string") && (!(typeof data24 == "number"))) && (typeof data24 !== "boolean")){const err66 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/items/properties/value/type",keyword:"type",params:{type: schema25.items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err67 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err68 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err69 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err70 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.choices !== undefined){let data29 = data0.choices;if(Array.isArray(data29)){const len4 = data29.length;for(let i4=0; i4<len4; i4++){let data30 = data29[i4];if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err71 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data30.name === undefined){const err72 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data30.name !== undefined){if(typeof data30.name !== "string"){const err73 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data30.value !== undefined){if(typeof data30.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data30.condition !== undefined){if(!(validate17(data30.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data30,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err75 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err76 of vErrors){if((((((err76.keyword !== "errorMessage") && (!err76.emUsed)) && (err76.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err76.keyword in emErrors2)) && (err76.schemaPath.indexOf("#/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err76.schemaPath.slice(32)))){emErrors2[err76.keyword].push(err76);err76.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err77 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema25.items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}const emErrs6 = [];for(const err78 of vErrors){if(!err78.emUsed){emErrs6.push(err78);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.constraints !== undefined){let data34 = data0.constraints;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.notEmpty !== undefined){if(typeof data34.notEmpty !== "boolean"){const err80 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data34.minLength !== undefined){if(!(typeof data34.minLength == "number")){const err81 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data34.maxLength !== undefined){if(!(typeof data34.maxLength == "number")){const err82 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data34.pattern !== undefined){let data38 = data34.pattern;const _errs116 = errors;let valid50 = false;let passing4 = null;const _errs117 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.value !== undefined){if(typeof data38.value !== "string"){const err83 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data38.message !== undefined){if(typeof data38.message !== "string"){const err84 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid8 = _errs117 === errors;if(_valid8){valid50 = true;passing4 = 0;}const _errs123 = errors;if(typeof data38 !== "string"){const err86 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid8 = _errs123 === errors;if(_valid8 && valid50){valid50 = false;passing4 = [passing4, 1];}else {if(_valid8){valid50 = true;passing4 = 1;}}if(!valid50){const err87 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}}}else {const err88 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err89 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}validate20.errors = vErrors;return errors === 0;}function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.$schema !== undefined){if(typeof data.$schema !== "string"){const err4 = {instancePath:instancePath+"/$schema",schemaPath:"#/allOf/0/properties/%24schema/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){if(typeof data.name !== "string"){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err6 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err7 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.version !== undefined){let data4 = data.version;if(!((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4)))){const err8 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err9 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.deprecated !== undefined){let data6 = data.deprecated;if((typeof data6 !== "boolean") && (!(data6 && typeof data6 == "object" && !Array.isArray(data6)))){const err10 = {instancePath:instancePath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",keyword:"type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"must be boolean,object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.message !== undefined){if(typeof data6.message !== "string"){const err11 = {instancePath:instancePath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data6.documentationRef !== undefined){let data8 = data6.documentationRef;if(typeof data8 === "string"){if(!pattern0.test(data8)){const err12 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}}if(data.appliesTo !== undefined){let data9 = data.appliesTo;if(Array.isArray(data9)){const len0 = data9.length;for(let i0=0; i0<len0; i0++){let data10 = data9[i0];if(typeof data10 === "string"){if(!pattern1.test(data10)){const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err16 of vErrors){if((((((err16.keyword !== "errorMessage") && (!err16.emUsed)) && (err16.instancePath === instancePath+"/appliesTo/" + i0)) && (err16.keyword in emErrors0)) && (err16.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err16.schemaPath.slice(36)))){emErrors0[err16.keyword].push(err16);err16.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err17 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}const emErrs0 = [];for(const err18 of vErrors){if(!err18.emUsed){emErrs0.push(err18);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err19 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.elementType !== undefined){let data11 = data.elementType;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.value === undefined){const err20 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data11.value !== undefined){let data12 = data11.value;if(typeof data12 === "string"){if(!pattern1.test(data12)){const err21 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err23 of vErrors){if((((((err23.keyword !== "errorMessage") && (!err23.emUsed)) && (err23.instancePath === instancePath+"/elementType/value")) && (err23.keyword in emErrors1)) && (err23.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err23.schemaPath.slice(49)))){emErrors1[err23.keyword].push(err23);err23.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err24 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}const emErrs1 = [];for(const err25 of vErrors){if(!err25.emUsed){emErrs1.push(err25);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err26 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err27 of vErrors){if((((((err27.keyword !== "errorMessage") && (!err27.emUsed)) && (err27.instancePath === instancePath+"/elementType")) && (err27.keyword in emErrors2)) && (err27.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err27.schemaPath.slice(32)))){emPropParams0 = obj0[err27.keyword];emParamsErrors0 = emErrors2[err27.keyword][err27.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err27);err27.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err28 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}const emErrs2 = [];for(const err29 of vErrors){if(!err29.emUsed){emErrs2.push(err29);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data13 = data.metadata;if(!(data13 && typeof data13 == "object" && !Array.isArray(data13))){const err30 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.keywords !== undefined){let data14 = data.keywords;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){if(typeof data14[i1] !== "string"){const err31 = {instancePath:instancePath+"/keywords/" + i1,schemaPath:"#/allOf/0/properties/keywords/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}else {const err32 = {instancePath:instancePath+"/keywords",schemaPath:"#/allOf/0/properties/keywords/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err33 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.groups !== undefined){let data17 = data.groups;if(Array.isArray(data17)){const len2 = data17.length;for(let i2=0; i2<len2; i2++){let data18 = data17[i2];if(data18 && typeof data18 == "object" && !Array.isArray(data18)){if(data18.id === undefined){const err34 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(data18.label === undefined){const err35 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data18.id !== undefined){if(typeof data18.id !== "string"){const err36 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data18.label !== undefined){if(typeof data18.label !== "string"){const err37 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}else {const err38 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i2) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i2) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err39 of vErrors){if((((((err39.keyword !== "errorMessage") && (!err39.emUsed)) && (err39.instancePath === instancePath+"/groups/" + i2)) && (err39.keyword in emErrors3)) && (err39.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err39.schemaPath.slice(33)))){emPropParams1 = obj0[err39.keyword];emParamsErrors1 = emErrors3[err39.keyword][err39.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err39);err39.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err40 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}}const emErrs3 = [];for(const err41 of vErrors){if(!err41.emUsed){emErrs3.push(err41);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err42 = {instancePath:instancePath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data.documentationRef !== undefined){let data21 = data.documentationRef;if(typeof data21 === "string"){if(!pattern0.test(data21)){const err43 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}else {const err44 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.instancePath === instancePath+"/documentationRef")) && (err45.keyword in emErrors4)) && (err45.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(37)))){emErrors4[err45.keyword].push(err45);err45.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err46 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",keyword:"errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}const emErrs4 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs4.push(err47);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err48 of vErrors){if((((((err48.keyword !== "errorMessage") && (!err48.emUsed)) && (err48.instancePath === instancePath)) && (err48.keyword in emErrors5)) && (err48.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err48.schemaPath.slice(9)))){emPropParams2 = obj0[err48.keyword];emParamsErrors2 = emErrors5[err48.keyword][err48.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err48);err48.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err49 = {instancePath,schemaPath:"#/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}const emErrs5 = [];for(const err50 of vErrors){if(!err50.emUsed){emErrs5.push(err50);}}vErrors = emErrs5;errors = emErrs5.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {instancePath:instancePath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.scopes !== undefined){let data23 = data.scopes;if(Array.isArray(data23)){const len3 = data23.length;for(let i3=0; i3<len3; i3++){let data24 = data23[i3];const _errs52 = errors;let valid19 = true;const _errs53 = errors;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if((data24.type === undefined) && ("type")){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {if(data24.type !== undefined){if(!(data24.type === "bpmn:Error")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}}var _valid0 = _errs53 === errors;errors = _errs52;if(vErrors !== null){if(_errs52){vErrors.length = _errs52;}else {vErrors = null;}}if(_valid0){const _errs55 = errors;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(data24.id === undefined){const err53 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}if(errors > 0){const emErrs6 = [];for(const err54 of vErrors){if(((((err54.keyword !== "errorMessage") && (!err54.emUsed)) && ((err54.instancePath === instancePath+"/scopes/" + i3) || ((err54.instancePath.indexOf(instancePath+"/scopes/" + i3) === 0) && (err54.instancePath[instancePath+"/scopes/" + i3.length] === "/")))) && (err54.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then") === 0)) && (err54.schemaPath["#/properties/scopes/items/allOf/0/then".length] === "/")){emErrs6.push(err54);err54.emUsed = true;}}if(emErrs6.length){const err55 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs6},message:"invalid scope " + JSON.stringify(data24 && data24.type) + ", missing id"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}const emErrs7 = [];for(const err56 of vErrors){if(!err56.emUsed){emErrs7.push(err56);}}vErrors = emErrs7;errors = emErrs7.length;}var _valid0 = _errs55 === errors;valid19 = _valid0;}if(!valid19){const err57 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(data24.type === undefined){const err58 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data24.properties === undefined){const err59 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data24.type !== undefined){let data26 = data24.type;if(typeof data26 !== "string"){const err60 = {instancePath:instancePath+"/scopes/" + i3+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(!((data26 === "camunda:Connector") || (data26 === "bpmn:Error"))){const err61 = {instancePath:instancePath+"/scopes/" + i3+"/type",schemaPath:"#/properties/scopes/items/properties/type/enum",keyword:"enum",params:{allowedValues: schema17.properties.scopes.items.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(errors > 0){const emErrs8 = [];for(const err62 of vErrors){if(((((err62.keyword !== "errorMessage") && (!err62.emUsed)) && ((err62.instancePath === instancePath+"/scopes/" + i3+"/type") || ((err62.instancePath.indexOf(instancePath+"/scopes/" + i3+"/type") === 0) && (err62.instancePath[instancePath+"/scopes/" + i3+"/type".length] === "/")))) && (err62.schemaPath.indexOf("#/properties/scopes/items/properties/type") === 0)) && (err62.schemaPath["#/properties/scopes/items/properties/type".length] === "/")){emErrs8.push(err62);err62.emUsed = true;}}if(emErrs8.length){const err63 = {instancePath:instancePath+"/scopes/" + i3+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs8},message:"invalid scope type " + JSON.stringify(data26) + "; must be any of { camunda:Connector, bpmn:Error }"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}const emErrs9 = [];for(const err64 of vErrors){if(!err64.emUsed){emErrs9.push(err64);}}vErrors = emErrs9;errors = emErrs9.length;}}if(data24.properties !== undefined){let data27 = data24.properties;if(!(validate20(data27, {instancePath:instancePath+"/scopes/" + i3+"/properties",parentData:data24,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}if(Array.isArray(data27)){const len4 = data27.length;for(let i4=0; i4<len4; i4++){let data28 = data27[i4];const _errs66 = errors;let valid27 = true;const _errs67 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if((data28.binding === undefined) && ("binding")){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {if(data28.binding !== undefined){let data29 = data28.binding;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if((data29.type === undefined) && ("type")){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {if(data29.type !== undefined){if("property" !== data29.type){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}}}}var _valid1 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid1){const _errs70 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.type !== undefined){let data31 = data28.type;if(!(((((data31 === "String") || (data31 === "Text")) || (data31 === "Hidden")) || (data31 === "Dropdown")) || (data31 === "Boolean"))){const err68 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(errors > 0){const emErrs10 = [];for(const err69 of vErrors){if(((((err69.keyword !== "errorMessage") && (!err69.emUsed)) && ((err69.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") || ((err69.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") === 0) && (err69.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/type".length] === "/")))) && (err69.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err69.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs10.push(err69);err69.emUsed = true;}}if(emErrs10.length){const err70 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs10},message:"invalid property type " + JSON.stringify(data31) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}const emErrs11 = [];for(const err71 of vErrors){if(!err71.emUsed){emErrs11.push(err71);}}vErrors = emErrs11;errors = emErrs11.length;}}}var _valid1 = _errs70 === errors;valid27 = _valid1;}if(!valid27){const err72 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}const _errs73 = errors;let valid31 = true;const _errs74 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if((data28.binding === undefined) && ("binding")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data28.binding !== undefined){let data32 = data28.binding;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if((data32.type === undefined) && ("type")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data32.type !== undefined){if("camunda:executionListener" !== data32.type){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}}}}}}var _valid2 = _errs74 === errors;errors = _errs73;if(vErrors !== null){if(_errs73){vErrors.length = _errs73;}else {vErrors = null;}}if(_valid2){const _errs77 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.type !== undefined){if(!(data28.type === "Hidden")){const err76 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(errors > 0){const emErrs12 = [];for(const err77 of vErrors){if(((((err77.keyword !== "errorMessage") && (!err77.emUsed)) && ((err77.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") || ((err77.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") === 0) && (err77.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/type".length] === "/")))) && (err77.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err77.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs12.push(err77);err77.emUsed = true;}}if(emErrs12.length){const err78 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs12},message:"invalid property type " + JSON.stringify(data28 && data28.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}const emErrs13 = [];for(const err79 of vErrors){if(!err79.emUsed){emErrs13.push(err79);}}vErrors = emErrs13;errors = emErrs13.length;}}if(data28.binding !== undefined){let data35 = data28.binding;const _errs80 = errors;let valid35 = false;let passing0 = null;const _errs81 = errors;const _errs82 = errors;const _errs83 = errors;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if(data35.implementationType !== undefined){if("script" !== data35.implementationType){const err80 = {};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}}var valid36 = _errs83 === errors;if(valid36){const err81 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {errors = _errs82;if(vErrors !== null){if(_errs82){vErrors.length = _errs82;}else {vErrors = null;}}}var _valid3 = _errs81 === errors;if(_valid3){valid35 = true;passing0 = 0;}const _errs85 = errors;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if(data35.scriptFormat === undefined){const err82 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",keyword:"required",params:{missingProperty: "scriptFormat"},message:"must have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var _valid3 = _errs85 === errors;if(_valid3 && valid35){valid35 = false;passing0 = [passing0, 1];}else {if(_valid3){valid35 = true;passing0 = 1;}const _errs86 = errors;const _errs88 = errors;const _errs89 = errors;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.implementationType === undefined) && ("implementationType")){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}var valid39 = _errs89 === errors;if(valid39){const err84 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}}const _errs91 = errors;const _errs92 = errors;if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if((data35.scriptFormat === undefined) && ("scriptFormat")){const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}var valid40 = _errs92 === errors;if(valid40){const err86 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {errors = _errs91;if(vErrors !== null){if(_errs91){vErrors.length = _errs91;}else {vErrors = null;}}}var _valid3 = _errs86 === errors;if(_valid3 && valid35){valid35 = false;passing0 = [passing0, 2];}else {if(_valid3){valid35 = true;passing0 = 2;}}}if(!valid35){const err87 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs80;if(vErrors !== null){if(_errs80){vErrors.length = _errs80;}else {vErrors = null;}}}if(data35 && typeof data35 == "object" && !Array.isArray(data35)){if(data35.implementationType !== undefined){let data37 = data35.implementationType;if(!((((data37 === "class") || (data37 === "delegateExpression")) || (data37 === "expression")) || (data37 === "script"))){const err88 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/implementationType",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}}}var _valid2 = _errs77 === errors;valid31 = _valid2;}if(!valid31){const err89 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}const _errs95 = errors;let valid42 = true;const _errs96 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if((data28.binding === undefined) && ("binding")){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}else {if(data28.binding !== undefined){let data38 = data28.binding;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if((data38.type === undefined) && ("type")){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {if(data38.type !== undefined){let data39 = data38.type;if(!((((((data39 === "camunda:property") || (data39 === "camunda:outputParameter")) || (data39 === "camunda:in")) || (data39 === "camunda:in:businessKey")) || (data39 === "camunda:out")) || (data39 === "camunda:errorEventDefinition"))){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}}}}}var _valid4 = _errs96 === errors;errors = _errs95;if(vErrors !== null){if(_errs95){vErrors.length = _errs95;}else {vErrors = null;}}if(_valid4){const _errs99 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.type !== undefined){let data40 = data28.type;if(!(((data40 === "String") || (data40 === "Hidden")) || (data40 === "Dropdown"))){const err93 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[2].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if(errors > 0){const emErrs14 = [];for(const err94 of vErrors){if(((((err94.keyword !== "errorMessage") && (!err94.emUsed)) && ((err94.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") || ((err94.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") === 0) && (err94.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/type".length] === "/")))) && (err94.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err94.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs14.push(err94);err94.emUsed = true;}}if(emErrs14.length){const err95 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs14},message:"invalid property type " + JSON.stringify(data40) + " for binding type " + JSON.stringify(data28 && data28.binding && data28.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}const emErrs15 = [];for(const err96 of vErrors){if(!err96.emUsed){emErrs15.push(err96);}}vErrors = emErrs15;errors = emErrs15.length;}}}var _valid4 = _errs99 === errors;valid42 = _valid4;}if(!valid42){const err97 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const _errs102 = errors;let valid46 = true;const _errs103 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if((data28.binding === undefined) && ("binding")){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}else {if(data28.binding !== undefined){let data41 = data28.binding;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if((data41.type === undefined) && ("type")){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}else {if(data41.type !== undefined){let data42 = data41.type;if(!((data42 === "camunda:inputParameter") || (data42 === "camunda:field"))){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}}}}}var _valid5 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}if(_valid5){const _errs106 = errors;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.type !== undefined){let data43 = data28.type;if(!((((data43 === "String") || (data43 === "Text")) || (data43 === "Hidden")) || (data43 === "Dropdown"))){const err101 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[3].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(errors > 0){const emErrs16 = [];for(const err102 of vErrors){if(((((err102.keyword !== "errorMessage") && (!err102.emUsed)) && ((err102.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") || ((err102.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") === 0) && (err102.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/type".length] === "/")))) && (err102.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err102.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs16.push(err102);err102.emUsed = true;}}if(emErrs16.length){const err103 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs16},message:"invalid property type " + JSON.stringify(data43) + " for binding type " + JSON.stringify(data28 && data28.binding && data28.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}const emErrs17 = [];for(const err104 of vErrors){if(!err104.emUsed){emErrs17.push(err104);}}vErrors = emErrs17;errors = emErrs17.length;}}}var _valid5 = _errs106 === errors;valid46 = _valid5;}if(!valid46){const err105 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if(data28.binding === undefined){const err106 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if(data28.binding !== undefined){let data44 = data28.binding;const _errs111 = errors;let valid52 = true;const _errs112 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.type === undefined) && ("type")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {if(data44.type !== undefined){let data45 = data44.type;if(!((((data45 === "property") || (data45 === "camunda:property")) || (data45 === "camunda:inputParameter")) || (data45 === "camunda:field"))){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}var _valid6 = _errs112 === errors;errors = _errs111;if(vErrors !== null){if(_errs111){vErrors.length = _errs111;}else {vErrors = null;}}if(_valid6){const _errs114 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.name === undefined){const err109 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(errors > 0){const emErrs18 = [];for(const err110 of vErrors){if(((((err110.keyword !== "errorMessage") && (!err110.emUsed)) && ((err110.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") || ((err110.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") === 0) && (err110.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding".length] === "/")))) && (err110.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err110.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs18.push(err110);err110.emUsed = true;}}if(emErrs18.length){const err111 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs18},message:"property.binding " + JSON.stringify(data44 && data44.type) + " requires name"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const emErrs19 = [];for(const err112 of vErrors){if(!err112.emUsed){emErrs19.push(err112);}}vErrors = emErrs19;errors = emErrs19.length;}var _valid6 = _errs114 === errors;valid52 = _valid6;}if(!valid52){const err113 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const _errs116 = errors;let valid54 = true;const _errs117 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.type === undefined) && ("type")){const err114 = {};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {if(data44.type !== undefined){if("camunda:outputParameter" !== data44.type){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}}var _valid7 = _errs117 === errors;errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}if(_valid7){const _errs119 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.source === undefined){const err116 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}}if(errors > 0){const emErrs20 = [];for(const err117 of vErrors){if(((((err117.keyword !== "errorMessage") && (!err117.emUsed)) && ((err117.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") || ((err117.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") === 0) && (err117.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding".length] === "/")))) && (err117.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err117.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs20.push(err117);err117.emUsed = true;}}if(emErrs20.length){const err118 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs20},message:"property.binding " + JSON.stringify(data44 && data44.type) + " requires source"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}const emErrs21 = [];for(const err119 of vErrors){if(!err119.emUsed){emErrs21.push(err119);}}vErrors = emErrs21;errors = emErrs21.length;}var _valid7 = _errs119 === errors;valid54 = _valid7;}if(!valid54){const err120 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}const _errs121 = errors;let valid56 = true;const _errs122 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.type === undefined) && ("type")){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {if(data44.type !== undefined){if("camunda:in" !== data44.type){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}}}var _valid8 = _errs122 === errors;errors = _errs121;if(vErrors !== null){if(_errs121){vErrors.length = _errs121;}else {vErrors = null;}}if(_valid8){const _errs124 = errors;const _errs125 = errors;let valid58 = false;const _errs126 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.variables === undefined){const err123 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}var _valid9 = _errs126 === errors;valid58 = valid58 || _valid9;if(!valid58){const _errs127 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.target === undefined){const err124 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}var _valid9 = _errs127 === errors;valid58 = valid58 || _valid9;}if(!valid58){const err125 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}else {errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}}if(errors > 0){const emErrs22 = [];for(const err126 of vErrors){if(((((err126.keyword !== "errorMessage") && (!err126.emUsed)) && ((err126.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") || ((err126.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") === 0) && (err126.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding".length] === "/")))) && (err126.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err126.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs22.push(err126);err126.emUsed = true;}}if(emErrs22.length){const err127 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs22},message:"property.binding " + JSON.stringify(data44 && data44.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}const emErrs23 = [];for(const err128 of vErrors){if(!err128.emUsed){emErrs23.push(err128);}}vErrors = emErrs23;errors = emErrs23.length;}var _valid8 = _errs124 === errors;valid56 = _valid8;}if(!valid56){const err129 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}const _errs129 = errors;let valid59 = true;const _errs130 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.type === undefined) && ("type")){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}else {if(data44.type !== undefined){if("camunda:out" !== data44.type){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}}}var _valid10 = _errs130 === errors;errors = _errs129;if(vErrors !== null){if(_errs129){vErrors.length = _errs129;}else {vErrors = null;}}if(_valid10){const _errs132 = errors;const _errs133 = errors;let valid61 = false;let passing1 = null;const _errs134 = errors;const _errs135 = errors;const _errs136 = errors;const _errs137 = errors;let valid63 = false;const _errs138 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.source === undefined) && ("source")){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}var _valid12 = _errs138 === errors;valid63 = valid63 || _valid12;if(!valid63){const _errs139 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.sourceExpression === undefined) && ("sourceExpression")){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}var _valid12 = _errs139 === errors;valid63 = valid63 || _valid12;}if(!valid63){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {errors = _errs137;if(vErrors !== null){if(_errs137){vErrors.length = _errs137;}else {vErrors = null;}}}var valid62 = _errs136 === errors;if(valid62){const err135 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.variables === undefined){const err136 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}var _valid11 = _errs134 === errors;if(_valid11){valid61 = true;passing1 = 0;}const _errs140 = errors;const _errs141 = errors;const _errs142 = errors;const _errs143 = errors;let valid65 = false;const _errs144 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.variables === undefined) && ("variables")){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}var _valid13 = _errs144 === errors;valid65 = valid65 || _valid13;if(!valid65){const _errs145 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.sourceExpression === undefined) && ("sourceExpression")){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var _valid13 = _errs145 === errors;valid65 = valid65 || _valid13;}if(!valid65){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {errors = _errs143;if(vErrors !== null){if(_errs143){vErrors.length = _errs143;}else {vErrors = null;}}}var valid64 = _errs142 === errors;if(valid64){const err140 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}else {errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}}if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.source === undefined){const err141 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid11 = _errs140 === errors;if(_valid11 && valid61){valid61 = false;passing1 = [passing1, 1];}else {if(_valid11){valid61 = true;passing1 = 1;}const _errs146 = errors;const _errs147 = errors;const _errs148 = errors;const _errs149 = errors;let valid67 = false;const _errs150 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.variables === undefined) && ("variables")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var _valid14 = _errs150 === errors;valid67 = valid67 || _valid14;if(!valid67){const _errs151 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.source === undefined) && ("source")){const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}var _valid14 = _errs151 === errors;valid67 = valid67 || _valid14;}if(!valid67){const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}else {errors = _errs149;if(vErrors !== null){if(_errs149){vErrors.length = _errs149;}else {vErrors = null;}}}var valid66 = _errs148 === errors;if(valid66){const err145 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.sourceExpression === undefined){const err146 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}var _valid11 = _errs146 === errors;if(_valid11 && valid61){valid61 = false;passing1 = [passing1, 2];}else {if(_valid11){valid61 = true;passing1 = 2;}const _errs152 = errors;const _errs153 = errors;const _errs154 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.source === undefined) && ("source")){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var valid68 = _errs154 === errors;if(valid68){const err148 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {errors = _errs153;if(vErrors !== null){if(_errs153){vErrors.length = _errs153;}else {vErrors = null;}}}if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.variables === undefined){const err149 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(data44.sourceExpression === undefined){const err150 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var _valid11 = _errs152 === errors;if(_valid11 && valid61){valid61 = false;passing1 = [passing1, 3];}else {if(_valid11){valid61 = true;passing1 = 3;}const _errs155 = errors;const _errs156 = errors;const _errs157 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.sourceExpression === undefined) && ("sourceExpression")){const err151 = {};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var valid69 = _errs157 === errors;if(valid69){const err152 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {errors = _errs156;if(vErrors !== null){if(_errs156){vErrors.length = _errs156;}else {vErrors = null;}}}if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.variables === undefined){const err153 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(data44.source === undefined){const err154 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var _valid11 = _errs155 === errors;if(_valid11 && valid61){valid61 = false;passing1 = [passing1, 4];}else {if(_valid11){valid61 = true;passing1 = 4;}}}}}if(!valid61){const err155 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err156 of vErrors){if(((((err156.keyword !== "errorMessage") && (!err156.emUsed)) && ((err156.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") || ((err156.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") === 0) && (err156.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding".length] === "/")))) && (err156.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err156.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs24.push(err156);err156.emUsed = true;}}if(emErrs24.length){const err157 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs24},message:"property.binding " + JSON.stringify(data44 && data44.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}const emErrs25 = [];for(const err158 of vErrors){if(!err158.emUsed){emErrs25.push(err158);}}vErrors = emErrs25;errors = emErrs25.length;}var _valid10 = _errs132 === errors;valid59 = _valid10;}if(!valid59){const err159 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}const _errs159 = errors;let valid70 = true;const _errs160 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.type === undefined) && ("type")){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}else {if(data44.type !== undefined){if("camunda:errorEventDefinition" !== data44.type){const err161 = {};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}}}var _valid15 = _errs160 === errors;errors = _errs159;if(vErrors !== null){if(_errs159){vErrors.length = _errs159;}else {vErrors = null;}}if(_valid15){const _errs162 = errors;const _errs163 = errors;let valid72 = false;let passing2 = null;const _errs164 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.errorRef === undefined){const err162 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",keyword:"required",params:{missingProperty: "errorRef"},message:"must have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}var _valid16 = _errs164 === errors;if(_valid16){valid72 = true;passing2 = 0;}if(!valid72){const err163 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {errors = _errs163;if(vErrors !== null){if(_errs163){vErrors.length = _errs163;}else {vErrors = null;}}}if(errors > 0){const emErrs26 = [];for(const err164 of vErrors){if(((((err164.keyword !== "errorMessage") && (!err164.emUsed)) && ((err164.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") || ((err164.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") === 0) && (err164.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding".length] === "/")))) && (err164.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err164.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs26.push(err164);err164.emUsed = true;}}if(emErrs26.length){const err165 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs26},message:"property.binding " + JSON.stringify(data44 && data44.type) + " requires errorRef"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}const emErrs27 = [];for(const err166 of vErrors){if(!err166.emUsed){emErrs27.push(err166);}}vErrors = emErrs27;errors = emErrs27.length;}var _valid15 = _errs162 === errors;valid70 = _valid15;}if(!valid70){const err167 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.type === undefined){const err168 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}if(data44.type !== undefined){let data50 = data44.type;if(typeof data50 !== "string"){const err169 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if(!((((((((((data50 === "property") || (data50 === "camunda:property")) || (data50 === "camunda:inputParameter")) || (data50 === "camunda:outputParameter")) || (data50 === "camunda:in")) || (data50 === "camunda:out")) || (data50 === "camunda:in:businessKey")) || (data50 === "camunda:executionListener")) || (data50 === "camunda:field")) || (data50 === "camunda:errorEventDefinition"))){const err170 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(errors > 0){const emErrs28 = [];for(const err171 of vErrors){if(((((err171.keyword !== "errorMessage") && (!err171.emUsed)) && ((err171.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/type") || ((err171.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/type") === 0) && (err171.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/type".length] === "/")))) && (err171.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err171.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs28.push(err171);err171.emUsed = true;}}if(emErrs28.length){const err172 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs28},message:"invalid property.binding type " + JSON.stringify(data50) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}const emErrs29 = [];for(const err173 of vErrors){if(!err173.emUsed){emErrs29.push(err173);}}vErrors = emErrs29;errors = emErrs29.length;}}if(data44.name !== undefined){if(typeof data44.name !== "string"){const err174 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data44.event !== undefined){if(typeof data44.event !== "string"){const err175 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data44.scriptFormat !== undefined){if(typeof data44.scriptFormat !== "string"){const err176 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data44.source !== undefined){if(typeof data44.source !== "string"){const err177 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}if(data44.target !== undefined){if(typeof data44.target !== "string"){const err178 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data44.expression !== undefined){if(typeof data44.expression !== "boolean"){const err179 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data44.variables !== undefined){let data57 = data44.variables;if(typeof data57 !== "string"){const err180 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(!((data57 === "all") || (data57 === "local"))){const err181 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",keyword:"enum",params:{allowedValues: schema29.items.properties.binding.properties.variables.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}if(data44.sourceExpression !== undefined){if(typeof data44.sourceExpression !== "string"){const err182 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}else {const err184 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}if(errors > 0){const emErrors6 = {"required":[]};const templates6 = {required:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}};for(const err185 of vErrors){if((((((err185.keyword !== "errorMessage") && (!err185.emUsed)) && (err185.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4)) && (err185.keyword in emErrors6)) && (err185.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err185.schemaPath.slice(38)))){emErrors6[err185.keyword].push(err185);err185.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err186 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema29.items.errorMessage[key6]};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}const emErrs30 = [];for(const err187 of vErrors){if(!err187.emUsed){emErrs30.push(err187);}}vErrors = emErrs30;errors = emErrs30.length;}}}else {const err188 = {instancePath:instancePath+"/scopes/" + i3+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}else {const err189 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if(errors > 0){const emErrors7 = {"required":{"type":[],"properties":[]}};const templates7 = {required:{properties:function(){return "invalid scope " + JSON.stringify(data24 && data24.type) + ", missing properties=[]"}}};let emPropParams3;let emParamsErrors3;for(const err190 of vErrors){if((((((err190.keyword !== "errorMessage") && (!err190.emUsed)) && (err190.instancePath === instancePath+"/scopes/" + i3)) && (err190.keyword in emErrors7)) && (err190.schemaPath.indexOf("#/properties/scopes/items") === 0)) && (/^\/[^\/]*$/.test(err190.schemaPath.slice(25)))){emPropParams3 = obj0[err190.keyword];emParamsErrors3 = emErrors7[err190.keyword][err190.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err190);err190.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err191 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.scopes.items.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}}const emErrs31 = [];for(const err192 of vErrors){if(!err192.emUsed){emErrs31.push(err192);}}vErrors = emErrs31;errors = emErrs31.length;}}}else {const err193 = {instancePath:instancePath+"/scopes",schemaPath:"#/properties/scopes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}}else {const err194 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
89
+ standaloneValidator.exports = validate14;standaloneValidator.exports.default = validate14;const schema17 = {"allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"$schema":{"$id":"#/$schema","type":"string","description":"Reference to the Element Template JSON schema this document follows."},"name":{"$id":"#/name","type":"string","description":"Template name. Shown during template selection and editing of a templated element. Required."},"id":{"$id":"#/id","type":"string","description":"Template identifier. Required."},"description":{"$id":"#/description","type":"string","description":"Template description. Shown during template selection and editing of a templated element."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template, it will be considered unique based on its ID and version. Two templates can have the same ID if their versions are different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Marks the template as deprecated. Value can be either a boolean or an object with a message and a link to migration documentation.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"URL pointing to template documentation. Must be a valid http(s) URL."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to. Required.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"Object that sets the type of the element. Some properties require a specific value for elementType.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","description":"Specifies the target BPMN element type. The element is replaced with the specified type when a user applies the template. Required if using elementType.","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"keywords":{"$id":"#/keywords","type":"array","items":{"type":"string"},"description":"List of keywords to help users find the template. Used in search and filtering, but not displayed in the UI.","default":[]},"groups":{"$id":"#/groups","type":"array","description":"List of custom groups to organize related fields in the properties panel.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"Uniquely identifies a group object. Required if using groups."},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the group, shown as a section header in the properties panel. Required if using groups."}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}}],"properties":{"scopes":{"items":{"properties":{"type":{"enum":["camunda:Connector","bpmn:Error"]}},"errorMessage":{"required":{"type":"invalid scope, missing type","properties":"invalid scope ${0/type}, missing properties=[]"}}}}}};const schema29 = {"items":{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"]},"variables":{"enum":["all","local"]}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const schema18 = {"allOf":[{"type":"array","description":"List of the template's properties.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"Defines the type of the condition (always \"simple\").","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"Reference to the property used to evaluate the condition."}},"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property. Can be used to, for example, reference the property for checks."},"condition":{"type":"object","description":"Object that defines when a property should be displayed in the properties panel and its value should be included in the XML.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1,"description":"List of conditions that must all be met for the property to be active."}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string","description":"Placeholder text shown in the property input field when it is empty. Can be used to show example input."}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"Default value to be used if the user does not provide a value or if the type is Hidden."},"description":{"$id":"#/properties/property/description","type":"string","description":"Hint text shown below the property input field."},"label":{"$id":"#/properties/property/label","type":"string","description":"Label text shown above the property input field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Defines whether users can edit the property in the properties panel. By default, all non-hidden properties are editable."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"List of choices for a dropdown field.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"Display name for a choice in a dropdown field. Shown to the user."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"Value for a choice in a dropdown field. Stored in the XML."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"Object that contains rules to validate user input to the template.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"String or object that defines a regular expression that the user's input must match.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The value of the regular expression."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"Custom error message to show when the user's input does not match the regular expression."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"Group in the properties panel that the property belongs to."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"camunda:executionListener"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["Hidden"],"errorMessage":"invalid property type ${1/type} for binding type \"camunda:executionListener\"; must be \"Hidden\""},"binding":{"properties":{"implementationType":{"enum":["class","delegateExpression","expression","script"]}},"oneOf":[{"not":{"properties":{"implementationType":{"const":"script"}}}},{"required":["scriptFormat"]},{"allOf":[{"not":{"required":["implementationType"]}},{"not":{"required":["scriptFormat"]}}]}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:property","camunda:outputParameter","camunda:in","camunda:in:businessKey","camunda:out","camunda:errorEventDefinition"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Hidden, Dropdown }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["camunda:inputParameter","camunda:field"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown }"}}}}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Object that defines how the property is mapped to BPMN or Camunda extensions. Required.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","camunda:property","camunda:inputParameter","camunda:field"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"camunda:outputParameter"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"camunda:in"}},"required":["type"]},"then":{"anyOf":[{"required":["variables"]},{"required":["target"]}],"errorMessage":"property.binding ${0/type} requires variables, target, or both"}},{"if":{"properties":{"type":{"const":"camunda:out"}},"required":["type"]},"then":{"oneOf":[{"required":["variables"],"not":{"anyOf":[{"required":["source"]},{"required":["sourceExpression"]}]}},{"required":["source"],"not":{"anyOf":[{"required":["variables"]},{"required":["sourceExpression"]}]}},{"required":["sourceExpression"],"not":{"anyOf":[{"required":["variables"]},{"required":["source"]}]}},{"required":["variables","sourceExpression"],"not":{"required":["source"]}},{"required":["variables","source"],"not":{"required":["sourceExpression"]}}],"errorMessage":"property.binding ${0/type} requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"}},{"if":{"properties":{"type":{"const":"camunda:errorEventDefinition"}},"required":["type"]},"then":{"oneOf":[{"required":["errorRef"]}],"errorMessage":"property.binding ${0/type} requires errorRef"}},{"examples":[{"type":"property","name":"name"},{"type":"camunda:property","name":"property"},{"type":"camunda:inputParameter","name":"input"},{"type":"camunda:outputParameter","source":"output"},{"type":"camunda:in","target":"target"},{"type":"camunda:in:businessKey"},{"type":"camunda:out","source":"output"},{"type":"camunda:executionListener","event":"start"},{"type":"camunda:field","name":"field"},{"type":"camunda:errorEventDefinition","errorRef":"error"},{"type":"camunda:errorEventDefinition","errorRef":"error"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","enum":["property","camunda:property","camunda:inputParameter","camunda:outputParameter","camunda:in","camunda:out","camunda:in:businessKey","camunda:executionListener","camunda:field","camunda:errorEventDefinition"],"description":"The type of a property binding.","errorMessage":"invalid property.binding type ${0}; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"event":{"$id":"#/properties/property/binding/event","type":"string","description":"The event type of a property binding (camunda:executionListener)."},"scriptFormat":{"$id":"#/properties/property/binding/scriptFormat","type":"string","description":"The script format of a property binding (camunda:outputParameter, camunda:inputParameter)."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (camunda:outputParameter, camunda:out)."},"target":{"$id":"#/properties/property/binding/target","type":"string","description":"The target value of a property binding (camunda:in)."},"expression":{"$id":"#/properties/property/binding/expression","type":"boolean","description":"Indicates whether the control field value is an expression (camunda:in, camunda:field)."},"variables":{"$id":"#/properties/property/binding/variables","type":"string","enum":["all","local"],"description":"The variable mapping of a property binding (camunda:in)."},"sourceExpression":{"$id":"#/properties/property/binding/sourceExpression","type":"string","description":"The string containing the expression for the source attribute (camunda:out)."}}}},"errorMessage":{"required":"missing binding for property \"${0#}\""}}}]};const schema19 = {"properties":{"property":{"const":{"$data":"2/id"}}}};const schema20 = {"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};const func0 = requireEqual().default;function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}}}if(!valid2){const err8 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err9 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err11 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err13 of vErrors){if((((((err13.keyword !== "errorMessage") && (!err13.emUsed)) && (err13.instancePath === instancePath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(68)))){emPropParams0 = obj0[err13.keyword];emParamsErrors0 = emErrors0[err13.keyword][err13.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err13);err13.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err14 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}const emErrs0 = [];for(const err15 of vErrors){if(!err15.emUsed){emErrs0.push(err15);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.allMatch !== undefined){let data6 = data.allMatch;if(Array.isArray(data6)){if(data6.length < 1){const err17 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const len1 = data6.length;for(let i1=0; i1<len1; i1++){let data7 = data6[i1];const _errs26 = errors;let valid13 = false;let passing2 = null;const _errs27 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.equals === undefined){const err18 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data7.equals !== undefined){let data8 = data7.equals;if(((typeof data8 !== "string") && (!(typeof data8 == "number"))) && (typeof data8 !== "boolean")){const err19 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2){valid13 = true;passing2 = 0;}const _errs30 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.oneOf === undefined){const err20 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data7.oneOf !== undefined){let data9 = data7.oneOf;if(Array.isArray(data9)){const len2 = data9.length;for(let i2=0; i2<len2; i2++){let data10 = data9[i2];if((typeof data10 !== "string") && (!(typeof data10 == "number"))){const err21 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 1];}else {if(_valid2){valid13 = true;passing2 = 1;}const _errs35 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.isActive === undefined){const err23 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data7.isActive !== undefined){if(typeof data7.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs35 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 2];}else {if(_valid2){valid13 = true;passing2 = 2;}}}if(!valid13){const err25 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.property === undefined){const err26 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if("simple" !== data7.type){const err27 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data7.property !== undefined){if(typeof data7.property !== "string"){const err28 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams1 = obj0[err30.keyword];emParamsErrors1 = emErrors1[err30.keyword][err30.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err30);err30.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err31 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs1 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs1.push(err32);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err33 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid0 = _errs20 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err34 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs12 = errors;let valid8 = true;const _errs13 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0(data2.property, schema19.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid1){const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid12 = _errs19 === errors;if(valid12){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/allOf/0/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/allOf/0/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs17 === errors;valid8 = _valid1;}if(!valid8){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs25 = errors;let valid14 = false;let passing0 = null;const _errs26 = errors;const _errs29 = errors;let valid16 = false;let passing1 = null;const _errs30 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs30 === errors;if(_valid3){valid16 = true;passing1 = 0;}const _errs33 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs33 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 1];}else {if(_valid3){valid16 = true;passing1 = 1;}const _errs38 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs38 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 2];}else {if(_valid3){valid16 = true;passing1 = 2;}}}if(!valid16){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs26 === errors;if(_valid2){valid14 = true;passing0 = 0;}const _errs44 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs50 = errors;let valid27 = false;let passing2 = null;const _errs51 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs51 === errors;if(_valid4){valid27 = true;passing2 = 0;}const _errs54 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs54 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 1];}else {if(_valid4){valid27 = true;passing2 = 1;}const _errs59 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs59 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 2];}else {if(_valid4){valid27 = true;passing2 = 2;}}}if(!valid27){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs44 === errors;if(_valid2 && valid14){valid14 = false;passing0 = [passing0, 1];}else {if(_valid2){valid14 = true;passing0 = 1;}}if(!valid14){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}}}const _errs66 = errors;let valid35 = true;const _errs67 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs69 = errors;const _errs70 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid37 = _errs70 === errors;if(valid37){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs69;if(vErrors !== null){if(_errs69){vErrors.length = _errs69;}else {vErrors = null;}}}}}}var _valid5 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid5){const _errs71 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs71 === errors;valid35 = _valid5;}if(!valid35){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}const _errs75 = errors;let valid39 = true;const _errs76 = errors;const _errs77 = errors;let valid40 = false;const _errs78 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data0.type !== undefined){let data22 = data0.type;if(!((data22 === "String") || (data22 === "Text"))){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}var _valid7 = _errs78 === errors;if(_valid7){valid40 = true;}const _errs80 = errors;const _errs81 = errors;const _errs82 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid42 = _errs82 === errors;if(valid42){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}}var _valid7 = _errs80 === errors;if(_valid7 && valid40){valid40 = false;}else {if(_valid7){valid40 = true;}}if(!valid40){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}var _valid6 = _errs76 === errors;errors = _errs75;if(vErrors !== null){if(_errs75){vErrors.length = _errs75;}else {vErrors = null;}}let ifClause0;if(_valid6){const _errs83 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.placeholder !== undefined){if(typeof data0.placeholder !== "string"){const err62 = {instancePath:instancePath+"/" + i0+"/placeholder",schemaPath:"#/allOf/0/items/allOf/3/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var _valid6 = _errs83 === errors;valid39 = _valid6;ifClause0 = "then";}else {const _errs86 = errors;const _errs87 = errors;const _errs88 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.placeholder === undefined) && ("placeholder")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var valid44 = _errs88 === errors;if(valid44){const err64 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}var _valid6 = _errs86 === errors;valid39 = _valid6;ifClause0 = "else";}if(!valid39){const err65 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data24 = data0.value;if(((typeof data24 !== "string") && (!(typeof data24 == "number"))) && (typeof data24 !== "boolean")){const err66 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema18.allOf[0].items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err67 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err68 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err69 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err70 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.choices !== undefined){let data29 = data0.choices;if(Array.isArray(data29)){const len4 = data29.length;for(let i4=0; i4<len4; i4++){let data30 = data29[i4];if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err71 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data30.name === undefined){const err72 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data30.name !== undefined){if(typeof data30.name !== "string"){const err73 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data30.value !== undefined){if(typeof data30.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data30.condition !== undefined){if(!(validate17(data30.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data30,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err75 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err76 of vErrors){if((((((err76.keyword !== "errorMessage") && (!err76.emUsed)) && (err76.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err76.keyword in emErrors2)) && (err76.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err76.schemaPath.slice(40)))){emErrors2[err76.keyword].push(err76);err76.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err77 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema18.allOf[0].items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}const emErrs6 = [];for(const err78 of vErrors){if(!err78.emUsed){emErrs6.push(err78);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.constraints !== undefined){let data34 = data0.constraints;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.notEmpty !== undefined){if(typeof data34.notEmpty !== "boolean"){const err80 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data34.minLength !== undefined){if(!(typeof data34.minLength == "number")){const err81 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data34.maxLength !== undefined){if(!(typeof data34.maxLength == "number")){const err82 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data34.pattern !== undefined){let data38 = data34.pattern;const _errs117 = errors;let valid51 = false;let passing4 = null;const _errs118 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.value !== undefined){if(typeof data38.value !== "string"){const err83 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data38.message !== undefined){if(typeof data38.message !== "string"){const err84 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid8 = _errs118 === errors;if(_valid8){valid51 = true;passing4 = 0;}const _errs124 = errors;if(typeof data38 !== "string"){const err86 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid8 = _errs124 === errors;if(_valid8 && valid51){valid51 = false;passing4 = [passing4, 1];}else {if(_valid8){valid51 = true;passing4 = 1;}}if(!valid51){const err87 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs117;if(vErrors !== null){if(_errs117){vErrors.length = _errs117;}else {vErrors = null;}}}}}else {const err88 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err89 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath,schemaPath:"#/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data42 = data[i5];const _errs133 = errors;let valid56 = true;const _errs134 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data42.binding !== undefined){let data43 = data42.binding;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data43.type !== undefined){if("property" !== data43.type){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}}}}}var _valid9 = _errs134 === errors;errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}if(_valid9){const _errs137 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data45 = data42.type;if(!(((((data45 === "String") || (data45 === "Text")) || (data45 === "Hidden")) || (data45 === "Dropdown")) || (data45 === "Boolean"))){const err95 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(errors > 0){const emErrs7 = [];for(const err96 of vErrors){if(((((err96.keyword !== "errorMessage") && (!err96.emUsed)) && ((err96.instancePath === instancePath+"/" + i5+"/type") || ((err96.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err96.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err96.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err96.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs7.push(err96);err96.emUsed = true;}}if(emErrs7.length){const err97 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data45) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const emErrs8 = [];for(const err98 of vErrors){if(!err98.emUsed){emErrs8.push(err98);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid9 = _errs137 === errors;valid56 = _valid9;}if(!valid56){const err99 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const _errs140 = errors;let valid60 = true;const _errs141 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {if(data42.binding !== undefined){let data46 = data42.binding;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data46.type !== undefined){if("camunda:executionListener" !== data46.type){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}}}}var _valid10 = _errs141 === errors;errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}if(_valid10){const _errs144 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){if(!(data42.type === "Hidden")){const err103 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(errors > 0){const emErrs9 = [];for(const err104 of vErrors){if(((((err104.keyword !== "errorMessage") && (!err104.emUsed)) && ((err104.instancePath === instancePath+"/" + i5+"/type") || ((err104.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err104.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err104.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err104.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs9.push(err104);err104.emUsed = true;}}if(emErrs9.length){const err105 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data42 && data42.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const emErrs10 = [];for(const err106 of vErrors){if(!err106.emUsed){emErrs10.push(err106);}}vErrors = emErrs10;errors = emErrs10.length;}}if(data42.binding !== undefined){let data49 = data42.binding;const _errs147 = errors;let valid64 = false;let passing5 = null;const _errs148 = errors;const _errs149 = errors;const _errs150 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.implementationType !== undefined){if("script" !== data49.implementationType){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}var valid65 = _errs150 === errors;if(valid65){const err108 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}else {errors = _errs149;if(vErrors !== null){if(_errs149){vErrors.length = _errs149;}else {vErrors = null;}}}var _valid11 = _errs148 === errors;if(_valid11){valid64 = true;passing5 = 0;}const _errs152 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.scriptFormat === undefined){const err109 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",keyword:"required",params:{missingProperty: "scriptFormat"},message:"must have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}var _valid11 = _errs152 === errors;if(_valid11 && valid64){valid64 = false;passing5 = [passing5, 1];}else {if(_valid11){valid64 = true;passing5 = 1;}const _errs153 = errors;const _errs155 = errors;const _errs156 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.implementationType === undefined) && ("implementationType")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}var valid68 = _errs156 === errors;if(valid68){const err111 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {errors = _errs155;if(vErrors !== null){if(_errs155){vErrors.length = _errs155;}else {vErrors = null;}}}const _errs158 = errors;const _errs159 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.scriptFormat === undefined) && ("scriptFormat")){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}var valid69 = _errs159 === errors;if(valid69){const err113 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs158;if(vErrors !== null){if(_errs158){vErrors.length = _errs158;}else {vErrors = null;}}}var _valid11 = _errs153 === errors;if(_valid11 && valid64){valid64 = false;passing5 = [passing5, 2];}else {if(_valid11){valid64 = true;passing5 = 2;}}}if(!valid64){const err114 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.implementationType !== undefined){let data51 = data49.implementationType;if(!((((data51 === "class") || (data51 === "delegateExpression")) || (data51 === "expression")) || (data51 === "script"))){const err115 = {instancePath:instancePath+"/" + i5+"/binding/implementationType",schemaPath:"#/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}}}var _valid10 = _errs144 === errors;valid60 = _valid10;}if(!valid60){const err116 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}const _errs162 = errors;let valid71 = true;const _errs163 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {if(data42.binding !== undefined){let data52 = data42.binding;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if((data52.type === undefined) && ("type")){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {if(data52.type !== undefined){let data53 = data52.type;if(!((((((data53 === "camunda:property") || (data53 === "camunda:outputParameter")) || (data53 === "camunda:in")) || (data53 === "camunda:in:businessKey")) || (data53 === "camunda:out")) || (data53 === "camunda:errorEventDefinition"))){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}}}}}var _valid12 = _errs163 === errors;errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}if(_valid12){const _errs166 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data54 = data42.type;if(!(((data54 === "String") || (data54 === "Hidden")) || (data54 === "Dropdown"))){const err120 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[2].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}if(errors > 0){const emErrs11 = [];for(const err121 of vErrors){if(((((err121.keyword !== "errorMessage") && (!err121.emUsed)) && ((err121.instancePath === instancePath+"/" + i5+"/type") || ((err121.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err121.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err121.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err121.schemaPath["#/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs11.push(err121);err121.emUsed = true;}}if(emErrs11.length){const err122 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs11},message:"invalid property type " + JSON.stringify(data54) + " for binding type " + JSON.stringify(data42 && data42.binding && data42.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}const emErrs12 = [];for(const err123 of vErrors){if(!err123.emUsed){emErrs12.push(err123);}}vErrors = emErrs12;errors = emErrs12.length;}}}var _valid12 = _errs166 === errors;valid71 = _valid12;}if(!valid71){const err124 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}const _errs169 = errors;let valid75 = true;const _errs170 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}else {if(data42.binding !== undefined){let data55 = data42.binding;if(data55 && typeof data55 == "object" && !Array.isArray(data55)){if((data55.type === undefined) && ("type")){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}else {if(data55.type !== undefined){let data56 = data55.type;if(!((data56 === "camunda:inputParameter") || (data56 === "camunda:field"))){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}}}}}var _valid13 = _errs170 === errors;errors = _errs169;if(vErrors !== null){if(_errs169){vErrors.length = _errs169;}else {vErrors = null;}}if(_valid13){const _errs173 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data57 = data42.type;if(!((((data57 === "String") || (data57 === "Text")) || (data57 === "Hidden")) || (data57 === "Dropdown"))){const err128 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[3].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(errors > 0){const emErrs13 = [];for(const err129 of vErrors){if(((((err129.keyword !== "errorMessage") && (!err129.emUsed)) && ((err129.instancePath === instancePath+"/" + i5+"/type") || ((err129.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err129.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err129.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err129.schemaPath["#/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs13.push(err129);err129.emUsed = true;}}if(emErrs13.length){const err130 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/3/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs13},message:"invalid property type " + JSON.stringify(data57) + " for binding type " + JSON.stringify(data42 && data42.binding && data42.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}const emErrs14 = [];for(const err131 of vErrors){if(!err131.emUsed){emErrs14.push(err131);}}vErrors = emErrs14;errors = emErrs14.length;}}}var _valid13 = _errs173 === errors;valid75 = _valid13;}if(!valid75){const err132 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding === undefined){const err133 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}if(data42.binding !== undefined){let data58 = data42.binding;const _errs178 = errors;let valid81 = true;const _errs179 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {if(data58.type !== undefined){let data59 = data58.type;if(!((((data59 === "property") || (data59 === "camunda:property")) || (data59 === "camunda:inputParameter")) || (data59 === "camunda:field"))){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}}}var _valid14 = _errs179 === errors;errors = _errs178;if(vErrors !== null){if(_errs178){vErrors.length = _errs178;}else {vErrors = null;}}if(_valid14){const _errs181 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.name === undefined){const err136 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(errors > 0){const emErrs15 = [];for(const err137 of vErrors){if(((((err137.keyword !== "errorMessage") && (!err137.emUsed)) && ((err137.instancePath === instancePath+"/" + i5+"/binding") || ((err137.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err137.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err137.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err137.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs15.push(err137);err137.emUsed = true;}}if(emErrs15.length){const err138 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs15},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires name"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}const emErrs16 = [];for(const err139 of vErrors){if(!err139.emUsed){emErrs16.push(err139);}}vErrors = emErrs16;errors = emErrs16.length;}var _valid14 = _errs181 === errors;valid81 = _valid14;}if(!valid81){const err140 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const _errs183 = errors;let valid83 = true;const _errs184 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}else {if(data58.type !== undefined){if("camunda:outputParameter" !== data58.type){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}}}var _valid15 = _errs184 === errors;errors = _errs183;if(vErrors !== null){if(_errs183){vErrors.length = _errs183;}else {vErrors = null;}}if(_valid15){const _errs186 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.source === undefined){const err143 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(errors > 0){const emErrs17 = [];for(const err144 of vErrors){if(((((err144.keyword !== "errorMessage") && (!err144.emUsed)) && ((err144.instancePath === instancePath+"/" + i5+"/binding") || ((err144.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err144.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err144.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err144.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs17.push(err144);err144.emUsed = true;}}if(emErrs17.length){const err145 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs17},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires source"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}const emErrs18 = [];for(const err146 of vErrors){if(!err146.emUsed){emErrs18.push(err146);}}vErrors = emErrs18;errors = emErrs18.length;}var _valid15 = _errs186 === errors;valid83 = _valid15;}if(!valid83){const err147 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}const _errs188 = errors;let valid85 = true;const _errs189 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {if(data58.type !== undefined){if("camunda:in" !== data58.type){const err149 = {};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}}var _valid16 = _errs189 === errors;errors = _errs188;if(vErrors !== null){if(_errs188){vErrors.length = _errs188;}else {vErrors = null;}}if(_valid16){const _errs191 = errors;const _errs192 = errors;let valid87 = false;const _errs193 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.variables === undefined){const err150 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var _valid17 = _errs193 === errors;valid87 = valid87 || _valid17;if(!valid87){const _errs194 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.target === undefined){const err151 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}var _valid17 = _errs194 === errors;valid87 = valid87 || _valid17;}if(!valid87){const err152 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}else {errors = _errs192;if(vErrors !== null){if(_errs192){vErrors.length = _errs192;}else {vErrors = null;}}}if(errors > 0){const emErrs19 = [];for(const err153 of vErrors){if(((((err153.keyword !== "errorMessage") && (!err153.emUsed)) && ((err153.instancePath === instancePath+"/" + i5+"/binding") || ((err153.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err153.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err153.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err153.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs19.push(err153);err153.emUsed = true;}}if(emErrs19.length){const err154 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs19},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}const emErrs20 = [];for(const err155 of vErrors){if(!err155.emUsed){emErrs20.push(err155);}}vErrors = emErrs20;errors = emErrs20.length;}var _valid16 = _errs191 === errors;valid85 = _valid16;}if(!valid85){const err156 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}const _errs196 = errors;let valid88 = true;const _errs197 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {if(data58.type !== undefined){if("camunda:out" !== data58.type){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}}var _valid18 = _errs197 === errors;errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}if(_valid18){const _errs199 = errors;const _errs200 = errors;let valid90 = false;let passing6 = null;const _errs201 = errors;const _errs202 = errors;const _errs203 = errors;const _errs204 = errors;let valid92 = false;const _errs205 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.source === undefined) && ("source")){const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var _valid20 = _errs205 === errors;valid92 = valid92 || _valid20;if(!valid92){const _errs206 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.sourceExpression === undefined) && ("sourceExpression")){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}var _valid20 = _errs206 === errors;valid92 = valid92 || _valid20;}if(!valid92){const err161 = {};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}else {errors = _errs204;if(vErrors !== null){if(_errs204){vErrors.length = _errs204;}else {vErrors = null;}}}var valid91 = _errs203 === errors;if(valid91){const err162 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}else {errors = _errs202;if(vErrors !== null){if(_errs202){vErrors.length = _errs202;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.variables === undefined){const err163 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}var _valid19 = _errs201 === errors;if(_valid19){valid90 = true;passing6 = 0;}const _errs207 = errors;const _errs208 = errors;const _errs209 = errors;const _errs210 = errors;let valid94 = false;const _errs211 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.variables === undefined) && ("variables")){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}var _valid21 = _errs211 === errors;valid94 = valid94 || _valid21;if(!valid94){const _errs212 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.sourceExpression === undefined) && ("sourceExpression")){const err165 = {};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}var _valid21 = _errs212 === errors;valid94 = valid94 || _valid21;}if(!valid94){const err166 = {};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}else {errors = _errs210;if(vErrors !== null){if(_errs210){vErrors.length = _errs210;}else {vErrors = null;}}}var valid93 = _errs209 === errors;if(valid93){const err167 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}else {errors = _errs208;if(vErrors !== null){if(_errs208){vErrors.length = _errs208;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.source === undefined){const err168 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}var _valid19 = _errs207 === errors;if(_valid19 && valid90){valid90 = false;passing6 = [passing6, 1];}else {if(_valid19){valid90 = true;passing6 = 1;}const _errs213 = errors;const _errs214 = errors;const _errs215 = errors;const _errs216 = errors;let valid96 = false;const _errs217 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.variables === undefined) && ("variables")){const err169 = {};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}var _valid22 = _errs217 === errors;valid96 = valid96 || _valid22;if(!valid96){const _errs218 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.source === undefined) && ("source")){const err170 = {};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}var _valid22 = _errs218 === errors;valid96 = valid96 || _valid22;}if(!valid96){const err171 = {};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}else {errors = _errs216;if(vErrors !== null){if(_errs216){vErrors.length = _errs216;}else {vErrors = null;}}}var valid95 = _errs215 === errors;if(valid95){const err172 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}else {errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.sourceExpression === undefined){const err173 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}var _valid19 = _errs213 === errors;if(_valid19 && valid90){valid90 = false;passing6 = [passing6, 2];}else {if(_valid19){valid90 = true;passing6 = 2;}const _errs219 = errors;const _errs220 = errors;const _errs221 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.source === undefined) && ("source")){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}var valid97 = _errs221 === errors;if(valid97){const err175 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {errors = _errs220;if(vErrors !== null){if(_errs220){vErrors.length = _errs220;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.variables === undefined){const err176 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if(data58.sourceExpression === undefined){const err177 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}var _valid19 = _errs219 === errors;if(_valid19 && valid90){valid90 = false;passing6 = [passing6, 3];}else {if(_valid19){valid90 = true;passing6 = 3;}const _errs222 = errors;const _errs223 = errors;const _errs224 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.sourceExpression === undefined) && ("sourceExpression")){const err178 = {};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}var valid98 = _errs224 === errors;if(valid98){const err179 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}else {errors = _errs223;if(vErrors !== null){if(_errs223){vErrors.length = _errs223;}else {vErrors = null;}}}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.variables === undefined){const err180 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if(data58.source === undefined){const err181 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}var _valid19 = _errs222 === errors;if(_valid19 && valid90){valid90 = false;passing6 = [passing6, 4];}else {if(_valid19){valid90 = true;passing6 = 4;}}}}}if(!valid90){const err182 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}else {errors = _errs200;if(vErrors !== null){if(_errs200){vErrors.length = _errs200;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err183 of vErrors){if(((((err183.keyword !== "errorMessage") && (!err183.emUsed)) && ((err183.instancePath === instancePath+"/" + i5+"/binding") || ((err183.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err183.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err183.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err183.schemaPath["#/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs21.push(err183);err183.emUsed = true;}}if(emErrs21.length){const err184 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs21},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}const emErrs22 = [];for(const err185 of vErrors){if(!err185.emUsed){emErrs22.push(err185);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid18 = _errs199 === errors;valid88 = _valid18;}if(!valid88){const err186 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}const _errs226 = errors;let valid99 = true;const _errs227 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err187 = {};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}else {if(data58.type !== undefined){if("camunda:errorEventDefinition" !== data58.type){const err188 = {};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}}var _valid23 = _errs227 === errors;errors = _errs226;if(vErrors !== null){if(_errs226){vErrors.length = _errs226;}else {vErrors = null;}}if(_valid23){const _errs229 = errors;const _errs230 = errors;let valid101 = false;let passing7 = null;const _errs231 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.errorRef === undefined){const err189 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",keyword:"required",params:{missingProperty: "errorRef"},message:"must have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}var _valid24 = _errs231 === errors;if(_valid24){valid101 = true;passing7 = 0;}if(!valid101){const err190 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing7},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}else {errors = _errs230;if(vErrors !== null){if(_errs230){vErrors.length = _errs230;}else {vErrors = null;}}}if(errors > 0){const emErrs23 = [];for(const err191 of vErrors){if(((((err191.keyword !== "errorMessage") && (!err191.emUsed)) && ((err191.instancePath === instancePath+"/" + i5+"/binding") || ((err191.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err191.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err191.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err191.schemaPath["#/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs23.push(err191);err191.emUsed = true;}}if(emErrs23.length){const err192 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs23},message:"property.binding " + JSON.stringify(data58 && data58.type) + " requires errorRef"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}const emErrs24 = [];for(const err193 of vErrors){if(!err193.emUsed){emErrs24.push(err193);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid23 = _errs229 === errors;valid99 = _valid23;}if(!valid99){const err194 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.type === undefined){const err195 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(data58.type !== undefined){let data64 = data58.type;if(typeof data64 !== "string"){const err196 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(!((((((((((data64 === "property") || (data64 === "camunda:property")) || (data64 === "camunda:inputParameter")) || (data64 === "camunda:outputParameter")) || (data64 === "camunda:in")) || (data64 === "camunda:out")) || (data64 === "camunda:in:businessKey")) || (data64 === "camunda:executionListener")) || (data64 === "camunda:field")) || (data64 === "camunda:errorEventDefinition"))){const err197 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(errors > 0){const emErrs25 = [];for(const err198 of vErrors){if(((((err198.keyword !== "errorMessage") && (!err198.emUsed)) && ((err198.instancePath === instancePath+"/" + i5+"/binding/type") || ((err198.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err198.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err198.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err198.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs25.push(err198);err198.emUsed = true;}}if(emErrs25.length){const err199 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs25},message:"invalid property.binding type " + JSON.stringify(data64) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}const emErrs26 = [];for(const err200 of vErrors){if(!err200.emUsed){emErrs26.push(err200);}}vErrors = emErrs26;errors = emErrs26.length;}}if(data58.name !== undefined){if(typeof data58.name !== "string"){const err201 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data58.event !== undefined){if(typeof data58.event !== "string"){const err202 = {instancePath:instancePath+"/" + i5+"/binding/event",schemaPath:"#/allOf/1/items/properties/binding/properties/event/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data58.scriptFormat !== undefined){if(typeof data58.scriptFormat !== "string"){const err203 = {instancePath:instancePath+"/" + i5+"/binding/scriptFormat",schemaPath:"#/allOf/1/items/properties/binding/properties/scriptFormat/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(data58.source !== undefined){if(typeof data58.source !== "string"){const err204 = {instancePath:instancePath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}if(data58.target !== undefined){if(typeof data58.target !== "string"){const err205 = {instancePath:instancePath+"/" + i5+"/binding/target",schemaPath:"#/allOf/1/items/properties/binding/properties/target/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(data58.expression !== undefined){if(typeof data58.expression !== "boolean"){const err206 = {instancePath:instancePath+"/" + i5+"/binding/expression",schemaPath:"#/allOf/1/items/properties/binding/properties/expression/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}if(data58.variables !== undefined){let data71 = data58.variables;if(typeof data71 !== "string"){const err207 = {instancePath:instancePath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(!((data71 === "all") || (data71 === "local"))){const err208 = {instancePath:instancePath+"/" + i5+"/binding/variables",schemaPath:"#/allOf/1/items/properties/binding/properties/variables/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.binding.properties.variables.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}if(data58.sourceExpression !== undefined){if(typeof data58.sourceExpression !== "string"){const err209 = {instancePath:instancePath+"/" + i5+"/binding/sourceExpression",schemaPath:"#/allOf/1/items/properties/binding/properties/sourceExpression/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}}else {const err210 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}}else {const err211 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if(errors > 0){const emErrors3 = {"required":[]};const templates3 = {required:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}};for(const err212 of vErrors){if((((((err212.keyword !== "errorMessage") && (!err212.emUsed)) && (err212.instancePath === instancePath+"/" + i5)) && (err212.keyword in emErrors3)) && (err212.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err212.schemaPath.slice(15)))){emErrors3[err212.keyword].push(err212);err212.emUsed = true;}}for(const key3 in emErrors3){if(emErrors3[key3].length){const err213 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors3[key3]},message:key3 in templates3 ? templates3[key3]() : schema18.allOf[1].items.errorMessage[key3]};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}}const emErrs27 = [];for(const err214 of vErrors){if(!err214.emUsed){emErrs27.push(err214);}}vErrors = emErrs27;errors = emErrs27.length;}}}else {const err215 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}validate16.errors = vErrors;return errors === 0;}const schema25 = {"items":{"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"Defines the type of the condition (always \"simple\").","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"Reference to the property used to evaluate the condition."}},"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property. Can be used to, for example, reference the property for checks."},"condition":{"type":"object","description":"Object that defines when a property should be displayed in the properties panel and its value should be included in the XML.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1,"description":"List of conditions that must all be met for the property to be active."}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string","description":"Placeholder text shown in the property input field when it is empty. Can be used to show example input."}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"type":["string","number","boolean"]},"choices":{"items":{"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}}}}};function validate20(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs4 = errors;let valid4 = true;const _errs5 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs5 === errors;errors = _errs4;if(vErrors !== null){if(_errs4){vErrors.length = _errs4;}else {vErrors = null;}}if(_valid0){const _errs7 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/items/allOf/0/then") === 0)) && (err3.schemaPath["#/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs7 === errors;valid4 = _valid0;}if(!valid4){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs11 = errors;let valid7 = true;const _errs12 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0(data2.property, schema19.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs12 === errors;errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}if(_valid1){const _errs16 = errors;const _errs17 = errors;const _errs18 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid11 = _errs18 === errors;if(valid11){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs16 === errors;valid7 = _valid1;}if(!valid7){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs24 = errors;let valid13 = false;let passing0 = null;const _errs25 = errors;const _errs28 = errors;let valid15 = false;let passing1 = null;const _errs29 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs29 === errors;if(_valid3){valid15 = true;passing1 = 0;}const _errs32 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs32 === errors;if(_valid3 && valid15){valid15 = false;passing1 = [passing1, 1];}else {if(_valid3){valid15 = true;passing1 = 1;}const _errs37 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs37 === errors;if(_valid3 && valid15){valid15 = false;passing1 = [passing1, 2];}else {if(_valid3){valid15 = true;passing1 = 2;}}}if(!valid15){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs28;if(vErrors !== null){if(_errs28){vErrors.length = _errs28;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema20.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs25 === errors;if(_valid2){valid13 = true;passing0 = 0;}const _errs43 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs49 = errors;let valid26 = false;let passing2 = null;const _errs50 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema20.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs50 === errors;if(_valid4){valid26 = true;passing2 = 0;}const _errs53 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema20.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs53 === errors;if(_valid4 && valid26){valid26 = false;passing2 = [passing2, 1];}else {if(_valid4){valid26 = true;passing2 = 1;}const _errs58 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs58 === errors;if(_valid4 && valid26){valid26 = false;passing2 = [passing2, 2];}else {if(_valid4){valid26 = true;passing2 = 2;}}}if(!valid26){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema20.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs43 === errors;if(_valid2 && valid13){valid13 = false;passing0 = [passing0, 1];}else {if(_valid2){valid13 = true;passing0 = 1;}}if(!valid13){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs24;if(vErrors !== null){if(_errs24){vErrors.length = _errs24;}else {vErrors = null;}}}}}const _errs65 = errors;let valid34 = true;const _errs66 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs68 = errors;const _errs69 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid36 = _errs69 === errors;if(valid36){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs68;if(vErrors !== null){if(_errs68){vErrors.length = _errs68;}else {vErrors = null;}}}}}}var _valid5 = _errs66 === errors;errors = _errs65;if(vErrors !== null){if(_errs65){vErrors.length = _errs65;}else {vErrors = null;}}if(_valid5){const _errs70 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema25.items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs70 === errors;valid34 = _valid5;}if(!valid34){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}const _errs74 = errors;let valid38 = true;const _errs75 = errors;const _errs76 = errors;let valid39 = false;const _errs77 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data0.type !== undefined){let data22 = data0.type;if(!((data22 === "String") || (data22 === "Text"))){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}var _valid7 = _errs77 === errors;if(_valid7){valid39 = true;}const _errs79 = errors;const _errs80 = errors;const _errs81 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid41 = _errs81 === errors;if(valid41){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {errors = _errs80;if(vErrors !== null){if(_errs80){vErrors.length = _errs80;}else {vErrors = null;}}}var _valid7 = _errs79 === errors;if(_valid7 && valid39){valid39 = false;}else {if(_valid7){valid39 = true;}}if(!valid39){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}}var _valid6 = _errs75 === errors;errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}let ifClause0;if(_valid6){const _errs82 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.placeholder !== undefined){if(typeof data0.placeholder !== "string"){const err62 = {instancePath:instancePath+"/" + i0+"/placeholder",schemaPath:"#/items/allOf/3/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var _valid6 = _errs82 === errors;valid38 = _valid6;ifClause0 = "then";}else {const _errs85 = errors;const _errs86 = errors;const _errs87 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.placeholder === undefined) && ("placeholder")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var valid43 = _errs87 === errors;if(valid43){const err64 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/3/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs86;if(vErrors !== null){if(_errs86){vErrors.length = _errs86;}else {vErrors = null;}}}var _valid6 = _errs85 === errors;valid38 = _valid6;ifClause0 = "else";}if(!valid38){const err65 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/allOf/3/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data24 = data0.value;if(((typeof data24 !== "string") && (!(typeof data24 == "number"))) && (typeof data24 !== "boolean")){const err66 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/items/properties/value/type",keyword:"type",params:{type: schema25.items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err67 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err68 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err69 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err70 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.choices !== undefined){let data29 = data0.choices;if(Array.isArray(data29)){const len4 = data29.length;for(let i4=0; i4<len4; i4++){let data30 = data29[i4];if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err71 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data30.name === undefined){const err72 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data30.name !== undefined){if(typeof data30.name !== "string"){const err73 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data30.value !== undefined){if(typeof data30.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data30.condition !== undefined){if(!(validate17(data30.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data30,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err75 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err76 of vErrors){if((((((err76.keyword !== "errorMessage") && (!err76.emUsed)) && (err76.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err76.keyword in emErrors2)) && (err76.schemaPath.indexOf("#/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err76.schemaPath.slice(32)))){emErrors2[err76.keyword].push(err76);err76.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err77 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema25.items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}const emErrs6 = [];for(const err78 of vErrors){if(!err78.emUsed){emErrs6.push(err78);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.constraints !== undefined){let data34 = data0.constraints;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.notEmpty !== undefined){if(typeof data34.notEmpty !== "boolean"){const err80 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data34.minLength !== undefined){if(!(typeof data34.minLength == "number")){const err81 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data34.maxLength !== undefined){if(!(typeof data34.maxLength == "number")){const err82 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data34.pattern !== undefined){let data38 = data34.pattern;const _errs116 = errors;let valid50 = false;let passing4 = null;const _errs117 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.value !== undefined){if(typeof data38.value !== "string"){const err83 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data38.message !== undefined){if(typeof data38.message !== "string"){const err84 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid8 = _errs117 === errors;if(_valid8){valid50 = true;passing4 = 0;}const _errs123 = errors;if(typeof data38 !== "string"){const err86 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid8 = _errs123 === errors;if(_valid8 && valid50){valid50 = false;passing4 = [passing4, 1];}else {if(_valid8){valid50 = true;passing4 = 1;}}if(!valid50){const err87 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}}}else {const err88 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err89 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/" + i0,schemaPath:"#/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}validate20.errors = vErrors;return errors === 0;}function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.$schema !== undefined){if(typeof data.$schema !== "string"){const err4 = {instancePath:instancePath+"/$schema",schemaPath:"#/allOf/0/properties/%24schema/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){if(typeof data.name !== "string"){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err6 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err7 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.version !== undefined){let data4 = data.version;if(!((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4)))){const err8 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err9 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.deprecated !== undefined){let data6 = data.deprecated;if((typeof data6 !== "boolean") && (!(data6 && typeof data6 == "object" && !Array.isArray(data6)))){const err10 = {instancePath:instancePath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",keyword:"type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"must be boolean,object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.message !== undefined){if(typeof data6.message !== "string"){const err11 = {instancePath:instancePath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data6.documentationRef !== undefined){let data8 = data6.documentationRef;if(typeof data8 === "string"){if(!pattern0.test(data8)){const err12 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}}if(data.appliesTo !== undefined){let data9 = data.appliesTo;if(Array.isArray(data9)){const len0 = data9.length;for(let i0=0; i0<len0; i0++){let data10 = data9[i0];if(typeof data10 === "string"){if(!pattern1.test(data10)){const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err16 of vErrors){if((((((err16.keyword !== "errorMessage") && (!err16.emUsed)) && (err16.instancePath === instancePath+"/appliesTo/" + i0)) && (err16.keyword in emErrors0)) && (err16.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err16.schemaPath.slice(36)))){emErrors0[err16.keyword].push(err16);err16.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err17 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}const emErrs0 = [];for(const err18 of vErrors){if(!err18.emUsed){emErrs0.push(err18);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err19 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.elementType !== undefined){let data11 = data.elementType;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.value === undefined){const err20 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data11.value !== undefined){let data12 = data11.value;if(typeof data12 === "string"){if(!pattern1.test(data12)){const err21 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err23 of vErrors){if((((((err23.keyword !== "errorMessage") && (!err23.emUsed)) && (err23.instancePath === instancePath+"/elementType/value")) && (err23.keyword in emErrors1)) && (err23.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err23.schemaPath.slice(49)))){emErrors1[err23.keyword].push(err23);err23.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err24 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}const emErrs1 = [];for(const err25 of vErrors){if(!err25.emUsed){emErrs1.push(err25);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err26 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err27 of vErrors){if((((((err27.keyword !== "errorMessage") && (!err27.emUsed)) && (err27.instancePath === instancePath+"/elementType")) && (err27.keyword in emErrors2)) && (err27.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err27.schemaPath.slice(32)))){emPropParams0 = obj0[err27.keyword];emParamsErrors0 = emErrors2[err27.keyword][err27.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err27);err27.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err28 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}const emErrs2 = [];for(const err29 of vErrors){if(!err29.emUsed){emErrs2.push(err29);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data13 = data.metadata;if(!(data13 && typeof data13 == "object" && !Array.isArray(data13))){const err30 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.keywords !== undefined){let data14 = data.keywords;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){if(typeof data14[i1] !== "string"){const err31 = {instancePath:instancePath+"/keywords/" + i1,schemaPath:"#/allOf/0/properties/keywords/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}else {const err32 = {instancePath:instancePath+"/keywords",schemaPath:"#/allOf/0/properties/keywords/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.groups !== undefined){let data16 = data.groups;if(Array.isArray(data16)){const len2 = data16.length;for(let i2=0; i2<len2; i2++){let data17 = data16[i2];if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.id === undefined){const err33 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data17.label === undefined){const err34 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(data17.id !== undefined){if(typeof data17.id !== "string"){const err35 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data17.label !== undefined){if(typeof data17.label !== "string"){const err36 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i2) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i2) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err38 of vErrors){if((((((err38.keyword !== "errorMessage") && (!err38.emUsed)) && (err38.instancePath === instancePath+"/groups/" + i2)) && (err38.keyword in emErrors3)) && (err38.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err38.schemaPath.slice(33)))){emPropParams1 = obj0[err38.keyword];emParamsErrors1 = emErrors3[err38.keyword][err38.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err38);err38.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err39 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}const emErrs3 = [];for(const err40 of vErrors){if(!err40.emUsed){emErrs3.push(err40);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err41 = {instancePath:instancePath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data.documentationRef !== undefined){let data20 = data.documentationRef;if(typeof data20 === "string"){if(!pattern0.test(data20)){const err42 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err44 of vErrors){if((((((err44.keyword !== "errorMessage") && (!err44.emUsed)) && (err44.instancePath === instancePath+"/documentationRef")) && (err44.keyword in emErrors4)) && (err44.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err44.schemaPath.slice(37)))){emErrors4[err44.keyword].push(err44);err44.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err45 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",keyword:"errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}const emErrs4 = [];for(const err46 of vErrors){if(!err46.emUsed){emErrs4.push(err46);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath)) && (err47.keyword in emErrors5)) && (err47.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(9)))){emPropParams2 = obj0[err47.keyword];emParamsErrors2 = emErrors5[err47.keyword][err47.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err47);err47.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err48 = {instancePath,schemaPath:"#/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {instancePath:instancePath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.scopes !== undefined){let data22 = data.scopes;if(Array.isArray(data22)){const len3 = data22.length;for(let i3=0; i3<len3; i3++){let data23 = data22[i3];const _errs50 = errors;let valid19 = true;const _errs51 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.type === undefined) && ("type")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data23.type !== undefined){if(!(data23.type === "bpmn:Error")){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}}}}var _valid0 = _errs51 === errors;errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}if(_valid0){const _errs53 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.id === undefined){const err52 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}if(errors > 0){const emErrs6 = [];for(const err53 of vErrors){if(((((err53.keyword !== "errorMessage") && (!err53.emUsed)) && ((err53.instancePath === instancePath+"/scopes/" + i3) || ((err53.instancePath.indexOf(instancePath+"/scopes/" + i3) === 0) && (err53.instancePath[instancePath+"/scopes/" + i3.length] === "/")))) && (err53.schemaPath.indexOf("#/properties/scopes/items/allOf/0/then") === 0)) && (err53.schemaPath["#/properties/scopes/items/allOf/0/then".length] === "/")){emErrs6.push(err53);err53.emUsed = true;}}if(emErrs6.length){const err54 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs6},message:"invalid scope " + JSON.stringify(data23 && data23.type) + ", missing id"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}const emErrs7 = [];for(const err55 of vErrors){if(!err55.emUsed){emErrs7.push(err55);}}vErrors = emErrs7;errors = emErrs7.length;}var _valid0 = _errs53 === errors;valid19 = _valid0;}if(!valid19){const err56 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if(data23.type === undefined){const err57 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}if(data23.properties === undefined){const err58 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data23.type !== undefined){let data25 = data23.type;if(typeof data25 !== "string"){const err59 = {instancePath:instancePath+"/scopes/" + i3+"/type",schemaPath:"#/properties/scopes/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(!((data25 === "camunda:Connector") || (data25 === "bpmn:Error"))){const err60 = {instancePath:instancePath+"/scopes/" + i3+"/type",schemaPath:"#/properties/scopes/items/properties/type/enum",keyword:"enum",params:{allowedValues: schema17.properties.scopes.items.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(errors > 0){const emErrs8 = [];for(const err61 of vErrors){if(((((err61.keyword !== "errorMessage") && (!err61.emUsed)) && ((err61.instancePath === instancePath+"/scopes/" + i3+"/type") || ((err61.instancePath.indexOf(instancePath+"/scopes/" + i3+"/type") === 0) && (err61.instancePath[instancePath+"/scopes/" + i3+"/type".length] === "/")))) && (err61.schemaPath.indexOf("#/properties/scopes/items/properties/type") === 0)) && (err61.schemaPath["#/properties/scopes/items/properties/type".length] === "/")){emErrs8.push(err61);err61.emUsed = true;}}if(emErrs8.length){const err62 = {instancePath:instancePath+"/scopes/" + i3+"/type",schemaPath:"#/properties/scopes/items/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs8},message:"invalid scope type " + JSON.stringify(data25) + "; must be any of { camunda:Connector, bpmn:Error }"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}const emErrs9 = [];for(const err63 of vErrors){if(!err63.emUsed){emErrs9.push(err63);}}vErrors = emErrs9;errors = emErrs9.length;}}if(data23.properties !== undefined){let data26 = data23.properties;if(!(validate20(data26, {instancePath:instancePath+"/scopes/" + i3+"/properties",parentData:data23,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate20.errors : vErrors.concat(validate20.errors);errors = vErrors.length;}if(Array.isArray(data26)){const len4 = data26.length;for(let i4=0; i4<len4; i4++){let data27 = data26[i4];const _errs64 = errors;let valid27 = true;const _errs65 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.binding === undefined) && ("binding")){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {if(data27.binding !== undefined){let data28 = data27.binding;if(data28 && typeof data28 == "object" && !Array.isArray(data28)){if((data28.type === undefined) && ("type")){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {if(data28.type !== undefined){if("property" !== data28.type){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}}}}}var _valid1 = _errs65 === errors;errors = _errs64;if(vErrors !== null){if(_errs64){vErrors.length = _errs64;}else {vErrors = null;}}if(_valid1){const _errs68 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.type !== undefined){let data30 = data27.type;if(!(((((data30 === "String") || (data30 === "Text")) || (data30 === "Hidden")) || (data30 === "Dropdown")) || (data30 === "Boolean"))){const err67 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if(errors > 0){const emErrs10 = [];for(const err68 of vErrors){if(((((err68.keyword !== "errorMessage") && (!err68.emUsed)) && ((err68.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") || ((err68.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") === 0) && (err68.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/type".length] === "/")))) && (err68.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err68.schemaPath["#/definitions/properties/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs10.push(err68);err68.emUsed = true;}}if(emErrs10.length){const err69 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs10},message:"invalid property type " + JSON.stringify(data30) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean }"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}const emErrs11 = [];for(const err70 of vErrors){if(!err70.emUsed){emErrs11.push(err70);}}vErrors = emErrs11;errors = emErrs11.length;}}}var _valid1 = _errs68 === errors;valid27 = _valid1;}if(!valid27){const err71 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}const _errs71 = errors;let valid31 = true;const _errs72 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.binding === undefined) && ("binding")){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}else {if(data27.binding !== undefined){let data31 = data27.binding;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if((data31.type === undefined) && ("type")){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}else {if(data31.type !== undefined){if("camunda:executionListener" !== data31.type){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}}}}}}var _valid2 = _errs72 === errors;errors = _errs71;if(vErrors !== null){if(_errs71){vErrors.length = _errs71;}else {vErrors = null;}}if(_valid2){const _errs75 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.type !== undefined){if(!(data27.type === "Hidden")){const err75 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(errors > 0){const emErrs12 = [];for(const err76 of vErrors){if(((((err76.keyword !== "errorMessage") && (!err76.emUsed)) && ((err76.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") || ((err76.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") === 0) && (err76.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/type".length] === "/")))) && (err76.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err76.schemaPath["#/definitions/properties/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs12.push(err76);err76.emUsed = true;}}if(emErrs12.length){const err77 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs12},message:"invalid property type " + JSON.stringify(data27 && data27.type) + " for binding type \"camunda:executionListener\"; must be \"Hidden\""};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}const emErrs13 = [];for(const err78 of vErrors){if(!err78.emUsed){emErrs13.push(err78);}}vErrors = emErrs13;errors = emErrs13.length;}}if(data27.binding !== undefined){let data34 = data27.binding;const _errs78 = errors;let valid35 = false;let passing0 = null;const _errs79 = errors;const _errs80 = errors;const _errs81 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.implementationType !== undefined){if("script" !== data34.implementationType){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}var valid36 = _errs81 === errors;if(valid36){const err80 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}else {errors = _errs80;if(vErrors !== null){if(_errs80){vErrors.length = _errs80;}else {vErrors = null;}}}var _valid3 = _errs79 === errors;if(_valid3){valid35 = true;passing0 = 0;}const _errs83 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.scriptFormat === undefined){const err81 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/1/required",keyword:"required",params:{missingProperty: "scriptFormat"},message:"must have required property '"+"scriptFormat"+"'"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}var _valid3 = _errs83 === errors;if(_valid3 && valid35){valid35 = false;passing0 = [passing0, 1];}else {if(_valid3){valid35 = true;passing0 = 1;}const _errs84 = errors;const _errs86 = errors;const _errs87 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.implementationType === undefined) && ("implementationType")){const err82 = {};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}var valid39 = _errs87 === errors;if(valid39){const err83 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}else {errors = _errs86;if(vErrors !== null){if(_errs86){vErrors.length = _errs86;}else {vErrors = null;}}}const _errs89 = errors;const _errs90 = errors;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if((data34.scriptFormat === undefined) && ("scriptFormat")){const err84 = {};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}var valid40 = _errs90 === errors;if(valid40){const err85 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf/2/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}else {errors = _errs89;if(vErrors !== null){if(_errs89){vErrors.length = _errs89;}else {vErrors = null;}}}var _valid3 = _errs84 === errors;if(_valid3 && valid35){valid35 = false;passing0 = [passing0, 2];}else {if(_valid3){valid35 = true;passing0 = 2;}}}if(!valid35){const err86 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {errors = _errs78;if(vErrors !== null){if(_errs78){vErrors.length = _errs78;}else {vErrors = null;}}}if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.implementationType !== undefined){let data36 = data34.implementationType;if(!((((data36 === "class") || (data36 === "delegateExpression")) || (data36 === "expression")) || (data36 === "script"))){const err87 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/implementationType",schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/then/properties/binding/properties/implementationType/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[1].then.properties.binding.properties.implementationType.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}}}}var _valid2 = _errs75 === errors;valid31 = _valid2;}if(!valid31){const err88 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}const _errs93 = errors;let valid42 = true;const _errs94 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.binding === undefined) && ("binding")){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}else {if(data27.binding !== undefined){let data37 = data27.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}else {if(data37.type !== undefined){let data38 = data37.type;if(!((((((data38 === "camunda:property") || (data38 === "camunda:outputParameter")) || (data38 === "camunda:in")) || (data38 === "camunda:in:businessKey")) || (data38 === "camunda:out")) || (data38 === "camunda:errorEventDefinition"))){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}}}}}}var _valid4 = _errs94 === errors;errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}if(_valid4){const _errs97 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.type !== undefined){let data39 = data27.type;if(!(((data39 === "String") || (data39 === "Hidden")) || (data39 === "Dropdown"))){const err92 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[2].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(errors > 0){const emErrs14 = [];for(const err93 of vErrors){if(((((err93.keyword !== "errorMessage") && (!err93.emUsed)) && ((err93.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") || ((err93.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") === 0) && (err93.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/type".length] === "/")))) && (err93.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/2/then/properties/type") === 0)) && (err93.schemaPath["#/definitions/properties/allOf/1/items/allOf/2/then/properties/type".length] === "/")){emErrs14.push(err93);err93.emUsed = true;}}if(emErrs14.length){const err94 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs14},message:"invalid property type " + JSON.stringify(data39) + " for binding type " + JSON.stringify(data27 && data27.binding && data27.binding.type) + "; must be any of { String, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const emErrs15 = [];for(const err95 of vErrors){if(!err95.emUsed){emErrs15.push(err95);}}vErrors = emErrs15;errors = emErrs15.length;}}}var _valid4 = _errs97 === errors;valid42 = _valid4;}if(!valid42){const err96 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const _errs100 = errors;let valid46 = true;const _errs101 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if((data27.binding === undefined) && ("binding")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data27.binding !== undefined){let data40 = data27.binding;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if((data40.type === undefined) && ("type")){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}else {if(data40.type !== undefined){let data41 = data40.type;if(!((data41 === "camunda:inputParameter") || (data41 === "camunda:field"))){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}}}}}var _valid5 = _errs101 === errors;errors = _errs100;if(vErrors !== null){if(_errs100){vErrors.length = _errs100;}else {vErrors = null;}}if(_valid5){const _errs104 = errors;if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.type !== undefined){let data42 = data27.type;if(!((((data42 === "String") || (data42 === "Text")) || (data42 === "Hidden")) || (data42 === "Dropdown"))){const err100 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.allOf[3].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(errors > 0){const emErrs16 = [];for(const err101 of vErrors){if(((((err101.keyword !== "errorMessage") && (!err101.emUsed)) && ((err101.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") || ((err101.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/type") === 0) && (err101.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/type".length] === "/")))) && (err101.schemaPath.indexOf("#/definitions/properties/allOf/1/items/allOf/3/then/properties/type") === 0)) && (err101.schemaPath["#/definitions/properties/allOf/1/items/allOf/3/then/properties/type".length] === "/")){emErrs16.push(err101);err101.emUsed = true;}}if(emErrs16.length){const err102 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/type",schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs16},message:"invalid property type " + JSON.stringify(data42) + " for binding type " + JSON.stringify(data27 && data27.binding && data27.binding.type) + "; must be any of { String, Text, Hidden, Dropdown }"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}const emErrs17 = [];for(const err103 of vErrors){if(!err103.emUsed){emErrs17.push(err103);}}vErrors = emErrs17;errors = emErrs17.length;}}}var _valid5 = _errs104 === errors;valid46 = _valid5;}if(!valid46){const err104 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.binding === undefined){const err105 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data27.binding !== undefined){let data43 = data27.binding;const _errs109 = errors;let valid52 = true;const _errs110 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {if(data43.type !== undefined){let data44 = data43.type;if(!((((data44 === "property") || (data44 === "camunda:property")) || (data44 === "camunda:inputParameter")) || (data44 === "camunda:field"))){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}}var _valid6 = _errs110 === errors;errors = _errs109;if(vErrors !== null){if(_errs109){vErrors.length = _errs109;}else {vErrors = null;}}if(_valid6){const _errs112 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.name === undefined){const err108 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}if(errors > 0){const emErrs18 = [];for(const err109 of vErrors){if(((((err109.keyword !== "errorMessage") && (!err109.emUsed)) && ((err109.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") || ((err109.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") === 0) && (err109.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding".length] === "/")))) && (err109.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err109.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs18.push(err109);err109.emUsed = true;}}if(emErrs18.length){const err110 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs18},message:"property.binding " + JSON.stringify(data43 && data43.type) + " requires name"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const emErrs19 = [];for(const err111 of vErrors){if(!err111.emUsed){emErrs19.push(err111);}}vErrors = emErrs19;errors = emErrs19.length;}var _valid6 = _errs112 === errors;valid52 = _valid6;}if(!valid52){const err112 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}const _errs114 = errors;let valid54 = true;const _errs115 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err113 = {};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {if(data43.type !== undefined){if("camunda:outputParameter" !== data43.type){const err114 = {};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}}}var _valid7 = _errs115 === errors;errors = _errs114;if(vErrors !== null){if(_errs114){vErrors.length = _errs114;}else {vErrors = null;}}if(_valid7){const _errs117 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.source === undefined){const err115 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}if(errors > 0){const emErrs20 = [];for(const err116 of vErrors){if(((((err116.keyword !== "errorMessage") && (!err116.emUsed)) && ((err116.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") || ((err116.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") === 0) && (err116.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding".length] === "/")))) && (err116.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err116.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs20.push(err116);err116.emUsed = true;}}if(emErrs20.length){const err117 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs20},message:"property.binding " + JSON.stringify(data43 && data43.type) + " requires source"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const emErrs21 = [];for(const err118 of vErrors){if(!err118.emUsed){emErrs21.push(err118);}}vErrors = emErrs21;errors = emErrs21.length;}var _valid7 = _errs117 === errors;valid54 = _valid7;}if(!valid54){const err119 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}const _errs119 = errors;let valid56 = true;const _errs120 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data43.type !== undefined){if("camunda:in" !== data43.type){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}}}var _valid8 = _errs120 === errors;errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}if(_valid8){const _errs122 = errors;const _errs123 = errors;let valid58 = false;const _errs124 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.variables === undefined){const err122 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}var _valid9 = _errs124 === errors;valid58 = valid58 || _valid9;if(!valid58){const _errs125 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.target === undefined){const err123 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}var _valid9 = _errs125 === errors;valid58 = valid58 || _valid9;}if(!valid58){const err124 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}}if(errors > 0){const emErrs22 = [];for(const err125 of vErrors){if(((((err125.keyword !== "errorMessage") && (!err125.emUsed)) && ((err125.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") || ((err125.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") === 0) && (err125.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding".length] === "/")))) && (err125.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err125.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs22.push(err125);err125.emUsed = true;}}if(emErrs22.length){const err126 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs22},message:"property.binding " + JSON.stringify(data43 && data43.type) + " requires variables, target, or both"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}const emErrs23 = [];for(const err127 of vErrors){if(!err127.emUsed){emErrs23.push(err127);}}vErrors = emErrs23;errors = emErrs23.length;}var _valid8 = _errs122 === errors;valid56 = _valid8;}if(!valid56){const err128 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}const _errs127 = errors;let valid59 = true;const _errs128 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {if(data43.type !== undefined){if("camunda:out" !== data43.type){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}}}var _valid10 = _errs128 === errors;errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}if(_valid10){const _errs130 = errors;const _errs131 = errors;let valid61 = false;let passing1 = null;const _errs132 = errors;const _errs133 = errors;const _errs134 = errors;const _errs135 = errors;let valid63 = false;const _errs136 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.source === undefined) && ("source")){const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}var _valid12 = _errs136 === errors;valid63 = valid63 || _valid12;if(!valid63){const _errs137 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.sourceExpression === undefined) && ("sourceExpression")){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}var _valid12 = _errs137 === errors;valid63 = valid63 || _valid12;}if(!valid63){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}var valid62 = _errs134 === errors;if(valid62){const err134 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}}if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.variables === undefined){const err135 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/0/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}var _valid11 = _errs132 === errors;if(_valid11){valid61 = true;passing1 = 0;}const _errs138 = errors;const _errs139 = errors;const _errs140 = errors;const _errs141 = errors;let valid65 = false;const _errs142 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.variables === undefined) && ("variables")){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}var _valid13 = _errs142 === errors;valid65 = valid65 || _valid13;if(!valid65){const _errs143 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.sourceExpression === undefined) && ("sourceExpression")){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}var _valid13 = _errs143 === errors;valid65 = valid65 || _valid13;}if(!valid65){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}}var valid64 = _errs140 === errors;if(valid64){const err139 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {errors = _errs139;if(vErrors !== null){if(_errs139){vErrors.length = _errs139;}else {vErrors = null;}}}if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.source === undefined){const err140 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/1/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}var _valid11 = _errs138 === errors;if(_valid11 && valid61){valid61 = false;passing1 = [passing1, 1];}else {if(_valid11){valid61 = true;passing1 = 1;}const _errs144 = errors;const _errs145 = errors;const _errs146 = errors;const _errs147 = errors;let valid67 = false;const _errs148 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.variables === undefined) && ("variables")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid14 = _errs148 === errors;valid67 = valid67 || _valid14;if(!valid67){const _errs149 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.source === undefined) && ("source")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var _valid14 = _errs149 === errors;valid67 = valid67 || _valid14;}if(!valid67){const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}var valid66 = _errs146 === errors;if(valid66){const err144 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}else {errors = _errs145;if(vErrors !== null){if(_errs145){vErrors.length = _errs145;}else {vErrors = null;}}}if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.sourceExpression === undefined){const err145 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/2/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}var _valid11 = _errs144 === errors;if(_valid11 && valid61){valid61 = false;passing1 = [passing1, 2];}else {if(_valid11){valid61 = true;passing1 = 2;}const _errs150 = errors;const _errs151 = errors;const _errs152 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.source === undefined) && ("source")){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}var valid68 = _errs152 === errors;if(valid68){const err147 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}else {errors = _errs151;if(vErrors !== null){if(_errs151){vErrors.length = _errs151;}else {vErrors = null;}}}if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.variables === undefined){const err148 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if(data43.sourceExpression === undefined){const err149 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/3/required",keyword:"required",params:{missingProperty: "sourceExpression"},message:"must have required property '"+"sourceExpression"+"'"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}var _valid11 = _errs150 === errors;if(_valid11 && valid61){valid61 = false;passing1 = [passing1, 3];}else {if(_valid11){valid61 = true;passing1 = 3;}const _errs153 = errors;const _errs154 = errors;const _errs155 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.sourceExpression === undefined) && ("sourceExpression")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}}var valid69 = _errs155 === errors;if(valid69){const err151 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}else {errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}}if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.variables === undefined){const err152 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "variables"},message:"must have required property '"+"variables"+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(data43.source === undefined){const err153 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf/4/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}var _valid11 = _errs153 === errors;if(_valid11 && valid61){valid61 = false;passing1 = [passing1, 4];}else {if(_valid11){valid61 = true;passing1 = 4;}}}}}if(!valid61){const err154 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}else {errors = _errs131;if(vErrors !== null){if(_errs131){vErrors.length = _errs131;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err155 of vErrors){if(((((err155.keyword !== "errorMessage") && (!err155.emUsed)) && ((err155.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") || ((err155.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") === 0) && (err155.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding".length] === "/")))) && (err155.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then") === 0)) && (err155.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then".length] === "/")){emErrs24.push(err155);err155.emUsed = true;}}if(emErrs24.length){const err156 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs24},message:"property.binding " + JSON.stringify(data43 && data43.type) + " requires one of the following: variables, sourceExpression, source, (sourceExpression and variables), or (source and variables)"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}const emErrs25 = [];for(const err157 of vErrors){if(!err157.emUsed){emErrs25.push(err157);}}vErrors = emErrs25;errors = emErrs25.length;}var _valid10 = _errs130 === errors;valid59 = _valid10;}if(!valid59){const err158 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}const _errs157 = errors;let valid70 = true;const _errs158 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {if(data43.type !== undefined){if("camunda:errorEventDefinition" !== data43.type){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}}var _valid15 = _errs158 === errors;errors = _errs157;if(vErrors !== null){if(_errs157){vErrors.length = _errs157;}else {vErrors = null;}}if(_valid15){const _errs160 = errors;const _errs161 = errors;let valid72 = false;let passing2 = null;const _errs162 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.errorRef === undefined){const err161 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf/0/required",keyword:"required",params:{missingProperty: "errorRef"},message:"must have required property '"+"errorRef"+"'"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}var _valid16 = _errs162 === errors;if(_valid16){valid72 = true;passing2 = 0;}if(!valid72){const err162 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}else {errors = _errs161;if(vErrors !== null){if(_errs161){vErrors.length = _errs161;}else {vErrors = null;}}}if(errors > 0){const emErrs26 = [];for(const err163 of vErrors){if(((((err163.keyword !== "errorMessage") && (!err163.emUsed)) && ((err163.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") || ((err163.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding") === 0) && (err163.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding".length] === "/")))) && (err163.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then") === 0)) && (err163.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then".length] === "/")){emErrs26.push(err163);err163.emUsed = true;}}if(emErrs26.length){const err164 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs26},message:"property.binding " + JSON.stringify(data43 && data43.type) + " requires errorRef"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}const emErrs27 = [];for(const err165 of vErrors){if(!err165.emUsed){emErrs27.push(err165);}}vErrors = emErrs27;errors = emErrs27.length;}var _valid15 = _errs160 === errors;valid70 = _valid15;}if(!valid70){const err166 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.type === undefined){const err167 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(data43.type !== undefined){let data49 = data43.type;if(typeof data49 !== "string"){const err168 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}if(!((((((((((data49 === "property") || (data49 === "camunda:property")) || (data49 === "camunda:inputParameter")) || (data49 === "camunda:outputParameter")) || (data49 === "camunda:in")) || (data49 === "camunda:out")) || (data49 === "camunda:in:businessKey")) || (data49 === "camunda:executionListener")) || (data49 === "camunda:field")) || (data49 === "camunda:errorEventDefinition"))){const err169 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema29.items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if(errors > 0){const emErrs28 = [];for(const err170 of vErrors){if(((((err170.keyword !== "errorMessage") && (!err170.emUsed)) && ((err170.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/type") || ((err170.instancePath.indexOf(instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/type") === 0) && (err170.instancePath[instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/type".length] === "/")))) && (err170.schemaPath.indexOf("#/definitions/properties/allOf/1/items/properties/binding/properties/type") === 0)) && (err170.schemaPath["#/definitions/properties/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs28.push(err170);err170.emUsed = true;}}if(emErrs28.length){const err171 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/type",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs28},message:"invalid property.binding type " + JSON.stringify(data49) + "; must be any of { property, camunda:property, camunda:inputParameter, camunda:outputParameter, camunda:in, camunda:out, camunda:in:businessKey, camunda:executionListener, camunda:field, camunda:errorEventDefinition }"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}const emErrs29 = [];for(const err172 of vErrors){if(!err172.emUsed){emErrs29.push(err172);}}vErrors = emErrs29;errors = emErrs29.length;}}if(data43.name !== undefined){if(typeof data43.name !== "string"){const err173 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/name",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}if(data43.event !== undefined){if(typeof data43.event !== "string"){const err174 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/event",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/event/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}if(data43.scriptFormat !== undefined){if(typeof data43.scriptFormat !== "string"){const err175 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/scriptFormat",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/scriptFormat/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data43.source !== undefined){if(typeof data43.source !== "string"){const err176 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/source",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data43.target !== undefined){if(typeof data43.target !== "string"){const err177 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/target",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/target/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}if(data43.expression !== undefined){if(typeof data43.expression !== "boolean"){const err178 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/expression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/expression/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data43.variables !== undefined){let data56 = data43.variables;if(typeof data56 !== "string"){const err179 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if(!((data56 === "all") || (data56 === "local"))){const err180 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/variables",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/variables/enum",keyword:"enum",params:{allowedValues: schema29.items.properties.binding.properties.variables.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data43.sourceExpression !== undefined){if(typeof data43.sourceExpression !== "string"){const err181 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding/sourceExpression",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/properties/sourceExpression/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}}else {const err182 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4+"/binding",schemaPath:"#/definitions/properties/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}if(errors > 0){const emErrors6 = {"required":[]};const templates6 = {required:function(){return "missing binding for property \"" + JSON.stringify(i4) + "\""}};for(const err184 of vErrors){if((((((err184.keyword !== "errorMessage") && (!err184.emUsed)) && (err184.instancePath === instancePath+"/scopes/" + i3+"/properties/" + i4)) && (err184.keyword in emErrors6)) && (err184.schemaPath.indexOf("#/definitions/properties/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err184.schemaPath.slice(38)))){emErrors6[err184.keyword].push(err184);err184.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err185 = {instancePath:instancePath+"/scopes/" + i3+"/properties/" + i4,schemaPath:"#/definitions/properties/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema29.items.errorMessage[key6]};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}const emErrs30 = [];for(const err186 of vErrors){if(!err186.emUsed){emErrs30.push(err186);}}vErrors = emErrs30;errors = emErrs30.length;}}}else {const err187 = {instancePath:instancePath+"/scopes/" + i3+"/properties",schemaPath:"#/definitions/properties/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}}else {const err188 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if(errors > 0){const emErrors7 = {"required":{"type":[],"properties":[]}};const templates7 = {required:{properties:function(){return "invalid scope " + JSON.stringify(data23 && data23.type) + ", missing properties=[]"}}};let emPropParams3;let emParamsErrors3;for(const err189 of vErrors){if((((((err189.keyword !== "errorMessage") && (!err189.emUsed)) && (err189.instancePath === instancePath+"/scopes/" + i3)) && (err189.keyword in emErrors7)) && (err189.schemaPath.indexOf("#/properties/scopes/items") === 0)) && (/^\/[^\/]*$/.test(err189.schemaPath.slice(25)))){emPropParams3 = obj0[err189.keyword];emParamsErrors3 = emErrors7[err189.keyword][err189.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err189);err189.emUsed = true;}}}for(const key7 in emErrors7){for(const keyProp3 in emErrors7[key7]){emParamsErrors3 = emErrors7[key7][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates7[key7] && templates7[key7][keyProp3];const err190 = {instancePath:instancePath+"/scopes/" + i3,schemaPath:"#/properties/scopes/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.scopes.items.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}const emErrs31 = [];for(const err191 of vErrors){if(!err191.emUsed){emErrs31.push(err191);}}vErrors = emErrs31;errors = emErrs31.length;}}}else {const err192 = {instancePath:instancePath+"/scopes",schemaPath:"#/properties/scopes/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err193 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}}else {const err194 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
90
90
  return standaloneValidator.exports;
91
91
  }
92
92
 
@@ -738,7 +738,7 @@ function validateAll(objects) {
738
738
  }
739
739
 
740
740
  var name = "@camunda/zeebe-element-templates-json-schema";
741
- var version = "0.36.0";
741
+ var version = "0.37.0";
742
742
 
743
743
  var standaloneZeebeValidator = {exports: {}};
744
744
 
@@ -747,19 +747,19 @@ var hasRequiredStandaloneZeebeValidator;
747
747
  function requireStandaloneZeebeValidator () {
748
748
  if (hasRequiredStandaloneZeebeValidator) return standaloneZeebeValidator.exports;
749
749
  hasRequiredStandaloneZeebeValidator = 1;
750
- standaloneZeebeValidator.exports = validate14;standaloneZeebeValidator.exports.default = validate14;const schema17 = {"allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"$schema":{"$id":"#/$schema","type":"string","description":"Reference to the Element Template JSON schema this document follows."},"name":{"$id":"#/name","type":"string","description":"Template name. Shown during template selection and editing of a templated element. Required."},"id":{"$id":"#/id","type":"string","description":"Template identifier. Required."},"description":{"$id":"#/description","type":"string","description":"Template description. Shown during template selection and editing of a templated element."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template, it will be considered unique based on its ID and version. Two templates can have the same ID if their versions are different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Marks the template as deprecated. Value can be either a boolean or an object with a message and a link to migration documentation.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"URL pointing to template documentation. Must be a valid http(s) URL."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to. Required.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"Object that sets the type of the element. Some properties require a specific value for elementType.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","description":"Specifies the target BPMN element type. The element is replaced with the specified type when a user applies the template. Required if using elementType.","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"keywords":{"$id":"#/keywords","type":"array","items":{"type":"string"},"description":"List of keywords to help users find the template. Used in search and filtering, but not displayed in the UI.","default":[]},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Defines whether all property input fields are shown, even those normally hidden by the template."},"groups":{"$id":"#/groups","type":"array","description":"List of custom groups to organize related fields in the properties panel.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"Uniquely identifies a group object. Required if using groups."},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the group, shown as a section header in the properties panel. Required if using groups."}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:SendTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#zeebe:subscription#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:CallActivity"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:CallActivity"]}}}],"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"},"property":{"const":"processId"}},"required":["property","type"]}},"required":["binding"]},"errorMessage":"Binding with `property`=`processId` and `type`=`zeebe:calledElement` is required, when using a binding with `type`=`zeebe:calledElement`"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:UserTask"}}}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:formDefinition","zeebe:assignmentDefinition","zeebe:priorityDefinition","zeebe:taskSchedule"]}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]},"errorMessage":"When using ${0/0/binding/type}, \"zeebe:userTask\" must be set on the same element"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledDecision"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:BusinessRuleTask"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:BusinessRuleTask"]}}}],"allOf":[{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"decisionId","errorMessage":"Binding type \"zeebe:calledDecision\" must contain property \"decisionId\""}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"resultVariable","errorMessage":"Binding type \"zeebe:calledDecision\" must contain property \"resultVariable\""}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:taskDefinition","zeebe:taskDefinition:type"]}},"required":["type"]}},"required":["binding"]}}}},"required":["properties"],"errorMessage":"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:calledDecision\" is set."}]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:script"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:ScriptTask"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:ScriptTask"]}}}],"allOf":[{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"expression"}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"resultVariable"}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:taskDefinition","zeebe:taskDefinition:type"]}},"required":["type"]}},"required":["binding"]}}}},"required":["properties"],"errorMessage":"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:script\" is set."}]}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"},"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]}},"required":["property","type"]},"value":{"const":"versionTag"}},"required":["binding","value"]}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]},"property":{"const":"versionTag"}},"required":["property","type"]}},"required":["binding"]},"errorMessage":"Missing binding with `property`=`versionTag` as binding with `property`=`bindingType` and `value`=`versionTag` is set"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:calledDecision","zeebe:calledElement","zeebe:formDefinition","zeebe:linkedResource"]},"property":{"const":"versionTag"}},"required":["property"]}},"required":["binding"],"not":{"required":["condition"]}}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"}},"required":["property"]},"value":{"const":"versionTag"},"type":{"const":"Hidden"}},"required":["binding","value","type"]},"errorMessage":"Binding with property=`bindingType` and value=`versionTag` must be set when using a binding with property=`versionTag`"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"},"type":{"const":"zeebe:formDefinition"}},"required":["property","type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"const":"formId"}},"required":["property","type"]}},"required":["binding"]},"errorMessage":"`property`=`bindingType` is not supported when using `property`=`externalReference`. Use `formId` with `bindingType`"}},"required":["properties"]}}]},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"formId"},"type":{"const":"zeebe:formDefinition"}},"required":["property","type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"const":"externalReference"}},"required":["property","type"]}},"required":["binding"]}},"errorMessage":"\"formId\" and \"externalReference\" cannot be used together"}},"required":["properties"]}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]}},{"$comment":"When zeebe:adHoc output properties are used, both required bindings must be present together","if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"enum":["outputCollection","outputElement"]}},"required":["type","property"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"allOf":[{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputElement"}},"required":["type","property"]}},"required":["binding"]},"errorMessage":"When \"outputCollection\" is defined for \"zeebe:adHoc\", \"outputElement\" must be defined, too"},{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputCollection"}},"required":["type","property"]}},"required":["binding"]},"errorMessage":"When \"outputElement\" is defined for \"zeebe:adHoc\", \"outputCollection\" must be defined, too"}]}},"required":["properties"]}},{"$comment":"When zeebe:taskDefinition is used, bpmn:cancelRemainingInstances, bpmn:completionCondition, and zeebe:activeElementsCollection properties are not allowed","if":{"allOf":[{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]},{"properties":{"properties":{"contains":{"type":"object","properties":{"binding":{"properties":{"type":{"const":"zeebe:taskDefinition"},"property":{"const":"type"}},"required":["type","property"]}},"required":["binding"]}}},"required":["properties"]}]},"then":{"allOf":[{"properties":{"properties":{"items":{"not":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"enum":["cancelRemainingInstances","completionCondition"]}},"required":["type","name"]}},"required":["binding"]},"errorMessage":"Property ${0/binding/name} must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""}}},"required":["properties"]},{"properties":{"properties":{"items":{"not":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"activeElementsCollection"}},"required":["type","property"]}},"required":["binding"]},"errorMessage":"Property ${0/binding/property} must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""}}},"required":["properties"]}]}}]},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["eventDefinition","value"],"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]},"eventDefinition":{"const":"bpmn:SignalEventDefinition"}}}}}},{"if":{"properties":{"elementType":{"properties":{"eventDefinition":{"const":"bpmn:SignalEventDefinition"}},"required":["eventDefinition"]}},"required":["elementType"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]}},"required":["binding"]},"errorMessage":"Binding with `type`=`bpmn:Signal#property` is required, when using `elementType.eventDefinition`=`bpmn:SignalEventDefinition`"}}}}]},{"$defs":{"timeDateProperty":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"const":"timeDate"}},"required":["type","name"]}},"required":["binding"]},"timeCycleProperty":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"const":"timeCycle"}},"required":["type","name"]}},"required":["binding"]},"timeDurationProperty":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"const":"timeDuration"}},"required":["type","name"]}},"required":["binding"]}},"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"enum":["timeDate","timeCycle","timeDuration"]}},"required":["type","name"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["eventDefinition","value"],"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"},"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"]}},"errorMessage":{"required":{"eventDefinition":"Timer bindings require elementType.eventDefinition to equal \"bpmn:TimerEventDefinition\""}}}}}},{"if":{"properties":{"elementType":{"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"}},"required":["eventDefinition"]}},"required":["elementType"]},"then":{"properties":{"properties":{"oneOf":[{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty"}},{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty"}},{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty"}}],"errorMessage":"Template with elementType.eventDefinition=\"bpmn:TimerEventDefinition\" must have exactly one binding with type \"bpmn:TimerEventDefinition#property\" and name \"timeDate\", \"timeCycle\", or \"timeDuration\"."}},"required":["properties"]}},{"if":{"properties":{"elementType":{"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"},"value":{"const":"bpmn:IntermediateCatchEvent"}},"required":["eventDefinition","value"]}},"required":["elementType"]},"then":{"properties":{"properties":{"not":{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty"},"errorMessage":"Binding with `type`=`bpmn:TimerEventDefinition#property` and `name`=`timeCycle` is only allowed on `bpmn:StartEvent` or `bpmn:BoundaryEvent` templates"}}}}}]}]},{"allOf":[{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"const":"completionCondition"}},"required":["type","name"]}},"required":["binding"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}},{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:SequenceFlow"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:SequenceFlow"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"const":"conditionExpression"}},"required":["type","name"]}},"required":["binding"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}},{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:ComplexGateway"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:ComplexGateway"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"const":"activationCondition"}},"required":["type","name"]}},"required":["binding"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}},{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"type":{"enum":["String","Text"]},"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputElement"}},"required":["type","property"]}},"required":["binding","type"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}}]}],"properties":{"icon":{"properties":{"contents":{"errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"errorMessage":{"required":{"contents":"missing icon contents"}}},"elementType":{"allOf":[{"allOf":[{"properties":{"eventDefinition":{"$id":"#/elementType/eventDefinition","description":"Define the event definition type for a typed event template. Otherwise, ignore.","enum":["bpmn:MessageEventDefinition","bpmn:SignalEventDefinition","bpmn:TimerEventDefinition","bpmn:ConditionalEventDefinition"]}}},{"if":{"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"required":["value"]}},{"if":{"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"}},"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"]}},"required":["value"]}},{"if":{"properties":{"eventDefinition":{"const":"bpmn:ConditionalEventDefinition"}},"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"]}},"required":["value"]}}]}]}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern9 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const func0 = requireEqual().default;const schema22 = {"allOf":[{"type":"array","description":"List of the template's properties.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"Defines the type of the condition (always \"simple\").","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"Reference to the property used to evaluate the condition."}},"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property. Can be used to, for example, reference the property for checks."},"condition":{"type":"object","description":"Object that defines when a property should be displayed in the properties panel and its value should be included in the XML.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1,"description":"List of conditions that must all be met for the property to be active."}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string","description":"Placeholder text shown in the property input field when it is empty. Can be used to show example input."}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"Default value to be used if the user does not provide a value or if the type is Hidden."},"description":{"$id":"#/properties/property/description","type":"string","description":"Hint text shown below the property input field."},"label":{"$id":"#/properties/property/label","type":"string","description":"Label text shown above the property input field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Defines whether users can edit the property in the properties panel. By default, all non-hidden properties are editable."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"List of choices for a dropdown field.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"Display name for a choice in a dropdown field. Shown to the user."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"Value for a choice in a dropdown field. Stored in the XML."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"Object that contains rules to validate user input to the template.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"String or object that defines a regular expression that the user's input must match.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The value of the regular expression."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"Custom error message to show when the user's input does not match the regular expression."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"Group in the properties panel that the property belongs to."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","zeebe:taskDefinition:type","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement","zeebe:linkedResource","zeebe:formDefinition","zeebe:calledDecision","zeebe:script","zeebe:assignmentDefinition","zeebe:priorityDefinition","zeebe:adHoc","zeebe:taskSchedule"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"}},"required":["type"]}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"constraints":{"properties":{"notEmpty":{"const":false,"errorMessage":"optional is not allowed for truthy \"notEmpty\" constraint"}},"required":["notEmpty"]}}}},{"if":{"properties":{"feel":{"not":{"const":null}}},"required":["feel"]},"then":{"properties":{"type":{"enum":["String","Text","Number","Boolean"],"errorMessage":"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"}},"required":["type"]}},{"if":{"properties":{"language":{"not":{"const":null}}},"required":["language"]},"then":{"properties":{"type":{"enum":["Text"],"errorMessage":"language is only supported for \"Text\" type"}}}},{"if":{"required":["value"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["Boolean","Dropdown"]}},"required":["type"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["String","Text"]}},"required":["feel"]},"then":{"properties":{"feel":{"enum":["optional","required"]}}}},{"if":{"properties":{"feel":{"const":"required"}},"required":["feel"]},"then":{"properties":{"value":{"oneOf":[{"type":"string","pattern":"^="},{"type":"string","not":{"pattern":"^="},"deprecated":true}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:linkedResource"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"binding":{"properties":{"linkName":{"type":"string"},"property":{"enum":["resourceId","resourceType","bindingType","versionTag"],"errorMessage":"invalid binding.property ${0}; must be any of { resourceId, resourceType, bindingType, versionTag }"}},"required":["linkName","property"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output"]}},"required":["type"]},"type":{"enum":["Boolean","Number"]}},"required":["binding","type"]},"then":{"properties":{"feel":{"default":"static"}}}}]},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"const":"formId"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"formId\" cannot be a FEEL expression"}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"enum":["externalReference","formId"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledDecision"},"property":{"const":"resultVariable"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"resultVariable\" cannot be a Feel expression"}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledDecision"},"property":{"enum":["resultVariable","decisionId"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:script"},"property":{"const":"resultVariable"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"resultVariable\" cannot be a Feel expression"}},{"if":{"properties":{"type":{"enum":["String","Text"]},"binding":{"properties":{"type":{"const":"zeebe:script"},"property":{"const":"expression"}},"required":["type","property"]}},"required":["type","binding"]},"then":{"properties":{"feel":{"enum":["required"]}},"required":["feel"]}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:script"},"property":{"enum":["resultVariable","expression"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"},"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type","value"],"properties":{"choices":{"type":"array","items":{"properties":{"value":{"enum":["latest","versionTag","deployment"]}}}},"type":{"enum":["Hidden","Dropdown"],"errorMessage":"Incorrect type ${0}. Must be one of { Hidden, Dropdown } for binding with `property`=`bindingType`"},"value":{"enum":["latest","versionTag","deployment"]}}}},{"if":{"properties":{"binding":{"properties":{"property":{"const":"versionTag"},"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]}},"required":["type","property"]}},"required":["binding"]},"then":{"allOf":[{"required":["type"],"properties":{"type":{"enum":["Hidden","Dropdown","String","Text"],"errorMessage":"Incorrect type ${0}. Must be one of { String, Text, Hidden, Dropdown } for binding with `property`=`versionTag`"}}},{"not":{"required":["feel"]},"errorMessage":"Binding with `property`=`versionTag` does not support `feel`"}]}}]},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:assignmentDefinition"},"property":{"enum":["assignee","candidateUsers","candidateGroups"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"allOf":[{"if":{"type":"object","properties":{"binding":{"properties":{"type":{"const":"zeebe:priorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding"]},"then":{"anyOf":[{"required":["type"],"properties":{"type":{"enum":["Hidden","Number","Dropdown"]}}},{"required":["type","feel"],"properties":{"type":{"enum":["String","Text"]},"feel":{"const":"required"}}}]}},{"if":{"type":"object","properties":{"type":{"const":"Number"},"binding":{"properties":{"type":{"const":"zeebe:priorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding","value","type"]},"then":{"properties":{"value":{"type":"integer","minimum":0,"maximum":100}}}},{"if":{"type":"object","properties":{"type":{"enum":["Hidden","Dropdown"]},"binding":{"properties":{"type":{"const":"zeebe:priorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding","type"]},"then":{"properties":{"value":{"type":"string","pattern":"^(100|[1-9]?[0-9])$","errorMessage":"Invalid value for priority. Must be between 0 and 100"},"choices":{"items":{"properties":{"value":{"type":"string","pattern":"^(100|[1-9]?[0-9])$","errorMessage":"Invalid value for priority. Must be between 0 and 100"}}}}}}}]},{"allOf":[{"$comment":"AdHoc output properties require string-based types (Hidden, String, Text, or Dropdown)","if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"enum":["outputCollection","outputElement"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"$comment":"outputCollection properties must not be FEEL expressions","if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputCollection"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"outputCollection\" cannot be a FEEL expression"}}]},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:taskSchedule"},"property":{"enum":["dueDate","followUpDate"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Dropdown","Text"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:taskSchedule"},"property":{"enum":["dueDate","followUpDate"]}},"required":["type","property"]}},"required":["binding","value"],"not":{"required":["feel"]}},"then":{"properties":{"value":{"type":"string","pattern":"^(?<date>\\d{4}-(?<month>0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))T(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](Z|([+-](0[0-9]|1[0-3]):[0-5][0-9](\\[[^\\]]+\\])?))$","description":"The value must be conforming to an ISO 8601 combined date and time representation.","errorMessage":"Must be conforming to an ISO 8601 combined date and time representation"}},"required":["value"]}}]},{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"},"property":{"enum":["propagateAllParentVariables","propagateAllChildVariables"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","Boolean"]},"value":{"type":"boolean"}},"not":{"required":["feel"]},"errorMessage":"FEEL is not supported for `zeebe:calledElement` variable propagation properties"}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"enum":["timeDate","timeDuration","timeCycle"]}},"required":["type","name"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#property"},"name":{"const":"condition"}},"required":["type","name"]}},"required":["binding"]},"then":{"allOf":[{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text"]}}},{"required":["feel"],"properties":{"feel":{"const":"required"}}}]}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"},"name":{"enum":["variableNames","variableEvents"]}},"required":["type","name"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text"]}}}}]}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:property","zeebe:input","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","bpmn:Signal#property","bpmn:TimerEventDefinition#property","bpmn:ConditionalEventDefinition#property","bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"zeebe:taskHeader"}},"required":["type"]},"then":{"required":["key"],"errorMessage":"property.binding ${0/type} requires key"}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["type","retries"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition:type"}},"required":["type"]},"then":{"deprecated":true}},{"if":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]},"then":{"properties":{"property":{"enum":["processId","bindingType","versionTag","propagateAllParentVariables","propagateAllChildVariables"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:script"}},"required":["type"]},"then":{"properties":{"property":{"enum":["expression","resultVariable"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:formDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["formId","externalReference","bindingType","versionTag"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:calledDecision"}},"required":["type"]},"then":{"properties":{"property":{"enum":["decisionId","resultVariable","versionTag","bindingType"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:assignmentDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["assignee","candidateUsers","candidateGroups"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:priorityDefinition"}},"required":["type"]},"then":{"properties":{"property":{"const":"priority"}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:adHoc"}},"required":["type"]},"then":{"properties":{"property":{"enum":["activeElementsCollection","outputCollection","outputElement"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskSchedule"}},"required":["type"]},"then":{"properties":{"property":{"enum":["dueDate","followUpDate"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]},"then":{"properties":{"name":{"const":"name"}},"required":["name"]}},{"if":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"}},"required":["type"]},"then":{"properties":{"name":{"enum":["timeCycle","timeDate","timeDuration"]}},"required":["name"]}},{"allOf":[{"if":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#property"}},"required":["type"]},"then":{"properties":{"name":{"const":"condition"}},"required":["name"]}},{"if":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"}},"required":["type"]},"then":{"properties":{"name":{"enum":["variableNames","variableEvents"]}},"required":["name"]}}]},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:property","name":"property"},{"type":"zeebe:taskHeader","key":"key"},{"type":"zeebe:taskDefinition","property":"retries"},{"type":"zeebe:taskDefinition","property":"type"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","description":"The type of a property binding.","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement","zeebe:linkedResource","zeebe:userTask","zeebe:formDefinition","zeebe:calledDecision","zeebe:script","zeebe:assignmentDefinition","zeebe:priorityDefinition","zeebe:adHoc","zeebe:taskSchedule","bpmn:Signal#property","bpmn:TimerEventDefinition#property","bpmn:ConditionalEventDefinition#property","bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script, zeebe:assignmentDefinition, zeebe:priorityDefinition, zeebe:adHoc, zeebe:taskSchedule, bpmn:Signal#property, bpmn:TimerEventDefinition#property }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of the property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"Source of the output parameter for an output mapping (created with zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"Key of a task header (created with zeebe:taskHeader)."},"property":{"$id":"#/properties/property/binding/property","type":"string","description":"Name of a binding property."},"linkName":{"$id":"#/properties/property/binding/linkName","type":"string","description":"The `linkName` of the element (zeebe:linkedResource)."}}},"optional":{"$id":"#/optional","type":"boolean","description":"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},"feel":{"$id":"#/properties/property/feel","type":"string","description":"Defines whether the property supports FEEL expressions. Values can be \"optional\" (toggle), \"required\", or \"static\" (for Boolean/Number fields, persisted as FEEL).","enum":["optional","required","static"]},"language":{"$id":"#/properties/property/language","type":"string","description":"Indicates that the field is a custom language editor"},"generatedValue":{"$id":"#/properties/property/generatedValue","type":"object","description":"Object that defines how a default value should be generated.","required":["type"],"properties":{"type":{"const":"uuid","description":"Value is generated as UUID."}}},"tooltip":{"$id":"#/properties/property/tooltip","type":"string","description":"Hints for the control field."}},"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}}}}]};const schema23 = {"properties":{"property":{"const":{"$data":"2/id"}}}};const schema24 = {"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}}}if(!valid2){const err8 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err9 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err11 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err13 of vErrors){if((((((err13.keyword !== "errorMessage") && (!err13.emUsed)) && (err13.instancePath === instancePath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(68)))){emPropParams0 = obj0[err13.keyword];emParamsErrors0 = emErrors0[err13.keyword][err13.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err13);err13.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err14 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema24.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}const emErrs0 = [];for(const err15 of vErrors){if(!err15.emUsed){emErrs0.push(err15);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.allMatch !== undefined){let data6 = data.allMatch;if(Array.isArray(data6)){if(data6.length < 1){const err17 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const len1 = data6.length;for(let i1=0; i1<len1; i1++){let data7 = data6[i1];const _errs26 = errors;let valid13 = false;let passing2 = null;const _errs27 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.equals === undefined){const err18 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data7.equals !== undefined){let data8 = data7.equals;if(((typeof data8 !== "string") && (!(typeof data8 == "number"))) && (typeof data8 !== "boolean")){const err19 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2){valid13 = true;passing2 = 0;}const _errs30 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.oneOf === undefined){const err20 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data7.oneOf !== undefined){let data9 = data7.oneOf;if(Array.isArray(data9)){const len2 = data9.length;for(let i2=0; i2<len2; i2++){let data10 = data9[i2];if((typeof data10 !== "string") && (!(typeof data10 == "number"))){const err21 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 1];}else {if(_valid2){valid13 = true;passing2 = 1;}const _errs35 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.isActive === undefined){const err23 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data7.isActive !== undefined){if(typeof data7.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs35 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 2];}else {if(_valid2){valid13 = true;passing2 = 2;}}}if(!valid13){const err25 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.property === undefined){const err26 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if("simple" !== data7.type){const err27 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data7.property !== undefined){if(typeof data7.property !== "string"){const err28 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams1 = obj0[err30.keyword];emParamsErrors1 = emErrors1[err30.keyword][err30.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err30);err30.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err31 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema24.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs1 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs1.push(err32);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err33 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid0 = _errs20 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err34 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}const pattern4 = new RegExp("^=", "u");const pattern6 = new RegExp("^(100|[1-9]?[0-9])$", "u");const pattern8 = new RegExp("^(?<date>\\d{4}-(?<month>0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))T(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](Z|([+-](0[0-9]|1[0-3]):[0-5][0-9](\\[[^\\]]+\\])?))$", "u");const keyword0 = [];function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs12 = errors;let valid8 = true;const _errs13 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0(data2.property, schema23.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid1){const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid12 = _errs19 === errors;if(valid12){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/allOf/0/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/allOf/0/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs17 === errors;valid8 = _valid1;}if(!valid8){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs25 = errors;let valid14 = false;let passing0 = null;const _errs26 = errors;const _errs29 = errors;let valid16 = false;let passing1 = null;const _errs30 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs30 === errors;if(_valid3){valid16 = true;passing1 = 0;}const _errs33 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs33 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 1];}else {if(_valid3){valid16 = true;passing1 = 1;}const _errs38 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs38 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 2];}else {if(_valid3){valid16 = true;passing1 = 2;}}}if(!valid16){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema24.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs26 === errors;if(_valid2){valid14 = true;passing0 = 0;}const _errs44 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs50 = errors;let valid27 = false;let passing2 = null;const _errs51 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs51 === errors;if(_valid4){valid27 = true;passing2 = 0;}const _errs54 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs54 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 1];}else {if(_valid4){valid27 = true;passing2 = 1;}const _errs59 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs59 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 2];}else {if(_valid4){valid27 = true;passing2 = 2;}}}if(!valid27){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema24.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs44 === errors;if(_valid2 && valid14){valid14 = false;passing0 = [passing0, 1];}else {if(_valid2){valid14 = true;passing0 = 1;}}if(!valid14){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}}}const _errs66 = errors;let valid35 = true;const _errs67 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs69 = errors;const _errs70 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid37 = _errs70 === errors;if(valid37){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs69;if(vErrors !== null){if(_errs69){vErrors.length = _errs69;}else {vErrors = null;}}}}}}var _valid5 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid5){const _errs71 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema22.allOf[0].items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs71 === errors;valid35 = _valid5;}if(!valid35){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}const _errs75 = errors;let valid39 = true;const _errs76 = errors;const _errs77 = errors;let valid40 = false;const _errs78 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data0.type !== undefined){let data22 = data0.type;if(!((data22 === "String") || (data22 === "Text"))){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}var _valid7 = _errs78 === errors;if(_valid7){valid40 = true;}const _errs80 = errors;const _errs81 = errors;const _errs82 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid42 = _errs82 === errors;if(valid42){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}}var _valid7 = _errs80 === errors;if(_valid7 && valid40){valid40 = false;}else {if(_valid7){valid40 = true;}}if(!valid40){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}var _valid6 = _errs76 === errors;errors = _errs75;if(vErrors !== null){if(_errs75){vErrors.length = _errs75;}else {vErrors = null;}}let ifClause0;if(_valid6){const _errs83 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.placeholder !== undefined){if(typeof data0.placeholder !== "string"){const err62 = {instancePath:instancePath+"/" + i0+"/placeholder",schemaPath:"#/allOf/0/items/allOf/3/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var _valid6 = _errs83 === errors;valid39 = _valid6;ifClause0 = "then";}else {const _errs86 = errors;const _errs87 = errors;const _errs88 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.placeholder === undefined) && ("placeholder")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var valid44 = _errs88 === errors;if(valid44){const err64 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}var _valid6 = _errs86 === errors;valid39 = _valid6;ifClause0 = "else";}if(!valid39){const err65 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data24 = data0.value;if(((typeof data24 !== "string") && (!(typeof data24 == "number"))) && (typeof data24 !== "boolean")){const err66 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema22.allOf[0].items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err67 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err68 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err69 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err70 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.choices !== undefined){let data29 = data0.choices;if(Array.isArray(data29)){const len4 = data29.length;for(let i4=0; i4<len4; i4++){let data30 = data29[i4];if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err71 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data30.name === undefined){const err72 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data30.name !== undefined){if(typeof data30.name !== "string"){const err73 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data30.value !== undefined){if(typeof data30.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data30.condition !== undefined){if(!(validate17(data30.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data30,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err75 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err76 of vErrors){if((((((err76.keyword !== "errorMessage") && (!err76.emUsed)) && (err76.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err76.keyword in emErrors2)) && (err76.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err76.schemaPath.slice(40)))){emErrors2[err76.keyword].push(err76);err76.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err77 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema22.allOf[0].items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}const emErrs6 = [];for(const err78 of vErrors){if(!err78.emUsed){emErrs6.push(err78);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.constraints !== undefined){let data34 = data0.constraints;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.notEmpty !== undefined){if(typeof data34.notEmpty !== "boolean"){const err80 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data34.minLength !== undefined){if(!(typeof data34.minLength == "number")){const err81 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data34.maxLength !== undefined){if(!(typeof data34.maxLength == "number")){const err82 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data34.pattern !== undefined){let data38 = data34.pattern;const _errs117 = errors;let valid51 = false;let passing4 = null;const _errs118 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.value !== undefined){if(typeof data38.value !== "string"){const err83 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data38.message !== undefined){if(typeof data38.message !== "string"){const err84 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid8 = _errs118 === errors;if(_valid8){valid51 = true;passing4 = 0;}const _errs124 = errors;if(typeof data38 !== "string"){const err86 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid8 = _errs124 === errors;if(_valid8 && valid51){valid51 = false;passing4 = [passing4, 1];}else {if(_valid8){valid51 = true;passing4 = 1;}}if(!valid51){const err87 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs117;if(vErrors !== null){if(_errs117){vErrors.length = _errs117;}else {vErrors = null;}}}}}else {const err88 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err89 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath,schemaPath:"#/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data42 = data[i5];const _errs133 = errors;let valid56 = true;const _errs134 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data42.binding !== undefined){let data43 = data42.binding;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data43.type !== undefined){if("property" !== data43.type){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}}}}}var _valid9 = _errs134 === errors;errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}if(_valid9){const _errs137 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data45 = data42.type;if(!((((((data45 === "String") || (data45 === "Text")) || (data45 === "Hidden")) || (data45 === "Dropdown")) || (data45 === "Boolean")) || (data45 === "Number"))){const err95 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(errors > 0){const emErrs7 = [];for(const err96 of vErrors){if(((((err96.keyword !== "errorMessage") && (!err96.emUsed)) && ((err96.instancePath === instancePath+"/" + i5+"/type") || ((err96.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err96.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err96.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err96.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs7.push(err96);err96.emUsed = true;}}if(emErrs7.length){const err97 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data45) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const emErrs8 = [];for(const err98 of vErrors){if(!err98.emUsed){emErrs8.push(err98);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid9 = _errs137 === errors;valid56 = _valid9;}if(!valid56){const err99 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const _errs140 = errors;let valid60 = true;const _errs141 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {if(data42.binding !== undefined){let data46 = data42.binding;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data46.type !== undefined){let data47 = data46.type;if(!(((((((((((((((((data47 === "zeebe:input") || (data47 === "zeebe:output")) || (data47 === "zeebe:property")) || (data47 === "zeebe:taskHeader")) || (data47 === "zeebe:taskDefinition:type")) || (data47 === "bpmn:Message#property")) || (data47 === "bpmn:Message#zeebe:subscription#property")) || (data47 === "zeebe:taskDefinition")) || (data47 === "zeebe:calledElement")) || (data47 === "zeebe:linkedResource")) || (data47 === "zeebe:formDefinition")) || (data47 === "zeebe:calledDecision")) || (data47 === "zeebe:script")) || (data47 === "zeebe:assignmentDefinition")) || (data47 === "zeebe:priorityDefinition")) || (data47 === "zeebe:adHoc")) || (data47 === "zeebe:taskSchedule"))){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}}}}var _valid10 = _errs141 === errors;errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}if(_valid10){const _errs144 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data48 = data42.type;if(!((((((data48 === "String") || (data48 === "Text")) || (data48 === "Hidden")) || (data48 === "Dropdown")) || (data48 === "Boolean")) || (data48 === "Number"))){const err103 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(errors > 0){const emErrs9 = [];for(const err104 of vErrors){if(((((err104.keyword !== "errorMessage") && (!err104.emUsed)) && ((err104.instancePath === instancePath+"/" + i5+"/type") || ((err104.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err104.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err104.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err104.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs9.push(err104);err104.emUsed = true;}}if(emErrs9.length){const err105 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data48) + " for binding type " + JSON.stringify(data42 && data42.binding && data42.binding.type) + "; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const emErrs10 = [];for(const err106 of vErrors){if(!err106.emUsed){emErrs10.push(err106);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid10 = _errs144 === errors;valid60 = _valid10;}if(!valid60){const err107 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}const _errs147 = errors;let valid64 = true;const _errs148 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.optional === undefined) && ("optional")){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}else {if(data42.optional !== undefined){if(true !== data42.optional){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}}var _valid11 = _errs148 === errors;errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}if(_valid11){const _errs150 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding !== undefined){let data50 = data42.binding;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.type === undefined){const err110 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data50.type !== undefined){let data51 = data50.type;if(!((((data51 === "zeebe:input") || (data51 === "zeebe:output")) || (data51 === "zeebe:property")) || (data51 === "zeebe:taskHeader"))){const err111 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(errors > 0){const emErrs11 = [];for(const err112 of vErrors){if(((((err112.keyword !== "errorMessage") && (!err112.emUsed)) && ((err112.instancePath === instancePath+"/" + i5+"/binding/type") || ((err112.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err112.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err112.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err112.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs11.push(err112);err112.emUsed = true;}}if(emErrs11.length){const err113 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs11},message:"optional is not supported for binding type " + JSON.stringify(data51) + "; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const emErrs12 = [];for(const err114 of vErrors){if(!err114.emUsed){emErrs12.push(err114);}}vErrors = emErrs12;errors = emErrs12.length;}}}}}var _valid11 = _errs150 === errors;valid64 = _valid11;}if(!valid64){const err115 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const _errs154 = errors;let valid68 = true;const _errs155 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.optional === undefined) && ("optional")){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}else {if(data42.optional !== undefined){if(true !== data42.optional){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}}}var _valid12 = _errs155 === errors;errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}if(_valid12){const _errs157 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.constraints !== undefined){let data53 = data42.constraints;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.notEmpty === undefined){const err118 = {instancePath:instancePath+"/" + i5+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",keyword:"required",params:{missingProperty: "notEmpty"},message:"must have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if(data53.notEmpty !== undefined){if(false !== data53.notEmpty){const err119 = {instancePath:instancePath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if(errors > 0){const emErrs13 = [];for(const err120 of vErrors){if(((((err120.keyword !== "errorMessage") && (!err120.emUsed)) && ((err120.instancePath === instancePath+"/" + i5+"/constraints/notEmpty") || ((err120.instancePath.indexOf(instancePath+"/" + i5+"/constraints/notEmpty") === 0) && (err120.instancePath[instancePath+"/" + i5+"/constraints/notEmpty".length] === "/")))) && (err120.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err120.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs13.push(err120);err120.emUsed = true;}}if(emErrs13.length){const err121 = {instancePath:instancePath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",keyword:"errorMessage",params:{errors: emErrs13},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const emErrs14 = [];for(const err122 of vErrors){if(!err122.emUsed){emErrs14.push(err122);}}vErrors = emErrs14;errors = emErrs14.length;}}}}}var _valid12 = _errs157 === errors;valid68 = _valid12;}if(!valid68){const err123 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}const _errs161 = errors;let valid72 = true;const _errs162 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {if(data42.feel !== undefined){const _errs164 = errors;const _errs165 = errors;if(null !== data42.feel){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var valid74 = _errs165 === errors;if(valid74){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}}}}var _valid13 = _errs162 === errors;errors = _errs161;if(vErrors !== null){if(_errs161){vErrors.length = _errs161;}else {vErrors = null;}}if(_valid13){const _errs166 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err127 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data42.type !== undefined){let data56 = data42.type;if(!((((data56 === "String") || (data56 === "Text")) || (data56 === "Number")) || (data56 === "Boolean"))){const err128 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[4].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(errors > 0){const emErrs15 = [];for(const err129 of vErrors){if(((((err129.keyword !== "errorMessage") && (!err129.emUsed)) && ((err129.instancePath === instancePath+"/" + i5+"/type") || ((err129.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err129.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err129.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err129.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs15.push(err129);err129.emUsed = true;}}if(emErrs15.length){const err130 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs15},message:"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}const emErrs16 = [];for(const err131 of vErrors){if(!err131.emUsed){emErrs16.push(err131);}}vErrors = emErrs16;errors = emErrs16.length;}}}var _valid13 = _errs166 === errors;valid72 = _valid13;}if(!valid72){const err132 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}const _errs169 = errors;let valid76 = true;const _errs170 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.language === undefined) && ("language")){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {if(data42.language !== undefined){const _errs172 = errors;const _errs173 = errors;if(null !== data42.language){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var valid78 = _errs173 === errors;if(valid78){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {errors = _errs172;if(vErrors !== null){if(_errs172){vErrors.length = _errs172;}else {vErrors = null;}}}}}}var _valid14 = _errs170 === errors;errors = _errs169;if(vErrors !== null){if(_errs169){vErrors.length = _errs169;}else {vErrors = null;}}if(_valid14){const _errs174 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){if(!(data42.type === "Text")){const err136 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[5].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(errors > 0){const emErrs17 = [];for(const err137 of vErrors){if(((((err137.keyword !== "errorMessage") && (!err137.emUsed)) && ((err137.instancePath === instancePath+"/" + i5+"/type") || ((err137.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err137.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err137.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type") === 0)) && (err137.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length] === "/")){emErrs17.push(err137);err137.emUsed = true;}}if(emErrs17.length){const err138 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs17},message:"language is only supported for \"Text\" type"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}const emErrs18 = [];for(const err139 of vErrors){if(!err139.emUsed){emErrs18.push(err139);}}vErrors = emErrs18;errors = emErrs18.length;}}}var _valid14 = _errs174 === errors;valid76 = _valid14;}if(!valid76){const err140 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const _errs177 = errors;let valid80 = true;const _errs178 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.value === undefined) && ("value")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid15 = _errs178 === errors;errors = _errs177;if(vErrors !== null){if(_errs177){vErrors.length = _errs177;}else {vErrors = null;}}if(_valid15){const _errs179 = errors;const _errs180 = errors;const _errs181 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.generatedValue === undefined) && ("generatedValue")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var valid81 = _errs181 === errors;if(valid81){const err143 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs180;if(vErrors !== null){if(_errs180){vErrors.length = _errs180;}else {vErrors = null;}}}var _valid15 = _errs179 === errors;valid80 = _valid15;}if(!valid80){const err144 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const _errs183 = errors;let valid82 = true;const _errs184 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.type === undefined) && ("type")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data42.type !== undefined){let data59 = data42.type;if(!((data59 === "Boolean") || (data59 === "Dropdown"))){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}}var _valid16 = _errs184 === errors;errors = _errs183;if(vErrors !== null){if(_errs183){vErrors.length = _errs183;}else {vErrors = null;}}if(_valid16){const _errs186 = errors;const _errs187 = errors;const _errs188 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.generatedValue === undefined) && ("generatedValue")){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var valid84 = _errs188 === errors;if(valid84){const err148 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {errors = _errs187;if(vErrors !== null){if(_errs187){vErrors.length = _errs187;}else {vErrors = null;}}}var _valid16 = _errs186 === errors;valid82 = _valid16;}if(!valid82){const err149 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}const _errs190 = errors;let valid85 = true;const _errs191 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}else {if(data42.type !== undefined){let data60 = data42.type;if(!((data60 === "String") || (data60 === "Text"))){const err151 = {};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}}var _valid17 = _errs191 === errors;errors = _errs190;if(vErrors !== null){if(_errs190){vErrors.length = _errs190;}else {vErrors = null;}}if(_valid17){const _errs193 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.feel !== undefined){let data61 = data42.feel;if(!((data61 === "optional") || (data61 === "required"))){const err152 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/8/then/properties/feel/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[8].then.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}}var _valid17 = _errs193 === errors;valid85 = _valid17;}if(!valid85){const err153 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}const _errs196 = errors;let valid88 = true;const _errs197 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}else {if(data42.feel !== undefined){if("required" !== data42.feel){const err155 = {};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}}}var _valid18 = _errs197 === errors;errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}if(_valid18){const _errs199 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.value !== undefined){let data63 = data42.value;const _errs201 = errors;let valid91 = false;let passing5 = null;const _errs202 = errors;if(typeof data63 === "string"){if(!pattern4.test(data63)){const err156 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/0/pattern",keyword:"pattern",params:{pattern: "^="},message:"must match pattern \""+"^="+"\""};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}else {const err157 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}var _valid19 = _errs202 === errors;if(_valid19){valid91 = true;passing5 = 0;}const _errs204 = errors;if(typeof data63 !== "string"){const err158 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}const _errs206 = errors;const _errs207 = errors;if(typeof data63 === "string"){if(!pattern4.test(data63)){const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var valid92 = _errs207 === errors;if(valid92){const err160 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}else {errors = _errs206;if(vErrors !== null){if(_errs206){vErrors.length = _errs206;}else {vErrors = null;}}}const warning0 = {
750
+ standaloneZeebeValidator.exports = validate14;standaloneZeebeValidator.exports.default = validate14;const schema17 = {"allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"$schema":{"$id":"#/$schema","type":"string","description":"Reference to the Element Template JSON schema this document follows."},"name":{"$id":"#/name","type":"string","description":"Template name. Shown during template selection and editing of a templated element. Required."},"id":{"$id":"#/id","type":"string","description":"Template identifier. Required."},"description":{"$id":"#/description","type":"string","description":"Template description. Shown during template selection and editing of a templated element."},"version":{"$id":"#/version","type":"integer","description":"Optional version of the template. If you add a version to a template, it will be considered unique based on its ID and version. Two templates can have the same ID if their versions are different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Marks the template as deprecated. Value can be either a boolean or an object with a message and a link to migration documentation.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"URL pointing to template documentation. Must be a valid http(s) URL."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to. Required.","default":[],"items":{"$id":"#/appliesTo/items","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","allOf":[{"examples":["bpmn:Task","bpmn:ServiceTask","bpmn:SequenceFlow","bpmn:Process","bpmn:StartEvent","bpmn:Gateway"]}],"errorMessage":{"pattern":"invalid item for \"appliesTo\", should contain namespaced property, example: \"bpmn:Task\""}}},"elementType":{"$id":"#/elementType","type":"object","description":"Object that sets the type of the element. Some properties require a specific value for elementType.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","description":"Specifies the target BPMN element type. The element is replaced with the specified type when a user applies the template. Required if using elementType.","allOf":[{"examples":["bpmn:ServiceTask","bpmn:UserTask","bpmn:StartEvent","bpmn:ExclusiveGateway","bpmn:ParallelGateway"]}],"errorMessage":{"pattern":"invalid item for \"elementType\", should contain namespaced property, example: \"bpmn:Task\""}}},"errorMessage":{"required":{"value":"missing elementType value"}}},"metadata":{"$id":"#/metadata","type":"object","description":"Some custom properties for further configuration.","default":{}},"keywords":{"$id":"#/keywords","type":"array","items":{"type":"string"},"description":"List of keywords to help users find the template. Used in search and filtering, but not displayed in the UI.","default":[]},"groups":{"$id":"#/groups","type":"array","description":"List of custom groups to organize related fields in the properties panel.","allOf":[{"examples":[[{"id":"group-1","label":"My Group"}]]}],"items":{"$id":"#/groups/group","type":"object","default":{},"required":["id","label"],"properties":{"id":{"$id":"#/groups/group/id","type":"string","description":"Uniquely identifies a group object. Required if using groups."},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the group, shown as a section header in the properties panel. Required if using groups."}},"errorMessage":{"required":{"id":"missing id for group \"${0#}\"","label":"missing label for group \"${0#}\""}}}},"documentationRef":{"$id":"#/documentationRef","type":"string","pattern":"^(https|http)://.*","errorMessage":{"pattern":"Malformed documentation URL, must match \"^(https|http)://.*\""}}},"errorMessage":{"required":{"name":"missing template name","id":"missing template id","appliesTo":"missing appliesTo=[]","properties":"missing properties=[]"}}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:SendTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Message#zeebe:subscription#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"enum":["bpmn:ReceiveTask","bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"allOf":[{"if":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}}},"then":{"eventDefinition":{"const":"bpmn:MessageEventDefinition"},"required":["eventDefinition"]}}]}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:CallActivity"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:CallActivity"]}}}],"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"},"property":{"const":"processId"}},"required":["property","type"]}},"required":["binding"]},"errorMessage":"Binding with `property`=`processId` and `type`=`zeebe:calledElement` is required, when using a binding with `type`=`zeebe:calledElement`"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:UserTask"}}}}}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:formDefinition","zeebe:assignmentDefinition","zeebe:priorityDefinition","zeebe:taskSchedule"]}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]},"errorMessage":"When using ${0/0/binding/type}, \"zeebe:userTask\" must be set on the same element"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledDecision"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:BusinessRuleTask"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:BusinessRuleTask"]}}}],"allOf":[{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"decisionId","errorMessage":"Binding type \"zeebe:calledDecision\" must contain property \"decisionId\""}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"resultVariable","errorMessage":"Binding type \"zeebe:calledDecision\" must contain property \"resultVariable\""}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:taskDefinition","zeebe:taskDefinition:type"]}},"required":["type"]}},"required":["binding"]}}}},"required":["properties"],"errorMessage":"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:calledDecision\" is set."}]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:script"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:ScriptTask"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:ScriptTask"]}}}],"allOf":[{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"expression"}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"resultVariable"}},"required":["property"]}},"required":["binding"]}}}},{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:taskDefinition","zeebe:taskDefinition:type"]}},"required":["type"]}},"required":["binding"]}}}},"required":["properties"],"errorMessage":"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:script\" is set."}]}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"},"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]}},"required":["property","type"]},"value":{"const":"versionTag"}},"required":["binding","value"]}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]},"property":{"const":"versionTag"}},"required":["property","type"]}},"required":["binding"]},"errorMessage":"Missing binding with `property`=`versionTag` as binding with `property`=`bindingType` and `value`=`versionTag` is set"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:calledDecision","zeebe:calledElement","zeebe:formDefinition","zeebe:linkedResource"]},"property":{"const":"versionTag"}},"required":["property"]}},"required":["binding"],"not":{"required":["condition"]}}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"}},"required":["property"]},"value":{"const":"versionTag"},"type":{"const":"Hidden"}},"required":["binding","value","type"]},"errorMessage":"Binding with property=`bindingType` and value=`versionTag` must be set when using a binding with property=`versionTag`"}},"required":["properties"]}},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"},"type":{"const":"zeebe:formDefinition"}},"required":["property","type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"const":"formId"}},"required":["property","type"]}},"required":["binding"]},"errorMessage":"`property`=`bindingType` is not supported when using `property`=`externalReference`. Use `formId` with `bindingType`"}},"required":["properties"]}}]},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"property":{"const":"formId"},"type":{"const":"zeebe:formDefinition"}},"required":["property","type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"const":"externalReference"}},"required":["property","type"]}},"required":["binding"]}},"errorMessage":"\"formId\" and \"externalReference\" cannot be used together"}},"required":["properties"]}},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]}},{"$comment":"When zeebe:adHoc output properties are used, both required bindings must be present together","if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"enum":["outputCollection","outputElement"]}},"required":["type","property"]}},"required":["binding"]}}},"required":["properties"]},"then":{"properties":{"properties":{"allOf":[{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputElement"}},"required":["type","property"]}},"required":["binding"]},"errorMessage":"When \"outputCollection\" is defined for \"zeebe:adHoc\", \"outputElement\" must be defined, too"},{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputCollection"}},"required":["type","property"]}},"required":["binding"]},"errorMessage":"When \"outputElement\" is defined for \"zeebe:adHoc\", \"outputCollection\" must be defined, too"}]}},"required":["properties"]}},{"$comment":"When zeebe:taskDefinition is used, bpmn:cancelRemainingInstances, bpmn:completionCondition, and zeebe:activeElementsCollection properties are not allowed","if":{"allOf":[{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]},{"properties":{"properties":{"contains":{"type":"object","properties":{"binding":{"properties":{"type":{"const":"zeebe:taskDefinition"},"property":{"const":"type"}},"required":["type","property"]}},"required":["binding"]}}},"required":["properties"]}]},"then":{"allOf":[{"properties":{"properties":{"items":{"not":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"enum":["cancelRemainingInstances","completionCondition"]}},"required":["type","name"]}},"required":["binding"]},"errorMessage":"Property ${0/binding/name} must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""}}},"required":["properties"]},{"properties":{"properties":{"items":{"not":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"activeElementsCollection"}},"required":["type","property"]}},"required":["binding"]},"errorMessage":"Property ${0/binding/property} must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""}}},"required":["properties"]}]}}]},{"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["eventDefinition","value"],"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]},"eventDefinition":{"const":"bpmn:SignalEventDefinition"}}}}}},{"if":{"properties":{"elementType":{"properties":{"eventDefinition":{"const":"bpmn:SignalEventDefinition"}},"required":["eventDefinition"]}},"required":["elementType"]},"then":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]}},"required":["binding"]},"errorMessage":"Binding with `type`=`bpmn:Signal#property` is required, when using `elementType.eventDefinition`=`bpmn:SignalEventDefinition`"}}}}]},{"$defs":{"timeDateProperty":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"const":"timeDate"}},"required":["type","name"]}},"required":["binding"]},"timeCycleProperty":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"const":"timeCycle"}},"required":["type","name"]}},"required":["binding"]},"timeDurationProperty":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"const":"timeDuration"}},"required":["type","name"]}},"required":["binding"]}},"allOf":[{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"enum":["timeDate","timeCycle","timeDuration"]}},"required":["type","name"]}},"required":["binding"]}}},"required":["properties"]},"then":{"required":["elementType"],"properties":{"elementType":{"required":["eventDefinition","value"],"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"},"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"]}},"errorMessage":{"required":{"eventDefinition":"Timer bindings require elementType.eventDefinition to equal \"bpmn:TimerEventDefinition\""}}}}}},{"if":{"properties":{"elementType":{"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"}},"required":["eventDefinition"]}},"required":["elementType"]},"then":{"properties":{"properties":{"oneOf":[{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty"}},{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty"}},{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty"}}],"errorMessage":"Template with elementType.eventDefinition=\"bpmn:TimerEventDefinition\" must have exactly one binding with type \"bpmn:TimerEventDefinition#property\" and name \"timeDate\", \"timeCycle\", or \"timeDuration\"."}},"required":["properties"]}},{"if":{"properties":{"elementType":{"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"},"value":{"const":"bpmn:IntermediateCatchEvent"}},"required":["eventDefinition","value"]}},"required":["elementType"]},"then":{"properties":{"properties":{"not":{"contains":{"$ref":"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty"},"errorMessage":"Binding with `type`=`bpmn:TimerEventDefinition#property` and `name`=`timeCycle` is only allowed on `bpmn:StartEvent` or `bpmn:BoundaryEvent` templates"}}}}}]},{"if":{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"},"property":{"const":"propagateAllChildVariables"}},"required":["property","type"]},"value":{"const":true}},"required":["binding","value"]}}},"required":["properties"]},"then":{"properties":{"properties":{"not":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]}},"required":["binding"]}},"errorMessage":"Binding with `type`=`zeebe:output` cannot be used when `propagateAllChildVariables` is set to `true`"}},"required":["properties"]}}]},{"allOf":[{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"const":"completionCondition"}},"required":["type","name"]}},"required":["binding"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}},{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:SequenceFlow"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:SequenceFlow"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"const":"conditionExpression"}},"required":["type","name"]}},"required":["binding"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}},{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:ComplexGateway"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:ComplexGateway"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"},"name":{"const":"activationCondition"}},"required":["type","name"]}},"required":["binding"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}},{"if":{"anyOf":[{"required":["elementType"],"properties":{"elementType":{"required":["value"],"properties":{"value":{"const":"bpmn:AdHocSubProcess"}}}}},{"required":["appliesTo"],"properties":{"appliesTo":{"const":["bpmn:AdHocSubProcess"]}}}]},"then":{"properties":{"properties":{"items":{"if":{"properties":{"type":{"enum":["String","Text"]},"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputElement"}},"required":["type","property"]}},"required":["binding","type"]},"then":{"properties":{"feel":{"const":"required"}},"required":["feel"]}}}}}}]}],"properties":{"icon":{"properties":{"contents":{"errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"errorMessage":{"required":{"contents":"missing icon contents"}}},"elementType":{"allOf":[{"allOf":[{"properties":{"eventDefinition":{"$id":"#/elementType/eventDefinition","description":"Define the event definition type for a typed event template. Otherwise, ignore.","enum":["bpmn:MessageEventDefinition","bpmn:SignalEventDefinition","bpmn:TimerEventDefinition","bpmn:ConditionalEventDefinition"]}}},{"if":{"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"required":["value"]}},{"if":{"properties":{"eventDefinition":{"const":"bpmn:TimerEventDefinition"}},"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"]}},"required":["value"]}},{"if":{"properties":{"eventDefinition":{"const":"bpmn:ConditionalEventDefinition"}},"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:BoundaryEvent"]}},"required":["value"]}}]}]}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern9 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const func0 = requireEqual().default;const schema22 = {"allOf":[{"type":"array","description":"List of the template's properties.","allOf":[{"examples":[[{"label":"Name","type":"String","binding":{"type":"property","name":"name"}}]]}],"items":{"type":"object","default":{},"allOf":[{"if":{"properties":{"type":{"const":"Dropdown"}},"required":["type"]},"then":{"required":["choices"],"errorMessage":"must provide choices=[] with \"Dropdown\" type"}},{"definitions":{"condition":{"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"Defines the type of the condition (always \"simple\").","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"Reference to the property used to evaluate the condition."}},"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}},"conditionDependingOnId":{"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}}},"allOf":[{"$comment":"property#condition should not depend on property#id","if":{"required":["id","condition"],"properties":{"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/conditionDependingOnId"}}},"then":{"not":{"required":["condition"]},"errorMessage":"Invalid condition.property, must be different than property.id"}},{"then":{"errorMessage":"Invalid condition.property, must be different than property.id"}}],"properties":{"id":{"type":"string","description":"Unique identifier of the property. Can be used to, for example, reference the property for checks."},"condition":{"type":"object","description":"Object that defines when a property should be displayed in the properties panel and its value should be included in the XML.","allOf":[{"examples":[{"type":"simple","property":"httpMethod","equals":"GET"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]},{"allMatch":[{"type":"simple","property":"authType","equals":"Basic"},{"type":"simple","property":"httpMethod","oneOf":["POST","PUT","DELETE"]}]}]}],"oneOf":[{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},{"properties":{"allMatch":{"$id":"#/allMatch","type":"array","items":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition"},"minItems":1,"description":"List of conditions that must all be met for the property to be active."}},"required":["allMatch"]}]}}},{"if":{"properties":{"type":{"not":{"const":"Number"}}},"required":["type"]},"then":{"properties":{"value":{"type":["string","boolean"]}}}},{"if":{"oneOf":[{"properties":{"type":{"enum":["String","Text"]}},"required":["type"]},{"not":{"required":["type"]}}]},"then":{"properties":{"placeholder":{"type":"string","description":"Placeholder text shown in the property input field when it is empty. Can be used to show example input."}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"Default value to be used if the user does not provide a value or if the type is Hidden."},"description":{"$id":"#/properties/property/description","type":"string","description":"Hint text shown below the property input field."},"label":{"$id":"#/properties/property/label","type":"string","description":"Label text shown above the property input field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Defines whether users can edit the property in the properties panel. By default, all non-hidden properties are editable."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"List of choices for a dropdown field.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"Display name for a choice in a dropdown field. Shown to the user."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"Value for a choice in a dropdown field. Stored in the XML."},"condition":{"$ref":"#/definitions/properties/allOf/0/items/allOf/1/properties/condition"}},"required":["value","name"],"errorMessage":{"required":"{ name, value } must be specified for \"Dropdown\" choices"}}},"constraints":{"$id":"#/properties/property/constraints","type":"object","description":"Object that contains rules to validate user input to the template.","allOf":[{"examples":[{"notEmpty":true}]}],"properties":{"notEmpty":{"$id":"#/properties/property/constraints/notEmpty","type":"boolean","description":"The control field must not be empty."},"minLength":{"$id":"#/properties/property/constraints/minLength","type":"number","description":"The minimal length of a control field value."},"maxLength":{"$id":"#/properties/property/constraints/maxLength","type":"number","description":"The maximal length for a control field value."},"pattern":{"$id":"#/properties/property/constraints/pattern","description":"String or object that defines a regular expression that the user's input must match.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The value of the regular expression."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"Custom error message to show when the user's input does not match the regular expression."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"Group in the properties panel that the property belongs to."}}}},{"$schema":"http://json-schema.org/draft-07/schema","type":"array","description":"List of properties of the element template.","items":{"type":"object","default":{},"required":["binding"],"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"property"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","zeebe:taskDefinition:type","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement","zeebe:linkedResource","zeebe:formDefinition","zeebe:calledDecision","zeebe:script","zeebe:assignmentDefinition","zeebe:priorityDefinition","zeebe:adHoc","zeebe:taskSchedule"]}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"type":{"enum":["String","Text","Hidden","Dropdown","Boolean","Number"],"errorMessage":"invalid property type ${0} for binding type ${1/binding/type}; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader"],"errorMessage":"optional is not supported for binding type ${0}; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"}},"required":["type"]}}}},{"if":{"properties":{"optional":{"const":true}},"required":["optional"]},"then":{"properties":{"constraints":{"properties":{"notEmpty":{"const":false,"errorMessage":"optional is not allowed for truthy \"notEmpty\" constraint"}},"required":["notEmpty"]}}}},{"if":{"properties":{"feel":{"not":{"const":null}}},"required":["feel"]},"then":{"properties":{"type":{"enum":["String","Text","Number","Boolean"],"errorMessage":"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"}},"required":["type"]}},{"if":{"properties":{"language":{"not":{"const":null}}},"required":["language"]},"then":{"properties":{"type":{"enum":["Text"],"errorMessage":"language is only supported for \"Text\" type"}}}},{"if":{"required":["value"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["Boolean","Dropdown"]}},"required":["type"]},"then":{"not":{"required":["generatedValue"]}}},{"if":{"properties":{"type":{"enum":["String","Text"]}},"required":["feel"]},"then":{"properties":{"feel":{"enum":["optional","required"]}}}},{"if":{"properties":{"feel":{"const":"required"}},"required":["feel"]},"then":{"properties":{"value":{"oneOf":[{"type":"string","pattern":"^="},{"type":"string","not":{"pattern":"^="},"deprecated":true}]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:linkedResource"}},"required":["type"]}},"required":["binding"]},"then":{"properties":{"binding":{"properties":{"linkName":{"type":"string"},"property":{"enum":["resourceId","resourceType","bindingType","versionTag"],"errorMessage":"invalid binding.property ${0}; must be any of { resourceId, resourceType, bindingType, versionTag }"}},"required":["linkName","property"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"enum":["zeebe:input","zeebe:output"]}},"required":["type"]},"type":{"enum":["Boolean","Number"]}},"required":["binding","type"]},"then":{"properties":{"feel":{"default":"static"}}}}]},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"const":"formId"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"formId\" cannot be a FEEL expression"}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:formDefinition"},"property":{"enum":["externalReference","formId"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledDecision"},"property":{"const":"resultVariable"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"resultVariable\" cannot be a Feel expression"}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledDecision"},"property":{"enum":["resultVariable","decisionId"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:script"},"property":{"const":"resultVariable"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"resultVariable\" cannot be a Feel expression"}},{"if":{"properties":{"type":{"enum":["String","Text"]},"binding":{"properties":{"type":{"const":"zeebe:script"},"property":{"const":"expression"}},"required":["type","property"]}},"required":["type","binding"]},"then":{"properties":{"feel":{"enum":["required"]}},"required":["feel"]}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:script"},"property":{"enum":["resultVariable","expression"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"property":{"const":"bindingType"},"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type","value"],"properties":{"choices":{"type":"array","items":{"properties":{"value":{"enum":["latest","versionTag","deployment"]}}}},"type":{"enum":["Hidden","Dropdown"],"errorMessage":"Incorrect type ${0}. Must be one of { Hidden, Dropdown } for binding with `property`=`bindingType`"},"value":{"enum":["latest","versionTag","deployment"]}}}},{"if":{"properties":{"binding":{"properties":{"property":{"const":"versionTag"},"type":{"enum":["zeebe:calledDecision","zeebe:formDefinition","zeebe:calledElement","zeebe:linkedResource"]}},"required":["type","property"]}},"required":["binding"]},"then":{"allOf":[{"required":["type"],"properties":{"type":{"enum":["Hidden","Dropdown","String","Text"],"errorMessage":"Incorrect type ${0}. Must be one of { String, Text, Hidden, Dropdown } for binding with `property`=`versionTag`"}}},{"not":{"required":["feel"]},"errorMessage":"Binding with `property`=`versionTag` does not support `feel`"}]}}]},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:assignmentDefinition"},"property":{"enum":["assignee","candidateUsers","candidateGroups"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"allOf":[{"if":{"type":"object","properties":{"binding":{"properties":{"type":{"const":"zeebe:priorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding"]},"then":{"anyOf":[{"required":["type"],"properties":{"type":{"enum":["Hidden","Number","Dropdown"]}}},{"required":["type","feel"],"properties":{"type":{"enum":["String","Text"]},"feel":{"const":"required"}}}]}},{"if":{"type":"object","properties":{"type":{"const":"Number"},"binding":{"properties":{"type":{"const":"zeebe:priorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding","value","type"]},"then":{"properties":{"value":{"type":"integer","minimum":0,"maximum":100}}}},{"if":{"type":"object","properties":{"type":{"enum":["Hidden","Dropdown"]},"binding":{"properties":{"type":{"const":"zeebe:priorityDefinition"},"property":{"const":"priority"}},"required":["type","property"]}},"required":["binding","type"]},"then":{"properties":{"value":{"type":"string","pattern":"^(100|[1-9]?[0-9])$","errorMessage":"Invalid value for priority. Must be between 0 and 100"},"choices":{"items":{"properties":{"value":{"type":"string","pattern":"^(100|[1-9]?[0-9])$","errorMessage":"Invalid value for priority. Must be between 0 and 100"}}}}}}}]},{"allOf":[{"$comment":"AdHoc output properties require string-based types (Hidden, String, Text, or Dropdown)","if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"enum":["outputCollection","outputElement"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text","Dropdown"]}}}},{"$comment":"outputCollection properties must not be FEEL expressions","if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:adHoc"},"property":{"const":"outputCollection"}},"required":["type","property"]}},"required":["binding"]},"then":{"not":{"required":["feel"]},"errorMessage":"Property \"outputCollection\" cannot be a FEEL expression"}}]},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:taskSchedule"},"property":{"enum":["dueDate","followUpDate"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Dropdown","Text"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:taskSchedule"},"property":{"enum":["dueDate","followUpDate"]}},"required":["type","property"]}},"required":["binding","value"],"not":{"required":["feel"]}},"then":{"properties":{"value":{"type":"string","pattern":"^(?<date>\\d{4}-(?<month>0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))T(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](Z|([+-](0[0-9]|1[0-3]):[0-5][0-9](\\[[^\\]]+\\])?))$","description":"The value must be conforming to an ISO 8601 combined date and time representation.","errorMessage":"Must be conforming to an ISO 8601 combined date and time representation"}},"required":["value"]}}]},{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["String","Text","Hidden","Dropdown"]}}}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:calledElement"},"property":{"enum":["propagateAllParentVariables","propagateAllChildVariables"]}},"required":["type","property"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","Boolean"]},"value":{"type":"boolean"}},"not":{"required":["feel"]},"errorMessage":"FEEL is not supported for `zeebe:calledElement` variable propagation properties"}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"},"name":{"enum":["timeDate","timeDuration","timeCycle"]}},"required":["type","name"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text"]}}}},{"allOf":[{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#property"},"name":{"const":"condition"}},"required":["type","name"]}},"required":["binding"]},"then":{"allOf":[{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text"]}}},{"required":["feel"],"properties":{"feel":{"const":"required"}}}]}},{"if":{"properties":{"binding":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"},"name":{"const":"variableEvents"}},"required":["type","name"]}},"required":["binding"]},"then":{"required":["type"],"properties":{"type":{"enum":["Hidden","String","Text"]}}}}]}],"properties":{"binding":{"$id":"#/properties/property/binding","type":"object","description":"Specifying how the property is mapped to BPMN or Zeebe extension elements and attributes.","required":["type"],"allOf":[{"if":{"properties":{"type":{"enum":["property","zeebe:property","zeebe:input","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","bpmn:Signal#property","bpmn:TimerEventDefinition#property","bpmn:ConditionalEventDefinition#property","bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"]}},"required":["type"]},"then":{"required":["name"],"errorMessage":"property.binding ${0/type} requires name"}},{"if":{"properties":{"type":{"const":"zeebe:output"}},"required":["type"]},"then":{"required":["source"],"errorMessage":"property.binding ${0/type} requires source"}},{"if":{"properties":{"type":{"const":"zeebe:taskHeader"}},"required":["type"]},"then":{"required":["key"],"errorMessage":"property.binding ${0/type} requires key"}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["type","retries"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskDefinition:type"}},"required":["type"]},"then":{"deprecated":true}},{"if":{"properties":{"type":{"const":"zeebe:calledElement"}},"required":["type"]},"then":{"properties":{"property":{"enum":["processId","bindingType","versionTag","propagateAllParentVariables","propagateAllChildVariables"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:script"}},"required":["type"]},"then":{"properties":{"property":{"enum":["expression","resultVariable"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:formDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["formId","externalReference","bindingType","versionTag"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:calledDecision"}},"required":["type"]},"then":{"properties":{"property":{"enum":["decisionId","resultVariable","versionTag","bindingType"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:assignmentDefinition"}},"required":["type"]},"then":{"properties":{"property":{"enum":["assignee","candidateUsers","candidateGroups"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:priorityDefinition"}},"required":["type"]},"then":{"properties":{"property":{"const":"priority"}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:adHoc"}},"required":["type"]},"then":{"properties":{"property":{"enum":["activeElementsCollection","outputCollection","outputElement"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:taskSchedule"}},"required":["type"]},"then":{"properties":{"property":{"enum":["dueDate","followUpDate"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"bpmn:Signal#property"}},"required":["type"]},"then":{"properties":{"name":{"const":"name"}},"required":["name"]}},{"if":{"properties":{"type":{"const":"bpmn:TimerEventDefinition#property"}},"required":["type"]},"then":{"properties":{"name":{"enum":["timeCycle","timeDate","timeDuration"]}},"required":["name"]}},{"allOf":[{"if":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#property"}},"required":["type"]},"then":{"properties":{"name":{"const":"condition"}},"required":["name"]}},{"if":{"properties":{"type":{"const":"bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"}},"required":["type"]},"then":{"properties":{"name":{"const":"variableEvents"}},"required":["name"]}}]},{"examples":[{"type":"property","name":"name"},{"type":"zeebe:input","name":"input"},{"type":"zeebe:output","source":"output"},{"type":"zeebe:property","name":"property"},{"type":"zeebe:taskHeader","key":"key"},{"type":"zeebe:taskDefinition","property":"retries"},{"type":"zeebe:taskDefinition","property":"type"}]}],"properties":{"type":{"$id":"#/properties/property/binding/type","type":"string","description":"The type of a property binding.","enum":["property","zeebe:taskDefinition:type","zeebe:input","zeebe:output","zeebe:property","zeebe:taskHeader","bpmn:Message#property","bpmn:Message#zeebe:subscription#property","zeebe:taskDefinition","zeebe:calledElement","zeebe:linkedResource","zeebe:userTask","zeebe:formDefinition","zeebe:calledDecision","zeebe:script","zeebe:assignmentDefinition","zeebe:priorityDefinition","zeebe:adHoc","zeebe:taskSchedule","bpmn:Signal#property","bpmn:TimerEventDefinition#property","bpmn:ConditionalEventDefinition#property","bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"],"errorMessage":"invalid property.binding type ${0}; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script, zeebe:assignmentDefinition, zeebe:priorityDefinition, zeebe:adHoc, zeebe:taskSchedule, bpmn:Signal#property, bpmn:TimerEventDefinition#property }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of the property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"Source of the output parameter for an output mapping (created with zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"Key of a task header (created with zeebe:taskHeader)."},"property":{"$id":"#/properties/property/binding/property","type":"string","description":"Name of a binding property."},"linkName":{"$id":"#/properties/property/binding/linkName","type":"string","description":"The `linkName` of the element (zeebe:linkedResource)."}}},"optional":{"$id":"#/optional","type":"boolean","description":"Indicates whether a property is optional. Optional bindings do not persist empty values in the underlying BPMN 2.0 XML."},"feel":{"$id":"#/properties/property/feel","type":"string","description":"Defines whether the property supports FEEL expressions. Values can be \"optional\" (toggle), \"required\", or \"static\" (for Boolean/Number fields, persisted as FEEL).","enum":["optional","required","static"]},"language":{"$id":"#/properties/property/language","type":"string","description":"Indicates that the field is a custom language editor"},"generatedValue":{"$id":"#/properties/property/generatedValue","type":"object","description":"Object that defines how a default value should be generated.","required":["type"],"properties":{"type":{"const":"uuid","description":"Value is generated as UUID."}}},"tooltip":{"$id":"#/properties/property/tooltip","type":"string","description":"Hints for the control field."}},"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}}}}]};const schema23 = {"properties":{"property":{"const":{"$data":"2/id"}}}};const schema24 = {"oneOf":[{"description":"Checks if the referenced property's value is in the list of values defined in the condition.","properties":{"equals":{"description":"Checks if the referenced property's value is equal to the value defined in the condition.","type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"Checks if the referenced property is currently active and not hidden by other conditions."}},"required":["isActive"]}],"errorMessage":{"required":{"property":"missing property name for condition"}}};function validate17(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(!(data && typeof data == "object" && !Array.isArray(data))){const err0 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}const _errs1 = errors;let valid0 = false;let passing0 = null;const _errs2 = errors;const _errs5 = errors;let valid2 = false;let passing1 = null;const _errs6 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.equals === undefined){const err1 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.equals !== undefined){let data0 = data.equals;if(((typeof data0 !== "string") && (!(typeof data0 == "number"))) && (typeof data0 !== "boolean")){const err2 = {instancePath:instancePath+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}}var _valid1 = _errs6 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs9 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.oneOf === undefined){const err3 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.oneOf !== undefined){let data1 = data.oneOf;if(Array.isArray(data1)){const len0 = data1.length;for(let i0=0; i0<len0; i0++){let data2 = data1[i0];if((typeof data2 !== "string") && (!(typeof data2 == "number"))){const err4 = {instancePath:instancePath+"/oneOf/" + i0,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}}else {const err5 = {instancePath:instancePath+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}}var _valid1 = _errs9 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}const _errs14 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.isActive === undefined){const err6 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if(data.isActive !== undefined){if(typeof data.isActive !== "boolean"){const err7 = {instancePath:instancePath+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}var _valid1 = _errs14 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 2];}else {if(_valid1){valid2 = true;passing1 = 2;}}}if(!valid2){const err8 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.property === undefined){const err9 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data.type !== undefined){if("simple" !== data.type){const err10 = {instancePath:instancePath+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}if(data.property !== undefined){if(typeof data.property !== "string"){const err11 = {instancePath:instancePath+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}}else {const err12 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err13 of vErrors){if((((((err13.keyword !== "errorMessage") && (!err13.emUsed)) && (err13.instancePath === instancePath)) && (err13.keyword in emErrors0)) && (err13.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err13.schemaPath.slice(68)))){emPropParams0 = obj0[err13.keyword];emParamsErrors0 = emErrors0[err13.keyword][err13.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err13);err13.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err14 = {instancePath,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema24.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}const emErrs0 = [];for(const err15 of vErrors){if(!err15.emUsed){emErrs0.push(err15);}}vErrors = emErrs0;errors = emErrs0.length;}var _valid0 = _errs2 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs20 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.allMatch === undefined){const err16 = {instancePath,schemaPath:"#/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if(data.allMatch !== undefined){let data6 = data.allMatch;if(Array.isArray(data6)){if(data6.length < 1){const err17 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const len1 = data6.length;for(let i1=0; i1<len1; i1++){let data7 = data6[i1];const _errs26 = errors;let valid13 = false;let passing2 = null;const _errs27 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.equals === undefined){const err18 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data7.equals !== undefined){let data8 = data7.equals;if(((typeof data8 !== "string") && (!(typeof data8 == "number"))) && (typeof data8 !== "boolean")){const err19 = {instancePath:instancePath+"/allMatch/" + i1+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid2 = _errs27 === errors;if(_valid2){valid13 = true;passing2 = 0;}const _errs30 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.oneOf === undefined){const err20 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data7.oneOf !== undefined){let data9 = data7.oneOf;if(Array.isArray(data9)){const len2 = data9.length;for(let i2=0; i2<len2; i2++){let data10 = data9[i2];if((typeof data10 !== "string") && (!(typeof data10 == "number"))){const err21 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/allMatch/" + i1+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid2 = _errs30 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 1];}else {if(_valid2){valid13 = true;passing2 = 1;}const _errs35 = errors;if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.isActive === undefined){const err23 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data7.isActive !== undefined){if(typeof data7.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/allMatch/" + i1+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid2 = _errs35 === errors;if(_valid2 && valid13){valid13 = false;passing2 = [passing2, 2];}else {if(_valid2){valid13 = true;passing2 = 2;}}}if(!valid13){const err25 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs26;if(vErrors !== null){if(_errs26){vErrors.length = _errs26;}else {vErrors = null;}}}if(data7 && typeof data7 == "object" && !Array.isArray(data7)){if(data7.property === undefined){const err26 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data7.type !== undefined){if("simple" !== data7.type){const err27 = {instancePath:instancePath+"/allMatch/" + i1+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data7.property !== undefined){if(typeof data7.property !== "string"){const err28 = {instancePath:instancePath+"/allMatch/" + i1+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/allMatch/" + i1)) && (err30.keyword in emErrors1)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams1 = obj0[err30.keyword];emParamsErrors1 = emErrors1[err30.keyword][err30.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err30);err30.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err31 = {instancePath:instancePath+"/allMatch/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema24.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs1 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs1.push(err32);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err33 = {instancePath:instancePath+"/allMatch",schemaPath:"#/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}}var _valid0 = _errs20 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err34 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {errors = _errs1;if(vErrors !== null){if(_errs1){vErrors.length = _errs1;}else {vErrors = null;}}}validate17.errors = vErrors;return errors === 0;}const pattern4 = new RegExp("^=", "u");const pattern6 = new RegExp("^(100|[1-9]?[0-9])$", "u");const pattern8 = new RegExp("^(?<date>\\d{4}-(?<month>0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))T(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](Z|([+-](0[0-9]|1[0-3]):[0-5][0-9](\\[[^\\]]+\\])?))$", "u");const keyword0 = [];function validate16(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){let data0 = data[i0];const _errs5 = errors;let valid5 = true;const _errs6 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data0.type !== undefined){if("Dropdown" !== data0.type){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}}}}var _valid0 = _errs6 === errors;errors = _errs5;if(vErrors !== null){if(_errs5){vErrors.length = _errs5;}else {vErrors = null;}}if(_valid0){const _errs8 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.choices === undefined){const err2 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/required",keyword:"required",params:{missingProperty: "choices"},message:"must have required property '"+"choices"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}}if(errors > 0){const emErrs0 = [];for(const err3 of vErrors){if(((((err3.keyword !== "errorMessage") && (!err3.emUsed)) && ((err3.instancePath === instancePath+"/" + i0) || ((err3.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err3.instancePath[instancePath+"/" + i0.length] === "/")))) && (err3.schemaPath.indexOf("#/allOf/0/items/allOf/0/then") === 0)) && (err3.schemaPath["#/allOf/0/items/allOf/0/then".length] === "/")){emErrs0.push(err3);err3.emUsed = true;}}if(emErrs0.length){const err4 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs0},message:"must provide choices=[] with \"Dropdown\" type"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}const emErrs1 = [];for(const err5 of vErrors){if(!err5.emUsed){emErrs1.push(err5);}}vErrors = emErrs1;errors = emErrs1.length;}var _valid0 = _errs8 === errors;valid5 = _valid0;}if(!valid5){const err6 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}const _errs12 = errors;let valid8 = true;const _errs13 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(((data0.id === undefined) && ("id")) || ((data0.condition === undefined) && ("condition"))){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}else {if(data0.condition !== undefined){let data2 = data0.condition;if(data2 && typeof data2 == "object" && !Array.isArray(data2)){if((data2.property === undefined) && ("property")){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data2.property !== undefined){if(!func0(data2.property, schema23.properties.property.const)){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}}}}}}var _valid1 = _errs13 === errors;errors = _errs12;if(vErrors !== null){if(_errs12){vErrors.length = _errs12;}else {vErrors = null;}}if(_valid1){const _errs17 = errors;const _errs18 = errors;const _errs19 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.condition === undefined) && ("condition")){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}}var valid12 = _errs19 === errors;if(valid12){const err11 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}else {errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}}if(errors > 0){const emErrs2 = [];for(const err12 of vErrors){if(((((err12.keyword !== "errorMessage") && (!err12.emUsed)) && ((err12.instancePath === instancePath+"/" + i0) || ((err12.instancePath.indexOf(instancePath+"/" + i0) === 0) && (err12.instancePath[instancePath+"/" + i0.length] === "/")))) && (err12.schemaPath.indexOf("#/allOf/0/items/allOf/1/allOf/0/then") === 0)) && (err12.schemaPath["#/allOf/0/items/allOf/1/allOf/0/then".length] === "/")){emErrs2.push(err12);err12.emUsed = true;}}if(emErrs2.length){const err13 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs2},message:"Invalid condition.property, must be different than property.id"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}const emErrs3 = [];for(const err14 of vErrors){if(!err14.emUsed){emErrs3.push(err14);}}vErrors = emErrs3;errors = emErrs3.length;}var _valid1 = _errs17 === errors;valid8 = _valid1;}if(!valid8){const err15 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.id !== undefined){if(typeof data0.id !== "string"){const err16 = {instancePath:instancePath+"/" + i0+"/id",schemaPath:"#/allOf/0/items/allOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}}if(data0.condition !== undefined){let data5 = data0.condition;if(!(data5 && typeof data5 == "object" && !Array.isArray(data5))){const err17 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}const _errs25 = errors;let valid14 = false;let passing0 = null;const _errs26 = errors;const _errs29 = errors;let valid16 = false;let passing1 = null;const _errs30 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.equals === undefined){const err18 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}if(data5.equals !== undefined){let data6 = data5.equals;if(((typeof data6 !== "string") && (!(typeof data6 == "number"))) && (typeof data6 !== "boolean")){const err19 = {instancePath:instancePath+"/" + i0+"/condition/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}}var _valid3 = _errs30 === errors;if(_valid3){valid16 = true;passing1 = 0;}const _errs33 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.oneOf === undefined){const err20 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data5.oneOf !== undefined){let data7 = data5.oneOf;if(Array.isArray(data7)){const len1 = data7.length;for(let i1=0; i1<len1; i1++){let data8 = data7[i1];if((typeof data8 !== "string") && (!(typeof data8 == "number"))){const err21 = {instancePath:instancePath+"/" + i0+"/condition/oneOf/" + i1,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}}else {const err22 = {instancePath:instancePath+"/" + i0+"/condition/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}}}var _valid3 = _errs33 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 1];}else {if(_valid3){valid16 = true;passing1 = 1;}const _errs38 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.isActive === undefined){const err23 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if(data5.isActive !== undefined){if(typeof data5.isActive !== "boolean"){const err24 = {instancePath:instancePath+"/" + i0+"/condition/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}var _valid3 = _errs38 === errors;if(_valid3 && valid16){valid16 = false;passing1 = [passing1, 2];}else {if(_valid3){valid16 = true;passing1 = 2;}}}if(!valid16){const err25 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.property === undefined){const err26 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data5.type !== undefined){if("simple" !== data5.type){const err27 = {instancePath:instancePath+"/" + i0+"/condition/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}}if(data5.property !== undefined){if(typeof data5.property !== "string"){const err28 = {instancePath:instancePath+"/" + i0+"/condition/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}else {const err29 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(errors > 0){const emErrors0 = {"required":{"property":[]}};const templates0 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err30 of vErrors){if((((((err30.keyword !== "errorMessage") && (!err30.emUsed)) && (err30.instancePath === instancePath+"/" + i0+"/condition")) && (err30.keyword in emErrors0)) && (err30.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err30.schemaPath.slice(68)))){emPropParams0 = obj0[err30.keyword];emParamsErrors0 = emErrors0[err30.keyword][err30.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err30);err30.emUsed = true;}}}for(const key0 in emErrors0){for(const keyProp0 in emErrors0[key0]){emParamsErrors0 = emErrors0[key0][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates0[key0] && templates0[key0][keyProp0];const err31 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema24.errorMessage[key0][keyProp0]};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}const emErrs4 = [];for(const err32 of vErrors){if(!err32.emUsed){emErrs4.push(err32);}}vErrors = emErrs4;errors = emErrs4.length;}var _valid2 = _errs26 === errors;if(_valid2){valid14 = true;passing0 = 0;}const _errs44 = errors;if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.allMatch === undefined){const err33 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "allMatch"},message:"must have required property '"+"allMatch"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data5.allMatch !== undefined){let data12 = data5.allMatch;if(Array.isArray(data12)){if(data12.length < 1){const err34 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}const len2 = data12.length;for(let i2=0; i2<len2; i2++){let data13 = data12[i2];const _errs50 = errors;let valid27 = false;let passing2 = null;const _errs51 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.equals === undefined){const err35 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/required",keyword:"required",params:{missingProperty: "equals"},message:"must have required property '"+"equals"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data13.equals !== undefined){let data14 = data13.equals;if(((typeof data14 !== "string") && (!(typeof data14 == "number"))) && (typeof data14 !== "boolean")){const err36 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/equals",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/0/properties/equals/type",keyword:"type",params:{type: schema24.oneOf[0].properties.equals.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}var _valid4 = _errs51 === errors;if(_valid4){valid27 = true;passing2 = 0;}const _errs54 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.oneOf === undefined){const err37 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/required",keyword:"required",params:{missingProperty: "oneOf"},message:"must have required property '"+"oneOf"+"'"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(data13.oneOf !== undefined){let data15 = data13.oneOf;if(Array.isArray(data15)){const len3 = data15.length;for(let i3=0; i3<len3; i3++){let data16 = data15[i3];if((typeof data16 !== "string") && (!(typeof data16 == "number"))){const err38 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf/" + i3,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/items/type",keyword:"type",params:{type: schema24.oneOf[1].properties.oneOf.items.type},message:"must be string,number"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}else {const err39 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/oneOf",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/1/properties/oneOf/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}var _valid4 = _errs54 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 1];}else {if(_valid4){valid27 = true;passing2 = 1;}const _errs59 = errors;if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.isActive === undefined){const err40 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/required",keyword:"required",params:{missingProperty: "isActive"},message:"must have required property '"+"isActive"+"'"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if(data13.isActive !== undefined){if(typeof data13.isActive !== "boolean"){const err41 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/isActive",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf/2/properties/isActive/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}}var _valid4 = _errs59 === errors;if(_valid4 && valid27){valid27 = false;passing2 = [passing2, 2];}else {if(_valid4){valid27 = true;passing2 = 2;}}}if(!valid27){const err42 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}if(data13 && typeof data13 == "object" && !Array.isArray(data13)){if(data13.property === undefined){const err43 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(data13.type !== undefined){if("simple" !== data13.type){const err44 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/type",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/type/const",keyword:"const",params:{allowedValue: "simple"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(data13.property !== undefined){if(typeof data13.property !== "string"){const err45 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2+"/property",schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}}else {const err46 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if(errors > 0){const emErrors1 = {"required":{"property":[]}};const templates1 = {required:{}};let emPropParams1;let emParamsErrors1;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath+"/" + i0+"/condition/allMatch/" + i2)) && (err47.keyword in emErrors1)) && (err47.schemaPath.indexOf("#/definitions/properties/allOf/0/items/allOf/1/definitions/condition") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(68)))){emPropParams1 = obj0[err47.keyword];emParamsErrors1 = emErrors1[err47.keyword][err47.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err47);err47.emUsed = true;}}}for(const key1 in emErrors1){for(const keyProp1 in emErrors1[key1]){emParamsErrors1 = emErrors1[key1][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates1[key1] && templates1[key1][keyProp1];const err48 = {instancePath:instancePath+"/" + i0+"/condition/allMatch/" + i2,schemaPath:"#/definitions/properties/allOf/0/items/allOf/1/definitions/condition/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema24.errorMessage[key1][keyProp1]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}}}else {const err50 = {instancePath:instancePath+"/" + i0+"/condition/allMatch",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf/1/properties/allMatch/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}}}var _valid2 = _errs44 === errors;if(_valid2 && valid14){valid14 = false;passing0 = [passing0, 1];}else {if(_valid2){valid14 = true;passing0 = 1;}}if(!valid14){const err51 = {instancePath:instancePath+"/" + i0+"/condition",schemaPath:"#/allOf/0/items/allOf/1/properties/condition/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {errors = _errs25;if(vErrors !== null){if(_errs25){vErrors.length = _errs25;}else {vErrors = null;}}}}}const _errs66 = errors;let valid35 = true;const _errs67 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data0.type !== undefined){const _errs69 = errors;const _errs70 = errors;if("Number" !== data0.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}var valid37 = _errs70 === errors;if(valid37){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs69;if(vErrors !== null){if(_errs69){vErrors.length = _errs69;}else {vErrors = null;}}}}}}var _valid5 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid5){const _errs71 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data21 = data0.value;if((typeof data21 !== "string") && (typeof data21 !== "boolean")){const err55 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/allOf/2/then/properties/value/type",keyword:"type",params:{type: schema22.allOf[0].items.allOf[2].then.properties.value.type},message:"must be string,boolean"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}}}var _valid5 = _errs71 === errors;valid35 = _valid5;}if(!valid35){const err56 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}const _errs75 = errors;let valid39 = true;const _errs76 = errors;const _errs77 = errors;let valid40 = false;const _errs78 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}else {if(data0.type !== undefined){let data22 = data0.type;if(!((data22 === "String") || (data22 === "Text"))){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}}var _valid7 = _errs78 === errors;if(_valid7){valid40 = true;}const _errs80 = errors;const _errs81 = errors;const _errs82 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.type === undefined) && ("type")){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}}var valid42 = _errs82 === errors;if(valid42){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}}var _valid7 = _errs80 === errors;if(_valid7 && valid40){valid40 = false;}else {if(_valid7){valid40 = true;}}if(!valid40){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {errors = _errs77;if(vErrors !== null){if(_errs77){vErrors.length = _errs77;}else {vErrors = null;}}}var _valid6 = _errs76 === errors;errors = _errs75;if(vErrors !== null){if(_errs75){vErrors.length = _errs75;}else {vErrors = null;}}let ifClause0;if(_valid6){const _errs83 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.placeholder !== undefined){if(typeof data0.placeholder !== "string"){const err62 = {instancePath:instancePath+"/" + i0+"/placeholder",schemaPath:"#/allOf/0/items/allOf/3/then/properties/placeholder/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}}}var _valid6 = _errs83 === errors;valid39 = _valid6;ifClause0 = "then";}else {const _errs86 = errors;const _errs87 = errors;const _errs88 = errors;if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if((data0.placeholder === undefined) && ("placeholder")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}}var valid44 = _errs88 === errors;if(valid44){const err64 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/else/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {errors = _errs87;if(vErrors !== null){if(_errs87){vErrors.length = _errs87;}else {vErrors = null;}}}var _valid6 = _errs86 === errors;valid39 = _valid6;ifClause0 = "else";}if(!valid39){const err65 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/allOf/3/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.value !== undefined){let data24 = data0.value;if(((typeof data24 !== "string") && (!(typeof data24 == "number"))) && (typeof data24 !== "boolean")){const err66 = {instancePath:instancePath+"/" + i0+"/value",schemaPath:"#/allOf/0/items/properties/value/type",keyword:"type",params:{type: schema22.allOf[0].items.properties.value.type},message:"must be string,number,boolean"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data0.description !== undefined){if(typeof data0.description !== "string"){const err67 = {instancePath:instancePath+"/" + i0+"/description",schemaPath:"#/allOf/0/items/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}if(data0.label !== undefined){if(typeof data0.label !== "string"){const err68 = {instancePath:instancePath+"/" + i0+"/label",schemaPath:"#/allOf/0/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}if(data0.type !== undefined){if(typeof data0.type !== "string"){const err69 = {instancePath:instancePath+"/" + i0+"/type",schemaPath:"#/allOf/0/items/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}if(data0.editable !== undefined){if(typeof data0.editable !== "boolean"){const err70 = {instancePath:instancePath+"/" + i0+"/editable",schemaPath:"#/allOf/0/items/properties/editable/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(data0.choices !== undefined){let data29 = data0.choices;if(Array.isArray(data29)){const len4 = data29.length;for(let i4=0; i4<len4; i4++){let data30 = data29[i4];if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if(data30.value === undefined){const err71 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data30.name === undefined){const err72 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data30.name !== undefined){if(typeof data30.name !== "string"){const err73 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/name",schemaPath:"#/allOf/0/items/properties/choices/items/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data30.value !== undefined){if(typeof data30.value !== "string"){const err74 = {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/value",schemaPath:"#/allOf/0/items/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}if(data30.condition !== undefined){if(!(validate17(data30.condition, {instancePath:instancePath+"/" + i0+"/choices/" + i4+"/condition",parentData:data30,parentDataProperty:"condition",rootData}))){vErrors = vErrors === null ? validate17.errors : vErrors.concat(validate17.errors);errors = vErrors.length;}}}else {const err75 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(errors > 0){const emErrors2 = {"required":[]};const templates2 = {};for(const err76 of vErrors){if((((((err76.keyword !== "errorMessage") && (!err76.emUsed)) && (err76.instancePath === instancePath+"/" + i0+"/choices/" + i4)) && (err76.keyword in emErrors2)) && (err76.schemaPath.indexOf("#/allOf/0/items/properties/choices/items") === 0)) && (/^\/[^\/]*$/.test(err76.schemaPath.slice(40)))){emErrors2[err76.keyword].push(err76);err76.emUsed = true;}}for(const key2 in emErrors2){if(emErrors2[key2].length){const err77 = {instancePath:instancePath+"/" + i0+"/choices/" + i4,schemaPath:"#/allOf/0/items/properties/choices/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors2[key2]},message:key2 in templates2 ? templates2[key2]() : schema22.allOf[0].items.properties.choices.items.errorMessage[key2]};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}const emErrs6 = [];for(const err78 of vErrors){if(!err78.emUsed){emErrs6.push(err78);}}vErrors = emErrs6;errors = emErrs6.length;}}}else {const err79 = {instancePath:instancePath+"/" + i0+"/choices",schemaPath:"#/allOf/0/items/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data0.constraints !== undefined){let data34 = data0.constraints;if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.notEmpty !== undefined){if(typeof data34.notEmpty !== "boolean"){const err80 = {instancePath:instancePath+"/" + i0+"/constraints/notEmpty",schemaPath:"#/allOf/0/items/properties/constraints/properties/notEmpty/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}}if(data34.minLength !== undefined){if(!(typeof data34.minLength == "number")){const err81 = {instancePath:instancePath+"/" + i0+"/constraints/minLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/minLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}if(data34.maxLength !== undefined){if(!(typeof data34.maxLength == "number")){const err82 = {instancePath:instancePath+"/" + i0+"/constraints/maxLength",schemaPath:"#/allOf/0/items/properties/constraints/properties/maxLength/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}if(data34.pattern !== undefined){let data38 = data34.pattern;const _errs117 = errors;let valid51 = false;let passing4 = null;const _errs118 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.value !== undefined){if(typeof data38.value !== "string"){const err83 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/value",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(data38.message !== undefined){if(typeof data38.message !== "string"){const err84 = {instancePath:instancePath+"/" + i0+"/constraints/pattern/message",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid8 = _errs118 === errors;if(_valid8){valid51 = true;passing4 = 0;}const _errs124 = errors;if(typeof data38 !== "string"){const err86 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}var _valid8 = _errs124 === errors;if(_valid8 && valid51){valid51 = false;passing4 = [passing4, 1];}else {if(_valid8){valid51 = true;passing4 = 1;}}if(!valid51){const err87 = {instancePath:instancePath+"/" + i0+"/constraints/pattern",schemaPath:"#/allOf/0/items/properties/constraints/properties/pattern/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {errors = _errs117;if(vErrors !== null){if(_errs117){vErrors.length = _errs117;}else {vErrors = null;}}}}}else {const err88 = {instancePath:instancePath+"/" + i0+"/constraints",schemaPath:"#/allOf/0/items/properties/constraints/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(data0.group !== undefined){if(typeof data0.group !== "string"){const err89 = {instancePath:instancePath+"/" + i0+"/group",schemaPath:"#/allOf/0/items/properties/group/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/" + i0,schemaPath:"#/allOf/0/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath,schemaPath:"#/allOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(Array.isArray(data)){const len5 = data.length;for(let i5=0; i5<len5; i5++){let data42 = data[i5];const _errs133 = errors;let valid56 = true;const _errs134 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {if(data42.binding !== undefined){let data43 = data42.binding;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.type === undefined) && ("type")){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}else {if(data43.type !== undefined){if("property" !== data43.type){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}}}}}}}var _valid9 = _errs134 === errors;errors = _errs133;if(vErrors !== null){if(_errs133){vErrors.length = _errs133;}else {vErrors = null;}}if(_valid9){const _errs137 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data45 = data42.type;if(!((((((data45 === "String") || (data45 === "Text")) || (data45 === "Hidden")) || (data45 === "Dropdown")) || (data45 === "Boolean")) || (data45 === "Number"))){const err95 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(errors > 0){const emErrs7 = [];for(const err96 of vErrors){if(((((err96.keyword !== "errorMessage") && (!err96.emUsed)) && ((err96.instancePath === instancePath+"/" + i5+"/type") || ((err96.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err96.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err96.schemaPath.indexOf("#/allOf/1/items/allOf/0/then/properties/type") === 0)) && (err96.schemaPath["#/allOf/1/items/allOf/0/then/properties/type".length] === "/")){emErrs7.push(err96);err96.emUsed = true;}}if(emErrs7.length){const err97 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs7},message:"invalid property type " + JSON.stringify(data45) + " for binding type \"property\"; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}const emErrs8 = [];for(const err98 of vErrors){if(!err98.emUsed){emErrs8.push(err98);}}vErrors = emErrs8;errors = emErrs8.length;}}}var _valid9 = _errs137 === errors;valid56 = _valid9;}if(!valid56){const err99 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}const _errs140 = errors;let valid60 = true;const _errs141 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {if(data42.binding !== undefined){let data46 = data42.binding;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if((data46.type === undefined) && ("type")){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data46.type !== undefined){let data47 = data46.type;if(!(((((((((((((((((data47 === "zeebe:input") || (data47 === "zeebe:output")) || (data47 === "zeebe:property")) || (data47 === "zeebe:taskHeader")) || (data47 === "zeebe:taskDefinition:type")) || (data47 === "bpmn:Message#property")) || (data47 === "bpmn:Message#zeebe:subscription#property")) || (data47 === "zeebe:taskDefinition")) || (data47 === "zeebe:calledElement")) || (data47 === "zeebe:linkedResource")) || (data47 === "zeebe:formDefinition")) || (data47 === "zeebe:calledDecision")) || (data47 === "zeebe:script")) || (data47 === "zeebe:assignmentDefinition")) || (data47 === "zeebe:priorityDefinition")) || (data47 === "zeebe:adHoc")) || (data47 === "zeebe:taskSchedule"))){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}}}}}}var _valid10 = _errs141 === errors;errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}if(_valid10){const _errs144 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){let data48 = data42.type;if(!((((((data48 === "String") || (data48 === "Text")) || (data48 === "Hidden")) || (data48 === "Dropdown")) || (data48 === "Boolean")) || (data48 === "Number"))){const err103 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(errors > 0){const emErrs9 = [];for(const err104 of vErrors){if(((((err104.keyword !== "errorMessage") && (!err104.emUsed)) && ((err104.instancePath === instancePath+"/" + i5+"/type") || ((err104.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err104.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err104.schemaPath.indexOf("#/allOf/1/items/allOf/1/then/properties/type") === 0)) && (err104.schemaPath["#/allOf/1/items/allOf/1/then/properties/type".length] === "/")){emErrs9.push(err104);err104.emUsed = true;}}if(emErrs9.length){const err105 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/1/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs9},message:"invalid property type " + JSON.stringify(data48) + " for binding type " + JSON.stringify(data42 && data42.binding && data42.binding.type) + "; must be any of { String, Text, Hidden, Dropdown, Boolean, Number }"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const emErrs10 = [];for(const err106 of vErrors){if(!err106.emUsed){emErrs10.push(err106);}}vErrors = emErrs10;errors = emErrs10.length;}}}var _valid10 = _errs144 === errors;valid60 = _valid10;}if(!valid60){const err107 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}const _errs147 = errors;let valid64 = true;const _errs148 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.optional === undefined) && ("optional")){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}else {if(data42.optional !== undefined){if(true !== data42.optional){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}}var _valid11 = _errs148 === errors;errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}if(_valid11){const _errs150 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding !== undefined){let data50 = data42.binding;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if(data50.type === undefined){const err110 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data50.type !== undefined){let data51 = data50.type;if(!((((data51 === "zeebe:input") || (data51 === "zeebe:output")) || (data51 === "zeebe:property")) || (data51 === "zeebe:taskHeader"))){const err111 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[2].then.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(errors > 0){const emErrs11 = [];for(const err112 of vErrors){if(((((err112.keyword !== "errorMessage") && (!err112.emUsed)) && ((err112.instancePath === instancePath+"/" + i5+"/binding/type") || ((err112.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err112.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err112.schemaPath.indexOf("#/allOf/1/items/allOf/2/then/properties/binding/properties/type") === 0)) && (err112.schemaPath["#/allOf/1/items/allOf/2/then/properties/binding/properties/type".length] === "/")){emErrs11.push(err112);err112.emUsed = true;}}if(emErrs11.length){const err113 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/allOf/2/then/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs11},message:"optional is not supported for binding type " + JSON.stringify(data51) + "; must be any of { zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader }"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const emErrs12 = [];for(const err114 of vErrors){if(!err114.emUsed){emErrs12.push(err114);}}vErrors = emErrs12;errors = emErrs12.length;}}}}}var _valid11 = _errs150 === errors;valid64 = _valid11;}if(!valid64){const err115 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const _errs154 = errors;let valid68 = true;const _errs155 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.optional === undefined) && ("optional")){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}else {if(data42.optional !== undefined){if(true !== data42.optional){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}}}}var _valid12 = _errs155 === errors;errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}if(_valid12){const _errs157 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.constraints !== undefined){let data53 = data42.constraints;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.notEmpty === undefined){const err118 = {instancePath:instancePath+"/" + i5+"/constraints",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/required",keyword:"required",params:{missingProperty: "notEmpty"},message:"must have required property '"+"notEmpty"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if(data53.notEmpty !== undefined){if(false !== data53.notEmpty){const err119 = {instancePath:instancePath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/const",keyword:"const",params:{allowedValue: false},message:"must be equal to constant"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if(errors > 0){const emErrs13 = [];for(const err120 of vErrors){if(((((err120.keyword !== "errorMessage") && (!err120.emUsed)) && ((err120.instancePath === instancePath+"/" + i5+"/constraints/notEmpty") || ((err120.instancePath.indexOf(instancePath+"/" + i5+"/constraints/notEmpty") === 0) && (err120.instancePath[instancePath+"/" + i5+"/constraints/notEmpty".length] === "/")))) && (err120.schemaPath.indexOf("#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty") === 0)) && (err120.schemaPath["#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty".length] === "/")){emErrs13.push(err120);err120.emUsed = true;}}if(emErrs13.length){const err121 = {instancePath:instancePath+"/" + i5+"/constraints/notEmpty",schemaPath:"#/allOf/1/items/allOf/3/then/properties/constraints/properties/notEmpty/errorMessage",keyword:"errorMessage",params:{errors: emErrs13},message:"optional is not allowed for truthy \"notEmpty\" constraint"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}const emErrs14 = [];for(const err122 of vErrors){if(!err122.emUsed){emErrs14.push(err122);}}vErrors = emErrs14;errors = emErrs14.length;}}}}}var _valid12 = _errs157 === errors;valid68 = _valid12;}if(!valid68){const err123 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}const _errs161 = errors;let valid72 = true;const _errs162 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {if(data42.feel !== undefined){const _errs164 = errors;const _errs165 = errors;if(null !== data42.feel){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var valid74 = _errs165 === errors;if(valid74){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}}}}var _valid13 = _errs162 === errors;errors = _errs161;if(vErrors !== null){if(_errs161){vErrors.length = _errs161;}else {vErrors = null;}}if(_valid13){const _errs166 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err127 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data42.type !== undefined){let data56 = data42.type;if(!((((data56 === "String") || (data56 === "Text")) || (data56 === "Number")) || (data56 === "Boolean"))){const err128 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[4].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(errors > 0){const emErrs15 = [];for(const err129 of vErrors){if(((((err129.keyword !== "errorMessage") && (!err129.emUsed)) && ((err129.instancePath === instancePath+"/" + i5+"/type") || ((err129.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err129.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err129.schemaPath.indexOf("#/allOf/1/items/allOf/4/then/properties/type") === 0)) && (err129.schemaPath["#/allOf/1/items/allOf/4/then/properties/type".length] === "/")){emErrs15.push(err129);err129.emUsed = true;}}if(emErrs15.length){const err130 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/4/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs15},message:"feel is only supported for \"String\", \"Text\", \"Number\" and \"Boolean\" type"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}const emErrs16 = [];for(const err131 of vErrors){if(!err131.emUsed){emErrs16.push(err131);}}vErrors = emErrs16;errors = emErrs16.length;}}}var _valid13 = _errs166 === errors;valid72 = _valid13;}if(!valid72){const err132 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}const _errs169 = errors;let valid76 = true;const _errs170 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.language === undefined) && ("language")){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {if(data42.language !== undefined){const _errs172 = errors;const _errs173 = errors;if(null !== data42.language){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var valid78 = _errs173 === errors;if(valid78){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {errors = _errs172;if(vErrors !== null){if(_errs172){vErrors.length = _errs172;}else {vErrors = null;}}}}}}var _valid14 = _errs170 === errors;errors = _errs169;if(vErrors !== null){if(_errs169){vErrors.length = _errs169;}else {vErrors = null;}}if(_valid14){const _errs174 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type !== undefined){if(!(data42.type === "Text")){const err136 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[5].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if(errors > 0){const emErrs17 = [];for(const err137 of vErrors){if(((((err137.keyword !== "errorMessage") && (!err137.emUsed)) && ((err137.instancePath === instancePath+"/" + i5+"/type") || ((err137.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err137.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err137.schemaPath.indexOf("#/allOf/1/items/allOf/5/then/properties/type") === 0)) && (err137.schemaPath["#/allOf/1/items/allOf/5/then/properties/type".length] === "/")){emErrs17.push(err137);err137.emUsed = true;}}if(emErrs17.length){const err138 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/5/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs17},message:"language is only supported for \"Text\" type"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}const emErrs18 = [];for(const err139 of vErrors){if(!err139.emUsed){emErrs18.push(err139);}}vErrors = emErrs18;errors = emErrs18.length;}}}var _valid14 = _errs174 === errors;valid76 = _valid14;}if(!valid76){const err140 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}const _errs177 = errors;let valid80 = true;const _errs178 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.value === undefined) && ("value")){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}var _valid15 = _errs178 === errors;errors = _errs177;if(vErrors !== null){if(_errs177){vErrors.length = _errs177;}else {vErrors = null;}}if(_valid15){const _errs179 = errors;const _errs180 = errors;const _errs181 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.generatedValue === undefined) && ("generatedValue")){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var valid81 = _errs181 === errors;if(valid81){const err143 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs180;if(vErrors !== null){if(_errs180){vErrors.length = _errs180;}else {vErrors = null;}}}var _valid15 = _errs179 === errors;valid80 = _valid15;}if(!valid80){const err144 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const _errs183 = errors;let valid82 = true;const _errs184 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.type === undefined) && ("type")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data42.type !== undefined){let data59 = data42.type;if(!((data59 === "Boolean") || (data59 === "Dropdown"))){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}}var _valid16 = _errs184 === errors;errors = _errs183;if(vErrors !== null){if(_errs183){vErrors.length = _errs183;}else {vErrors = null;}}if(_valid16){const _errs186 = errors;const _errs187 = errors;const _errs188 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.generatedValue === undefined) && ("generatedValue")){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var valid84 = _errs188 === errors;if(valid84){const err148 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {errors = _errs187;if(vErrors !== null){if(_errs187){vErrors.length = _errs187;}else {vErrors = null;}}}var _valid16 = _errs186 === errors;valid82 = _valid16;}if(!valid82){const err149 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}const _errs190 = errors;let valid85 = true;const _errs191 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err150 = {};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}else {if(data42.type !== undefined){let data60 = data42.type;if(!((data60 === "String") || (data60 === "Text"))){const err151 = {};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}}}}var _valid17 = _errs191 === errors;errors = _errs190;if(vErrors !== null){if(_errs190){vErrors.length = _errs190;}else {vErrors = null;}}if(_valid17){const _errs193 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.feel !== undefined){let data61 = data42.feel;if(!((data61 === "optional") || (data61 === "required"))){const err152 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/8/then/properties/feel/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[8].then.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}}var _valid17 = _errs193 === errors;valid85 = _valid17;}if(!valid85){const err153 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}const _errs196 = errors;let valid88 = true;const _errs197 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}else {if(data42.feel !== undefined){if("required" !== data42.feel){const err155 = {};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}}}var _valid18 = _errs197 === errors;errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}if(_valid18){const _errs199 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.value !== undefined){let data63 = data42.value;const _errs201 = errors;let valid91 = false;let passing5 = null;const _errs202 = errors;if(typeof data63 === "string"){if(!pattern4.test(data63)){const err156 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/0/pattern",keyword:"pattern",params:{pattern: "^="},message:"must match pattern \""+"^="+"\""};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}else {const err157 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}var _valid19 = _errs202 === errors;if(_valid19){valid91 = true;passing5 = 0;}const _errs204 = errors;if(typeof data63 !== "string"){const err158 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}const _errs206 = errors;const _errs207 = errors;if(typeof data63 === "string"){if(!pattern4.test(data63)){const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}var valid92 = _errs207 === errors;if(valid92){const err160 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}else {errors = _errs206;if(vErrors !== null){if(_errs206){vErrors.length = _errs206;}else {vErrors = null;}}}const warning0 = {
751
751
  keyword: "deprecated",
752
752
  instancePath: instancePath + "/" + i5+"/value",
753
753
  schemaPath: "#/allOf/1/items/allOf/9/then/properties/value/oneOf/1/deprecated",
754
754
  params: {},
755
755
  message: "Value is deprecated"
756
- };keyword0.push(warning0);validate14.warnings = keyword0;var _valid19 = _errs204 === errors;if(_valid19 && valid91){valid91 = false;passing5 = [passing5, 1];}else {if(_valid19){valid91 = true;passing5 = 1;}}if(!valid91){const err161 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}else {errors = _errs201;if(vErrors !== null){if(_errs201){vErrors.length = _errs201;}else {vErrors = null;}}}}}var _valid18 = _errs199 === errors;valid88 = _valid18;}if(!valid88){const err162 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}const _errs209 = errors;let valid93 = true;const _errs210 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err163 = {};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {if(data42.binding !== undefined){let data64 = data42.binding;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if((data64.type === undefined) && ("type")){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}else {if(data64.type !== undefined){if("zeebe:linkedResource" !== data64.type){const err165 = {};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}}}}}var _valid20 = _errs210 === errors;errors = _errs209;if(vErrors !== null){if(_errs209){vErrors.length = _errs209;}else {vErrors = null;}}if(_valid20){const _errs213 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding !== undefined){let data66 = data42.binding;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.linkName === undefined){const err166 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/required",keyword:"required",params:{missingProperty: "linkName"},message:"must have required property '"+"linkName"+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(data66.property === undefined){const err167 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(data66.linkName !== undefined){if(typeof data66.linkName !== "string"){const err168 = {instancePath:instancePath+"/" + i5+"/binding/linkName",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/linkName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data66.property !== undefined){let data68 = data66.property;if(!((((data68 === "resourceId") || (data68 === "resourceType")) || (data68 === "bindingType")) || (data68 === "versionTag"))){const err169 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[10].then.properties.binding.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if(errors > 0){const emErrs19 = [];for(const err170 of vErrors){if(((((err170.keyword !== "errorMessage") && (!err170.emUsed)) && ((err170.instancePath === instancePath+"/" + i5+"/binding/property") || ((err170.instancePath.indexOf(instancePath+"/" + i5+"/binding/property") === 0) && (err170.instancePath[instancePath+"/" + i5+"/binding/property".length] === "/")))) && (err170.schemaPath.indexOf("#/allOf/1/items/allOf/10/then/properties/binding/properties/property") === 0)) && (err170.schemaPath["#/allOf/1/items/allOf/10/then/properties/binding/properties/property".length] === "/")){emErrs19.push(err170);err170.emUsed = true;}}if(emErrs19.length){const err171 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs19},message:"invalid binding.property " + JSON.stringify(data68) + "; must be any of { resourceId, resourceType, bindingType, versionTag }"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}const emErrs20 = [];for(const err172 of vErrors){if(!err172.emUsed){emErrs20.push(err172);}}vErrors = emErrs20;errors = emErrs20.length;}}}}}var _valid20 = _errs213 === errors;valid93 = _valid20;}if(!valid93){const err173 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}const _errs220 = errors;let valid99 = true;const _errs221 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.binding === undefined) && ("binding")) || ((data42.type === undefined) && ("type"))){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {if(data42.binding !== undefined){let data69 = data42.binding;const _errs222 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if((data69.type === undefined) && ("type")){const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {if(data69.type !== undefined){let data70 = data69.type;if(!((data70 === "zeebe:input") || (data70 === "zeebe:output"))){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}}var valid100 = _errs222 === errors;}else {var valid100 = true;}if(valid100){if(data42.type !== undefined){let data71 = data42.type;const _errs224 = errors;if(!((data71 === "Boolean") || (data71 === "Number"))){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}var valid100 = _errs224 === errors;}else {var valid100 = true;}}}}var _valid21 = _errs221 === errors;errors = _errs220;if(vErrors !== null){if(_errs220){vErrors.length = _errs220;}else {vErrors = null;}}if(_valid21){const _errs225 = errors;var _valid21 = _errs225 === errors;valid99 = _valid21;}if(!valid99){const err178 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/11/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}const _errs227 = errors;let valid102 = true;const _errs228 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err179 = {};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}else {if(data42.binding !== undefined){let data72 = data42.binding;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if((data72.type === undefined) && ("type")){const err180 = {};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}else {if(data72.type !== undefined){if("zeebe:userTask" !== data72.type){const err181 = {};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}}}}}}var _valid22 = _errs228 === errors;errors = _errs227;if(vErrors !== null){if(_errs227){vErrors.length = _errs227;}else {vErrors = null;}}if(_valid22){const _errs231 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err182 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/12/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}if(data42.type !== undefined){if(!(data42.type === "Hidden")){const err183 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/12/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[12].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}var _valid22 = _errs231 === errors;valid102 = _valid22;}if(!valid102){const err184 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}const _errs234 = errors;let valid106 = true;const _errs235 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err185 = {};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}else {if(data42.binding !== undefined){let data75 = data42.binding;if(data75 && typeof data75 == "object" && !Array.isArray(data75)){if(((data75.type === undefined) && ("type")) || ((data75.property === undefined) && ("property"))){const err186 = {};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}else {if(data75.type !== undefined){const _errs237 = errors;if("zeebe:formDefinition" !== data75.type){const err187 = {};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}var valid108 = _errs237 === errors;}else {var valid108 = true;}if(valid108){if(data75.property !== undefined){const _errs238 = errors;if("formId" !== data75.property){const err188 = {};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}var valid108 = _errs238 === errors;}else {var valid108 = true;}}}}}}}var _valid23 = _errs235 === errors;errors = _errs234;if(vErrors !== null){if(_errs234){vErrors.length = _errs234;}else {vErrors = null;}}if(_valid23){const _errs239 = errors;const _errs240 = errors;const _errs241 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err189 = {};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}var valid109 = _errs241 === errors;if(valid109){const err190 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/13/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}else {errors = _errs240;if(vErrors !== null){if(_errs240){vErrors.length = _errs240;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err191 of vErrors){if(((((err191.keyword !== "errorMessage") && (!err191.emUsed)) && ((err191.instancePath === instancePath+"/" + i5) || ((err191.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err191.instancePath[instancePath+"/" + i5.length] === "/")))) && (err191.schemaPath.indexOf("#/allOf/1/items/allOf/13/then") === 0)) && (err191.schemaPath["#/allOf/1/items/allOf/13/then".length] === "/")){emErrs21.push(err191);err191.emUsed = true;}}if(emErrs21.length){const err192 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/13/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs21},message:"Property \"formId\" cannot be a FEEL expression"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}const emErrs22 = [];for(const err193 of vErrors){if(!err193.emUsed){emErrs22.push(err193);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid23 = _errs239 === errors;valid106 = _valid23;}if(!valid106){const err194 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/13/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}const _errs243 = errors;let valid110 = true;const _errs244 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err195 = {};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}else {if(data42.binding !== undefined){let data78 = data42.binding;if(data78 && typeof data78 == "object" && !Array.isArray(data78)){if(((data78.type === undefined) && ("type")) || ((data78.property === undefined) && ("property"))){const err196 = {};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}else {if(data78.type !== undefined){const _errs246 = errors;if("zeebe:formDefinition" !== data78.type){const err197 = {};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}var valid112 = _errs246 === errors;}else {var valid112 = true;}if(valid112){if(data78.property !== undefined){let data80 = data78.property;const _errs247 = errors;if(!((data80 === "externalReference") || (data80 === "formId"))){const err198 = {};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}var valid112 = _errs247 === errors;}else {var valid112 = true;}}}}}}}var _valid24 = _errs244 === errors;errors = _errs243;if(vErrors !== null){if(_errs243){vErrors.length = _errs243;}else {vErrors = null;}}if(_valid24){const _errs248 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err199 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/14/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if(data42.type !== undefined){let data81 = data42.type;if(!((((data81 === "Hidden") || (data81 === "String")) || (data81 === "Text")) || (data81 === "Dropdown"))){const err200 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/14/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[14].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}}var _valid24 = _errs248 === errors;valid110 = _valid24;}if(!valid110){const err201 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}const _errs251 = errors;let valid114 = true;const _errs252 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err202 = {};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}else {if(data42.binding !== undefined){let data82 = data42.binding;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if(((data82.type === undefined) && ("type")) || ((data82.property === undefined) && ("property"))){const err203 = {};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}else {if(data82.type !== undefined){const _errs254 = errors;if("zeebe:calledDecision" !== data82.type){const err204 = {};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}var valid116 = _errs254 === errors;}else {var valid116 = true;}if(valid116){if(data82.property !== undefined){const _errs255 = errors;if("resultVariable" !== data82.property){const err205 = {};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}var valid116 = _errs255 === errors;}else {var valid116 = true;}}}}}}}var _valid25 = _errs252 === errors;errors = _errs251;if(vErrors !== null){if(_errs251){vErrors.length = _errs251;}else {vErrors = null;}}if(_valid25){const _errs256 = errors;const _errs257 = errors;const _errs258 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err206 = {};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}var valid117 = _errs258 === errors;if(valid117){const err207 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/15/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}else {errors = _errs257;if(vErrors !== null){if(_errs257){vErrors.length = _errs257;}else {vErrors = null;}}}if(errors > 0){const emErrs23 = [];for(const err208 of vErrors){if(((((err208.keyword !== "errorMessage") && (!err208.emUsed)) && ((err208.instancePath === instancePath+"/" + i5) || ((err208.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err208.instancePath[instancePath+"/" + i5.length] === "/")))) && (err208.schemaPath.indexOf("#/allOf/1/items/allOf/15/then") === 0)) && (err208.schemaPath["#/allOf/1/items/allOf/15/then".length] === "/")){emErrs23.push(err208);err208.emUsed = true;}}if(emErrs23.length){const err209 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/15/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs23},message:"Property \"resultVariable\" cannot be a Feel expression"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}const emErrs24 = [];for(const err210 of vErrors){if(!err210.emUsed){emErrs24.push(err210);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid25 = _errs256 === errors;valid114 = _valid25;}if(!valid114){const err211 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/15/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}const _errs260 = errors;let valid118 = true;const _errs261 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err212 = {};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}else {if(data42.binding !== undefined){let data85 = data42.binding;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(((data85.type === undefined) && ("type")) || ((data85.property === undefined) && ("property"))){const err213 = {};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}else {if(data85.type !== undefined){const _errs263 = errors;if("zeebe:calledDecision" !== data85.type){const err214 = {};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}var valid120 = _errs263 === errors;}else {var valid120 = true;}if(valid120){if(data85.property !== undefined){let data87 = data85.property;const _errs264 = errors;if(!((data87 === "resultVariable") || (data87 === "decisionId"))){const err215 = {};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}var valid120 = _errs264 === errors;}else {var valid120 = true;}}}}}}}var _valid26 = _errs261 === errors;errors = _errs260;if(vErrors !== null){if(_errs260){vErrors.length = _errs260;}else {vErrors = null;}}if(_valid26){const _errs265 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err216 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/16/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}if(data42.type !== undefined){let data88 = data42.type;if(!((((data88 === "Hidden") || (data88 === "String")) || (data88 === "Text")) || (data88 === "Dropdown"))){const err217 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/16/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[16].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}}var _valid26 = _errs265 === errors;valid118 = _valid26;}if(!valid118){const err218 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/16/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}const _errs268 = errors;let valid122 = true;const _errs269 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err219 = {};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}else {if(data42.binding !== undefined){let data89 = data42.binding;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(((data89.type === undefined) && ("type")) || ((data89.property === undefined) && ("property"))){const err220 = {};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}else {if(data89.type !== undefined){const _errs271 = errors;if("zeebe:script" !== data89.type){const err221 = {};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}var valid124 = _errs271 === errors;}else {var valid124 = true;}if(valid124){if(data89.property !== undefined){const _errs272 = errors;if("resultVariable" !== data89.property){const err222 = {};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}var valid124 = _errs272 === errors;}else {var valid124 = true;}}}}}}}var _valid27 = _errs269 === errors;errors = _errs268;if(vErrors !== null){if(_errs268){vErrors.length = _errs268;}else {vErrors = null;}}if(_valid27){const _errs273 = errors;const _errs274 = errors;const _errs275 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err223 = {};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}var valid125 = _errs275 === errors;if(valid125){const err224 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/17/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {errors = _errs274;if(vErrors !== null){if(_errs274){vErrors.length = _errs274;}else {vErrors = null;}}}if(errors > 0){const emErrs25 = [];for(const err225 of vErrors){if(((((err225.keyword !== "errorMessage") && (!err225.emUsed)) && ((err225.instancePath === instancePath+"/" + i5) || ((err225.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err225.instancePath[instancePath+"/" + i5.length] === "/")))) && (err225.schemaPath.indexOf("#/allOf/1/items/allOf/17/then") === 0)) && (err225.schemaPath["#/allOf/1/items/allOf/17/then".length] === "/")){emErrs25.push(err225);err225.emUsed = true;}}if(emErrs25.length){const err226 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/17/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs25},message:"Property \"resultVariable\" cannot be a Feel expression"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}const emErrs26 = [];for(const err227 of vErrors){if(!err227.emUsed){emErrs26.push(err227);}}vErrors = emErrs26;errors = emErrs26.length;}var _valid27 = _errs273 === errors;valid122 = _valid27;}if(!valid122){const err228 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/17/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}const _errs277 = errors;let valid126 = true;const _errs278 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.type === undefined) && ("type")) || ((data42.binding === undefined) && ("binding"))){const err229 = {};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}else {if(data42.type !== undefined){let data92 = data42.type;const _errs279 = errors;if(!((data92 === "String") || (data92 === "Text"))){const err230 = {};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}var valid127 = _errs279 === errors;}else {var valid127 = true;}if(valid127){if(data42.binding !== undefined){let data93 = data42.binding;const _errs280 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(((data93.type === undefined) && ("type")) || ((data93.property === undefined) && ("property"))){const err231 = {};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}else {if(data93.type !== undefined){const _errs281 = errors;if("zeebe:script" !== data93.type){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}var valid128 = _errs281 === errors;}else {var valid128 = true;}if(valid128){if(data93.property !== undefined){const _errs282 = errors;if("expression" !== data93.property){const err233 = {};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}var valid128 = _errs282 === errors;}else {var valid128 = true;}}}}var valid127 = _errs280 === errors;}else {var valid127 = true;}}}}var _valid28 = _errs278 === errors;errors = _errs277;if(vErrors !== null){if(_errs277){vErrors.length = _errs277;}else {vErrors = null;}}if(_valid28){const _errs283 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.feel === undefined){const err234 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/18/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}if(data42.feel !== undefined){if(!(data42.feel === "required")){const err235 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/18/then/properties/feel/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[18].then.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}}var _valid28 = _errs283 === errors;valid126 = _valid28;}if(!valid126){const err236 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/18/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}const _errs286 = errors;let valid130 = true;const _errs287 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err237 = {};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}else {if(data42.binding !== undefined){let data97 = data42.binding;if(data97 && typeof data97 == "object" && !Array.isArray(data97)){if(((data97.type === undefined) && ("type")) || ((data97.property === undefined) && ("property"))){const err238 = {};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}else {if(data97.type !== undefined){const _errs289 = errors;if("zeebe:script" !== data97.type){const err239 = {};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}var valid132 = _errs289 === errors;}else {var valid132 = true;}if(valid132){if(data97.property !== undefined){let data99 = data97.property;const _errs290 = errors;if(!((data99 === "resultVariable") || (data99 === "expression"))){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var valid132 = _errs290 === errors;}else {var valid132 = true;}}}}}}}var _valid29 = _errs287 === errors;errors = _errs286;if(vErrors !== null){if(_errs286){vErrors.length = _errs286;}else {vErrors = null;}}if(_valid29){const _errs291 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err241 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/19/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if(data42.type !== undefined){let data100 = data42.type;if(!((((data100 === "Hidden") || (data100 === "String")) || (data100 === "Text")) || (data100 === "Dropdown"))){const err242 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/19/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[19].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}}var _valid29 = _errs291 === errors;valid130 = _valid29;}if(!valid130){const err243 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/19/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}const _errs295 = errors;let valid135 = true;const _errs296 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err244 = {};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}else {if(data42.binding !== undefined){let data101 = data42.binding;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(((data101.type === undefined) && ("type")) || ((data101.property === undefined) && ("property"))){const err245 = {};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}else {if(data101.property !== undefined){const _errs298 = errors;if("bindingType" !== data101.property){const err246 = {};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}var valid137 = _errs298 === errors;}else {var valid137 = true;}if(valid137){if(data101.type !== undefined){let data103 = data101.type;const _errs299 = errors;if(!((((data103 === "zeebe:calledDecision") || (data103 === "zeebe:formDefinition")) || (data103 === "zeebe:calledElement")) || (data103 === "zeebe:linkedResource"))){const err247 = {};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}var valid137 = _errs299 === errors;}else {var valid137 = true;}}}}}}}var _valid30 = _errs296 === errors;errors = _errs295;if(vErrors !== null){if(_errs295){vErrors.length = _errs295;}else {vErrors = null;}}if(_valid30){const _errs300 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err248 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data42.value === undefined){const err249 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}if(data42.choices !== undefined){let data104 = data42.choices;if(Array.isArray(data104)){const len6 = data104.length;for(let i6=0; i6<len6; i6++){let data105 = data104[i6];if(data105 && typeof data105 == "object" && !Array.isArray(data105)){if(data105.value !== undefined){let data106 = data105.value;if(!(((data106 === "latest") || (data106 === "versionTag")) || (data106 === "deployment"))){const err250 = {instancePath:instancePath+"/" + i5+"/choices/" + i6+"/value",schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/properties/choices/items/properties/value/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[20].allOf[0].then.properties.choices.items.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}}}}else {const err251 = {instancePath:instancePath+"/" + i5+"/choices",schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}if(data42.type !== undefined){let data107 = data42.type;if(!((data107 === "Hidden") || (data107 === "Dropdown"))){const err252 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[20].allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}if(errors > 0){const emErrs27 = [];for(const err253 of vErrors){if(((((err253.keyword !== "errorMessage") && (!err253.emUsed)) && ((err253.instancePath === instancePath+"/" + i5+"/type") || ((err253.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err253.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err253.schemaPath.indexOf("#/allOf/1/items/allOf/20/allOf/0/then/properties/type") === 0)) && (err253.schemaPath["#/allOf/1/items/allOf/20/allOf/0/then/properties/type".length] === "/")){emErrs27.push(err253);err253.emUsed = true;}}if(emErrs27.length){const err254 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs27},message:"Incorrect type " + JSON.stringify(data107) + ". Must be one of { Hidden, Dropdown } for binding with `property`=`bindingType`"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}const emErrs28 = [];for(const err255 of vErrors){if(!err255.emUsed){emErrs28.push(err255);}}vErrors = emErrs28;errors = emErrs28.length;}}if(data42.value !== undefined){let data108 = data42.value;if(!(((data108 === "latest") || (data108 === "versionTag")) || (data108 === "deployment"))){const err256 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[20].allOf[0].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}}var _valid30 = _errs300 === errors;valid135 = _valid30;}if(!valid135){const err257 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}const _errs308 = errors;let valid142 = true;const _errs309 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err258 = {};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}else {if(data42.binding !== undefined){let data109 = data42.binding;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){if(((data109.type === undefined) && ("type")) || ((data109.property === undefined) && ("property"))){const err259 = {};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}else {if(data109.property !== undefined){const _errs311 = errors;if("versionTag" !== data109.property){const err260 = {};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}var valid144 = _errs311 === errors;}else {var valid144 = true;}if(valid144){if(data109.type !== undefined){let data111 = data109.type;const _errs312 = errors;if(!((((data111 === "zeebe:calledDecision") || (data111 === "zeebe:formDefinition")) || (data111 === "zeebe:calledElement")) || (data111 === "zeebe:linkedResource"))){const err261 = {};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}var valid144 = _errs312 === errors;}else {var valid144 = true;}}}}}}}var _valid31 = _errs309 === errors;errors = _errs308;if(vErrors !== null){if(_errs308){vErrors.length = _errs308;}else {vErrors = null;}}if(_valid31){const _errs313 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err262 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/1/then/allOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if(data42.type !== undefined){let data112 = data42.type;if(!((((data112 === "Hidden") || (data112 === "Dropdown")) || (data112 === "String")) || (data112 === "Text"))){const err263 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/20/allOf/1/then/allOf/0/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[20].allOf[1].then.allOf[0].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}if(errors > 0){const emErrs29 = [];for(const err264 of vErrors){if(((((err264.keyword !== "errorMessage") && (!err264.emUsed)) && ((err264.instancePath === instancePath+"/" + i5+"/type") || ((err264.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err264.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err264.schemaPath.indexOf("#/allOf/1/items/allOf/20/allOf/1/then/allOf/0/properties/type") === 0)) && (err264.schemaPath["#/allOf/1/items/allOf/20/allOf/1/then/allOf/0/properties/type".length] === "/")){emErrs29.push(err264);err264.emUsed = true;}}if(emErrs29.length){const err265 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/20/allOf/1/then/allOf/0/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs29},message:"Incorrect type " + JSON.stringify(data112) + ". Must be one of { String, Text, Hidden, Dropdown } for binding with `property`=`versionTag`"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}const emErrs30 = [];for(const err266 of vErrors){if(!err266.emUsed){emErrs30.push(err266);}}vErrors = emErrs30;errors = emErrs30.length;}}}const _errs317 = errors;const _errs318 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err267 = {};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}var valid147 = _errs318 === errors;if(valid147){const err268 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/1/then/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}else {errors = _errs317;if(vErrors !== null){if(_errs317){vErrors.length = _errs317;}else {vErrors = null;}}}if(errors > 0){const emErrs31 = [];for(const err269 of vErrors){if(((((err269.keyword !== "errorMessage") && (!err269.emUsed)) && ((err269.instancePath === instancePath+"/" + i5) || ((err269.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err269.instancePath[instancePath+"/" + i5.length] === "/")))) && (err269.schemaPath.indexOf("#/allOf/1/items/allOf/20/allOf/1/then/allOf/1") === 0)) && (err269.schemaPath["#/allOf/1/items/allOf/20/allOf/1/then/allOf/1".length] === "/")){emErrs31.push(err269);err269.emUsed = true;}}if(emErrs31.length){const err270 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/1/then/allOf/1/errorMessage",keyword:"errorMessage",params:{errors: emErrs31},message:"Binding with `property`=`versionTag` does not support `feel`"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}const emErrs32 = [];for(const err271 of vErrors){if(!err271.emUsed){emErrs32.push(err271);}}vErrors = emErrs32;errors = emErrs32.length;}var _valid31 = _errs313 === errors;valid142 = _valid31;}if(!valid142){const err272 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}const _errs320 = errors;let valid148 = true;const _errs321 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err273 = {};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}else {if(data42.binding !== undefined){let data113 = data42.binding;if(data113 && typeof data113 == "object" && !Array.isArray(data113)){if(((data113.type === undefined) && ("type")) || ((data113.property === undefined) && ("property"))){const err274 = {};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}else {if(data113.type !== undefined){const _errs323 = errors;if("zeebe:assignmentDefinition" !== data113.type){const err275 = {};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}var valid150 = _errs323 === errors;}else {var valid150 = true;}if(valid150){if(data113.property !== undefined){let data115 = data113.property;const _errs324 = errors;if(!(((data115 === "assignee") || (data115 === "candidateUsers")) || (data115 === "candidateGroups"))){const err276 = {};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}var valid150 = _errs324 === errors;}else {var valid150 = true;}}}}}}}var _valid32 = _errs321 === errors;errors = _errs320;if(vErrors !== null){if(_errs320){vErrors.length = _errs320;}else {vErrors = null;}}if(_valid32){const _errs325 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err277 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/21/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}if(data42.type !== undefined){let data116 = data42.type;if(!((((data116 === "Hidden") || (data116 === "String")) || (data116 === "Text")) || (data116 === "Dropdown"))){const err278 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/21/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[21].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}}var _valid32 = _errs325 === errors;valid148 = _valid32;}if(!valid148){const err279 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/21/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}const _errs329 = errors;let valid153 = true;const _errs330 = errors;if(errors === _errs330){if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err280 = {};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}else {if(data42.binding !== undefined){let data117 = data42.binding;if(data117 && typeof data117 == "object" && !Array.isArray(data117)){if(((data117.type === undefined) && ("type")) || ((data117.property === undefined) && ("property"))){const err281 = {};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}else {if(data117.type !== undefined){const _errs333 = errors;if("zeebe:priorityDefinition" !== data117.type){const err282 = {};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}var valid155 = _errs333 === errors;}else {var valid155 = true;}if(valid155){if(data117.property !== undefined){const _errs334 = errors;if("priority" !== data117.property){const err283 = {};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var valid155 = _errs334 === errors;}else {var valid155 = true;}}}}}}}else {const err284 = {};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}}var _valid33 = _errs330 === errors;errors = _errs329;if(vErrors !== null){if(_errs329){vErrors.length = _errs329;}else {vErrors = null;}}if(_valid33){const _errs335 = errors;const _errs336 = errors;let valid156 = false;const _errs337 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err285 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}if(data42.type !== undefined){let data120 = data42.type;if(!(((data120 === "Hidden") || (data120 === "Number")) || (data120 === "Dropdown"))){const err286 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf/0/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[22].allOf[0].then.anyOf[0].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}}var _valid34 = _errs337 === errors;valid156 = valid156 || _valid34;if(!valid156){const _errs339 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err287 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}if(data42.feel === undefined){const err288 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf/1/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}if(data42.type !== undefined){let data121 = data42.type;if(!((data121 === "String") || (data121 === "Text"))){const err289 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf/1/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[22].allOf[0].then.anyOf[1].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}if(data42.feel !== undefined){if("required" !== data42.feel){const err290 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf/1/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}}var _valid34 = _errs339 === errors;valid156 = valid156 || _valid34;}if(!valid156){const err291 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}else {errors = _errs336;if(vErrors !== null){if(_errs336){vErrors.length = _errs336;}else {vErrors = null;}}}var _valid33 = _errs335 === errors;valid153 = _valid33;}if(!valid153){const err292 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}const _errs343 = errors;let valid159 = true;const _errs344 = errors;if(errors === _errs344){if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((((data42.binding === undefined) && ("binding")) || ((data42.value === undefined) && ("value"))) || ((data42.type === undefined) && ("type"))){const err293 = {};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}else {if(data42.type !== undefined){const _errs346 = errors;if("Number" !== data42.type){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}var valid160 = _errs346 === errors;}else {var valid160 = true;}if(valid160){if(data42.binding !== undefined){let data124 = data42.binding;const _errs347 = errors;if(data124 && typeof data124 == "object" && !Array.isArray(data124)){if(((data124.type === undefined) && ("type")) || ((data124.property === undefined) && ("property"))){const err295 = {};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}else {if(data124.type !== undefined){const _errs348 = errors;if("zeebe:priorityDefinition" !== data124.type){const err296 = {};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}var valid161 = _errs348 === errors;}else {var valid161 = true;}if(valid161){if(data124.property !== undefined){const _errs349 = errors;if("priority" !== data124.property){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}var valid161 = _errs349 === errors;}else {var valid161 = true;}}}}var valid160 = _errs347 === errors;}else {var valid160 = true;}}}}else {const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}var _valid35 = _errs344 === errors;errors = _errs343;if(vErrors !== null){if(_errs343){vErrors.length = _errs343;}else {vErrors = null;}}if(_valid35){const _errs350 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.value !== undefined){let data127 = data42.value;if(!((typeof data127 == "number") && (!(data127 % 1) && !isNaN(data127)))){const err299 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/1/then/properties/value/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}if(typeof data127 == "number"){if(data127 > 100 || isNaN(data127)){const err300 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/1/then/properties/value/maximum",keyword:"maximum",params:{comparison: "<=", limit: 100},message:"must be <= 100"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}if(data127 < 0 || isNaN(data127)){const err301 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/1/then/properties/value/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}}}var _valid35 = _errs350 === errors;valid159 = _valid35;}if(!valid159){const err302 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}const _errs354 = errors;let valid163 = true;const _errs355 = errors;if(errors === _errs355){if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.binding === undefined) && ("binding")) || ((data42.type === undefined) && ("type"))){const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}else {if(data42.type !== undefined){let data128 = data42.type;const _errs357 = errors;if(!((data128 === "Hidden") || (data128 === "Dropdown"))){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}var valid164 = _errs357 === errors;}else {var valid164 = true;}if(valid164){if(data42.binding !== undefined){let data129 = data42.binding;const _errs358 = errors;if(data129 && typeof data129 == "object" && !Array.isArray(data129)){if(((data129.type === undefined) && ("type")) || ((data129.property === undefined) && ("property"))){const err305 = {};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}else {if(data129.type !== undefined){const _errs359 = errors;if("zeebe:priorityDefinition" !== data129.type){const err306 = {};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}var valid165 = _errs359 === errors;}else {var valid165 = true;}if(valid165){if(data129.property !== undefined){const _errs360 = errors;if("priority" !== data129.property){const err307 = {};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}var valid165 = _errs360 === errors;}else {var valid165 = true;}}}}var valid164 = _errs358 === errors;}else {var valid164 = true;}}}}else {const err308 = {};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}var _valid36 = _errs355 === errors;errors = _errs354;if(vErrors !== null){if(_errs354){vErrors.length = _errs354;}else {vErrors = null;}}if(_valid36){const _errs361 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.value !== undefined){let data132 = data42.value;if(typeof data132 === "string"){if(!pattern6.test(data132)){const err309 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/2/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(100|[1-9]?[0-9])$"},message:"must match pattern \""+"^(100|[1-9]?[0-9])$"+"\""};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}else {const err310 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/2/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}if(errors > 0){const emErrs33 = [];for(const err311 of vErrors){if(((((err311.keyword !== "errorMessage") && (!err311.emUsed)) && ((err311.instancePath === instancePath+"/" + i5+"/value") || ((err311.instancePath.indexOf(instancePath+"/" + i5+"/value") === 0) && (err311.instancePath[instancePath+"/" + i5+"/value".length] === "/")))) && (err311.schemaPath.indexOf("#/allOf/1/items/allOf/22/allOf/2/then/properties/value") === 0)) && (err311.schemaPath["#/allOf/1/items/allOf/22/allOf/2/then/properties/value".length] === "/")){emErrs33.push(err311);err311.emUsed = true;}}if(emErrs33.length){const err312 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/2/then/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrs33},message:"Invalid value for priority. Must be between 0 and 100"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}const emErrs34 = [];for(const err313 of vErrors){if(!err313.emUsed){emErrs34.push(err313);}}vErrors = emErrs34;errors = emErrs34.length;}}if(data42.choices !== undefined){let data133 = data42.choices;if(Array.isArray(data133)){const len7 = data133.length;for(let i7=0; i7<len7; i7++){let data134 = data133[i7];if(data134 && typeof data134 == "object" && !Array.isArray(data134)){if(data134.value !== undefined){let data135 = data134.value;if(typeof data135 === "string"){if(!pattern6.test(data135)){const err314 = {instancePath:instancePath+"/" + i5+"/choices/" + i7+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/2/then/properties/choices/items/properties/value/pattern",keyword:"pattern",params:{pattern: "^(100|[1-9]?[0-9])$"},message:"must match pattern \""+"^(100|[1-9]?[0-9])$"+"\""};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}}else {const err315 = {instancePath:instancePath+"/" + i5+"/choices/" + i7+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/2/then/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}if(errors > 0){const emErrs35 = [];for(const err316 of vErrors){if(((((err316.keyword !== "errorMessage") && (!err316.emUsed)) && ((err316.instancePath === instancePath+"/" + i5+"/choices/" + i7+"/value") || ((err316.instancePath.indexOf(instancePath+"/" + i5+"/choices/" + i7+"/value") === 0) && (err316.instancePath[instancePath+"/" + i5+"/choices/" + i7+"/value".length] === "/")))) && (err316.schemaPath.indexOf("#/allOf/1/items/allOf/22/allOf/2/then/properties/choices/items/properties/value") === 0)) && (err316.schemaPath["#/allOf/1/items/allOf/22/allOf/2/then/properties/choices/items/properties/value".length] === "/")){emErrs35.push(err316);err316.emUsed = true;}}if(emErrs35.length){const err317 = {instancePath:instancePath+"/" + i5+"/choices/" + i7+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/2/then/properties/choices/items/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrs35},message:"Invalid value for priority. Must be between 0 and 100"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}const emErrs36 = [];for(const err318 of vErrors){if(!err318.emUsed){emErrs36.push(err318);}}vErrors = emErrs36;errors = emErrs36.length;}}}}}}}var _valid36 = _errs361 === errors;valid163 = _valid36;}if(!valid163){const err319 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}const _errs371 = errors;let valid171 = true;const _errs372 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err320 = {};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}else {if(data42.binding !== undefined){let data136 = data42.binding;if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(((data136.type === undefined) && ("type")) || ((data136.property === undefined) && ("property"))){const err321 = {};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}else {if(data136.type !== undefined){const _errs374 = errors;if("zeebe:adHoc" !== data136.type){const err322 = {};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}var valid173 = _errs374 === errors;}else {var valid173 = true;}if(valid173){if(data136.property !== undefined){let data138 = data136.property;const _errs375 = errors;if(!((data138 === "outputCollection") || (data138 === "outputElement"))){const err323 = {};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}var valid173 = _errs375 === errors;}else {var valid173 = true;}}}}}}}var _valid37 = _errs372 === errors;errors = _errs371;if(vErrors !== null){if(_errs371){vErrors.length = _errs371;}else {vErrors = null;}}if(_valid37){const _errs376 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err324 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/23/allOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}if(data42.type !== undefined){let data139 = data42.type;if(!((((data139 === "Hidden") || (data139 === "String")) || (data139 === "Text")) || (data139 === "Dropdown"))){const err325 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/23/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[23].allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}}}var _valid37 = _errs376 === errors;valid171 = _valid37;}if(!valid171){const err326 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/23/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}const _errs380 = errors;let valid175 = true;const _errs381 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err327 = {};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}else {if(data42.binding !== undefined){let data140 = data42.binding;if(data140 && typeof data140 == "object" && !Array.isArray(data140)){if(((data140.type === undefined) && ("type")) || ((data140.property === undefined) && ("property"))){const err328 = {};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}else {if(data140.type !== undefined){const _errs383 = errors;if("zeebe:adHoc" !== data140.type){const err329 = {};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}var valid177 = _errs383 === errors;}else {var valid177 = true;}if(valid177){if(data140.property !== undefined){const _errs384 = errors;if("outputCollection" !== data140.property){const err330 = {};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}var valid177 = _errs384 === errors;}else {var valid177 = true;}}}}}}}var _valid38 = _errs381 === errors;errors = _errs380;if(vErrors !== null){if(_errs380){vErrors.length = _errs380;}else {vErrors = null;}}if(_valid38){const _errs385 = errors;const _errs386 = errors;const _errs387 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err331 = {};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}}var valid178 = _errs387 === errors;if(valid178){const err332 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/23/allOf/1/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}else {errors = _errs386;if(vErrors !== null){if(_errs386){vErrors.length = _errs386;}else {vErrors = null;}}}if(errors > 0){const emErrs37 = [];for(const err333 of vErrors){if(((((err333.keyword !== "errorMessage") && (!err333.emUsed)) && ((err333.instancePath === instancePath+"/" + i5) || ((err333.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err333.instancePath[instancePath+"/" + i5.length] === "/")))) && (err333.schemaPath.indexOf("#/allOf/1/items/allOf/23/allOf/1/then") === 0)) && (err333.schemaPath["#/allOf/1/items/allOf/23/allOf/1/then".length] === "/")){emErrs37.push(err333);err333.emUsed = true;}}if(emErrs37.length){const err334 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/23/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs37},message:"Property \"outputCollection\" cannot be a FEEL expression"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}const emErrs38 = [];for(const err335 of vErrors){if(!err335.emUsed){emErrs38.push(err335);}}vErrors = emErrs38;errors = emErrs38.length;}var _valid38 = _errs385 === errors;valid175 = _valid38;}if(!valid175){const err336 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/23/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}const _errs390 = errors;let valid180 = true;const _errs391 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err337 = {};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}else {if(data42.binding !== undefined){let data143 = data42.binding;if(data143 && typeof data143 == "object" && !Array.isArray(data143)){if(((data143.type === undefined) && ("type")) || ((data143.property === undefined) && ("property"))){const err338 = {};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}else {if(data143.type !== undefined){const _errs393 = errors;if("zeebe:taskSchedule" !== data143.type){const err339 = {};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}var valid182 = _errs393 === errors;}else {var valid182 = true;}if(valid182){if(data143.property !== undefined){let data145 = data143.property;const _errs394 = errors;if(!((data145 === "dueDate") || (data145 === "followUpDate"))){const err340 = {};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}var valid182 = _errs394 === errors;}else {var valid182 = true;}}}}}}}var _valid39 = _errs391 === errors;errors = _errs390;if(vErrors !== null){if(_errs390){vErrors.length = _errs390;}else {vErrors = null;}}if(_valid39){const _errs395 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err341 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/24/allOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}if(data42.type !== undefined){let data146 = data42.type;if(!((((data146 === "Hidden") || (data146 === "String")) || (data146 === "Dropdown")) || (data146 === "Text"))){const err342 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/24/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[24].allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}}}var _valid39 = _errs395 === errors;valid180 = _valid39;}if(!valid180){const err343 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/24/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}const _errs398 = errors;let valid184 = true;const _errs399 = errors;const _errs400 = errors;const _errs401 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err344 = {};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}}var valid185 = _errs401 === errors;if(valid185){const err345 = {};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}else {errors = _errs400;if(vErrors !== null){if(_errs400){vErrors.length = _errs400;}else {vErrors = null;}}}if(errors === _errs399){if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.binding === undefined) && ("binding")) || ((data42.value === undefined) && ("value"))){const err346 = {};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}else {if(data42.binding !== undefined){let data147 = data42.binding;if(data147 && typeof data147 == "object" && !Array.isArray(data147)){if(((data147.type === undefined) && ("type")) || ((data147.property === undefined) && ("property"))){const err347 = {};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}else {if(data147.type !== undefined){const _errs403 = errors;if("zeebe:taskSchedule" !== data147.type){const err348 = {};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}var valid187 = _errs403 === errors;}else {var valid187 = true;}if(valid187){if(data147.property !== undefined){let data149 = data147.property;const _errs404 = errors;if(!((data149 === "dueDate") || (data149 === "followUpDate"))){const err349 = {};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}var valid187 = _errs404 === errors;}else {var valid187 = true;}}}}}}}}var _valid40 = _errs399 === errors;errors = _errs398;if(vErrors !== null){if(_errs398){vErrors.length = _errs398;}else {vErrors = null;}}if(_valid40){const _errs405 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.value === undefined){const err350 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/24/allOf/1/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}if(data42.value !== undefined){let data150 = data42.value;if(typeof data150 === "string"){if(!pattern8.test(data150)){const err351 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/24/allOf/1/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(?<date>\\d{4}-(?<month>0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))T(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](Z|([+-](0[0-9]|1[0-3]):[0-5][0-9](\\[[^\\]]+\\])?))$"},message:"must match pattern \""+"^(?<date>\\d{4}-(?<month>0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))T(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](Z|([+-](0[0-9]|1[0-3]):[0-5][0-9](\\[[^\\]]+\\])?))$"+"\""};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}}else {const err352 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/24/allOf/1/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}if(errors > 0){const emErrs39 = [];for(const err353 of vErrors){if(((((err353.keyword !== "errorMessage") && (!err353.emUsed)) && ((err353.instancePath === instancePath+"/" + i5+"/value") || ((err353.instancePath.indexOf(instancePath+"/" + i5+"/value") === 0) && (err353.instancePath[instancePath+"/" + i5+"/value".length] === "/")))) && (err353.schemaPath.indexOf("#/allOf/1/items/allOf/24/allOf/1/then/properties/value") === 0)) && (err353.schemaPath["#/allOf/1/items/allOf/24/allOf/1/then/properties/value".length] === "/")){emErrs39.push(err353);err353.emUsed = true;}}if(emErrs39.length){const err354 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/24/allOf/1/then/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrs39},message:"Must be conforming to an ISO 8601 combined date and time representation"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}const emErrs40 = [];for(const err355 of vErrors){if(!err355.emUsed){emErrs40.push(err355);}}vErrors = emErrs40;errors = emErrs40.length;}}}var _valid40 = _errs405 === errors;valid184 = _valid40;}if(!valid184){const err356 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/24/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}const _errs409 = errors;let valid189 = true;const _errs410 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err357 = {};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}else {if(data42.binding !== undefined){let data151 = data42.binding;if(data151 && typeof data151 == "object" && !Array.isArray(data151)){if((data151.type === undefined) && ("type")){const err358 = {};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}else {if(data151.type !== undefined){if("bpmn:Signal#property" !== data151.type){const err359 = {};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}}}}}}}var _valid41 = _errs410 === errors;errors = _errs409;if(vErrors !== null){if(_errs409){vErrors.length = _errs409;}else {vErrors = null;}}if(_valid41){const _errs413 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err360 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/25/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}if(data42.type !== undefined){let data153 = data42.type;if(!((((data153 === "String") || (data153 === "Text")) || (data153 === "Hidden")) || (data153 === "Dropdown"))){const err361 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/25/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[25].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}}var _valid41 = _errs413 === errors;valid189 = _valid41;}if(!valid189){const err362 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/25/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}const _errs416 = errors;let valid193 = true;const _errs417 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err363 = {};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}else {if(data42.binding !== undefined){let data154 = data42.binding;if(data154 && typeof data154 == "object" && !Array.isArray(data154)){if(((data154.type === undefined) && ("type")) || ((data154.property === undefined) && ("property"))){const err364 = {};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}else {if(data154.type !== undefined){const _errs419 = errors;if("zeebe:calledElement" !== data154.type){const err365 = {};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}var valid195 = _errs419 === errors;}else {var valid195 = true;}if(valid195){if(data154.property !== undefined){let data156 = data154.property;const _errs420 = errors;if(!((data156 === "propagateAllParentVariables") || (data156 === "propagateAllChildVariables"))){const err366 = {};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}var valid195 = _errs420 === errors;}else {var valid195 = true;}}}}}}}var _valid42 = _errs417 === errors;errors = _errs416;if(vErrors !== null){if(_errs416){vErrors.length = _errs416;}else {vErrors = null;}}if(_valid42){const _errs421 = errors;const _errs422 = errors;const _errs423 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err367 = {};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}}var valid196 = _errs423 === errors;if(valid196){const err368 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/26/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}else {errors = _errs422;if(vErrors !== null){if(_errs422){vErrors.length = _errs422;}else {vErrors = null;}}}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err369 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/26/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}if(data42.type !== undefined){let data157 = data42.type;if(!((data157 === "Hidden") || (data157 === "Boolean"))){const err370 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/26/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[26].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}}if(data42.value !== undefined){if(typeof data42.value !== "boolean"){const err371 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/26/then/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}}if(errors > 0){const emErrs41 = [];for(const err372 of vErrors){if(((((err372.keyword !== "errorMessage") && (!err372.emUsed)) && ((err372.instancePath === instancePath+"/" + i5) || ((err372.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err372.instancePath[instancePath+"/" + i5.length] === "/")))) && (err372.schemaPath.indexOf("#/allOf/1/items/allOf/26/then") === 0)) && (err372.schemaPath["#/allOf/1/items/allOf/26/then".length] === "/")){emErrs41.push(err372);err372.emUsed = true;}}if(emErrs41.length){const err373 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/26/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs41},message:"FEEL is not supported for `zeebe:calledElement` variable propagation properties"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}const emErrs42 = [];for(const err374 of vErrors){if(!err374.emUsed){emErrs42.push(err374);}}vErrors = emErrs42;errors = emErrs42.length;}var _valid42 = _errs421 === errors;valid193 = _valid42;}if(!valid193){const err375 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/26/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}const _errs428 = errors;let valid198 = true;const _errs429 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err376 = {};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}else {if(data42.binding !== undefined){let data159 = data42.binding;if(data159 && typeof data159 == "object" && !Array.isArray(data159)){if(((data159.type === undefined) && ("type")) || ((data159.name === undefined) && ("name"))){const err377 = {};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}else {if(data159.type !== undefined){const _errs431 = errors;if("bpmn:TimerEventDefinition#property" !== data159.type){const err378 = {};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}var valid200 = _errs431 === errors;}else {var valid200 = true;}if(valid200){if(data159.name !== undefined){let data161 = data159.name;const _errs432 = errors;if(!(((data161 === "timeDate") || (data161 === "timeDuration")) || (data161 === "timeCycle"))){const err379 = {};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}var valid200 = _errs432 === errors;}else {var valid200 = true;}}}}}}}var _valid43 = _errs429 === errors;errors = _errs428;if(vErrors !== null){if(_errs428){vErrors.length = _errs428;}else {vErrors = null;}}if(_valid43){const _errs433 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err380 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/27/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}if(data42.type !== undefined){let data162 = data42.type;if(!(((data162 === "Hidden") || (data162 === "String")) || (data162 === "Text"))){const err381 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/27/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[27].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}}}var _valid43 = _errs433 === errors;valid198 = _valid43;}if(!valid198){const err382 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/27/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}const _errs437 = errors;let valid203 = true;const _errs438 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err383 = {};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}else {if(data42.binding !== undefined){let data163 = data42.binding;if(data163 && typeof data163 == "object" && !Array.isArray(data163)){if(((data163.type === undefined) && ("type")) || ((data163.name === undefined) && ("name"))){const err384 = {};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}else {if(data163.type !== undefined){const _errs440 = errors;if("bpmn:ConditionalEventDefinition#property" !== data163.type){const err385 = {};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}var valid205 = _errs440 === errors;}else {var valid205 = true;}if(valid205){if(data163.name !== undefined){const _errs441 = errors;if("condition" !== data163.name){const err386 = {};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}var valid205 = _errs441 === errors;}else {var valid205 = true;}}}}}}}var _valid44 = _errs438 === errors;errors = _errs437;if(vErrors !== null){if(_errs437){vErrors.length = _errs437;}else {vErrors = null;}}if(_valid44){const _errs442 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err387 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/28/allOf/0/then/allOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}if(data42.type !== undefined){let data166 = data42.type;if(!(((data166 === "Hidden") || (data166 === "String")) || (data166 === "Text"))){const err388 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/28/allOf/0/then/allOf/0/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[28].allOf[0].then.allOf[0].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}}}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.feel === undefined){const err389 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/28/allOf/0/then/allOf/1/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}if(data42.feel !== undefined){if("required" !== data42.feel){const err390 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/28/allOf/0/then/allOf/1/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}}}var _valid44 = _errs442 === errors;valid203 = _valid44;}if(!valid203){const err391 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/28/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}const _errs448 = errors;let valid209 = true;const _errs449 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err392 = {};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}else {if(data42.binding !== undefined){let data168 = data42.binding;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(((data168.type === undefined) && ("type")) || ((data168.name === undefined) && ("name"))){const err393 = {};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}else {if(data168.type !== undefined){const _errs451 = errors;if("bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property" !== data168.type){const err394 = {};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}var valid211 = _errs451 === errors;}else {var valid211 = true;}if(valid211){if(data168.name !== undefined){let data170 = data168.name;const _errs452 = errors;if(!((data170 === "variableNames") || (data170 === "variableEvents"))){const err395 = {};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}var valid211 = _errs452 === errors;}else {var valid211 = true;}}}}}}}var _valid45 = _errs449 === errors;errors = _errs448;if(vErrors !== null){if(_errs448){vErrors.length = _errs448;}else {vErrors = null;}}if(_valid45){const _errs453 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err396 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/28/allOf/1/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}if(data42.type !== undefined){let data171 = data42.type;if(!(((data171 === "Hidden") || (data171 === "String")) || (data171 === "Text"))){const err397 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/28/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[28].allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}}}var _valid45 = _errs453 === errors;valid209 = _valid45;}if(!valid209){const err398 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/28/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding === undefined){const err399 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}if(data42.binding !== undefined){let data172 = data42.binding;const _errs458 = errors;let valid215 = true;const _errs459 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err400 = {};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}else {if(data172.type !== undefined){let data173 = data172.type;if(!(((((((((data173 === "property") || (data173 === "zeebe:property")) || (data173 === "zeebe:input")) || (data173 === "bpmn:Message#property")) || (data173 === "bpmn:Message#zeebe:subscription#property")) || (data173 === "bpmn:Signal#property")) || (data173 === "bpmn:TimerEventDefinition#property")) || (data173 === "bpmn:ConditionalEventDefinition#property")) || (data173 === "bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"))){const err401 = {};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}}}}var _valid46 = _errs459 === errors;errors = _errs458;if(vErrors !== null){if(_errs458){vErrors.length = _errs458;}else {vErrors = null;}}if(_valid46){const _errs461 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.name === undefined){const err402 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}}if(errors > 0){const emErrs43 = [];for(const err403 of vErrors){if(((((err403.keyword !== "errorMessage") && (!err403.emUsed)) && ((err403.instancePath === instancePath+"/" + i5+"/binding") || ((err403.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err403.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err403.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err403.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs43.push(err403);err403.emUsed = true;}}if(emErrs43.length){const err404 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs43},message:"property.binding " + JSON.stringify(data172 && data172.type) + " requires name"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}const emErrs44 = [];for(const err405 of vErrors){if(!err405.emUsed){emErrs44.push(err405);}}vErrors = emErrs44;errors = emErrs44.length;}var _valid46 = _errs461 === errors;valid215 = _valid46;}if(!valid215){const err406 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}const _errs463 = errors;let valid217 = true;const _errs464 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err407 = {};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}else {if(data172.type !== undefined){if("zeebe:output" !== data172.type){const err408 = {};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}}}var _valid47 = _errs464 === errors;errors = _errs463;if(vErrors !== null){if(_errs463){vErrors.length = _errs463;}else {vErrors = null;}}if(_valid47){const _errs466 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.source === undefined){const err409 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}}if(errors > 0){const emErrs45 = [];for(const err410 of vErrors){if(((((err410.keyword !== "errorMessage") && (!err410.emUsed)) && ((err410.instancePath === instancePath+"/" + i5+"/binding") || ((err410.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err410.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err410.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err410.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs45.push(err410);err410.emUsed = true;}}if(emErrs45.length){const err411 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs45},message:"property.binding " + JSON.stringify(data172 && data172.type) + " requires source"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}const emErrs46 = [];for(const err412 of vErrors){if(!err412.emUsed){emErrs46.push(err412);}}vErrors = emErrs46;errors = emErrs46.length;}var _valid47 = _errs466 === errors;valid217 = _valid47;}if(!valid217){const err413 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}const _errs468 = errors;let valid219 = true;const _errs469 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err414 = {};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}else {if(data172.type !== undefined){if("zeebe:taskHeader" !== data172.type){const err415 = {};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}}}}var _valid48 = _errs469 === errors;errors = _errs468;if(vErrors !== null){if(_errs468){vErrors.length = _errs468;}else {vErrors = null;}}if(_valid48){const _errs471 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.key === undefined){const err416 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}if(errors > 0){const emErrs47 = [];for(const err417 of vErrors){if(((((err417.keyword !== "errorMessage") && (!err417.emUsed)) && ((err417.instancePath === instancePath+"/" + i5+"/binding") || ((err417.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err417.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err417.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err417.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs47.push(err417);err417.emUsed = true;}}if(emErrs47.length){const err418 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs47},message:"property.binding " + JSON.stringify(data172 && data172.type) + " requires key"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}const emErrs48 = [];for(const err419 of vErrors){if(!err419.emUsed){emErrs48.push(err419);}}vErrors = emErrs48;errors = emErrs48.length;}var _valid48 = _errs471 === errors;valid219 = _valid48;}if(!valid219){const err420 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}const _errs473 = errors;let valid221 = true;const _errs474 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err421 = {};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}else {if(data172.type !== undefined){if("zeebe:taskDefinition" !== data172.type){const err422 = {};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}}}}var _valid49 = _errs474 === errors;errors = _errs473;if(vErrors !== null){if(_errs473){vErrors.length = _errs473;}else {vErrors = null;}}if(_valid49){const _errs476 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err423 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}if(data172.property !== undefined){let data177 = data172.property;if(!((data177 === "type") || (data177 === "retries"))){const err424 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[3].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}}}var _valid49 = _errs476 === errors;valid221 = _valid49;}if(!valid221){const err425 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}const _errs479 = errors;let valid224 = true;const _errs480 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err426 = {};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}else {if(data172.type !== undefined){if("zeebe:taskDefinition:type" !== data172.type){const err427 = {};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}}}}var _valid50 = _errs480 === errors;errors = _errs479;if(vErrors !== null){if(_errs479){vErrors.length = _errs479;}else {vErrors = null;}}if(_valid50){const _errs482 = errors;const warning1 = {
756
+ };keyword0.push(warning0);validate14.warnings = keyword0;var _valid19 = _errs204 === errors;if(_valid19 && valid91){valid91 = false;passing5 = [passing5, 1];}else {if(_valid19){valid91 = true;passing5 = 1;}}if(!valid91){const err161 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}else {errors = _errs201;if(vErrors !== null){if(_errs201){vErrors.length = _errs201;}else {vErrors = null;}}}}}var _valid18 = _errs199 === errors;valid88 = _valid18;}if(!valid88){const err162 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}const _errs209 = errors;let valid93 = true;const _errs210 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err163 = {};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {if(data42.binding !== undefined){let data64 = data42.binding;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if((data64.type === undefined) && ("type")){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}else {if(data64.type !== undefined){if("zeebe:linkedResource" !== data64.type){const err165 = {};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}}}}}var _valid20 = _errs210 === errors;errors = _errs209;if(vErrors !== null){if(_errs209){vErrors.length = _errs209;}else {vErrors = null;}}if(_valid20){const _errs213 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding !== undefined){let data66 = data42.binding;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.linkName === undefined){const err166 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/required",keyword:"required",params:{missingProperty: "linkName"},message:"must have required property '"+"linkName"+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(data66.property === undefined){const err167 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(data66.linkName !== undefined){if(typeof data66.linkName !== "string"){const err168 = {instancePath:instancePath+"/" + i5+"/binding/linkName",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/linkName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(data66.property !== undefined){let data68 = data66.property;if(!((((data68 === "resourceId") || (data68 === "resourceType")) || (data68 === "bindingType")) || (data68 === "versionTag"))){const err169 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[10].then.properties.binding.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if(errors > 0){const emErrs19 = [];for(const err170 of vErrors){if(((((err170.keyword !== "errorMessage") && (!err170.emUsed)) && ((err170.instancePath === instancePath+"/" + i5+"/binding/property") || ((err170.instancePath.indexOf(instancePath+"/" + i5+"/binding/property") === 0) && (err170.instancePath[instancePath+"/" + i5+"/binding/property".length] === "/")))) && (err170.schemaPath.indexOf("#/allOf/1/items/allOf/10/then/properties/binding/properties/property") === 0)) && (err170.schemaPath["#/allOf/1/items/allOf/10/then/properties/binding/properties/property".length] === "/")){emErrs19.push(err170);err170.emUsed = true;}}if(emErrs19.length){const err171 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs19},message:"invalid binding.property " + JSON.stringify(data68) + "; must be any of { resourceId, resourceType, bindingType, versionTag }"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}const emErrs20 = [];for(const err172 of vErrors){if(!err172.emUsed){emErrs20.push(err172);}}vErrors = emErrs20;errors = emErrs20.length;}}}}}var _valid20 = _errs213 === errors;valid93 = _valid20;}if(!valid93){const err173 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}const _errs220 = errors;let valid99 = true;const _errs221 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.binding === undefined) && ("binding")) || ((data42.type === undefined) && ("type"))){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {if(data42.binding !== undefined){let data69 = data42.binding;const _errs222 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if((data69.type === undefined) && ("type")){const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {if(data69.type !== undefined){let data70 = data69.type;if(!((data70 === "zeebe:input") || (data70 === "zeebe:output"))){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}}var valid100 = _errs222 === errors;}else {var valid100 = true;}if(valid100){if(data42.type !== undefined){let data71 = data42.type;const _errs224 = errors;if(!((data71 === "Boolean") || (data71 === "Number"))){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}var valid100 = _errs224 === errors;}else {var valid100 = true;}}}}var _valid21 = _errs221 === errors;errors = _errs220;if(vErrors !== null){if(_errs220){vErrors.length = _errs220;}else {vErrors = null;}}if(_valid21){const _errs225 = errors;var _valid21 = _errs225 === errors;valid99 = _valid21;}if(!valid99){const err178 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/11/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}const _errs227 = errors;let valid102 = true;const _errs228 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err179 = {};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}else {if(data42.binding !== undefined){let data72 = data42.binding;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if((data72.type === undefined) && ("type")){const err180 = {};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}else {if(data72.type !== undefined){if("zeebe:userTask" !== data72.type){const err181 = {};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}}}}}}var _valid22 = _errs228 === errors;errors = _errs227;if(vErrors !== null){if(_errs227){vErrors.length = _errs227;}else {vErrors = null;}}if(_valid22){const _errs231 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err182 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/12/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}if(data42.type !== undefined){if(!(data42.type === "Hidden")){const err183 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/12/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[12].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}var _valid22 = _errs231 === errors;valid102 = _valid22;}if(!valid102){const err184 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}const _errs234 = errors;let valid106 = true;const _errs235 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err185 = {};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}else {if(data42.binding !== undefined){let data75 = data42.binding;if(data75 && typeof data75 == "object" && !Array.isArray(data75)){if(((data75.type === undefined) && ("type")) || ((data75.property === undefined) && ("property"))){const err186 = {};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}else {if(data75.type !== undefined){const _errs237 = errors;if("zeebe:formDefinition" !== data75.type){const err187 = {};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}var valid108 = _errs237 === errors;}else {var valid108 = true;}if(valid108){if(data75.property !== undefined){const _errs238 = errors;if("formId" !== data75.property){const err188 = {};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}var valid108 = _errs238 === errors;}else {var valid108 = true;}}}}}}}var _valid23 = _errs235 === errors;errors = _errs234;if(vErrors !== null){if(_errs234){vErrors.length = _errs234;}else {vErrors = null;}}if(_valid23){const _errs239 = errors;const _errs240 = errors;const _errs241 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err189 = {};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}var valid109 = _errs241 === errors;if(valid109){const err190 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/13/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}else {errors = _errs240;if(vErrors !== null){if(_errs240){vErrors.length = _errs240;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err191 of vErrors){if(((((err191.keyword !== "errorMessage") && (!err191.emUsed)) && ((err191.instancePath === instancePath+"/" + i5) || ((err191.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err191.instancePath[instancePath+"/" + i5.length] === "/")))) && (err191.schemaPath.indexOf("#/allOf/1/items/allOf/13/then") === 0)) && (err191.schemaPath["#/allOf/1/items/allOf/13/then".length] === "/")){emErrs21.push(err191);err191.emUsed = true;}}if(emErrs21.length){const err192 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/13/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs21},message:"Property \"formId\" cannot be a FEEL expression"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}const emErrs22 = [];for(const err193 of vErrors){if(!err193.emUsed){emErrs22.push(err193);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid23 = _errs239 === errors;valid106 = _valid23;}if(!valid106){const err194 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/13/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}const _errs243 = errors;let valid110 = true;const _errs244 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err195 = {};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}else {if(data42.binding !== undefined){let data78 = data42.binding;if(data78 && typeof data78 == "object" && !Array.isArray(data78)){if(((data78.type === undefined) && ("type")) || ((data78.property === undefined) && ("property"))){const err196 = {};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}else {if(data78.type !== undefined){const _errs246 = errors;if("zeebe:formDefinition" !== data78.type){const err197 = {};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}var valid112 = _errs246 === errors;}else {var valid112 = true;}if(valid112){if(data78.property !== undefined){let data80 = data78.property;const _errs247 = errors;if(!((data80 === "externalReference") || (data80 === "formId"))){const err198 = {};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}var valid112 = _errs247 === errors;}else {var valid112 = true;}}}}}}}var _valid24 = _errs244 === errors;errors = _errs243;if(vErrors !== null){if(_errs243){vErrors.length = _errs243;}else {vErrors = null;}}if(_valid24){const _errs248 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err199 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/14/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if(data42.type !== undefined){let data81 = data42.type;if(!((((data81 === "Hidden") || (data81 === "String")) || (data81 === "Text")) || (data81 === "Dropdown"))){const err200 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/14/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[14].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}}var _valid24 = _errs248 === errors;valid110 = _valid24;}if(!valid110){const err201 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}const _errs251 = errors;let valid114 = true;const _errs252 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err202 = {};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}else {if(data42.binding !== undefined){let data82 = data42.binding;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if(((data82.type === undefined) && ("type")) || ((data82.property === undefined) && ("property"))){const err203 = {};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}else {if(data82.type !== undefined){const _errs254 = errors;if("zeebe:calledDecision" !== data82.type){const err204 = {};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}var valid116 = _errs254 === errors;}else {var valid116 = true;}if(valid116){if(data82.property !== undefined){const _errs255 = errors;if("resultVariable" !== data82.property){const err205 = {};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}var valid116 = _errs255 === errors;}else {var valid116 = true;}}}}}}}var _valid25 = _errs252 === errors;errors = _errs251;if(vErrors !== null){if(_errs251){vErrors.length = _errs251;}else {vErrors = null;}}if(_valid25){const _errs256 = errors;const _errs257 = errors;const _errs258 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err206 = {};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}var valid117 = _errs258 === errors;if(valid117){const err207 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/15/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}else {errors = _errs257;if(vErrors !== null){if(_errs257){vErrors.length = _errs257;}else {vErrors = null;}}}if(errors > 0){const emErrs23 = [];for(const err208 of vErrors){if(((((err208.keyword !== "errorMessage") && (!err208.emUsed)) && ((err208.instancePath === instancePath+"/" + i5) || ((err208.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err208.instancePath[instancePath+"/" + i5.length] === "/")))) && (err208.schemaPath.indexOf("#/allOf/1/items/allOf/15/then") === 0)) && (err208.schemaPath["#/allOf/1/items/allOf/15/then".length] === "/")){emErrs23.push(err208);err208.emUsed = true;}}if(emErrs23.length){const err209 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/15/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs23},message:"Property \"resultVariable\" cannot be a Feel expression"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}const emErrs24 = [];for(const err210 of vErrors){if(!err210.emUsed){emErrs24.push(err210);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid25 = _errs256 === errors;valid114 = _valid25;}if(!valid114){const err211 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/15/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}const _errs260 = errors;let valid118 = true;const _errs261 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err212 = {};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}else {if(data42.binding !== undefined){let data85 = data42.binding;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(((data85.type === undefined) && ("type")) || ((data85.property === undefined) && ("property"))){const err213 = {};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}else {if(data85.type !== undefined){const _errs263 = errors;if("zeebe:calledDecision" !== data85.type){const err214 = {};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}var valid120 = _errs263 === errors;}else {var valid120 = true;}if(valid120){if(data85.property !== undefined){let data87 = data85.property;const _errs264 = errors;if(!((data87 === "resultVariable") || (data87 === "decisionId"))){const err215 = {};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}var valid120 = _errs264 === errors;}else {var valid120 = true;}}}}}}}var _valid26 = _errs261 === errors;errors = _errs260;if(vErrors !== null){if(_errs260){vErrors.length = _errs260;}else {vErrors = null;}}if(_valid26){const _errs265 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err216 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/16/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}if(data42.type !== undefined){let data88 = data42.type;if(!((((data88 === "Hidden") || (data88 === "String")) || (data88 === "Text")) || (data88 === "Dropdown"))){const err217 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/16/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[16].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}}var _valid26 = _errs265 === errors;valid118 = _valid26;}if(!valid118){const err218 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/16/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}const _errs268 = errors;let valid122 = true;const _errs269 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err219 = {};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}else {if(data42.binding !== undefined){let data89 = data42.binding;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(((data89.type === undefined) && ("type")) || ((data89.property === undefined) && ("property"))){const err220 = {};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}else {if(data89.type !== undefined){const _errs271 = errors;if("zeebe:script" !== data89.type){const err221 = {};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}var valid124 = _errs271 === errors;}else {var valid124 = true;}if(valid124){if(data89.property !== undefined){const _errs272 = errors;if("resultVariable" !== data89.property){const err222 = {};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}var valid124 = _errs272 === errors;}else {var valid124 = true;}}}}}}}var _valid27 = _errs269 === errors;errors = _errs268;if(vErrors !== null){if(_errs268){vErrors.length = _errs268;}else {vErrors = null;}}if(_valid27){const _errs273 = errors;const _errs274 = errors;const _errs275 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err223 = {};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}var valid125 = _errs275 === errors;if(valid125){const err224 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/17/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {errors = _errs274;if(vErrors !== null){if(_errs274){vErrors.length = _errs274;}else {vErrors = null;}}}if(errors > 0){const emErrs25 = [];for(const err225 of vErrors){if(((((err225.keyword !== "errorMessage") && (!err225.emUsed)) && ((err225.instancePath === instancePath+"/" + i5) || ((err225.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err225.instancePath[instancePath+"/" + i5.length] === "/")))) && (err225.schemaPath.indexOf("#/allOf/1/items/allOf/17/then") === 0)) && (err225.schemaPath["#/allOf/1/items/allOf/17/then".length] === "/")){emErrs25.push(err225);err225.emUsed = true;}}if(emErrs25.length){const err226 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/17/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs25},message:"Property \"resultVariable\" cannot be a Feel expression"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}const emErrs26 = [];for(const err227 of vErrors){if(!err227.emUsed){emErrs26.push(err227);}}vErrors = emErrs26;errors = emErrs26.length;}var _valid27 = _errs273 === errors;valid122 = _valid27;}if(!valid122){const err228 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/17/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}const _errs277 = errors;let valid126 = true;const _errs278 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.type === undefined) && ("type")) || ((data42.binding === undefined) && ("binding"))){const err229 = {};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}else {if(data42.type !== undefined){let data92 = data42.type;const _errs279 = errors;if(!((data92 === "String") || (data92 === "Text"))){const err230 = {};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}var valid127 = _errs279 === errors;}else {var valid127 = true;}if(valid127){if(data42.binding !== undefined){let data93 = data42.binding;const _errs280 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(((data93.type === undefined) && ("type")) || ((data93.property === undefined) && ("property"))){const err231 = {};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}else {if(data93.type !== undefined){const _errs281 = errors;if("zeebe:script" !== data93.type){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}var valid128 = _errs281 === errors;}else {var valid128 = true;}if(valid128){if(data93.property !== undefined){const _errs282 = errors;if("expression" !== data93.property){const err233 = {};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}var valid128 = _errs282 === errors;}else {var valid128 = true;}}}}var valid127 = _errs280 === errors;}else {var valid127 = true;}}}}var _valid28 = _errs278 === errors;errors = _errs277;if(vErrors !== null){if(_errs277){vErrors.length = _errs277;}else {vErrors = null;}}if(_valid28){const _errs283 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.feel === undefined){const err234 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/18/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}if(data42.feel !== undefined){if(!(data42.feel === "required")){const err235 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/18/then/properties/feel/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[18].then.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}}var _valid28 = _errs283 === errors;valid126 = _valid28;}if(!valid126){const err236 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/18/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}const _errs286 = errors;let valid130 = true;const _errs287 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err237 = {};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}else {if(data42.binding !== undefined){let data97 = data42.binding;if(data97 && typeof data97 == "object" && !Array.isArray(data97)){if(((data97.type === undefined) && ("type")) || ((data97.property === undefined) && ("property"))){const err238 = {};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}else {if(data97.type !== undefined){const _errs289 = errors;if("zeebe:script" !== data97.type){const err239 = {};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}var valid132 = _errs289 === errors;}else {var valid132 = true;}if(valid132){if(data97.property !== undefined){let data99 = data97.property;const _errs290 = errors;if(!((data99 === "resultVariable") || (data99 === "expression"))){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var valid132 = _errs290 === errors;}else {var valid132 = true;}}}}}}}var _valid29 = _errs287 === errors;errors = _errs286;if(vErrors !== null){if(_errs286){vErrors.length = _errs286;}else {vErrors = null;}}if(_valid29){const _errs291 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err241 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/19/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if(data42.type !== undefined){let data100 = data42.type;if(!((((data100 === "Hidden") || (data100 === "String")) || (data100 === "Text")) || (data100 === "Dropdown"))){const err242 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/19/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[19].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}}var _valid29 = _errs291 === errors;valid130 = _valid29;}if(!valid130){const err243 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/19/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}const _errs295 = errors;let valid135 = true;const _errs296 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err244 = {};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}else {if(data42.binding !== undefined){let data101 = data42.binding;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(((data101.type === undefined) && ("type")) || ((data101.property === undefined) && ("property"))){const err245 = {};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}else {if(data101.property !== undefined){const _errs298 = errors;if("bindingType" !== data101.property){const err246 = {};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}var valid137 = _errs298 === errors;}else {var valid137 = true;}if(valid137){if(data101.type !== undefined){let data103 = data101.type;const _errs299 = errors;if(!((((data103 === "zeebe:calledDecision") || (data103 === "zeebe:formDefinition")) || (data103 === "zeebe:calledElement")) || (data103 === "zeebe:linkedResource"))){const err247 = {};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}var valid137 = _errs299 === errors;}else {var valid137 = true;}}}}}}}var _valid30 = _errs296 === errors;errors = _errs295;if(vErrors !== null){if(_errs295){vErrors.length = _errs295;}else {vErrors = null;}}if(_valid30){const _errs300 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err248 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data42.value === undefined){const err249 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}if(data42.choices !== undefined){let data104 = data42.choices;if(Array.isArray(data104)){const len6 = data104.length;for(let i6=0; i6<len6; i6++){let data105 = data104[i6];if(data105 && typeof data105 == "object" && !Array.isArray(data105)){if(data105.value !== undefined){let data106 = data105.value;if(!(((data106 === "latest") || (data106 === "versionTag")) || (data106 === "deployment"))){const err250 = {instancePath:instancePath+"/" + i5+"/choices/" + i6+"/value",schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/properties/choices/items/properties/value/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[20].allOf[0].then.properties.choices.items.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}}}}else {const err251 = {instancePath:instancePath+"/" + i5+"/choices",schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/properties/choices/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}if(data42.type !== undefined){let data107 = data42.type;if(!((data107 === "Hidden") || (data107 === "Dropdown"))){const err252 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[20].allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}if(errors > 0){const emErrs27 = [];for(const err253 of vErrors){if(((((err253.keyword !== "errorMessage") && (!err253.emUsed)) && ((err253.instancePath === instancePath+"/" + i5+"/type") || ((err253.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err253.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err253.schemaPath.indexOf("#/allOf/1/items/allOf/20/allOf/0/then/properties/type") === 0)) && (err253.schemaPath["#/allOf/1/items/allOf/20/allOf/0/then/properties/type".length] === "/")){emErrs27.push(err253);err253.emUsed = true;}}if(emErrs27.length){const err254 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs27},message:"Incorrect type " + JSON.stringify(data107) + ". Must be one of { Hidden, Dropdown } for binding with `property`=`bindingType`"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}const emErrs28 = [];for(const err255 of vErrors){if(!err255.emUsed){emErrs28.push(err255);}}vErrors = emErrs28;errors = emErrs28.length;}}if(data42.value !== undefined){let data108 = data42.value;if(!(((data108 === "latest") || (data108 === "versionTag")) || (data108 === "deployment"))){const err256 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/20/allOf/0/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[20].allOf[0].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}}var _valid30 = _errs300 === errors;valid135 = _valid30;}if(!valid135){const err257 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}const _errs308 = errors;let valid142 = true;const _errs309 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err258 = {};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}else {if(data42.binding !== undefined){let data109 = data42.binding;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){if(((data109.type === undefined) && ("type")) || ((data109.property === undefined) && ("property"))){const err259 = {};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}else {if(data109.property !== undefined){const _errs311 = errors;if("versionTag" !== data109.property){const err260 = {};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}var valid144 = _errs311 === errors;}else {var valid144 = true;}if(valid144){if(data109.type !== undefined){let data111 = data109.type;const _errs312 = errors;if(!((((data111 === "zeebe:calledDecision") || (data111 === "zeebe:formDefinition")) || (data111 === "zeebe:calledElement")) || (data111 === "zeebe:linkedResource"))){const err261 = {};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}var valid144 = _errs312 === errors;}else {var valid144 = true;}}}}}}}var _valid31 = _errs309 === errors;errors = _errs308;if(vErrors !== null){if(_errs308){vErrors.length = _errs308;}else {vErrors = null;}}if(_valid31){const _errs313 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err262 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/1/then/allOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if(data42.type !== undefined){let data112 = data42.type;if(!((((data112 === "Hidden") || (data112 === "Dropdown")) || (data112 === "String")) || (data112 === "Text"))){const err263 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/20/allOf/1/then/allOf/0/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[20].allOf[1].then.allOf[0].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}if(errors > 0){const emErrs29 = [];for(const err264 of vErrors){if(((((err264.keyword !== "errorMessage") && (!err264.emUsed)) && ((err264.instancePath === instancePath+"/" + i5+"/type") || ((err264.instancePath.indexOf(instancePath+"/" + i5+"/type") === 0) && (err264.instancePath[instancePath+"/" + i5+"/type".length] === "/")))) && (err264.schemaPath.indexOf("#/allOf/1/items/allOf/20/allOf/1/then/allOf/0/properties/type") === 0)) && (err264.schemaPath["#/allOf/1/items/allOf/20/allOf/1/then/allOf/0/properties/type".length] === "/")){emErrs29.push(err264);err264.emUsed = true;}}if(emErrs29.length){const err265 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/20/allOf/1/then/allOf/0/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs29},message:"Incorrect type " + JSON.stringify(data112) + ". Must be one of { String, Text, Hidden, Dropdown } for binding with `property`=`versionTag`"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}const emErrs30 = [];for(const err266 of vErrors){if(!err266.emUsed){emErrs30.push(err266);}}vErrors = emErrs30;errors = emErrs30.length;}}}const _errs317 = errors;const _errs318 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err267 = {};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}var valid147 = _errs318 === errors;if(valid147){const err268 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/1/then/allOf/1/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}else {errors = _errs317;if(vErrors !== null){if(_errs317){vErrors.length = _errs317;}else {vErrors = null;}}}if(errors > 0){const emErrs31 = [];for(const err269 of vErrors){if(((((err269.keyword !== "errorMessage") && (!err269.emUsed)) && ((err269.instancePath === instancePath+"/" + i5) || ((err269.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err269.instancePath[instancePath+"/" + i5.length] === "/")))) && (err269.schemaPath.indexOf("#/allOf/1/items/allOf/20/allOf/1/then/allOf/1") === 0)) && (err269.schemaPath["#/allOf/1/items/allOf/20/allOf/1/then/allOf/1".length] === "/")){emErrs31.push(err269);err269.emUsed = true;}}if(emErrs31.length){const err270 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/1/then/allOf/1/errorMessage",keyword:"errorMessage",params:{errors: emErrs31},message:"Binding with `property`=`versionTag` does not support `feel`"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}const emErrs32 = [];for(const err271 of vErrors){if(!err271.emUsed){emErrs32.push(err271);}}vErrors = emErrs32;errors = emErrs32.length;}var _valid31 = _errs313 === errors;valid142 = _valid31;}if(!valid142){const err272 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/20/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}const _errs320 = errors;let valid148 = true;const _errs321 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err273 = {};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}else {if(data42.binding !== undefined){let data113 = data42.binding;if(data113 && typeof data113 == "object" && !Array.isArray(data113)){if(((data113.type === undefined) && ("type")) || ((data113.property === undefined) && ("property"))){const err274 = {};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}else {if(data113.type !== undefined){const _errs323 = errors;if("zeebe:assignmentDefinition" !== data113.type){const err275 = {};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}var valid150 = _errs323 === errors;}else {var valid150 = true;}if(valid150){if(data113.property !== undefined){let data115 = data113.property;const _errs324 = errors;if(!(((data115 === "assignee") || (data115 === "candidateUsers")) || (data115 === "candidateGroups"))){const err276 = {};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}var valid150 = _errs324 === errors;}else {var valid150 = true;}}}}}}}var _valid32 = _errs321 === errors;errors = _errs320;if(vErrors !== null){if(_errs320){vErrors.length = _errs320;}else {vErrors = null;}}if(_valid32){const _errs325 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err277 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/21/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}if(data42.type !== undefined){let data116 = data42.type;if(!((((data116 === "Hidden") || (data116 === "String")) || (data116 === "Text")) || (data116 === "Dropdown"))){const err278 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/21/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[21].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}}var _valid32 = _errs325 === errors;valid148 = _valid32;}if(!valid148){const err279 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/21/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}const _errs329 = errors;let valid153 = true;const _errs330 = errors;if(errors === _errs330){if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err280 = {};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}else {if(data42.binding !== undefined){let data117 = data42.binding;if(data117 && typeof data117 == "object" && !Array.isArray(data117)){if(((data117.type === undefined) && ("type")) || ((data117.property === undefined) && ("property"))){const err281 = {};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}else {if(data117.type !== undefined){const _errs333 = errors;if("zeebe:priorityDefinition" !== data117.type){const err282 = {};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}var valid155 = _errs333 === errors;}else {var valid155 = true;}if(valid155){if(data117.property !== undefined){const _errs334 = errors;if("priority" !== data117.property){const err283 = {};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var valid155 = _errs334 === errors;}else {var valid155 = true;}}}}}}}else {const err284 = {};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}}var _valid33 = _errs330 === errors;errors = _errs329;if(vErrors !== null){if(_errs329){vErrors.length = _errs329;}else {vErrors = null;}}if(_valid33){const _errs335 = errors;const _errs336 = errors;let valid156 = false;const _errs337 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err285 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}if(data42.type !== undefined){let data120 = data42.type;if(!(((data120 === "Hidden") || (data120 === "Number")) || (data120 === "Dropdown"))){const err286 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf/0/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[22].allOf[0].then.anyOf[0].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}}var _valid34 = _errs337 === errors;valid156 = valid156 || _valid34;if(!valid156){const _errs339 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err287 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}if(data42.feel === undefined){const err288 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf/1/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}if(data42.type !== undefined){let data121 = data42.type;if(!((data121 === "String") || (data121 === "Text"))){const err289 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf/1/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[22].allOf[0].then.anyOf[1].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}if(data42.feel !== undefined){if("required" !== data42.feel){const err290 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf/1/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}}var _valid34 = _errs339 === errors;valid156 = valid156 || _valid34;}if(!valid156){const err291 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/0/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}else {errors = _errs336;if(vErrors !== null){if(_errs336){vErrors.length = _errs336;}else {vErrors = null;}}}var _valid33 = _errs335 === errors;valid153 = _valid33;}if(!valid153){const err292 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}const _errs343 = errors;let valid159 = true;const _errs344 = errors;if(errors === _errs344){if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((((data42.binding === undefined) && ("binding")) || ((data42.value === undefined) && ("value"))) || ((data42.type === undefined) && ("type"))){const err293 = {};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}else {if(data42.type !== undefined){const _errs346 = errors;if("Number" !== data42.type){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}var valid160 = _errs346 === errors;}else {var valid160 = true;}if(valid160){if(data42.binding !== undefined){let data124 = data42.binding;const _errs347 = errors;if(data124 && typeof data124 == "object" && !Array.isArray(data124)){if(((data124.type === undefined) && ("type")) || ((data124.property === undefined) && ("property"))){const err295 = {};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}else {if(data124.type !== undefined){const _errs348 = errors;if("zeebe:priorityDefinition" !== data124.type){const err296 = {};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}var valid161 = _errs348 === errors;}else {var valid161 = true;}if(valid161){if(data124.property !== undefined){const _errs349 = errors;if("priority" !== data124.property){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}var valid161 = _errs349 === errors;}else {var valid161 = true;}}}}var valid160 = _errs347 === errors;}else {var valid160 = true;}}}}else {const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}var _valid35 = _errs344 === errors;errors = _errs343;if(vErrors !== null){if(_errs343){vErrors.length = _errs343;}else {vErrors = null;}}if(_valid35){const _errs350 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.value !== undefined){let data127 = data42.value;if(!((typeof data127 == "number") && (!(data127 % 1) && !isNaN(data127)))){const err299 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/1/then/properties/value/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}if(typeof data127 == "number"){if(data127 > 100 || isNaN(data127)){const err300 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/1/then/properties/value/maximum",keyword:"maximum",params:{comparison: "<=", limit: 100},message:"must be <= 100"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}if(data127 < 0 || isNaN(data127)){const err301 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/1/then/properties/value/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}}}var _valid35 = _errs350 === errors;valid159 = _valid35;}if(!valid159){const err302 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}const _errs354 = errors;let valid163 = true;const _errs355 = errors;if(errors === _errs355){if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.binding === undefined) && ("binding")) || ((data42.type === undefined) && ("type"))){const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}else {if(data42.type !== undefined){let data128 = data42.type;const _errs357 = errors;if(!((data128 === "Hidden") || (data128 === "Dropdown"))){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}var valid164 = _errs357 === errors;}else {var valid164 = true;}if(valid164){if(data42.binding !== undefined){let data129 = data42.binding;const _errs358 = errors;if(data129 && typeof data129 == "object" && !Array.isArray(data129)){if(((data129.type === undefined) && ("type")) || ((data129.property === undefined) && ("property"))){const err305 = {};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}else {if(data129.type !== undefined){const _errs359 = errors;if("zeebe:priorityDefinition" !== data129.type){const err306 = {};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}var valid165 = _errs359 === errors;}else {var valid165 = true;}if(valid165){if(data129.property !== undefined){const _errs360 = errors;if("priority" !== data129.property){const err307 = {};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}var valid165 = _errs360 === errors;}else {var valid165 = true;}}}}var valid164 = _errs358 === errors;}else {var valid164 = true;}}}}else {const err308 = {};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}var _valid36 = _errs355 === errors;errors = _errs354;if(vErrors !== null){if(_errs354){vErrors.length = _errs354;}else {vErrors = null;}}if(_valid36){const _errs361 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.value !== undefined){let data132 = data42.value;if(typeof data132 === "string"){if(!pattern6.test(data132)){const err309 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/2/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(100|[1-9]?[0-9])$"},message:"must match pattern \""+"^(100|[1-9]?[0-9])$"+"\""};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}else {const err310 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/2/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}if(errors > 0){const emErrs33 = [];for(const err311 of vErrors){if(((((err311.keyword !== "errorMessage") && (!err311.emUsed)) && ((err311.instancePath === instancePath+"/" + i5+"/value") || ((err311.instancePath.indexOf(instancePath+"/" + i5+"/value") === 0) && (err311.instancePath[instancePath+"/" + i5+"/value".length] === "/")))) && (err311.schemaPath.indexOf("#/allOf/1/items/allOf/22/allOf/2/then/properties/value") === 0)) && (err311.schemaPath["#/allOf/1/items/allOf/22/allOf/2/then/properties/value".length] === "/")){emErrs33.push(err311);err311.emUsed = true;}}if(emErrs33.length){const err312 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/2/then/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrs33},message:"Invalid value for priority. Must be between 0 and 100"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}const emErrs34 = [];for(const err313 of vErrors){if(!err313.emUsed){emErrs34.push(err313);}}vErrors = emErrs34;errors = emErrs34.length;}}if(data42.choices !== undefined){let data133 = data42.choices;if(Array.isArray(data133)){const len7 = data133.length;for(let i7=0; i7<len7; i7++){let data134 = data133[i7];if(data134 && typeof data134 == "object" && !Array.isArray(data134)){if(data134.value !== undefined){let data135 = data134.value;if(typeof data135 === "string"){if(!pattern6.test(data135)){const err314 = {instancePath:instancePath+"/" + i5+"/choices/" + i7+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/2/then/properties/choices/items/properties/value/pattern",keyword:"pattern",params:{pattern: "^(100|[1-9]?[0-9])$"},message:"must match pattern \""+"^(100|[1-9]?[0-9])$"+"\""};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}}else {const err315 = {instancePath:instancePath+"/" + i5+"/choices/" + i7+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/2/then/properties/choices/items/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}if(errors > 0){const emErrs35 = [];for(const err316 of vErrors){if(((((err316.keyword !== "errorMessage") && (!err316.emUsed)) && ((err316.instancePath === instancePath+"/" + i5+"/choices/" + i7+"/value") || ((err316.instancePath.indexOf(instancePath+"/" + i5+"/choices/" + i7+"/value") === 0) && (err316.instancePath[instancePath+"/" + i5+"/choices/" + i7+"/value".length] === "/")))) && (err316.schemaPath.indexOf("#/allOf/1/items/allOf/22/allOf/2/then/properties/choices/items/properties/value") === 0)) && (err316.schemaPath["#/allOf/1/items/allOf/22/allOf/2/then/properties/choices/items/properties/value".length] === "/")){emErrs35.push(err316);err316.emUsed = true;}}if(emErrs35.length){const err317 = {instancePath:instancePath+"/" + i5+"/choices/" + i7+"/value",schemaPath:"#/allOf/1/items/allOf/22/allOf/2/then/properties/choices/items/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrs35},message:"Invalid value for priority. Must be between 0 and 100"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}const emErrs36 = [];for(const err318 of vErrors){if(!err318.emUsed){emErrs36.push(err318);}}vErrors = emErrs36;errors = emErrs36.length;}}}}}}}var _valid36 = _errs361 === errors;valid163 = _valid36;}if(!valid163){const err319 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/22/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}const _errs371 = errors;let valid171 = true;const _errs372 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err320 = {};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}else {if(data42.binding !== undefined){let data136 = data42.binding;if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(((data136.type === undefined) && ("type")) || ((data136.property === undefined) && ("property"))){const err321 = {};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}else {if(data136.type !== undefined){const _errs374 = errors;if("zeebe:adHoc" !== data136.type){const err322 = {};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}var valid173 = _errs374 === errors;}else {var valid173 = true;}if(valid173){if(data136.property !== undefined){let data138 = data136.property;const _errs375 = errors;if(!((data138 === "outputCollection") || (data138 === "outputElement"))){const err323 = {};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}var valid173 = _errs375 === errors;}else {var valid173 = true;}}}}}}}var _valid37 = _errs372 === errors;errors = _errs371;if(vErrors !== null){if(_errs371){vErrors.length = _errs371;}else {vErrors = null;}}if(_valid37){const _errs376 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err324 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/23/allOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}if(data42.type !== undefined){let data139 = data42.type;if(!((((data139 === "Hidden") || (data139 === "String")) || (data139 === "Text")) || (data139 === "Dropdown"))){const err325 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/23/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[23].allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}}}var _valid37 = _errs376 === errors;valid171 = _valid37;}if(!valid171){const err326 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/23/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}const _errs380 = errors;let valid175 = true;const _errs381 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err327 = {};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}else {if(data42.binding !== undefined){let data140 = data42.binding;if(data140 && typeof data140 == "object" && !Array.isArray(data140)){if(((data140.type === undefined) && ("type")) || ((data140.property === undefined) && ("property"))){const err328 = {};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}else {if(data140.type !== undefined){const _errs383 = errors;if("zeebe:adHoc" !== data140.type){const err329 = {};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}var valid177 = _errs383 === errors;}else {var valid177 = true;}if(valid177){if(data140.property !== undefined){const _errs384 = errors;if("outputCollection" !== data140.property){const err330 = {};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}var valid177 = _errs384 === errors;}else {var valid177 = true;}}}}}}}var _valid38 = _errs381 === errors;errors = _errs380;if(vErrors !== null){if(_errs380){vErrors.length = _errs380;}else {vErrors = null;}}if(_valid38){const _errs385 = errors;const _errs386 = errors;const _errs387 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err331 = {};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}}var valid178 = _errs387 === errors;if(valid178){const err332 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/23/allOf/1/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}else {errors = _errs386;if(vErrors !== null){if(_errs386){vErrors.length = _errs386;}else {vErrors = null;}}}if(errors > 0){const emErrs37 = [];for(const err333 of vErrors){if(((((err333.keyword !== "errorMessage") && (!err333.emUsed)) && ((err333.instancePath === instancePath+"/" + i5) || ((err333.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err333.instancePath[instancePath+"/" + i5.length] === "/")))) && (err333.schemaPath.indexOf("#/allOf/1/items/allOf/23/allOf/1/then") === 0)) && (err333.schemaPath["#/allOf/1/items/allOf/23/allOf/1/then".length] === "/")){emErrs37.push(err333);err333.emUsed = true;}}if(emErrs37.length){const err334 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/23/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs37},message:"Property \"outputCollection\" cannot be a FEEL expression"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}const emErrs38 = [];for(const err335 of vErrors){if(!err335.emUsed){emErrs38.push(err335);}}vErrors = emErrs38;errors = emErrs38.length;}var _valid38 = _errs385 === errors;valid175 = _valid38;}if(!valid175){const err336 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/23/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}const _errs390 = errors;let valid180 = true;const _errs391 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err337 = {};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}else {if(data42.binding !== undefined){let data143 = data42.binding;if(data143 && typeof data143 == "object" && !Array.isArray(data143)){if(((data143.type === undefined) && ("type")) || ((data143.property === undefined) && ("property"))){const err338 = {};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}else {if(data143.type !== undefined){const _errs393 = errors;if("zeebe:taskSchedule" !== data143.type){const err339 = {};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}var valid182 = _errs393 === errors;}else {var valid182 = true;}if(valid182){if(data143.property !== undefined){let data145 = data143.property;const _errs394 = errors;if(!((data145 === "dueDate") || (data145 === "followUpDate"))){const err340 = {};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}var valid182 = _errs394 === errors;}else {var valid182 = true;}}}}}}}var _valid39 = _errs391 === errors;errors = _errs390;if(vErrors !== null){if(_errs390){vErrors.length = _errs390;}else {vErrors = null;}}if(_valid39){const _errs395 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err341 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/24/allOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}if(data42.type !== undefined){let data146 = data42.type;if(!((((data146 === "Hidden") || (data146 === "String")) || (data146 === "Dropdown")) || (data146 === "Text"))){const err342 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/24/allOf/0/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[24].allOf[0].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}}}var _valid39 = _errs395 === errors;valid180 = _valid39;}if(!valid180){const err343 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/24/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}const _errs398 = errors;let valid184 = true;const _errs399 = errors;const _errs400 = errors;const _errs401 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err344 = {};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}}var valid185 = _errs401 === errors;if(valid185){const err345 = {};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}else {errors = _errs400;if(vErrors !== null){if(_errs400){vErrors.length = _errs400;}else {vErrors = null;}}}if(errors === _errs399){if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.binding === undefined) && ("binding")) || ((data42.value === undefined) && ("value"))){const err346 = {};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}else {if(data42.binding !== undefined){let data147 = data42.binding;if(data147 && typeof data147 == "object" && !Array.isArray(data147)){if(((data147.type === undefined) && ("type")) || ((data147.property === undefined) && ("property"))){const err347 = {};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}else {if(data147.type !== undefined){const _errs403 = errors;if("zeebe:taskSchedule" !== data147.type){const err348 = {};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}var valid187 = _errs403 === errors;}else {var valid187 = true;}if(valid187){if(data147.property !== undefined){let data149 = data147.property;const _errs404 = errors;if(!((data149 === "dueDate") || (data149 === "followUpDate"))){const err349 = {};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}var valid187 = _errs404 === errors;}else {var valid187 = true;}}}}}}}}var _valid40 = _errs399 === errors;errors = _errs398;if(vErrors !== null){if(_errs398){vErrors.length = _errs398;}else {vErrors = null;}}if(_valid40){const _errs405 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.value === undefined){const err350 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/24/allOf/1/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}if(data42.value !== undefined){let data150 = data42.value;if(typeof data150 === "string"){if(!pattern8.test(data150)){const err351 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/24/allOf/1/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(?<date>\\d{4}-(?<month>0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))T(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](Z|([+-](0[0-9]|1[0-3]):[0-5][0-9](\\[[^\\]]+\\])?))$"},message:"must match pattern \""+"^(?<date>\\d{4}-(?<month>0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01]))T(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](Z|([+-](0[0-9]|1[0-3]):[0-5][0-9](\\[[^\\]]+\\])?))$"+"\""};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}}else {const err352 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/24/allOf/1/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}if(errors > 0){const emErrs39 = [];for(const err353 of vErrors){if(((((err353.keyword !== "errorMessage") && (!err353.emUsed)) && ((err353.instancePath === instancePath+"/" + i5+"/value") || ((err353.instancePath.indexOf(instancePath+"/" + i5+"/value") === 0) && (err353.instancePath[instancePath+"/" + i5+"/value".length] === "/")))) && (err353.schemaPath.indexOf("#/allOf/1/items/allOf/24/allOf/1/then/properties/value") === 0)) && (err353.schemaPath["#/allOf/1/items/allOf/24/allOf/1/then/properties/value".length] === "/")){emErrs39.push(err353);err353.emUsed = true;}}if(emErrs39.length){const err354 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/24/allOf/1/then/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrs39},message:"Must be conforming to an ISO 8601 combined date and time representation"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}const emErrs40 = [];for(const err355 of vErrors){if(!err355.emUsed){emErrs40.push(err355);}}vErrors = emErrs40;errors = emErrs40.length;}}}var _valid40 = _errs405 === errors;valid184 = _valid40;}if(!valid184){const err356 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/24/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}const _errs409 = errors;let valid189 = true;const _errs410 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err357 = {};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}else {if(data42.binding !== undefined){let data151 = data42.binding;if(data151 && typeof data151 == "object" && !Array.isArray(data151)){if((data151.type === undefined) && ("type")){const err358 = {};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}else {if(data151.type !== undefined){if("bpmn:Signal#property" !== data151.type){const err359 = {};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}}}}}}}var _valid41 = _errs410 === errors;errors = _errs409;if(vErrors !== null){if(_errs409){vErrors.length = _errs409;}else {vErrors = null;}}if(_valid41){const _errs413 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err360 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/25/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}if(data42.type !== undefined){let data153 = data42.type;if(!((((data153 === "String") || (data153 === "Text")) || (data153 === "Hidden")) || (data153 === "Dropdown"))){const err361 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/25/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[25].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}}var _valid41 = _errs413 === errors;valid189 = _valid41;}if(!valid189){const err362 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/25/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}const _errs416 = errors;let valid193 = true;const _errs417 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err363 = {};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}else {if(data42.binding !== undefined){let data154 = data42.binding;if(data154 && typeof data154 == "object" && !Array.isArray(data154)){if(((data154.type === undefined) && ("type")) || ((data154.property === undefined) && ("property"))){const err364 = {};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}else {if(data154.type !== undefined){const _errs419 = errors;if("zeebe:calledElement" !== data154.type){const err365 = {};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}var valid195 = _errs419 === errors;}else {var valid195 = true;}if(valid195){if(data154.property !== undefined){let data156 = data154.property;const _errs420 = errors;if(!((data156 === "propagateAllParentVariables") || (data156 === "propagateAllChildVariables"))){const err366 = {};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}var valid195 = _errs420 === errors;}else {var valid195 = true;}}}}}}}var _valid42 = _errs417 === errors;errors = _errs416;if(vErrors !== null){if(_errs416){vErrors.length = _errs416;}else {vErrors = null;}}if(_valid42){const _errs421 = errors;const _errs422 = errors;const _errs423 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err367 = {};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}}var valid196 = _errs423 === errors;if(valid196){const err368 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/26/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}else {errors = _errs422;if(vErrors !== null){if(_errs422){vErrors.length = _errs422;}else {vErrors = null;}}}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err369 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/26/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}if(data42.type !== undefined){let data157 = data42.type;if(!((data157 === "Hidden") || (data157 === "Boolean"))){const err370 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/26/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[26].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}}if(data42.value !== undefined){if(typeof data42.value !== "boolean"){const err371 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/26/then/properties/value/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}}if(errors > 0){const emErrs41 = [];for(const err372 of vErrors){if(((((err372.keyword !== "errorMessage") && (!err372.emUsed)) && ((err372.instancePath === instancePath+"/" + i5) || ((err372.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err372.instancePath[instancePath+"/" + i5.length] === "/")))) && (err372.schemaPath.indexOf("#/allOf/1/items/allOf/26/then") === 0)) && (err372.schemaPath["#/allOf/1/items/allOf/26/then".length] === "/")){emErrs41.push(err372);err372.emUsed = true;}}if(emErrs41.length){const err373 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/26/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs41},message:"FEEL is not supported for `zeebe:calledElement` variable propagation properties"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}const emErrs42 = [];for(const err374 of vErrors){if(!err374.emUsed){emErrs42.push(err374);}}vErrors = emErrs42;errors = emErrs42.length;}var _valid42 = _errs421 === errors;valid193 = _valid42;}if(!valid193){const err375 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/26/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}const _errs428 = errors;let valid198 = true;const _errs429 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err376 = {};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}else {if(data42.binding !== undefined){let data159 = data42.binding;if(data159 && typeof data159 == "object" && !Array.isArray(data159)){if(((data159.type === undefined) && ("type")) || ((data159.name === undefined) && ("name"))){const err377 = {};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}else {if(data159.type !== undefined){const _errs431 = errors;if("bpmn:TimerEventDefinition#property" !== data159.type){const err378 = {};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}var valid200 = _errs431 === errors;}else {var valid200 = true;}if(valid200){if(data159.name !== undefined){let data161 = data159.name;const _errs432 = errors;if(!(((data161 === "timeDate") || (data161 === "timeDuration")) || (data161 === "timeCycle"))){const err379 = {};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}var valid200 = _errs432 === errors;}else {var valid200 = true;}}}}}}}var _valid43 = _errs429 === errors;errors = _errs428;if(vErrors !== null){if(_errs428){vErrors.length = _errs428;}else {vErrors = null;}}if(_valid43){const _errs433 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err380 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/27/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}if(data42.type !== undefined){let data162 = data42.type;if(!(((data162 === "Hidden") || (data162 === "String")) || (data162 === "Text"))){const err381 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/27/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[27].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}}}var _valid43 = _errs433 === errors;valid198 = _valid43;}if(!valid198){const err382 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/27/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}const _errs437 = errors;let valid203 = true;const _errs438 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err383 = {};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}else {if(data42.binding !== undefined){let data163 = data42.binding;if(data163 && typeof data163 == "object" && !Array.isArray(data163)){if(((data163.type === undefined) && ("type")) || ((data163.name === undefined) && ("name"))){const err384 = {};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}else {if(data163.type !== undefined){const _errs440 = errors;if("bpmn:ConditionalEventDefinition#property" !== data163.type){const err385 = {};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}var valid205 = _errs440 === errors;}else {var valid205 = true;}if(valid205){if(data163.name !== undefined){const _errs441 = errors;if("condition" !== data163.name){const err386 = {};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}var valid205 = _errs441 === errors;}else {var valid205 = true;}}}}}}}var _valid44 = _errs438 === errors;errors = _errs437;if(vErrors !== null){if(_errs437){vErrors.length = _errs437;}else {vErrors = null;}}if(_valid44){const _errs442 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err387 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/28/allOf/0/then/allOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}if(data42.type !== undefined){let data166 = data42.type;if(!(((data166 === "Hidden") || (data166 === "String")) || (data166 === "Text"))){const err388 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/28/allOf/0/then/allOf/0/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[28].allOf[0].then.allOf[0].properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}}}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.feel === undefined){const err389 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/28/allOf/0/then/allOf/1/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}if(data42.feel !== undefined){if("required" !== data42.feel){const err390 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/28/allOf/0/then/allOf/1/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}}}var _valid44 = _errs442 === errors;valid203 = _valid44;}if(!valid203){const err391 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/28/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}const _errs448 = errors;let valid209 = true;const _errs449 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err392 = {};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}else {if(data42.binding !== undefined){let data168 = data42.binding;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(((data168.type === undefined) && ("type")) || ((data168.name === undefined) && ("name"))){const err393 = {};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}else {if(data168.type !== undefined){const _errs451 = errors;if("bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property" !== data168.type){const err394 = {};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}var valid211 = _errs451 === errors;}else {var valid211 = true;}if(valid211){if(data168.name !== undefined){const _errs452 = errors;if("variableEvents" !== data168.name){const err395 = {};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}var valid211 = _errs452 === errors;}else {var valid211 = true;}}}}}}}var _valid45 = _errs449 === errors;errors = _errs448;if(vErrors !== null){if(_errs448){vErrors.length = _errs448;}else {vErrors = null;}}if(_valid45){const _errs453 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err396 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/28/allOf/1/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}if(data42.type !== undefined){let data171 = data42.type;if(!(((data171 === "Hidden") || (data171 === "String")) || (data171 === "Text"))){const err397 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/28/allOf/1/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.allOf[28].allOf[1].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}}}var _valid45 = _errs453 === errors;valid209 = _valid45;}if(!valid209){const err398 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/28/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding === undefined){const err399 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}if(data42.binding !== undefined){let data172 = data42.binding;const _errs458 = errors;let valid215 = true;const _errs459 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err400 = {};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}else {if(data172.type !== undefined){let data173 = data172.type;if(!(((((((((data173 === "property") || (data173 === "zeebe:property")) || (data173 === "zeebe:input")) || (data173 === "bpmn:Message#property")) || (data173 === "bpmn:Message#zeebe:subscription#property")) || (data173 === "bpmn:Signal#property")) || (data173 === "bpmn:TimerEventDefinition#property")) || (data173 === "bpmn:ConditionalEventDefinition#property")) || (data173 === "bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"))){const err401 = {};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}}}}var _valid46 = _errs459 === errors;errors = _errs458;if(vErrors !== null){if(_errs458){vErrors.length = _errs458;}else {vErrors = null;}}if(_valid46){const _errs461 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.name === undefined){const err402 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}}if(errors > 0){const emErrs43 = [];for(const err403 of vErrors){if(((((err403.keyword !== "errorMessage") && (!err403.emUsed)) && ((err403.instancePath === instancePath+"/" + i5+"/binding") || ((err403.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err403.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err403.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err403.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs43.push(err403);err403.emUsed = true;}}if(emErrs43.length){const err404 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs43},message:"property.binding " + JSON.stringify(data172 && data172.type) + " requires name"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}const emErrs44 = [];for(const err405 of vErrors){if(!err405.emUsed){emErrs44.push(err405);}}vErrors = emErrs44;errors = emErrs44.length;}var _valid46 = _errs461 === errors;valid215 = _valid46;}if(!valid215){const err406 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}const _errs463 = errors;let valid217 = true;const _errs464 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err407 = {};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}else {if(data172.type !== undefined){if("zeebe:output" !== data172.type){const err408 = {};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}}}var _valid47 = _errs464 === errors;errors = _errs463;if(vErrors !== null){if(_errs463){vErrors.length = _errs463;}else {vErrors = null;}}if(_valid47){const _errs466 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.source === undefined){const err409 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}}if(errors > 0){const emErrs45 = [];for(const err410 of vErrors){if(((((err410.keyword !== "errorMessage") && (!err410.emUsed)) && ((err410.instancePath === instancePath+"/" + i5+"/binding") || ((err410.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err410.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err410.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err410.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs45.push(err410);err410.emUsed = true;}}if(emErrs45.length){const err411 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs45},message:"property.binding " + JSON.stringify(data172 && data172.type) + " requires source"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}const emErrs46 = [];for(const err412 of vErrors){if(!err412.emUsed){emErrs46.push(err412);}}vErrors = emErrs46;errors = emErrs46.length;}var _valid47 = _errs466 === errors;valid217 = _valid47;}if(!valid217){const err413 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}const _errs468 = errors;let valid219 = true;const _errs469 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err414 = {};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}else {if(data172.type !== undefined){if("zeebe:taskHeader" !== data172.type){const err415 = {};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}}}}var _valid48 = _errs469 === errors;errors = _errs468;if(vErrors !== null){if(_errs468){vErrors.length = _errs468;}else {vErrors = null;}}if(_valid48){const _errs471 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.key === undefined){const err416 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/required",keyword:"required",params:{missingProperty: "key"},message:"must have required property '"+"key"+"'"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}}if(errors > 0){const emErrs47 = [];for(const err417 of vErrors){if(((((err417.keyword !== "errorMessage") && (!err417.emUsed)) && ((err417.instancePath === instancePath+"/" + i5+"/binding") || ((err417.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err417.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err417.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err417.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs47.push(err417);err417.emUsed = true;}}if(emErrs47.length){const err418 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs47},message:"property.binding " + JSON.stringify(data172 && data172.type) + " requires key"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}const emErrs48 = [];for(const err419 of vErrors){if(!err419.emUsed){emErrs48.push(err419);}}vErrors = emErrs48;errors = emErrs48.length;}var _valid48 = _errs471 === errors;valid219 = _valid48;}if(!valid219){const err420 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}const _errs473 = errors;let valid221 = true;const _errs474 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err421 = {};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}else {if(data172.type !== undefined){if("zeebe:taskDefinition" !== data172.type){const err422 = {};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}}}}var _valid49 = _errs474 === errors;errors = _errs473;if(vErrors !== null){if(_errs473){vErrors.length = _errs473;}else {vErrors = null;}}if(_valid49){const _errs476 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err423 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}if(data172.property !== undefined){let data177 = data172.property;if(!((data177 === "type") || (data177 === "retries"))){const err424 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[3].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}}}var _valid49 = _errs476 === errors;valid221 = _valid49;}if(!valid221){const err425 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}const _errs479 = errors;let valid224 = true;const _errs480 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err426 = {};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}else {if(data172.type !== undefined){if("zeebe:taskDefinition:type" !== data172.type){const err427 = {};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}}}}var _valid50 = _errs480 === errors;errors = _errs479;if(vErrors !== null){if(_errs479){vErrors.length = _errs479;}else {vErrors = null;}}if(_valid50){const _errs482 = errors;const warning1 = {
757
757
  keyword: "deprecated",
758
758
  instancePath: instancePath + "/" + i5+"/binding",
759
759
  schemaPath: "#/allOf/1/items/properties/binding/allOf/4/then/deprecated",
760
760
  params: {},
761
761
  message: "Value is deprecated"
762
- };keyword0.push(warning1);validate14.warnings = keyword0;var _valid50 = _errs482 === errors;valid224 = _valid50;}if(!valid224){const err428 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}const _errs484 = errors;let valid226 = true;const _errs485 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err429 = {};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}else {if(data172.type !== undefined){if("zeebe:calledElement" !== data172.type){const err430 = {};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}}}}var _valid51 = _errs485 === errors;errors = _errs484;if(vErrors !== null){if(_errs484){vErrors.length = _errs484;}else {vErrors = null;}}if(_valid51){const _errs487 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err431 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}if(data172.property !== undefined){let data180 = data172.property;if(!(((((data180 === "processId") || (data180 === "bindingType")) || (data180 === "versionTag")) || (data180 === "propagateAllParentVariables")) || (data180 === "propagateAllChildVariables"))){const err432 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[5].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}}}var _valid51 = _errs487 === errors;valid226 = _valid51;}if(!valid226){const err433 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}const _errs490 = errors;let valid229 = true;const _errs491 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err434 = {};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}else {if(data172.type !== undefined){if("zeebe:script" !== data172.type){const err435 = {};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}}}}var _valid52 = _errs491 === errors;errors = _errs490;if(vErrors !== null){if(_errs490){vErrors.length = _errs490;}else {vErrors = null;}}if(_valid52){const _errs493 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err436 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}if(data172.property !== undefined){let data182 = data172.property;if(!((data182 === "expression") || (data182 === "resultVariable"))){const err437 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[6].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}}}var _valid52 = _errs493 === errors;valid229 = _valid52;}if(!valid229){const err438 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}const _errs496 = errors;let valid232 = true;const _errs497 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err439 = {};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}else {if(data172.type !== undefined){if("zeebe:formDefinition" !== data172.type){const err440 = {};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}}}}var _valid53 = _errs497 === errors;errors = _errs496;if(vErrors !== null){if(_errs496){vErrors.length = _errs496;}else {vErrors = null;}}if(_valid53){const _errs499 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err441 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}if(data172.property !== undefined){let data184 = data172.property;if(!((((data184 === "formId") || (data184 === "externalReference")) || (data184 === "bindingType")) || (data184 === "versionTag"))){const err442 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[7].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}}}var _valid53 = _errs499 === errors;valid232 = _valid53;}if(!valid232){const err443 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}const _errs502 = errors;let valid235 = true;const _errs503 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err444 = {};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}else {if(data172.type !== undefined){if("zeebe:calledDecision" !== data172.type){const err445 = {};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}}}}var _valid54 = _errs503 === errors;errors = _errs502;if(vErrors !== null){if(_errs502){vErrors.length = _errs502;}else {vErrors = null;}}if(_valid54){const _errs505 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err446 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}if(data172.property !== undefined){let data186 = data172.property;if(!((((data186 === "decisionId") || (data186 === "resultVariable")) || (data186 === "versionTag")) || (data186 === "bindingType"))){const err447 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[8].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}}}var _valid54 = _errs505 === errors;valid235 = _valid54;}if(!valid235){const err448 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}const _errs508 = errors;let valid238 = true;const _errs509 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err449 = {};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}else {if(data172.type !== undefined){if("zeebe:assignmentDefinition" !== data172.type){const err450 = {};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}}}}var _valid55 = _errs509 === errors;errors = _errs508;if(vErrors !== null){if(_errs508){vErrors.length = _errs508;}else {vErrors = null;}}if(_valid55){const _errs511 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err451 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/9/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}if(data172.property !== undefined){let data188 = data172.property;if(!(((data188 === "assignee") || (data188 === "candidateUsers")) || (data188 === "candidateGroups"))){const err452 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/9/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[9].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}}}var _valid55 = _errs511 === errors;valid238 = _valid55;}if(!valid238){const err453 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}const _errs514 = errors;let valid241 = true;const _errs515 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err454 = {};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}else {if(data172.type !== undefined){if("zeebe:priorityDefinition" !== data172.type){const err455 = {};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}}}}var _valid56 = _errs515 === errors;errors = _errs514;if(vErrors !== null){if(_errs514){vErrors.length = _errs514;}else {vErrors = null;}}if(_valid56){const _errs517 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err456 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/10/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}if(data172.property !== undefined){if("priority" !== data172.property){const err457 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/10/then/properties/property/const",keyword:"const",params:{allowedValue: "priority"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}}}var _valid56 = _errs517 === errors;valid241 = _valid56;}if(!valid241){const err458 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}const _errs520 = errors;let valid244 = true;const _errs521 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err459 = {};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}else {if(data172.type !== undefined){if("zeebe:adHoc" !== data172.type){const err460 = {};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}}}}var _valid57 = _errs521 === errors;errors = _errs520;if(vErrors !== null){if(_errs520){vErrors.length = _errs520;}else {vErrors = null;}}if(_valid57){const _errs523 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err461 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/11/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}if(data172.property !== undefined){let data192 = data172.property;if(!(((data192 === "activeElementsCollection") || (data192 === "outputCollection")) || (data192 === "outputElement"))){const err462 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/11/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[11].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}}var _valid57 = _errs523 === errors;valid244 = _valid57;}if(!valid244){const err463 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/11/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}const _errs526 = errors;let valid247 = true;const _errs527 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err464 = {};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}else {if(data172.type !== undefined){if("zeebe:taskSchedule" !== data172.type){const err465 = {};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}}}}var _valid58 = _errs527 === errors;errors = _errs526;if(vErrors !== null){if(_errs526){vErrors.length = _errs526;}else {vErrors = null;}}if(_valid58){const _errs529 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err466 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/12/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}if(data172.property !== undefined){let data194 = data172.property;if(!((data194 === "dueDate") || (data194 === "followUpDate"))){const err467 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/12/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[12].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}}}var _valid58 = _errs529 === errors;valid247 = _valid58;}if(!valid247){const err468 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}const _errs532 = errors;let valid250 = true;const _errs533 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err469 = {};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}else {if(data172.type !== undefined){if("bpmn:Signal#property" !== data172.type){const err470 = {};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}}}}var _valid59 = _errs533 === errors;errors = _errs532;if(vErrors !== null){if(_errs532){vErrors.length = _errs532;}else {vErrors = null;}}if(_valid59){const _errs535 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.name === undefined){const err471 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/13/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}if(data172.name !== undefined){if("name" !== data172.name){const err472 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/13/then/properties/name/const",keyword:"const",params:{allowedValue: "name"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}}var _valid59 = _errs535 === errors;valid250 = _valid59;}if(!valid250){const err473 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/13/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}const _errs538 = errors;let valid253 = true;const _errs539 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err474 = {};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}else {if(data172.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data172.type){const err475 = {};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}}}}var _valid60 = _errs539 === errors;errors = _errs538;if(vErrors !== null){if(_errs538){vErrors.length = _errs538;}else {vErrors = null;}}if(_valid60){const _errs541 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.name === undefined){const err476 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/14/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}if(data172.name !== undefined){let data198 = data172.name;if(!(((data198 === "timeCycle") || (data198 === "timeDate")) || (data198 === "timeDuration"))){const err477 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/14/then/properties/name/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[14].then.properties.name.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}}}var _valid60 = _errs541 === errors;valid253 = _valid60;}if(!valid253){const err478 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}const _errs545 = errors;let valid257 = true;const _errs546 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err479 = {};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}else {if(data172.type !== undefined){if("bpmn:ConditionalEventDefinition#property" !== data172.type){const err480 = {};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}}}var _valid61 = _errs546 === errors;errors = _errs545;if(vErrors !== null){if(_errs545){vErrors.length = _errs545;}else {vErrors = null;}}if(_valid61){const _errs548 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.name === undefined){const err481 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}if(data172.name !== undefined){if("condition" !== data172.name){const err482 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/0/then/properties/name/const",keyword:"const",params:{allowedValue: "condition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}}}var _valid61 = _errs548 === errors;valid257 = _valid61;}if(!valid257){const err483 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}const _errs551 = errors;let valid260 = true;const _errs552 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err484 = {};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}else {if(data172.type !== undefined){if("bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property" !== data172.type){const err485 = {};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}}}}var _valid62 = _errs552 === errors;errors = _errs551;if(vErrors !== null){if(_errs551){vErrors.length = _errs551;}else {vErrors = null;}}if(_valid62){const _errs554 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.name === undefined){const err486 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/1/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}if(data172.name !== undefined){let data202 = data172.name;if(!((data202 === "variableNames") || (data202 === "variableEvents"))){const err487 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/1/then/properties/name/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[15].allOf[1].then.properties.name.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}}}var _valid62 = _errs554 === errors;valid260 = _valid62;}if(!valid260){const err488 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.type === undefined){const err489 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}if(data172.type !== undefined){let data203 = data172.type;if(typeof data203 !== "string"){const err490 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}if(!(((((((((((((((((((((((data203 === "property") || (data203 === "zeebe:taskDefinition:type")) || (data203 === "zeebe:input")) || (data203 === "zeebe:output")) || (data203 === "zeebe:property")) || (data203 === "zeebe:taskHeader")) || (data203 === "bpmn:Message#property")) || (data203 === "bpmn:Message#zeebe:subscription#property")) || (data203 === "zeebe:taskDefinition")) || (data203 === "zeebe:calledElement")) || (data203 === "zeebe:linkedResource")) || (data203 === "zeebe:userTask")) || (data203 === "zeebe:formDefinition")) || (data203 === "zeebe:calledDecision")) || (data203 === "zeebe:script")) || (data203 === "zeebe:assignmentDefinition")) || (data203 === "zeebe:priorityDefinition")) || (data203 === "zeebe:adHoc")) || (data203 === "zeebe:taskSchedule")) || (data203 === "bpmn:Signal#property")) || (data203 === "bpmn:TimerEventDefinition#property")) || (data203 === "bpmn:ConditionalEventDefinition#property")) || (data203 === "bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"))){const err491 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}if(errors > 0){const emErrs49 = [];for(const err492 of vErrors){if(((((err492.keyword !== "errorMessage") && (!err492.emUsed)) && ((err492.instancePath === instancePath+"/" + i5+"/binding/type") || ((err492.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err492.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err492.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err492.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs49.push(err492);err492.emUsed = true;}}if(emErrs49.length){const err493 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs49},message:"invalid property.binding type " + JSON.stringify(data203) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script, zeebe:assignmentDefinition, zeebe:priorityDefinition, zeebe:adHoc, zeebe:taskSchedule, bpmn:Signal#property, bpmn:TimerEventDefinition#property }"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}const emErrs50 = [];for(const err494 of vErrors){if(!err494.emUsed){emErrs50.push(err494);}}vErrors = emErrs50;errors = emErrs50.length;}}if(data172.name !== undefined){if(typeof data172.name !== "string"){const err495 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}}if(data172.source !== undefined){if(typeof data172.source !== "string"){const err496 = {instancePath:instancePath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}}if(data172.key !== undefined){if(typeof data172.key !== "string"){const err497 = {instancePath:instancePath+"/" + i5+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}}if(data172.property !== undefined){if(typeof data172.property !== "string"){const err498 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}}if(data172.linkName !== undefined){if(typeof data172.linkName !== "string"){const err499 = {instancePath:instancePath+"/" + i5+"/binding/linkName",schemaPath:"#/allOf/1/items/properties/binding/properties/linkName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}}}else {const err500 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}}if(data42.optional !== undefined){if(typeof data42.optional !== "boolean"){const err501 = {instancePath:instancePath+"/" + i5+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}}if(data42.feel !== undefined){let data210 = data42.feel;if(typeof data210 !== "string"){const err502 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}if(!(((data210 === "optional") || (data210 === "required")) || (data210 === "static"))){const err503 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}}if(data42.language !== undefined){if(typeof data42.language !== "string"){const err504 = {instancePath:instancePath+"/" + i5+"/language",schemaPath:"#/allOf/1/items/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}}if(data42.generatedValue !== undefined){let data212 = data42.generatedValue;if(data212 && typeof data212 == "object" && !Array.isArray(data212)){if(data212.type === undefined){const err505 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}if(data212.type !== undefined){if("uuid" !== data212.type){const err506 = {instancePath:instancePath+"/" + i5+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",keyword:"const",params:{allowedValue: "uuid"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}}}else {const err507 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}}if(data42.tooltip !== undefined){if(typeof data42.tooltip !== "string"){const err508 = {instancePath:instancePath+"/" + i5+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}}else {const err509 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}if(errors > 0){const emErrors3 = {"required":{"binding":[]}};const templates3 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err510 of vErrors){if((((((err510.keyword !== "errorMessage") && (!err510.emUsed)) && (err510.instancePath === instancePath+"/" + i5)) && (err510.keyword in emErrors3)) && (err510.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err510.schemaPath.slice(15)))){emPropParams2 = obj0[err510.keyword];emParamsErrors2 = emErrors3[err510.keyword][err510.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err510);err510.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp2 in emErrors3[key3]){emParamsErrors2 = emErrors3[key3][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates3[key3] && templates3[key3][keyProp2];const err511 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema22.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}}}const emErrs51 = [];for(const err512 of vErrors){if(!err512.emUsed){emErrs51.push(err512);}}vErrors = emErrs51;errors = emErrs51.length;}}}else {const err513 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}validate16.errors = vErrors;return errors === 0;}function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.$schema !== undefined){if(typeof data.$schema !== "string"){const err4 = {instancePath:instancePath+"/$schema",schemaPath:"#/allOf/0/properties/%24schema/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){if(typeof data.name !== "string"){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err6 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err7 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.version !== undefined){let data4 = data.version;if(!((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4)))){const err8 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err9 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.deprecated !== undefined){let data6 = data.deprecated;if((typeof data6 !== "boolean") && (!(data6 && typeof data6 == "object" && !Array.isArray(data6)))){const err10 = {instancePath:instancePath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",keyword:"type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"must be boolean,object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.message !== undefined){if(typeof data6.message !== "string"){const err11 = {instancePath:instancePath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data6.documentationRef !== undefined){let data8 = data6.documentationRef;if(typeof data8 === "string"){if(!pattern0.test(data8)){const err12 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}}if(data.appliesTo !== undefined){let data9 = data.appliesTo;if(Array.isArray(data9)){const len0 = data9.length;for(let i0=0; i0<len0; i0++){let data10 = data9[i0];if(typeof data10 === "string"){if(!pattern1.test(data10)){const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err16 of vErrors){if((((((err16.keyword !== "errorMessage") && (!err16.emUsed)) && (err16.instancePath === instancePath+"/appliesTo/" + i0)) && (err16.keyword in emErrors0)) && (err16.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err16.schemaPath.slice(36)))){emErrors0[err16.keyword].push(err16);err16.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err17 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}const emErrs0 = [];for(const err18 of vErrors){if(!err18.emUsed){emErrs0.push(err18);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err19 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.elementType !== undefined){let data11 = data.elementType;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.value === undefined){const err20 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data11.value !== undefined){let data12 = data11.value;if(typeof data12 === "string"){if(!pattern1.test(data12)){const err21 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err23 of vErrors){if((((((err23.keyword !== "errorMessage") && (!err23.emUsed)) && (err23.instancePath === instancePath+"/elementType/value")) && (err23.keyword in emErrors1)) && (err23.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err23.schemaPath.slice(49)))){emErrors1[err23.keyword].push(err23);err23.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err24 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}const emErrs1 = [];for(const err25 of vErrors){if(!err25.emUsed){emErrs1.push(err25);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err26 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err27 of vErrors){if((((((err27.keyword !== "errorMessage") && (!err27.emUsed)) && (err27.instancePath === instancePath+"/elementType")) && (err27.keyword in emErrors2)) && (err27.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err27.schemaPath.slice(32)))){emPropParams0 = obj0[err27.keyword];emParamsErrors0 = emErrors2[err27.keyword][err27.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err27);err27.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err28 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}const emErrs2 = [];for(const err29 of vErrors){if(!err29.emUsed){emErrs2.push(err29);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data13 = data.metadata;if(!(data13 && typeof data13 == "object" && !Array.isArray(data13))){const err30 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.keywords !== undefined){let data14 = data.keywords;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){if(typeof data14[i1] !== "string"){const err31 = {instancePath:instancePath+"/keywords/" + i1,schemaPath:"#/allOf/0/properties/keywords/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}else {const err32 = {instancePath:instancePath+"/keywords",schemaPath:"#/allOf/0/properties/keywords/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err33 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}}if(data.groups !== undefined){let data17 = data.groups;if(Array.isArray(data17)){const len2 = data17.length;for(let i2=0; i2<len2; i2++){let data18 = data17[i2];if(data18 && typeof data18 == "object" && !Array.isArray(data18)){if(data18.id === undefined){const err34 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(data18.label === undefined){const err35 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if(data18.id !== undefined){if(typeof data18.id !== "string"){const err36 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}if(data18.label !== undefined){if(typeof data18.label !== "string"){const err37 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}}}else {const err38 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i2) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i2) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err39 of vErrors){if((((((err39.keyword !== "errorMessage") && (!err39.emUsed)) && (err39.instancePath === instancePath+"/groups/" + i2)) && (err39.keyword in emErrors3)) && (err39.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err39.schemaPath.slice(33)))){emPropParams1 = obj0[err39.keyword];emParamsErrors1 = emErrors3[err39.keyword][err39.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err39);err39.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err40 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}}const emErrs3 = [];for(const err41 of vErrors){if(!err41.emUsed){emErrs3.push(err41);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err42 = {instancePath:instancePath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(data.documentationRef !== undefined){let data21 = data.documentationRef;if(typeof data21 === "string"){if(!pattern0.test(data21)){const err43 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}else {const err44 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err45 of vErrors){if((((((err45.keyword !== "errorMessage") && (!err45.emUsed)) && (err45.instancePath === instancePath+"/documentationRef")) && (err45.keyword in emErrors4)) && (err45.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err45.schemaPath.slice(37)))){emErrors4[err45.keyword].push(err45);err45.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err46 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",keyword:"errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}const emErrs4 = [];for(const err47 of vErrors){if(!err47.emUsed){emErrs4.push(err47);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err48 of vErrors){if((((((err48.keyword !== "errorMessage") && (!err48.emUsed)) && (err48.instancePath === instancePath)) && (err48.keyword in emErrors5)) && (err48.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err48.schemaPath.slice(9)))){emPropParams2 = obj0[err48.keyword];emParamsErrors2 = emErrors5[err48.keyword][err48.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err48);err48.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err49 = {instancePath,schemaPath:"#/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}}}const emErrs5 = [];for(const err50 of vErrors){if(!err50.emUsed){emErrs5.push(err50);}}vErrors = emErrs5;errors = emErrs5.length;}const _errs48 = errors;let valid15 = true;const _errs49 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {if(data.properties !== undefined){let data22 = data.properties;if(Array.isArray(data22)){const _errs51 = errors;const len3 = data22.length;for(let i3=0; i3<len3; i3++){let data23 = data22[i3];const _errs52 = errors;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.binding === undefined) && ("binding")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data23.binding !== undefined){let data24 = data23.binding;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if((data24.type === undefined) && ("type")){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {if(data24.type !== undefined){if("bpmn:Message#property" !== data24.type){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}}}}}}var valid17 = _errs52 === errors;if(valid17){break;}}if(!valid17){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}else {errors = _errs51;if(vErrors !== null){if(_errs51){vErrors.length = _errs51;}else {vErrors = null;}}}}}}}var _valid0 = _errs49 === errors;errors = _errs48;if(vErrors !== null){if(_errs48){vErrors.length = _errs48;}else {vErrors = null;}}if(_valid0){const _errs55 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err56 = {instancePath,schemaPath:"#/allOf/1/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data.elementType !== undefined){let data26 = data.elementType;const _errs58 = errors;let valid22 = true;const _errs59 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.value !== undefined){let data27 = data26.value;if(!(((((data27 === "bpmn:StartEvent") || (data27 === "bpmn:IntermediateCatchEvent")) || (data27 === "bpmn:IntermediateThrowEvent")) || (data27 === "bpmn:BoundaryEvent")) || (data27 === "bpmn:EndEvent"))){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}var _valid1 = _errs59 === errors;errors = _errs58;if(vErrors !== null){if(_errs58){vErrors.length = _errs58;}else {vErrors = null;}}if(_valid1){const _errs61 = errors;if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.eventDefinition === undefined){const err58 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var _valid1 = _errs61 === errors;valid22 = _valid1;}if(!valid22){const err59 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.value === undefined){const err60 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(data26.value !== undefined){let data28 = data26.value;if(!(((((((data28 === "bpmn:ReceiveTask") || (data28 === "bpmn:SendTask")) || (data28 === "bpmn:StartEvent")) || (data28 === "bpmn:IntermediateCatchEvent")) || (data28 === "bpmn:IntermediateThrowEvent")) || (data28 === "bpmn:BoundaryEvent")) || (data28 === "bpmn:EndEvent"))){const err61 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}}}}}var _valid0 = _errs55 === errors;valid15 = _valid0;}if(!valid15){const err62 = {instancePath,schemaPath:"#/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}const _errs64 = errors;let valid25 = true;const _errs65 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data.properties !== undefined){let data29 = data.properties;if(Array.isArray(data29)){const _errs67 = errors;const len4 = data29.length;for(let i4=0; i4<len4; i4++){let data30 = data29[i4];const _errs68 = errors;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if((data30.binding === undefined) && ("binding")){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {if(data30.binding !== undefined){let data31 = data30.binding;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if((data31.type === undefined) && ("type")){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}else {if(data31.type !== undefined){if("bpmn:Message#zeebe:subscription#property" !== data31.type){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}}}}}var valid27 = _errs68 === errors;if(valid27){break;}}if(!valid27){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}else {errors = _errs67;if(vErrors !== null){if(_errs67){vErrors.length = _errs67;}else {vErrors = null;}}}}}}}var _valid2 = _errs65 === errors;errors = _errs64;if(vErrors !== null){if(_errs64){vErrors.length = _errs64;}else {vErrors = null;}}if(_valid2){const _errs71 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err68 = {instancePath,schemaPath:"#/allOf/1/allOf/1/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}if(data.elementType !== undefined){let data33 = data.elementType;const _errs74 = errors;let valid32 = true;const _errs75 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.value !== undefined){let data34 = data33.value;if(!(((((data34 === "bpmn:StartEvent") || (data34 === "bpmn:IntermediateCatchEvent")) || (data34 === "bpmn:IntermediateThrowEvent")) || (data34 === "bpmn:BoundaryEvent")) || (data34 === "bpmn:EndEvent"))){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}}var _valid3 = _errs75 === errors;errors = _errs74;if(vErrors !== null){if(_errs74){vErrors.length = _errs74;}else {vErrors = null;}}if(_valid3){const _errs77 = errors;if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.eventDefinition === undefined){const err70 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}var _valid3 = _errs77 === errors;valid32 = _valid3;}if(!valid32){const err71 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.value === undefined){const err72 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if(data33.value !== undefined){let data35 = data33.value;if(!((((((data35 === "bpmn:ReceiveTask") || (data35 === "bpmn:StartEvent")) || (data35 === "bpmn:IntermediateCatchEvent")) || (data35 === "bpmn:IntermediateThrowEvent")) || (data35 === "bpmn:BoundaryEvent")) || (data35 === "bpmn:EndEvent"))){const err73 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[1].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}}}}var _valid2 = _errs71 === errors;valid25 = _valid2;}if(!valid25){const err74 = {instancePath,schemaPath:"#/allOf/1/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}const _errs80 = errors;let valid35 = true;const _errs81 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}else {if(data.properties !== undefined){let data36 = data.properties;if(Array.isArray(data36)){const _errs83 = errors;const len5 = data36.length;for(let i5=0; i5<len5; i5++){let data37 = data36[i5];const _errs84 = errors;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.binding === undefined) && ("binding")){const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {if(data37.binding !== undefined){let data38 = data37.binding;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if((data38.type === undefined) && ("type")){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {if(data38.type !== undefined){if("zeebe:calledElement" !== data38.type){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}}}}}var valid37 = _errs84 === errors;if(valid37){break;}}if(!valid37){const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}else {errors = _errs83;if(vErrors !== null){if(_errs83){vErrors.length = _errs83;}else {vErrors = null;}}}}}}}var _valid4 = _errs81 === errors;errors = _errs80;if(vErrors !== null){if(_errs80){vErrors.length = _errs80;}else {vErrors = null;}}if(_valid4){const _errs87 = errors;const _errs88 = errors;let valid40 = false;const _errs89 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err80 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data.elementType !== undefined){let data40 = data.elementType;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.value === undefined){const err81 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}if(data40.value !== undefined){if("bpmn:CallActivity" !== data40.value){const err82 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:CallActivity"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}}}}var _valid5 = _errs89 === errors;valid40 = valid40 || _valid5;if(!valid40){const _errs92 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err83 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const)){const err84 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}var _valid5 = _errs92 === errors;valid40 = valid40 || _valid5;}if(!valid40){const err85 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}else {errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err86 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(data.properties !== undefined){let data43 = data.properties;if(Array.isArray(data43)){const _errs95 = errors;const len6 = data43.length;for(let i6=0; i6<len6; i6++){let data44 = data43[i6];const _errs96 = errors;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.binding === undefined){const err87 = {instancePath:instancePath+"/properties/" + i6,schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data44.binding !== undefined){let data45 = data44.binding;if(data45 && typeof data45 == "object" && !Array.isArray(data45)){if(data45.property === undefined){const err88 = {instancePath:instancePath+"/properties/" + i6+"/binding",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data45.type === undefined){const err89 = {instancePath:instancePath+"/properties/" + i6+"/binding",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(data45.type !== undefined){if("zeebe:calledElement" !== data45.type){const err90 = {instancePath:instancePath+"/properties/" + i6+"/binding/type",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:calledElement"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}if(data45.property !== undefined){if("processId" !== data45.property){const err91 = {instancePath:instancePath+"/properties/" + i6+"/binding/property",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "processId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}}}}var valid45 = _errs96 === errors;if(valid45){break;}}if(!valid45){const err92 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}else {errors = _errs95;if(vErrors !== null){if(_errs95){vErrors.length = _errs95;}else {vErrors = null;}}}}if(errors > 0){const emErrs6 = [];for(const err93 of vErrors){if(((((err93.keyword !== "errorMessage") && (!err93.emUsed)) && ((err93.instancePath === instancePath+"/properties") || ((err93.instancePath.indexOf(instancePath+"/properties") === 0) && (err93.instancePath[instancePath+"/properties".length] === "/")))) && (err93.schemaPath.indexOf("#/allOf/1/allOf/2/then/properties/properties") === 0)) && (err93.schemaPath["#/allOf/1/allOf/2/then/properties/properties".length] === "/")){emErrs6.push(err93);err93.emUsed = true;}}if(emErrs6.length){const err94 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs6},message:"Binding with `property`=`processId` and `type`=`zeebe:calledElement` is required, when using a binding with `type`=`zeebe:calledElement`"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const emErrs7 = [];for(const err95 of vErrors){if(!err95.emUsed){emErrs7.push(err95);}}vErrors = emErrs7;errors = emErrs7.length;}}}var _valid4 = _errs87 === errors;valid35 = _valid4;}if(!valid35){const err96 = {instancePath,schemaPath:"#/allOf/1/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}const _errs101 = errors;let valid48 = true;const _errs102 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data.properties !== undefined){let data48 = data.properties;if(Array.isArray(data48)){const _errs104 = errors;const len7 = data48.length;for(let i7=0; i7<len7; i7++){let data49 = data48[i7];const _errs105 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.binding === undefined) && ("binding")){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}else {if(data49.binding !== undefined){let data50 = data49.binding;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}else {if(data50.type !== undefined){if("zeebe:userTask" !== data50.type){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}}}}}var valid50 = _errs105 === errors;if(valid50){break;}}if(!valid50){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {errors = _errs104;if(vErrors !== null){if(_errs104){vErrors.length = _errs104;}else {vErrors = null;}}}}}}}var _valid6 = _errs102 === errors;errors = _errs101;if(vErrors !== null){if(_errs101){vErrors.length = _errs101;}else {vErrors = null;}}if(_valid6){const _errs108 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err102 = {instancePath,schemaPath:"#/allOf/1/allOf/3/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data.elementType !== undefined){let data52 = data.elementType;if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.value === undefined){const err103 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/3/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data52.value !== undefined){if("bpmn:UserTask" !== data52.value){const err104 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/3/then/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:UserTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}}}var _valid6 = _errs108 === errors;valid48 = _valid6;}if(!valid48){const err105 = {instancePath,schemaPath:"#/allOf/1/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const _errs112 = errors;let valid55 = true;const _errs113 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {if(data.properties !== undefined){let data54 = data.properties;if(Array.isArray(data54)){const _errs115 = errors;const len8 = data54.length;for(let i8=0; i8<len8; i8++){let data55 = data54[i8];const _errs116 = errors;if(data55 && typeof data55 == "object" && !Array.isArray(data55)){if((data55.binding === undefined) && ("binding")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {if(data55.binding !== undefined){let data56 = data55.binding;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if((data56.type === undefined) && ("type")){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}else {if(data56.type !== undefined){let data57 = data56.type;if(!((((data57 === "zeebe:formDefinition") || (data57 === "zeebe:assignmentDefinition")) || (data57 === "zeebe:priorityDefinition")) || (data57 === "zeebe:taskSchedule"))){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}}}}}var valid57 = _errs116 === errors;if(valid57){break;}}if(!valid57){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}else {errors = _errs115;if(vErrors !== null){if(_errs115){vErrors.length = _errs115;}else {vErrors = null;}}}}}}}var _valid7 = _errs113 === errors;errors = _errs112;if(vErrors !== null){if(_errs112){vErrors.length = _errs112;}else {vErrors = null;}}if(_valid7){const _errs119 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err111 = {instancePath,schemaPath:"#/allOf/1/allOf/4/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data.properties !== undefined){let data58 = data.properties;if(Array.isArray(data58)){const _errs121 = errors;const len9 = data58.length;for(let i9=0; i9<len9; i9++){let data59 = data58[i9];const _errs122 = errors;if(data59 && typeof data59 == "object" && !Array.isArray(data59)){if(data59.binding === undefined){const err112 = {instancePath:instancePath+"/properties/" + i9,schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(data59.binding !== undefined){let data60 = data59.binding;if(data60 && typeof data60 == "object" && !Array.isArray(data60)){if(data60.type === undefined){const err113 = {instancePath:instancePath+"/properties/" + i9+"/binding",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if(data60.type !== undefined){if("zeebe:userTask" !== data60.type){const err114 = {instancePath:instancePath+"/properties/" + i9+"/binding/type",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:userTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}}}}var valid61 = _errs122 === errors;if(valid61){break;}}if(!valid61){const err115 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}else {errors = _errs121;if(vErrors !== null){if(_errs121){vErrors.length = _errs121;}else {vErrors = null;}}}}if(errors > 0){const emErrs8 = [];for(const err116 of vErrors){if(((((err116.keyword !== "errorMessage") && (!err116.emUsed)) && ((err116.instancePath === instancePath+"/properties") || ((err116.instancePath.indexOf(instancePath+"/properties") === 0) && (err116.instancePath[instancePath+"/properties".length] === "/")))) && (err116.schemaPath.indexOf("#/allOf/1/allOf/4/then/properties/properties") === 0)) && (err116.schemaPath["#/allOf/1/allOf/4/then/properties/properties".length] === "/")){emErrs8.push(err116);err116.emUsed = true;}}if(emErrs8.length){const err117 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs8},message:"When using " + JSON.stringify(data58 && data58["0"] && data58["0"].binding && data58["0"].binding.type) + ", \"zeebe:userTask\" must be set on the same element"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}const emErrs9 = [];for(const err118 of vErrors){if(!err118.emUsed){emErrs9.push(err118);}}vErrors = emErrs9;errors = emErrs9.length;}}}var _valid7 = _errs119 === errors;valid55 = _valid7;}if(!valid55){const err119 = {instancePath,schemaPath:"#/allOf/1/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}const _errs126 = errors;let valid64 = true;const _errs127 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data.properties !== undefined){let data62 = data.properties;if(Array.isArray(data62)){const _errs129 = errors;const len10 = data62.length;for(let i10=0; i10<len10; i10++){let data63 = data62[i10];const _errs130 = errors;if(data63 && typeof data63 == "object" && !Array.isArray(data63)){if((data63.binding === undefined) && ("binding")){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {if(data63.binding !== undefined){let data64 = data63.binding;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if((data64.type === undefined) && ("type")){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {if(data64.type !== undefined){if("zeebe:calledDecision" !== data64.type){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}}}}}var valid66 = _errs130 === errors;if(valid66){break;}}if(!valid66){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}else {errors = _errs129;if(vErrors !== null){if(_errs129){vErrors.length = _errs129;}else {vErrors = null;}}}}}}}var _valid8 = _errs127 === errors;errors = _errs126;if(vErrors !== null){if(_errs126){vErrors.length = _errs126;}else {vErrors = null;}}if(_valid8){const _errs133 = errors;const _errs134 = errors;let valid69 = false;const _errs135 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err125 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data.elementType !== undefined){let data66 = data.elementType;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.value === undefined){const err126 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/5/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(data66.value !== undefined){if("bpmn:BusinessRuleTask" !== data66.value){const err127 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/5/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:BusinessRuleTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}}}var _valid9 = _errs135 === errors;valid69 = valid69 || _valid9;if(!valid69){const _errs138 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err128 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[5].then.anyOf[1].properties.appliesTo.const)){const err129 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/5/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[5].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}}var _valid9 = _errs138 === errors;valid69 = valid69 || _valid9;}if(!valid69){const err130 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}else {errors = _errs134;if(vErrors !== null){if(_errs134){vErrors.length = _errs134;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data69 = data.properties;if(Array.isArray(data69)){const _errs142 = errors;const len11 = data69.length;for(let i11=0; i11<len11; i11++){let data70 = data69[i11];const _errs143 = errors;if(data70 && typeof data70 == "object" && !Array.isArray(data70)){if(data70.binding === undefined){const err131 = {instancePath:instancePath+"/properties/" + i11,schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}if(data70.binding !== undefined){let data71 = data70.binding;if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.property === undefined){const err132 = {instancePath:instancePath+"/properties/" + i11+"/binding",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data71.property !== undefined){if("decisionId" !== data71.property){const err133 = {instancePath:instancePath+"/properties/" + i11+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "decisionId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}if(errors > 0){const emErrs10 = [];for(const err134 of vErrors){if(((((err134.keyword !== "errorMessage") && (!err134.emUsed)) && ((err134.instancePath === instancePath+"/properties/" + i11+"/binding/property") || ((err134.instancePath.indexOf(instancePath+"/properties/" + i11+"/binding/property") === 0) && (err134.instancePath[instancePath+"/properties/" + i11+"/binding/property".length] === "/")))) && (err134.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property") === 0)) && (err134.schemaPath["#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property".length] === "/")){emErrs10.push(err134);err134.emUsed = true;}}if(emErrs10.length){const err135 = {instancePath:instancePath+"/properties/" + i11+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs10},message:"Binding type \"zeebe:calledDecision\" must contain property \"decisionId\""};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}const emErrs11 = [];for(const err136 of vErrors){if(!err136.emUsed){emErrs11.push(err136);}}vErrors = emErrs11;errors = emErrs11.length;}}}}}var valid75 = _errs143 === errors;if(valid75){break;}}if(!valid75){const err137 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {errors = _errs142;if(vErrors !== null){if(_errs142){vErrors.length = _errs142;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data73 = data.properties;if(Array.isArray(data73)){const _errs148 = errors;const len12 = data73.length;for(let i12=0; i12<len12; i12++){let data74 = data73[i12];const _errs149 = errors;if(data74 && typeof data74 == "object" && !Array.isArray(data74)){if(data74.binding === undefined){const err138 = {instancePath:instancePath+"/properties/" + i12,schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(data74.binding !== undefined){let data75 = data74.binding;if(data75 && typeof data75 == "object" && !Array.isArray(data75)){if(data75.property === undefined){const err139 = {instancePath:instancePath+"/properties/" + i12+"/binding",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(data75.property !== undefined){if("resultVariable" !== data75.property){const err140 = {instancePath:instancePath+"/properties/" + i12+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "resultVariable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if(errors > 0){const emErrs12 = [];for(const err141 of vErrors){if(((((err141.keyword !== "errorMessage") && (!err141.emUsed)) && ((err141.instancePath === instancePath+"/properties/" + i12+"/binding/property") || ((err141.instancePath.indexOf(instancePath+"/properties/" + i12+"/binding/property") === 0) && (err141.instancePath[instancePath+"/properties/" + i12+"/binding/property".length] === "/")))) && (err141.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property") === 0)) && (err141.schemaPath["#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property".length] === "/")){emErrs12.push(err141);err141.emUsed = true;}}if(emErrs12.length){const err142 = {instancePath:instancePath+"/properties/" + i12+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs12},message:"Binding type \"zeebe:calledDecision\" must contain property \"resultVariable\""};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}const emErrs13 = [];for(const err143 of vErrors){if(!err143.emUsed){emErrs13.push(err143);}}vErrors = emErrs13;errors = emErrs13.length;}}}}}var valid79 = _errs149 === errors;if(valid79){break;}}if(!valid79){const err144 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}else {errors = _errs148;if(vErrors !== null){if(_errs148){vErrors.length = _errs148;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err145 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/allOf/2/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if(data.properties !== undefined){let data77 = data.properties;const _errs154 = errors;const _errs155 = errors;if(Array.isArray(data77)){const _errs156 = errors;const len13 = data77.length;for(let i13=0; i13<len13; i13++){let data78 = data77[i13];const _errs157 = errors;if(data78 && typeof data78 == "object" && !Array.isArray(data78)){if((data78.binding === undefined) && ("binding")){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}else {if(data78.binding !== undefined){let data79 = data78.binding;if(data79 && typeof data79 == "object" && !Array.isArray(data79)){if((data79.type === undefined) && ("type")){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}else {if(data79.type !== undefined){let data80 = data79.type;if(!((data80 === "zeebe:taskDefinition") || (data80 === "zeebe:taskDefinition:type"))){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}}}}}var valid84 = _errs157 === errors;if(valid84){break;}}if(!valid84){const err149 = {};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}else {errors = _errs156;if(vErrors !== null){if(_errs156){vErrors.length = _errs156;}else {vErrors = null;}}}}var valid83 = _errs155 === errors;if(valid83){const err150 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/5/then/allOf/2/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}else {errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}}}}if(errors > 0){const emErrs14 = [];for(const err151 of vErrors){if(((((err151.keyword !== "errorMessage") && (!err151.emUsed)) && ((err151.instancePath === instancePath) || ((err151.instancePath.indexOf(instancePath) === 0) && (err151.instancePath[instancePath.length] === "/")))) && (err151.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/2") === 0)) && (err151.schemaPath["#/allOf/1/allOf/5/then/allOf/2".length] === "/")){emErrs14.push(err151);err151.emUsed = true;}}if(emErrs14.length){const err152 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/allOf/2/errorMessage",keyword:"errorMessage",params:{errors: emErrs14},message:"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:calledDecision\" is set."};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}const emErrs15 = [];for(const err153 of vErrors){if(!err153.emUsed){emErrs15.push(err153);}}vErrors = emErrs15;errors = emErrs15.length;}var _valid8 = _errs133 === errors;valid64 = _valid8;}if(!valid64){const err154 = {instancePath,schemaPath:"#/allOf/1/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}const _errs161 = errors;let valid87 = true;const _errs162 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err155 = {};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {if(data.properties !== undefined){let data81 = data.properties;if(Array.isArray(data81)){const _errs164 = errors;const len14 = data81.length;for(let i14=0; i14<len14; i14++){let data82 = data81[i14];const _errs165 = errors;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if((data82.binding === undefined) && ("binding")){const err156 = {};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}else {if(data82.binding !== undefined){let data83 = data82.binding;if(data83 && typeof data83 == "object" && !Array.isArray(data83)){if((data83.type === undefined) && ("type")){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {if(data83.type !== undefined){if("zeebe:script" !== data83.type){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}}}}}}var valid89 = _errs165 === errors;if(valid89){break;}}if(!valid89){const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}}}}}var _valid10 = _errs162 === errors;errors = _errs161;if(vErrors !== null){if(_errs161){vErrors.length = _errs161;}else {vErrors = null;}}if(_valid10){const _errs168 = errors;const _errs169 = errors;let valid92 = false;const _errs170 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err160 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(data.elementType !== undefined){let data85 = data.elementType;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.value === undefined){const err161 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/6/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(data85.value !== undefined){if("bpmn:ScriptTask" !== data85.value){const err162 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/6/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:ScriptTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}}}}var _valid11 = _errs170 === errors;valid92 = valid92 || _valid11;if(!valid92){const _errs173 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err163 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[6].then.anyOf[1].properties.appliesTo.const)){const err164 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/6/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[6].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}}var _valid11 = _errs173 === errors;valid92 = valid92 || _valid11;}if(!valid92){const err165 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}else {errors = _errs169;if(vErrors !== null){if(_errs169){vErrors.length = _errs169;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data88 = data.properties;if(Array.isArray(data88)){const _errs177 = errors;const len15 = data88.length;for(let i15=0; i15<len15; i15++){let data89 = data88[i15];const _errs178 = errors;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.binding === undefined){const err166 = {instancePath:instancePath+"/properties/" + i15,schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(data89.binding !== undefined){let data90 = data89.binding;if(data90 && typeof data90 == "object" && !Array.isArray(data90)){if(data90.property === undefined){const err167 = {instancePath:instancePath+"/properties/" + i15+"/binding",schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(data90.property !== undefined){if("expression" !== data90.property){const err168 = {instancePath:instancePath+"/properties/" + i15+"/binding/property",schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "expression"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}}}}var valid98 = _errs178 === errors;if(valid98){break;}}if(!valid98){const err169 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {errors = _errs177;if(vErrors !== null){if(_errs177){vErrors.length = _errs177;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data92 = data.properties;if(Array.isArray(data92)){const _errs183 = errors;const len16 = data92.length;for(let i16=0; i16<len16; i16++){let data93 = data92[i16];const _errs184 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(data93.binding === undefined){const err170 = {instancePath:instancePath+"/properties/" + i16,schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(data93.binding !== undefined){let data94 = data93.binding;if(data94 && typeof data94 == "object" && !Array.isArray(data94)){if(data94.property === undefined){const err171 = {instancePath:instancePath+"/properties/" + i16+"/binding",schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if(data94.property !== undefined){if("resultVariable" !== data94.property){const err172 = {instancePath:instancePath+"/properties/" + i16+"/binding/property",schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "resultVariable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}}}}var valid102 = _errs184 === errors;if(valid102){break;}}if(!valid102){const err173 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}else {errors = _errs183;if(vErrors !== null){if(_errs183){vErrors.length = _errs183;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err174 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/allOf/2/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if(data.properties !== undefined){let data96 = data.properties;const _errs189 = errors;const _errs190 = errors;if(Array.isArray(data96)){const _errs191 = errors;const len17 = data96.length;for(let i17=0; i17<len17; i17++){let data97 = data96[i17];const _errs192 = errors;if(data97 && typeof data97 == "object" && !Array.isArray(data97)){if((data97.binding === undefined) && ("binding")){const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {if(data97.binding !== undefined){let data98 = data97.binding;if(data98 && typeof data98 == "object" && !Array.isArray(data98)){if((data98.type === undefined) && ("type")){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}else {if(data98.type !== undefined){let data99 = data98.type;if(!((data99 === "zeebe:taskDefinition") || (data99 === "zeebe:taskDefinition:type"))){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}}}}}}var valid107 = _errs192 === errors;if(valid107){break;}}if(!valid107){const err178 = {};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}else {errors = _errs191;if(vErrors !== null){if(_errs191){vErrors.length = _errs191;}else {vErrors = null;}}}}var valid106 = _errs190 === errors;if(valid106){const err179 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/6/then/allOf/2/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}else {errors = _errs189;if(vErrors !== null){if(_errs189){vErrors.length = _errs189;}else {vErrors = null;}}}}}if(errors > 0){const emErrs16 = [];for(const err180 of vErrors){if(((((err180.keyword !== "errorMessage") && (!err180.emUsed)) && ((err180.instancePath === instancePath) || ((err180.instancePath.indexOf(instancePath) === 0) && (err180.instancePath[instancePath.length] === "/")))) && (err180.schemaPath.indexOf("#/allOf/1/allOf/6/then/allOf/2") === 0)) && (err180.schemaPath["#/allOf/1/allOf/6/then/allOf/2".length] === "/")){emErrs16.push(err180);err180.emUsed = true;}}if(emErrs16.length){const err181 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/allOf/2/errorMessage",keyword:"errorMessage",params:{errors: emErrs16},message:"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:script\" is set."};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}const emErrs17 = [];for(const err182 of vErrors){if(!err182.emUsed){emErrs17.push(err182);}}vErrors = emErrs17;errors = emErrs17.length;}var _valid10 = _errs168 === errors;valid87 = _valid10;}if(!valid87){const err183 = {instancePath,schemaPath:"#/allOf/1/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}const _errs197 = errors;let valid111 = true;const _errs198 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err184 = {};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}else {if(data.properties !== undefined){let data100 = data.properties;if(Array.isArray(data100)){const _errs200 = errors;const len18 = data100.length;for(let i18=0; i18<len18; i18++){let data101 = data100[i18];const _errs201 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(((data101.binding === undefined) && ("binding")) || ((data101.value === undefined) && ("value"))){const err185 = {};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}else {if(data101.binding !== undefined){let data102 = data101.binding;const _errs202 = errors;if(data102 && typeof data102 == "object" && !Array.isArray(data102)){if(((data102.property === undefined) && ("property")) || ((data102.type === undefined) && ("type"))){const err186 = {};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}else {if(data102.property !== undefined){const _errs203 = errors;if("bindingType" !== data102.property){const err187 = {};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}var valid115 = _errs203 === errors;}else {var valid115 = true;}if(valid115){if(data102.type !== undefined){let data104 = data102.type;const _errs204 = errors;if(!((((data104 === "zeebe:calledDecision") || (data104 === "zeebe:formDefinition")) || (data104 === "zeebe:calledElement")) || (data104 === "zeebe:linkedResource"))){const err188 = {};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}var valid115 = _errs204 === errors;}else {var valid115 = true;}}}}var valid114 = _errs202 === errors;}else {var valid114 = true;}if(valid114){if(data101.value !== undefined){const _errs205 = errors;if("versionTag" !== data101.value){const err189 = {};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}var valid114 = _errs205 === errors;}else {var valid114 = true;}}}}var valid113 = _errs201 === errors;if(valid113){break;}}if(!valid113){const err190 = {};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}else {errors = _errs200;if(vErrors !== null){if(_errs200){vErrors.length = _errs200;}else {vErrors = null;}}}}}}}var _valid12 = _errs198 === errors;errors = _errs197;if(vErrors !== null){if(_errs197){vErrors.length = _errs197;}else {vErrors = null;}}if(_valid12){const _errs206 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err191 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/0/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if(data.properties !== undefined){let data106 = data.properties;if(Array.isArray(data106)){const _errs208 = errors;const len19 = data106.length;for(let i19=0; i19<len19; i19++){let data107 = data106[i19];const _errs209 = errors;if(data107 && typeof data107 == "object" && !Array.isArray(data107)){if(data107.binding === undefined){const err192 = {instancePath:instancePath+"/properties/" + i19,schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}if(data107.binding !== undefined){let data108 = data107.binding;if(data108 && typeof data108 == "object" && !Array.isArray(data108)){if(data108.property === undefined){const err193 = {instancePath:instancePath+"/properties/" + i19+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}if(data108.type === undefined){const err194 = {instancePath:instancePath+"/properties/" + i19+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if(data108.type !== undefined){let data109 = data108.type;if(!((((data109 === "zeebe:calledDecision") || (data109 === "zeebe:formDefinition")) || (data109 === "zeebe:calledElement")) || (data109 === "zeebe:linkedResource"))){const err195 = {instancePath:instancePath+"/properties/" + i19+"/binding/type",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[7].allOf[0].then.properties.properties.contains.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}if(data108.property !== undefined){if("versionTag" !== data108.property){const err196 = {instancePath:instancePath+"/properties/" + i19+"/binding/property",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "versionTag"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}}}}var valid117 = _errs209 === errors;if(valid117){break;}}if(!valid117){const err197 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}else {errors = _errs208;if(vErrors !== null){if(_errs208){vErrors.length = _errs208;}else {vErrors = null;}}}}if(errors > 0){const emErrs18 = [];for(const err198 of vErrors){if(((((err198.keyword !== "errorMessage") && (!err198.emUsed)) && ((err198.instancePath === instancePath+"/properties") || ((err198.instancePath.indexOf(instancePath+"/properties") === 0) && (err198.instancePath[instancePath+"/properties".length] === "/")))) && (err198.schemaPath.indexOf("#/allOf/1/allOf/7/allOf/0/then/properties/properties") === 0)) && (err198.schemaPath["#/allOf/1/allOf/7/allOf/0/then/properties/properties".length] === "/")){emErrs18.push(err198);err198.emUsed = true;}}if(emErrs18.length){const err199 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs18},message:"Missing binding with `property`=`versionTag` as binding with `property`=`bindingType` and `value`=`versionTag` is set"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}const emErrs19 = [];for(const err200 of vErrors){if(!err200.emUsed){emErrs19.push(err200);}}vErrors = emErrs19;errors = emErrs19.length;}}}var _valid12 = _errs206 === errors;valid111 = _valid12;}if(!valid111){const err201 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}const _errs214 = errors;let valid120 = true;const _errs215 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err202 = {};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}else {if(data.properties !== undefined){let data111 = data.properties;if(Array.isArray(data111)){const _errs217 = errors;const len20 = data111.length;for(let i20=0; i20<len20; i20++){let data112 = data111[i20];const _errs218 = errors;const _errs219 = errors;const _errs220 = errors;if(data112 && typeof data112 == "object" && !Array.isArray(data112)){if((data112.condition === undefined) && ("condition")){const err203 = {};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}var valid123 = _errs220 === errors;if(valid123){const err204 = {};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}else {errors = _errs219;if(vErrors !== null){if(_errs219){vErrors.length = _errs219;}else {vErrors = null;}}}if(errors === _errs218){if(data112 && typeof data112 == "object" && !Array.isArray(data112)){if((data112.binding === undefined) && ("binding")){const err205 = {};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}else {if(data112.binding !== undefined){let data113 = data112.binding;if(data113 && typeof data113 == "object" && !Array.isArray(data113)){if((data113.property === undefined) && ("property")){const err206 = {};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}else {if(data113.type !== undefined){let data114 = data113.type;const _errs222 = errors;if(!((((data114 === "zeebe:calledDecision") || (data114 === "zeebe:calledElement")) || (data114 === "zeebe:formDefinition")) || (data114 === "zeebe:linkedResource"))){const err207 = {};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}var valid125 = _errs222 === errors;}else {var valid125 = true;}if(valid125){if(data113.property !== undefined){const _errs223 = errors;if("versionTag" !== data113.property){const err208 = {};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}var valid125 = _errs223 === errors;}else {var valid125 = true;}}}}}}}}var valid122 = _errs218 === errors;if(valid122){break;}}if(!valid122){const err209 = {};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}else {errors = _errs217;if(vErrors !== null){if(_errs217){vErrors.length = _errs217;}else {vErrors = null;}}}}}}}var _valid13 = _errs215 === errors;errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}if(_valid13){const _errs224 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err210 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}if(data.properties !== undefined){let data116 = data.properties;if(Array.isArray(data116)){const _errs226 = errors;const len21 = data116.length;for(let i21=0; i21<len21; i21++){let data117 = data116[i21];const _errs227 = errors;if(data117 && typeof data117 == "object" && !Array.isArray(data117)){if(data117.binding === undefined){const err211 = {instancePath:instancePath+"/properties/" + i21,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if(data117.value === undefined){const err212 = {instancePath:instancePath+"/properties/" + i21,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}if(data117.type === undefined){const err213 = {instancePath:instancePath+"/properties/" + i21,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}if(data117.binding !== undefined){let data118 = data117.binding;if(data118 && typeof data118 == "object" && !Array.isArray(data118)){if(data118.property === undefined){const err214 = {instancePath:instancePath+"/properties/" + i21+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if(data118.property !== undefined){if("bindingType" !== data118.property){const err215 = {instancePath:instancePath+"/properties/" + i21+"/binding/property",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "bindingType"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}}}if(data117.value !== undefined){if("versionTag" !== data117.value){const err216 = {instancePath:instancePath+"/properties/" + i21+"/value",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/value/const",keyword:"const",params:{allowedValue: "versionTag"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(data117.type !== undefined){if("Hidden" !== data117.type){const err217 = {instancePath:instancePath+"/properties/" + i21+"/type",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/type/const",keyword:"const",params:{allowedValue: "Hidden"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}}var valid127 = _errs227 === errors;if(valid127){break;}}if(!valid127){const err218 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}else {errors = _errs226;if(vErrors !== null){if(_errs226){vErrors.length = _errs226;}else {vErrors = null;}}}}if(errors > 0){const emErrs20 = [];for(const err219 of vErrors){if(((((err219.keyword !== "errorMessage") && (!err219.emUsed)) && ((err219.instancePath === instancePath+"/properties") || ((err219.instancePath.indexOf(instancePath+"/properties") === 0) && (err219.instancePath[instancePath+"/properties".length] === "/")))) && (err219.schemaPath.indexOf("#/allOf/1/allOf/7/allOf/1/then/properties/properties") === 0)) && (err219.schemaPath["#/allOf/1/allOf/7/allOf/1/then/properties/properties".length] === "/")){emErrs20.push(err219);err219.emUsed = true;}}if(emErrs20.length){const err220 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs20},message:"Binding with property=`bindingType` and value=`versionTag` must be set when using a binding with property=`versionTag`"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}const emErrs21 = [];for(const err221 of vErrors){if(!err221.emUsed){emErrs21.push(err221);}}vErrors = emErrs21;errors = emErrs21.length;}}}var _valid13 = _errs224 === errors;valid120 = _valid13;}if(!valid120){const err222 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}const _errs233 = errors;let valid130 = true;const _errs234 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err223 = {};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}else {if(data.properties !== undefined){let data122 = data.properties;if(Array.isArray(data122)){const _errs236 = errors;const len22 = data122.length;for(let i22=0; i22<len22; i22++){let data123 = data122[i22];const _errs237 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){if((data123.binding === undefined) && ("binding")){const err224 = {};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {if(data123.binding !== undefined){let data124 = data123.binding;if(data124 && typeof data124 == "object" && !Array.isArray(data124)){if(((data124.property === undefined) && ("property")) || ((data124.type === undefined) && ("type"))){const err225 = {};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}else {if(data124.property !== undefined){const _errs239 = errors;if("bindingType" !== data124.property){const err226 = {};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}var valid134 = _errs239 === errors;}else {var valid134 = true;}if(valid134){if(data124.type !== undefined){const _errs240 = errors;if("zeebe:formDefinition" !== data124.type){const err227 = {};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}var valid134 = _errs240 === errors;}else {var valid134 = true;}}}}}}}var valid132 = _errs237 === errors;if(valid132){break;}}if(!valid132){const err228 = {};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}else {errors = _errs236;if(vErrors !== null){if(_errs236){vErrors.length = _errs236;}else {vErrors = null;}}}}}}}var _valid14 = _errs234 === errors;errors = _errs233;if(vErrors !== null){if(_errs233){vErrors.length = _errs233;}else {vErrors = null;}}if(_valid14){const _errs241 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err229 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/2/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}if(data.properties !== undefined){let data127 = data.properties;if(Array.isArray(data127)){const _errs243 = errors;const len23 = data127.length;for(let i23=0; i23<len23; i23++){let data128 = data127[i23];const _errs244 = errors;if(data128 && typeof data128 == "object" && !Array.isArray(data128)){if(data128.binding === undefined){const err230 = {instancePath:instancePath+"/properties/" + i23,schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}if(data128.binding !== undefined){let data129 = data128.binding;if(data129 && typeof data129 == "object" && !Array.isArray(data129)){if(data129.property === undefined){const err231 = {instancePath:instancePath+"/properties/" + i23+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}if(data129.type === undefined){const err232 = {instancePath:instancePath+"/properties/" + i23+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}if(data129.type !== undefined){if("zeebe:formDefinition" !== data129.type){const err233 = {instancePath:instancePath+"/properties/" + i23+"/binding/type",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:formDefinition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}if(data129.property !== undefined){if("formId" !== data129.property){const err234 = {instancePath:instancePath+"/properties/" + i23+"/binding/property",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "formId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}}}}var valid136 = _errs244 === errors;if(valid136){break;}}if(!valid136){const err235 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}else {errors = _errs243;if(vErrors !== null){if(_errs243){vErrors.length = _errs243;}else {vErrors = null;}}}}if(errors > 0){const emErrs22 = [];for(const err236 of vErrors){if(((((err236.keyword !== "errorMessage") && (!err236.emUsed)) && ((err236.instancePath === instancePath+"/properties") || ((err236.instancePath.indexOf(instancePath+"/properties") === 0) && (err236.instancePath[instancePath+"/properties".length] === "/")))) && (err236.schemaPath.indexOf("#/allOf/1/allOf/7/allOf/2/then/properties/properties") === 0)) && (err236.schemaPath["#/allOf/1/allOf/7/allOf/2/then/properties/properties".length] === "/")){emErrs22.push(err236);err236.emUsed = true;}}if(emErrs22.length){const err237 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs22},message:"`property`=`bindingType` is not supported when using `property`=`externalReference`. Use `formId` with `bindingType`"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}const emErrs23 = [];for(const err238 of vErrors){if(!err238.emUsed){emErrs23.push(err238);}}vErrors = emErrs23;errors = emErrs23.length;}}}var _valid14 = _errs241 === errors;valid130 = _valid14;}if(!valid130){const err239 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}const _errs249 = errors;let valid139 = true;const _errs250 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}else {if(data.properties !== undefined){let data132 = data.properties;if(Array.isArray(data132)){const _errs252 = errors;const len24 = data132.length;for(let i24=0; i24<len24; i24++){let data133 = data132[i24];const _errs253 = errors;if(data133 && typeof data133 == "object" && !Array.isArray(data133)){if((data133.binding === undefined) && ("binding")){const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}else {if(data133.binding !== undefined){let data134 = data133.binding;if(data134 && typeof data134 == "object" && !Array.isArray(data134)){if(((data134.property === undefined) && ("property")) || ((data134.type === undefined) && ("type"))){const err242 = {};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}else {if(data134.property !== undefined){const _errs255 = errors;if("formId" !== data134.property){const err243 = {};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}var valid143 = _errs255 === errors;}else {var valid143 = true;}if(valid143){if(data134.type !== undefined){const _errs256 = errors;if("zeebe:formDefinition" !== data134.type){const err244 = {};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}var valid143 = _errs256 === errors;}else {var valid143 = true;}}}}}}}var valid141 = _errs253 === errors;if(valid141){break;}}if(!valid141){const err245 = {};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}else {errors = _errs252;if(vErrors !== null){if(_errs252){vErrors.length = _errs252;}else {vErrors = null;}}}}}}}var _valid15 = _errs250 === errors;errors = _errs249;if(vErrors !== null){if(_errs249){vErrors.length = _errs249;}else {vErrors = null;}}if(_valid15){const _errs257 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err246 = {instancePath,schemaPath:"#/allOf/1/allOf/8/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}if(data.properties !== undefined){let data137 = data.properties;const _errs259 = errors;const _errs260 = errors;if(Array.isArray(data137)){const _errs261 = errors;const len25 = data137.length;for(let i25=0; i25<len25; i25++){let data138 = data137[i25];const _errs262 = errors;if(data138 && typeof data138 == "object" && !Array.isArray(data138)){if((data138.binding === undefined) && ("binding")){const err247 = {};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}else {if(data138.binding !== undefined){let data139 = data138.binding;if(data139 && typeof data139 == "object" && !Array.isArray(data139)){if(((data139.property === undefined) && ("property")) || ((data139.type === undefined) && ("type"))){const err248 = {};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}else {if(data139.type !== undefined){const _errs264 = errors;if("zeebe:formDefinition" !== data139.type){const err249 = {};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}var valid148 = _errs264 === errors;}else {var valid148 = true;}if(valid148){if(data139.property !== undefined){const _errs265 = errors;if("externalReference" !== data139.property){const err250 = {};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}var valid148 = _errs265 === errors;}else {var valid148 = true;}}}}}}}var valid146 = _errs262 === errors;if(valid146){break;}}if(!valid146){const err251 = {};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}else {errors = _errs261;if(vErrors !== null){if(_errs261){vErrors.length = _errs261;}else {vErrors = null;}}}}var valid145 = _errs260 === errors;if(valid145){const err252 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/8/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}else {errors = _errs259;if(vErrors !== null){if(_errs259){vErrors.length = _errs259;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err253 of vErrors){if(((((err253.keyword !== "errorMessage") && (!err253.emUsed)) && ((err253.instancePath === instancePath+"/properties") || ((err253.instancePath.indexOf(instancePath+"/properties") === 0) && (err253.instancePath[instancePath+"/properties".length] === "/")))) && (err253.schemaPath.indexOf("#/allOf/1/allOf/8/then/properties/properties") === 0)) && (err253.schemaPath["#/allOf/1/allOf/8/then/properties/properties".length] === "/")){emErrs24.push(err253);err253.emUsed = true;}}if(emErrs24.length){const err254 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/8/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs24},message:"\"formId\" and \"externalReference\" cannot be used together"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}const emErrs25 = [];for(const err255 of vErrors){if(!err255.emUsed){emErrs25.push(err255);}}vErrors = emErrs25;errors = emErrs25.length;}}}var _valid15 = _errs257 === errors;valid139 = _valid15;}if(!valid139){const err256 = {instancePath,schemaPath:"#/allOf/1/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}const _errs268 = errors;let valid150 = true;const _errs269 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err257 = {};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}else {if(data.properties !== undefined){let data142 = data.properties;if(Array.isArray(data142)){const _errs271 = errors;const len26 = data142.length;for(let i26=0; i26<len26; i26++){let data143 = data142[i26];const _errs272 = errors;if(data143 && typeof data143 == "object" && !Array.isArray(data143)){if((data143.binding === undefined) && ("binding")){const err258 = {};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}else {if(data143.binding !== undefined){let data144 = data143.binding;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if((data144.type === undefined) && ("type")){const err259 = {};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}else {if(data144.type !== undefined){if("zeebe:adHoc" !== data144.type){const err260 = {};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}}}}}}var valid152 = _errs272 === errors;if(valid152){break;}}if(!valid152){const err261 = {};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}else {errors = _errs271;if(vErrors !== null){if(_errs271){vErrors.length = _errs271;}else {vErrors = null;}}}}}}}var _valid16 = _errs269 === errors;errors = _errs268;if(vErrors !== null){if(_errs268){vErrors.length = _errs268;}else {vErrors = null;}}if(_valid16){const _errs275 = errors;const _errs276 = errors;let valid155 = false;const _errs277 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err262 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if(data.elementType !== undefined){let data146 = data.elementType;if(data146 && typeof data146 == "object" && !Array.isArray(data146)){if(data146.value === undefined){const err263 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}if(data146.value !== undefined){if("bpmn:AdHocSubProcess" !== data146.value){const err264 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:AdHocSubProcess"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}}}}var _valid17 = _errs277 === errors;valid155 = valid155 || _valid17;if(!valid155){const _errs280 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err265 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[9].allOf[0].then.anyOf[1].properties.appliesTo.const)){const err266 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[9].allOf[0].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}}}var _valid17 = _errs280 === errors;valid155 = valid155 || _valid17;}if(!valid155){const err267 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}else {errors = _errs276;if(vErrors !== null){if(_errs276){vErrors.length = _errs276;}else {vErrors = null;}}}var _valid16 = _errs275 === errors;valid150 = _valid16;}if(!valid150){const err268 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}const _errs284 = errors;let valid159 = true;const _errs285 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err269 = {};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}else {if(data.properties !== undefined){let data149 = data.properties;if(Array.isArray(data149)){const _errs287 = errors;const len27 = data149.length;for(let i27=0; i27<len27; i27++){let data150 = data149[i27];const _errs288 = errors;if(data150 && typeof data150 == "object" && !Array.isArray(data150)){if((data150.binding === undefined) && ("binding")){const err270 = {};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}else {if(data150.binding !== undefined){let data151 = data150.binding;if(data151 && typeof data151 == "object" && !Array.isArray(data151)){if(((data151.type === undefined) && ("type")) || ((data151.property === undefined) && ("property"))){const err271 = {};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}else {if(data151.type !== undefined){const _errs290 = errors;if("zeebe:adHoc" !== data151.type){const err272 = {};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}var valid163 = _errs290 === errors;}else {var valid163 = true;}if(valid163){if(data151.property !== undefined){let data153 = data151.property;const _errs291 = errors;if(!((data153 === "outputCollection") || (data153 === "outputElement"))){const err273 = {};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}var valid163 = _errs291 === errors;}else {var valid163 = true;}}}}}}}var valid161 = _errs288 === errors;if(valid161){break;}}if(!valid161){const err274 = {};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}else {errors = _errs287;if(vErrors !== null){if(_errs287){vErrors.length = _errs287;}else {vErrors = null;}}}}}}}var _valid18 = _errs285 === errors;errors = _errs284;if(vErrors !== null){if(_errs284){vErrors.length = _errs284;}else {vErrors = null;}}if(_valid18){const _errs292 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err275 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/1/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}if(data.properties !== undefined){let data154 = data.properties;if(Array.isArray(data154)){const _errs295 = errors;const len28 = data154.length;for(let i28=0; i28<len28; i28++){let data155 = data154[i28];const _errs296 = errors;if(data155 && typeof data155 == "object" && !Array.isArray(data155)){if(data155.binding === undefined){const err276 = {instancePath:instancePath+"/properties/" + i28,schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}if(data155.binding !== undefined){let data156 = data155.binding;if(data156 && typeof data156 == "object" && !Array.isArray(data156)){if(data156.type === undefined){const err277 = {instancePath:instancePath+"/properties/" + i28+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}if(data156.property === undefined){const err278 = {instancePath:instancePath+"/properties/" + i28+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}if(data156.type !== undefined){if("zeebe:adHoc" !== data156.type){const err279 = {instancePath:instancePath+"/properties/" + i28+"/binding/type",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:adHoc"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}if(data156.property !== undefined){if("outputElement" !== data156.property){const err280 = {instancePath:instancePath+"/properties/" + i28+"/binding/property",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "outputElement"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}}}}var valid166 = _errs296 === errors;if(valid166){break;}}if(!valid166){const err281 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}else {errors = _errs295;if(vErrors !== null){if(_errs295){vErrors.length = _errs295;}else {vErrors = null;}}}}if(errors > 0){const emErrs26 = [];for(const err282 of vErrors){if(((((err282.keyword !== "errorMessage") && (!err282.emUsed)) && ((err282.instancePath === instancePath+"/properties") || ((err282.instancePath.indexOf(instancePath+"/properties") === 0) && (err282.instancePath[instancePath+"/properties".length] === "/")))) && (err282.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0") === 0)) && (err282.schemaPath["#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0".length] === "/")){emErrs26.push(err282);err282.emUsed = true;}}if(emErrs26.length){const err283 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emErrs26},message:"When \"outputCollection\" is defined for \"zeebe:adHoc\", \"outputElement\" must be defined, too"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}const emErrs27 = [];for(const err284 of vErrors){if(!err284.emUsed){emErrs27.push(err284);}}vErrors = emErrs27;errors = emErrs27.length;}if(Array.isArray(data154)){const _errs301 = errors;const len29 = data154.length;for(let i29=0; i29<len29; i29++){let data159 = data154[i29];const _errs302 = errors;if(data159 && typeof data159 == "object" && !Array.isArray(data159)){if(data159.binding === undefined){const err285 = {instancePath:instancePath+"/properties/" + i29,schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}if(data159.binding !== undefined){let data160 = data159.binding;if(data160 && typeof data160 == "object" && !Array.isArray(data160)){if(data160.type === undefined){const err286 = {instancePath:instancePath+"/properties/" + i29+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if(data160.property === undefined){const err287 = {instancePath:instancePath+"/properties/" + i29+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}if(data160.type !== undefined){if("zeebe:adHoc" !== data160.type){const err288 = {instancePath:instancePath+"/properties/" + i29+"/binding/type",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:adHoc"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}}if(data160.property !== undefined){if("outputCollection" !== data160.property){const err289 = {instancePath:instancePath+"/properties/" + i29+"/binding/property",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "outputCollection"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}}}}var valid169 = _errs302 === errors;if(valid169){break;}}if(!valid169){const err290 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}else {errors = _errs301;if(vErrors !== null){if(_errs301){vErrors.length = _errs301;}else {vErrors = null;}}}}if(errors > 0){const emErrs28 = [];for(const err291 of vErrors){if(((((err291.keyword !== "errorMessage") && (!err291.emUsed)) && ((err291.instancePath === instancePath+"/properties") || ((err291.instancePath.indexOf(instancePath+"/properties") === 0) && (err291.instancePath[instancePath+"/properties".length] === "/")))) && (err291.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1") === 0)) && (err291.schemaPath["#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1".length] === "/")){emErrs28.push(err291);err291.emUsed = true;}}if(emErrs28.length){const err292 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/errorMessage",keyword:"errorMessage",params:{errors: emErrs28},message:"When \"outputElement\" is defined for \"zeebe:adHoc\", \"outputCollection\" must be defined, too"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}const emErrs29 = [];for(const err293 of vErrors){if(!err293.emUsed){emErrs29.push(err293);}}vErrors = emErrs29;errors = emErrs29.length;}}}var _valid18 = _errs292 === errors;valid159 = _valid18;}if(!valid159){const err294 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}const _errs308 = errors;let valid172 = true;const _errs309 = errors;const _errs310 = errors;const _errs311 = errors;let valid174 = false;const _errs312 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err295 = {};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}else {if(data.elementType !== undefined){let data163 = data.elementType;if(data163 && typeof data163 == "object" && !Array.isArray(data163)){if((data163.value === undefined) && ("value")){const err296 = {};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}else {if(data163.value !== undefined){if("bpmn:AdHocSubProcess" !== data163.value){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}}}}}}}var _valid20 = _errs312 === errors;valid174 = valid174 || _valid20;if(!valid174){const _errs315 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[9].allOf[2].if.allOf[0].anyOf[1].properties.appliesTo.const)){const err299 = {};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}}}var _valid20 = _errs315 === errors;valid174 = valid174 || _valid20;}if(!valid174){const err300 = {};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}else {errors = _errs311;if(vErrors !== null){if(_errs311){vErrors.length = _errs311;}else {vErrors = null;}}}var valid173 = _errs310 === errors;if(valid173){const _errs317 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err301 = {};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}else {if(data.properties !== undefined){let data166 = data.properties;if(Array.isArray(data166)){const _errs319 = errors;const len30 = data166.length;for(let i30=0; i30<len30; i30++){let data167 = data166[i30];const _errs320 = errors;if(errors === _errs320){if(data167 && typeof data167 == "object" && !Array.isArray(data167)){if((data167.binding === undefined) && ("binding")){const err302 = {};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}else {if(data167.binding !== undefined){let data168 = data167.binding;if(data168 && typeof data168 == "object" && !Array.isArray(data168)){if(((data168.type === undefined) && ("type")) || ((data168.property === undefined) && ("property"))){const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}else {if(data168.type !== undefined){const _errs323 = errors;if("zeebe:taskDefinition" !== data168.type){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}var valid181 = _errs323 === errors;}else {var valid181 = true;}if(valid181){if(data168.property !== undefined){const _errs324 = errors;if("type" !== data168.property){const err305 = {};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}var valid181 = _errs324 === errors;}else {var valid181 = true;}}}}}}}else {const err306 = {};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}}var valid179 = _errs320 === errors;if(valid179){break;}}if(!valid179){const err307 = {};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}else {errors = _errs319;if(vErrors !== null){if(_errs319){vErrors.length = _errs319;}else {vErrors = null;}}}}}}}var valid173 = _errs317 === errors;}var _valid19 = _errs309 === errors;errors = _errs308;if(vErrors !== null){if(_errs308){vErrors.length = _errs308;}else {vErrors = null;}}if(_valid19){const _errs325 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err308 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}if(data.properties !== undefined){let data171 = data.properties;if(Array.isArray(data171)){const len31 = data171.length;for(let i31=0; i31<len31; i31++){let data172 = data171[i31];const _errs329 = errors;const _errs330 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.binding === undefined) && ("binding")){const err309 = {};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}else {if(data172.binding !== undefined){let data173 = data172.binding;if(data173 && typeof data173 == "object" && !Array.isArray(data173)){if(((data173.type === undefined) && ("type")) || ((data173.name === undefined) && ("name"))){const err310 = {};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}else {if(data173.type !== undefined){const _errs332 = errors;if("property" !== data173.type){const err311 = {};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}var valid188 = _errs332 === errors;}else {var valid188 = true;}if(valid188){if(data173.name !== undefined){let data175 = data173.name;const _errs333 = errors;if(!((data175 === "cancelRemainingInstances") || (data175 === "completionCondition"))){const err312 = {};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}var valid188 = _errs333 === errors;}else {var valid188 = true;}}}}}}}var valid186 = _errs330 === errors;if(valid186){const err313 = {instancePath:instancePath+"/properties/" + i31,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}else {errors = _errs329;if(vErrors !== null){if(_errs329){vErrors.length = _errs329;}else {vErrors = null;}}}if(errors > 0){const emErrs30 = [];for(const err314 of vErrors){if(((((err314.keyword !== "errorMessage") && (!err314.emUsed)) && ((err314.instancePath === instancePath+"/properties/" + i31) || ((err314.instancePath.indexOf(instancePath+"/properties/" + i31) === 0) && (err314.instancePath[instancePath+"/properties/" + i31.length] === "/")))) && (err314.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items") === 0)) && (err314.schemaPath["#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items".length] === "/")){emErrs30.push(err314);err314.emUsed = true;}}if(emErrs30.length){const err315 = {instancePath:instancePath+"/properties/" + i31,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items/errorMessage",keyword:"errorMessage",params:{errors: emErrs30},message:"Property " + JSON.stringify(data172 && data172.binding && data172.binding.name) + " must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}const emErrs31 = [];for(const err316 of vErrors){if(!err316.emUsed){emErrs31.push(err316);}}vErrors = emErrs31;errors = emErrs31.length;}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err317 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/1/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}if(data.properties !== undefined){let data176 = data.properties;if(Array.isArray(data176)){const len32 = data176.length;for(let i32=0; i32<len32; i32++){let data177 = data176[i32];const _errs337 = errors;const _errs338 = errors;if(data177 && typeof data177 == "object" && !Array.isArray(data177)){if((data177.binding === undefined) && ("binding")){const err318 = {};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}else {if(data177.binding !== undefined){let data178 = data177.binding;if(data178 && typeof data178 == "object" && !Array.isArray(data178)){if(((data178.type === undefined) && ("type")) || ((data178.property === undefined) && ("property"))){const err319 = {};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}else {if(data178.type !== undefined){const _errs340 = errors;if("zeebe:adHoc" !== data178.type){const err320 = {};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}var valid194 = _errs340 === errors;}else {var valid194 = true;}if(valid194){if(data178.property !== undefined){const _errs341 = errors;if("activeElementsCollection" !== data178.property){const err321 = {};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}var valid194 = _errs341 === errors;}else {var valid194 = true;}}}}}}}var valid192 = _errs338 === errors;if(valid192){const err322 = {instancePath:instancePath+"/properties/" + i32,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}else {errors = _errs337;if(vErrors !== null){if(_errs337){vErrors.length = _errs337;}else {vErrors = null;}}}if(errors > 0){const emErrs32 = [];for(const err323 of vErrors){if(((((err323.keyword !== "errorMessage") && (!err323.emUsed)) && ((err323.instancePath === instancePath+"/properties/" + i32) || ((err323.instancePath.indexOf(instancePath+"/properties/" + i32) === 0) && (err323.instancePath[instancePath+"/properties/" + i32.length] === "/")))) && (err323.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items") === 0)) && (err323.schemaPath["#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items".length] === "/")){emErrs32.push(err323);err323.emUsed = true;}}if(emErrs32.length){const err324 = {instancePath:instancePath+"/properties/" + i32,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items/errorMessage",keyword:"errorMessage",params:{errors: emErrs32},message:"Property " + JSON.stringify(data177 && data177.binding && data177.binding.property) + " must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}const emErrs33 = [];for(const err325 of vErrors){if(!err325.emUsed){emErrs33.push(err325);}}vErrors = emErrs33;errors = emErrs33.length;}}}}}var _valid19 = _errs325 === errors;valid172 = _valid19;}if(!valid172){const err326 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}const _errs344 = errors;let valid196 = true;const _errs345 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err327 = {};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}else {if(data.properties !== undefined){let data181 = data.properties;if(Array.isArray(data181)){const _errs347 = errors;const len33 = data181.length;for(let i33=0; i33<len33; i33++){let data182 = data181[i33];const _errs348 = errors;if(data182 && typeof data182 == "object" && !Array.isArray(data182)){if((data182.binding === undefined) && ("binding")){const err328 = {};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}else {if(data182.binding !== undefined){let data183 = data182.binding;if(data183 && typeof data183 == "object" && !Array.isArray(data183)){if((data183.type === undefined) && ("type")){const err329 = {};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}else {if(data183.type !== undefined){if("bpmn:Signal#property" !== data183.type){const err330 = {};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}}}}}}}var valid198 = _errs348 === errors;if(valid198){break;}}if(!valid198){const err331 = {};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}else {errors = _errs347;if(vErrors !== null){if(_errs347){vErrors.length = _errs347;}else {vErrors = null;}}}}}}}var _valid21 = _errs345 === errors;errors = _errs344;if(vErrors !== null){if(_errs344){vErrors.length = _errs344;}else {vErrors = null;}}if(_valid21){const _errs351 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err332 = {instancePath,schemaPath:"#/allOf/1/allOf/10/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if(data.elementType !== undefined){let data185 = data.elementType;if(data185 && typeof data185 == "object" && !Array.isArray(data185)){if(data185.eventDefinition === undefined){const err333 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}if(data185.value === undefined){const err334 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}if(data185.value !== undefined){let data186 = data185.value;if(!(((((data186 === "bpmn:StartEvent") || (data186 === "bpmn:IntermediateCatchEvent")) || (data186 === "bpmn:IntermediateThrowEvent")) || (data186 === "bpmn:BoundaryEvent")) || (data186 === "bpmn:EndEvent"))){const err335 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[10].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}}if(data185.eventDefinition !== undefined){if("bpmn:SignalEventDefinition" !== data185.eventDefinition){const err336 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/properties/eventDefinition/const",keyword:"const",params:{allowedValue: "bpmn:SignalEventDefinition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}}}}}var _valid21 = _errs351 === errors;valid196 = _valid21;}if(!valid196){const err337 = {instancePath,schemaPath:"#/allOf/1/allOf/10/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}const _errs356 = errors;let valid203 = true;const _errs357 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err338 = {};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}else {if(data.elementType !== undefined){let data188 = data.elementType;if(data188 && typeof data188 == "object" && !Array.isArray(data188)){if((data188.eventDefinition === undefined) && ("eventDefinition")){const err339 = {};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}else {if(data188.eventDefinition !== undefined){if("bpmn:SignalEventDefinition" !== data188.eventDefinition){const err340 = {};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}}}}}}}var _valid22 = _errs357 === errors;errors = _errs356;if(vErrors !== null){if(_errs356){vErrors.length = _errs356;}else {vErrors = null;}}if(_valid22){const _errs360 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data190 = data.properties;if(Array.isArray(data190)){const _errs362 = errors;const len34 = data190.length;for(let i34=0; i34<len34; i34++){let data191 = data190[i34];const _errs363 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.binding === undefined){const err341 = {instancePath:instancePath+"/properties/" + i34,schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}if(data191.binding !== undefined){let data192 = data191.binding;if(data192 && typeof data192 == "object" && !Array.isArray(data192)){if(data192.type === undefined){const err342 = {instancePath:instancePath+"/properties/" + i34+"/binding",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}if(data192.type !== undefined){if("bpmn:Signal#property" !== data192.type){const err343 = {instancePath:instancePath+"/properties/" + i34+"/binding/type",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:Signal#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}}}}}var valid207 = _errs363 === errors;if(valid207){break;}}if(!valid207){const err344 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}else {errors = _errs362;if(vErrors !== null){if(_errs362){vErrors.length = _errs362;}else {vErrors = null;}}}}if(errors > 0){const emErrs34 = [];for(const err345 of vErrors){if(((((err345.keyword !== "errorMessage") && (!err345.emUsed)) && ((err345.instancePath === instancePath+"/properties") || ((err345.instancePath.indexOf(instancePath+"/properties") === 0) && (err345.instancePath[instancePath+"/properties".length] === "/")))) && (err345.schemaPath.indexOf("#/allOf/1/allOf/10/allOf/1/then/properties/properties") === 0)) && (err345.schemaPath["#/allOf/1/allOf/10/allOf/1/then/properties/properties".length] === "/")){emErrs34.push(err345);err345.emUsed = true;}}if(emErrs34.length){const err346 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs34},message:"Binding with `type`=`bpmn:Signal#property` is required, when using `elementType.eventDefinition`=`bpmn:SignalEventDefinition`"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}const emErrs35 = [];for(const err347 of vErrors){if(!err347.emUsed){emErrs35.push(err347);}}vErrors = emErrs35;errors = emErrs35.length;}}}var _valid22 = _errs360 === errors;valid203 = _valid22;}if(!valid203){const err348 = {instancePath,schemaPath:"#/allOf/1/allOf/10/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}const _errs368 = errors;let valid211 = true;const _errs369 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err349 = {};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}else {if(data.properties !== undefined){let data194 = data.properties;if(Array.isArray(data194)){const _errs371 = errors;const len35 = data194.length;for(let i35=0; i35<len35; i35++){let data195 = data194[i35];const _errs372 = errors;if(data195 && typeof data195 == "object" && !Array.isArray(data195)){if((data195.binding === undefined) && ("binding")){const err350 = {};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}else {if(data195.binding !== undefined){let data196 = data195.binding;if(data196 && typeof data196 == "object" && !Array.isArray(data196)){if(((data196.type === undefined) && ("type")) || ((data196.name === undefined) && ("name"))){const err351 = {};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}else {if(data196.type !== undefined){const _errs374 = errors;if("bpmn:TimerEventDefinition#property" !== data196.type){const err352 = {};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}var valid215 = _errs374 === errors;}else {var valid215 = true;}if(valid215){if(data196.name !== undefined){let data198 = data196.name;const _errs375 = errors;if(!(((data198 === "timeDate") || (data198 === "timeCycle")) || (data198 === "timeDuration"))){const err353 = {};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}var valid215 = _errs375 === errors;}else {var valid215 = true;}}}}}}}var valid213 = _errs372 === errors;if(valid213){break;}}if(!valid213){const err354 = {};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}else {errors = _errs371;if(vErrors !== null){if(_errs371){vErrors.length = _errs371;}else {vErrors = null;}}}}}}}var _valid23 = _errs369 === errors;errors = _errs368;if(vErrors !== null){if(_errs368){vErrors.length = _errs368;}else {vErrors = null;}}if(_valid23){const _errs376 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err355 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}if(data.elementType !== undefined){let data199 = data.elementType;if(data199 && typeof data199 == "object" && !Array.isArray(data199)){if(data199.eventDefinition === undefined){const err356 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}if(data199.value === undefined){const err357 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}if(data199.eventDefinition !== undefined){if("bpmn:TimerEventDefinition" !== data199.eventDefinition){const err358 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/properties/eventDefinition/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}}if(data199.value !== undefined){let data201 = data199.value;if(!(((data201 === "bpmn:StartEvent") || (data201 === "bpmn:IntermediateCatchEvent")) || (data201 === "bpmn:BoundaryEvent"))){const err359 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[11].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}}}if(errors > 0){const emErrors6 = {"required":{"eventDefinition":[]}};const templates6 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err360 of vErrors){if((((((err360.keyword !== "errorMessage") && (!err360.emUsed)) && (err360.instancePath === instancePath+"/elementType")) && (err360.keyword in emErrors6)) && (err360.schemaPath.indexOf("#/allOf/1/allOf/11/allOf/0/then/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err360.schemaPath.slice(54)))){emPropParams3 = obj0[err360.keyword];emParamsErrors3 = emErrors6[err360.keyword][err360.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err360);err360.emUsed = true;}}}for(const key6 in emErrors6){for(const keyProp3 in emErrors6[key6]){emParamsErrors3 = emErrors6[key6][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates6[key6] && templates6[key6][keyProp3];const err361 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.allOf[1].allOf[11].allOf[0].then.properties.elementType.errorMessage[key6][keyProp3]};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}}const emErrs36 = [];for(const err362 of vErrors){if(!err362.emUsed){emErrs36.push(err362);}}vErrors = emErrs36;errors = emErrs36.length;}}}var _valid23 = _errs376 === errors;valid211 = _valid23;}if(!valid211){const err363 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}const _errs381 = errors;let valid218 = true;const _errs382 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err364 = {};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}else {if(data.elementType !== undefined){let data202 = data.elementType;if(data202 && typeof data202 == "object" && !Array.isArray(data202)){if((data202.eventDefinition === undefined) && ("eventDefinition")){const err365 = {};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}else {if(data202.eventDefinition !== undefined){if("bpmn:TimerEventDefinition" !== data202.eventDefinition){const err366 = {};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}}}}}}}var _valid24 = _errs382 === errors;errors = _errs381;if(vErrors !== null){if(_errs381){vErrors.length = _errs381;}else {vErrors = null;}}if(_valid24){const _errs385 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err367 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/1/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if(data.properties !== undefined){let data204 = data.properties;const _errs387 = errors;let valid222 = false;let passing0 = null;const _errs388 = errors;if(Array.isArray(data204)){const _errs389 = errors;const len36 = data204.length;for(let i36=0; i36<len36; i36++){let data205 = data204[i36];const _errs390 = errors;if(data205 && typeof data205 == "object" && !Array.isArray(data205)){if(data205.binding === undefined){const err368 = {instancePath:instancePath+"/properties/" + i36,schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if(data205.binding !== undefined){let data206 = data205.binding;if(data206 && typeof data206 == "object" && !Array.isArray(data206)){if(data206.type === undefined){const err369 = {instancePath:instancePath+"/properties/" + i36+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}if(data206.name === undefined){const err370 = {instancePath:instancePath+"/properties/" + i36+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}if(data206.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data206.type){const err371 = {instancePath:instancePath+"/properties/" + i36+"/binding/type",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}if(data206.name !== undefined){if("timeDate" !== data206.name){const err372 = {instancePath:instancePath+"/properties/" + i36+"/binding/name",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/properties/name/const",keyword:"const",params:{allowedValue: "timeDate"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}}}}}var valid223 = _errs390 === errors;if(valid223){break;}}if(!valid223){const err373 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf/0/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}else {errors = _errs389;if(vErrors !== null){if(_errs389){vErrors.length = _errs389;}else {vErrors = null;}}}}var _valid25 = _errs388 === errors;if(_valid25){valid222 = true;passing0 = 0;}const _errs395 = errors;if(Array.isArray(data204)){const _errs396 = errors;const len37 = data204.length;for(let i37=0; i37<len37; i37++){let data209 = data204[i37];const _errs397 = errors;if(data209 && typeof data209 == "object" && !Array.isArray(data209)){if(data209.binding === undefined){const err374 = {instancePath:instancePath+"/properties/" + i37,schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}if(data209.binding !== undefined){let data210 = data209.binding;if(data210 && typeof data210 == "object" && !Array.isArray(data210)){if(data210.type === undefined){const err375 = {instancePath:instancePath+"/properties/" + i37+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}if(data210.name === undefined){const err376 = {instancePath:instancePath+"/properties/" + i37+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}if(data210.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data210.type){const err377 = {instancePath:instancePath+"/properties/" + i37+"/binding/type",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}}if(data210.name !== undefined){if("timeCycle" !== data210.name){const err378 = {instancePath:instancePath+"/properties/" + i37+"/binding/name",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/properties/name/const",keyword:"const",params:{allowedValue: "timeCycle"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}}}}}var valid227 = _errs397 === errors;if(valid227){break;}}if(!valid227){const err379 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf/1/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}else {errors = _errs396;if(vErrors !== null){if(_errs396){vErrors.length = _errs396;}else {vErrors = null;}}}}var _valid25 = _errs395 === errors;if(_valid25 && valid222){valid222 = false;passing0 = [passing0, 1];}else {if(_valid25){valid222 = true;passing0 = 1;}const _errs402 = errors;if(Array.isArray(data204)){const _errs403 = errors;const len38 = data204.length;for(let i38=0; i38<len38; i38++){let data213 = data204[i38];const _errs404 = errors;if(data213 && typeof data213 == "object" && !Array.isArray(data213)){if(data213.binding === undefined){const err380 = {instancePath:instancePath+"/properties/" + i38,schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}if(data213.binding !== undefined){let data214 = data213.binding;if(data214 && typeof data214 == "object" && !Array.isArray(data214)){if(data214.type === undefined){const err381 = {instancePath:instancePath+"/properties/" + i38+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}if(data214.name === undefined){const err382 = {instancePath:instancePath+"/properties/" + i38+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}if(data214.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data214.type){const err383 = {instancePath:instancePath+"/properties/" + i38+"/binding/type",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}if(data214.name !== undefined){if("timeDuration" !== data214.name){const err384 = {instancePath:instancePath+"/properties/" + i38+"/binding/name",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/properties/name/const",keyword:"const",params:{allowedValue: "timeDuration"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}}}}}var valid231 = _errs404 === errors;if(valid231){break;}}if(!valid231){const err385 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf/2/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}else {errors = _errs403;if(vErrors !== null){if(_errs403){vErrors.length = _errs403;}else {vErrors = null;}}}}var _valid25 = _errs402 === errors;if(_valid25 && valid222){valid222 = false;passing0 = [passing0, 2];}else {if(_valid25){valid222 = true;passing0 = 2;}}}if(!valid222){const err386 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}else {errors = _errs387;if(vErrors !== null){if(_errs387){vErrors.length = _errs387;}else {vErrors = null;}}}if(errors > 0){const emErrs37 = [];for(const err387 of vErrors){if(((((err387.keyword !== "errorMessage") && (!err387.emUsed)) && ((err387.instancePath === instancePath+"/properties") || ((err387.instancePath.indexOf(instancePath+"/properties") === 0) && (err387.instancePath[instancePath+"/properties".length] === "/")))) && (err387.schemaPath.indexOf("#/allOf/1/allOf/11/allOf/1/then/properties/properties") === 0)) && (err387.schemaPath["#/allOf/1/allOf/11/allOf/1/then/properties/properties".length] === "/")){emErrs37.push(err387);err387.emUsed = true;}}if(emErrs37.length){const err388 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs37},message:"Template with elementType.eventDefinition=\"bpmn:TimerEventDefinition\" must have exactly one binding with type \"bpmn:TimerEventDefinition#property\" and name \"timeDate\", \"timeCycle\", or \"timeDuration\"."};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}const emErrs38 = [];for(const err389 of vErrors){if(!err389.emUsed){emErrs38.push(err389);}}vErrors = emErrs38;errors = emErrs38.length;}}}var _valid24 = _errs385 === errors;valid218 = _valid24;}if(!valid218){const err390 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}const _errs410 = errors;let valid235 = true;const _errs411 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err391 = {};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}else {if(data.elementType !== undefined){let data217 = data.elementType;if(data217 && typeof data217 == "object" && !Array.isArray(data217)){if(((data217.eventDefinition === undefined) && ("eventDefinition")) || ((data217.value === undefined) && ("value"))){const err392 = {};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}else {if(data217.eventDefinition !== undefined){const _errs413 = errors;if("bpmn:TimerEventDefinition" !== data217.eventDefinition){const err393 = {};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}var valid237 = _errs413 === errors;}else {var valid237 = true;}if(valid237){if(data217.value !== undefined){const _errs414 = errors;if("bpmn:IntermediateCatchEvent" !== data217.value){const err394 = {};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}var valid237 = _errs414 === errors;}else {var valid237 = true;}}}}}}}var _valid26 = _errs411 === errors;errors = _errs410;if(vErrors !== null){if(_errs410){vErrors.length = _errs410;}else {vErrors = null;}}if(_valid26){const _errs415 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data220 = data.properties;const _errs417 = errors;const _errs418 = errors;if(Array.isArray(data220)){const _errs419 = errors;const len39 = data220.length;for(let i39=0; i39<len39; i39++){let data221 = data220[i39];const _errs420 = errors;if(data221 && typeof data221 == "object" && !Array.isArray(data221)){if((data221.binding === undefined) && ("binding")){const err395 = {};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}else {if(data221.binding !== undefined){let data222 = data221.binding;if(data222 && typeof data222 == "object" && !Array.isArray(data222)){if(((data222.type === undefined) && ("type")) || ((data222.name === undefined) && ("name"))){const err396 = {};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}else {if(data222.type !== undefined){const _errs423 = errors;if("bpmn:TimerEventDefinition#property" !== data222.type){const err397 = {};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}var valid243 = _errs423 === errors;}else {var valid243 = true;}if(valid243){if(data222.name !== undefined){const _errs424 = errors;if("timeCycle" !== data222.name){const err398 = {};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}var valid243 = _errs424 === errors;}else {var valid243 = true;}}}}}}}var valid240 = _errs420 === errors;if(valid240){break;}}if(!valid240){const err399 = {};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}else {errors = _errs419;if(vErrors !== null){if(_errs419){vErrors.length = _errs419;}else {vErrors = null;}}}}var valid239 = _errs418 === errors;if(valid239){const err400 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/2/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}else {errors = _errs417;if(vErrors !== null){if(_errs417){vErrors.length = _errs417;}else {vErrors = null;}}}}}var _valid26 = _errs415 === errors;valid235 = _valid26;}if(!valid235){const err401 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}const _errs427 = errors;let valid245 = true;const _errs428 = errors;const _errs429 = errors;let valid246 = false;const _errs430 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err402 = {};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}else {if(data.elementType !== undefined){let data225 = data.elementType;if(data225 && typeof data225 == "object" && !Array.isArray(data225)){if((data225.value === undefined) && ("value")){const err403 = {};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}else {if(data225.value !== undefined){if("bpmn:AdHocSubProcess" !== data225.value){const err404 = {};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}}}}}}}var _valid28 = _errs430 === errors;valid246 = valid246 || _valid28;if(!valid246){const _errs433 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err405 = {};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[0].if.anyOf[1].properties.appliesTo.const)){const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}}}}var _valid28 = _errs433 === errors;valid246 = valid246 || _valid28;}if(!valid246){const err407 = {};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}else {errors = _errs429;if(vErrors !== null){if(_errs429){vErrors.length = _errs429;}else {vErrors = null;}}}var _valid27 = _errs428 === errors;errors = _errs427;if(vErrors !== null){if(_errs427){vErrors.length = _errs427;}else {vErrors = null;}}if(_valid27){const _errs435 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data228 = data.properties;if(Array.isArray(data228)){const len40 = data228.length;for(let i40=0; i40<len40; i40++){let data229 = data228[i40];const _errs438 = errors;let valid253 = true;const _errs439 = errors;if(data229 && typeof data229 == "object" && !Array.isArray(data229)){if((data229.binding === undefined) && ("binding")){const err408 = {};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}else {if(data229.binding !== undefined){let data230 = data229.binding;if(data230 && typeof data230 == "object" && !Array.isArray(data230)){if(((data230.type === undefined) && ("type")) || ((data230.name === undefined) && ("name"))){const err409 = {};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}else {if(data230.type !== undefined){const _errs441 = errors;if("property" !== data230.type){const err410 = {};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}var valid255 = _errs441 === errors;}else {var valid255 = true;}if(valid255){if(data230.name !== undefined){const _errs442 = errors;if("completionCondition" !== data230.name){const err411 = {};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}var valid255 = _errs442 === errors;}else {var valid255 = true;}}}}}}}var _valid29 = _errs439 === errors;errors = _errs438;if(vErrors !== null){if(_errs438){vErrors.length = _errs438;}else {vErrors = null;}}if(_valid29){const _errs443 = errors;if(data229 && typeof data229 == "object" && !Array.isArray(data229)){if(data229.feel === undefined){const err412 = {instancePath:instancePath+"/properties/" + i40,schemaPath:"#/allOf/2/allOf/0/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}if(data229.feel !== undefined){if("required" !== data229.feel){const err413 = {instancePath:instancePath+"/properties/" + i40+"/feel",schemaPath:"#/allOf/2/allOf/0/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}}}var _valid29 = _errs443 === errors;valid253 = _valid29;}if(!valid253){const err414 = {instancePath:instancePath+"/properties/" + i40,schemaPath:"#/allOf/2/allOf/0/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}}}}}var _valid27 = _errs435 === errors;valid245 = _valid27;}if(!valid245){const err415 = {instancePath,schemaPath:"#/allOf/2/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}const _errs446 = errors;let valid257 = true;const _errs447 = errors;const _errs448 = errors;let valid258 = false;const _errs449 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err416 = {};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}else {if(data.elementType !== undefined){let data234 = data.elementType;if(data234 && typeof data234 == "object" && !Array.isArray(data234)){if((data234.value === undefined) && ("value")){const err417 = {};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}else {if(data234.value !== undefined){if("bpmn:SequenceFlow" !== data234.value){const err418 = {};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}}}}}}}var _valid31 = _errs449 === errors;valid258 = valid258 || _valid31;if(!valid258){const _errs452 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err419 = {};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[1].if.anyOf[1].properties.appliesTo.const)){const err420 = {};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}}}}var _valid31 = _errs452 === errors;valid258 = valid258 || _valid31;}if(!valid258){const err421 = {};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}else {errors = _errs448;if(vErrors !== null){if(_errs448){vErrors.length = _errs448;}else {vErrors = null;}}}var _valid30 = _errs447 === errors;errors = _errs446;if(vErrors !== null){if(_errs446){vErrors.length = _errs446;}else {vErrors = null;}}if(_valid30){const _errs454 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data237 = data.properties;if(Array.isArray(data237)){const len41 = data237.length;for(let i41=0; i41<len41; i41++){let data238 = data237[i41];const _errs457 = errors;let valid265 = true;const _errs458 = errors;if(data238 && typeof data238 == "object" && !Array.isArray(data238)){if((data238.binding === undefined) && ("binding")){const err422 = {};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}else {if(data238.binding !== undefined){let data239 = data238.binding;if(data239 && typeof data239 == "object" && !Array.isArray(data239)){if(((data239.type === undefined) && ("type")) || ((data239.name === undefined) && ("name"))){const err423 = {};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}else {if(data239.type !== undefined){const _errs460 = errors;if("property" !== data239.type){const err424 = {};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}var valid267 = _errs460 === errors;}else {var valid267 = true;}if(valid267){if(data239.name !== undefined){const _errs461 = errors;if("conditionExpression" !== data239.name){const err425 = {};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}var valid267 = _errs461 === errors;}else {var valid267 = true;}}}}}}}var _valid32 = _errs458 === errors;errors = _errs457;if(vErrors !== null){if(_errs457){vErrors.length = _errs457;}else {vErrors = null;}}if(_valid32){const _errs462 = errors;if(data238 && typeof data238 == "object" && !Array.isArray(data238)){if(data238.feel === undefined){const err426 = {instancePath:instancePath+"/properties/" + i41,schemaPath:"#/allOf/2/allOf/1/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}if(data238.feel !== undefined){if("required" !== data238.feel){const err427 = {instancePath:instancePath+"/properties/" + i41+"/feel",schemaPath:"#/allOf/2/allOf/1/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}}}var _valid32 = _errs462 === errors;valid265 = _valid32;}if(!valid265){const err428 = {instancePath:instancePath+"/properties/" + i41,schemaPath:"#/allOf/2/allOf/1/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}}}}}var _valid30 = _errs454 === errors;valid257 = _valid30;}if(!valid257){const err429 = {instancePath,schemaPath:"#/allOf/2/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}const _errs465 = errors;let valid269 = true;const _errs466 = errors;const _errs467 = errors;let valid270 = false;const _errs468 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err430 = {};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}else {if(data.elementType !== undefined){let data243 = data.elementType;if(data243 && typeof data243 == "object" && !Array.isArray(data243)){if((data243.value === undefined) && ("value")){const err431 = {};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}else {if(data243.value !== undefined){if("bpmn:ComplexGateway" !== data243.value){const err432 = {};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}}}}}}}var _valid34 = _errs468 === errors;valid270 = valid270 || _valid34;if(!valid270){const _errs471 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err433 = {};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[2].if.anyOf[1].properties.appliesTo.const)){const err434 = {};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}}}}var _valid34 = _errs471 === errors;valid270 = valid270 || _valid34;}if(!valid270){const err435 = {};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}else {errors = _errs467;if(vErrors !== null){if(_errs467){vErrors.length = _errs467;}else {vErrors = null;}}}var _valid33 = _errs466 === errors;errors = _errs465;if(vErrors !== null){if(_errs465){vErrors.length = _errs465;}else {vErrors = null;}}if(_valid33){const _errs473 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data246 = data.properties;if(Array.isArray(data246)){const len42 = data246.length;for(let i42=0; i42<len42; i42++){let data247 = data246[i42];const _errs476 = errors;let valid277 = true;const _errs477 = errors;if(data247 && typeof data247 == "object" && !Array.isArray(data247)){if((data247.binding === undefined) && ("binding")){const err436 = {};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}else {if(data247.binding !== undefined){let data248 = data247.binding;if(data248 && typeof data248 == "object" && !Array.isArray(data248)){if(((data248.type === undefined) && ("type")) || ((data248.name === undefined) && ("name"))){const err437 = {};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}else {if(data248.type !== undefined){const _errs479 = errors;if("property" !== data248.type){const err438 = {};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}var valid279 = _errs479 === errors;}else {var valid279 = true;}if(valid279){if(data248.name !== undefined){const _errs480 = errors;if("activationCondition" !== data248.name){const err439 = {};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}var valid279 = _errs480 === errors;}else {var valid279 = true;}}}}}}}var _valid35 = _errs477 === errors;errors = _errs476;if(vErrors !== null){if(_errs476){vErrors.length = _errs476;}else {vErrors = null;}}if(_valid35){const _errs481 = errors;if(data247 && typeof data247 == "object" && !Array.isArray(data247)){if(data247.feel === undefined){const err440 = {instancePath:instancePath+"/properties/" + i42,schemaPath:"#/allOf/2/allOf/2/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}if(data247.feel !== undefined){if("required" !== data247.feel){const err441 = {instancePath:instancePath+"/properties/" + i42+"/feel",schemaPath:"#/allOf/2/allOf/2/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}}}var _valid35 = _errs481 === errors;valid277 = _valid35;}if(!valid277){const err442 = {instancePath:instancePath+"/properties/" + i42,schemaPath:"#/allOf/2/allOf/2/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}}}}}var _valid33 = _errs473 === errors;valid269 = _valid33;}if(!valid269){const err443 = {instancePath,schemaPath:"#/allOf/2/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}const _errs484 = errors;let valid281 = true;const _errs485 = errors;const _errs486 = errors;let valid282 = false;const _errs487 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err444 = {};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}else {if(data.elementType !== undefined){let data252 = data.elementType;if(data252 && typeof data252 == "object" && !Array.isArray(data252)){if((data252.value === undefined) && ("value")){const err445 = {};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}else {if(data252.value !== undefined){if("bpmn:AdHocSubProcess" !== data252.value){const err446 = {};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}}}}}}}var _valid37 = _errs487 === errors;valid282 = valid282 || _valid37;if(!valid282){const _errs490 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err447 = {};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[3].if.anyOf[1].properties.appliesTo.const)){const err448 = {};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}}}}var _valid37 = _errs490 === errors;valid282 = valid282 || _valid37;}if(!valid282){const err449 = {};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}else {errors = _errs486;if(vErrors !== null){if(_errs486){vErrors.length = _errs486;}else {vErrors = null;}}}var _valid36 = _errs485 === errors;errors = _errs484;if(vErrors !== null){if(_errs484){vErrors.length = _errs484;}else {vErrors = null;}}if(_valid36){const _errs492 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data255 = data.properties;if(Array.isArray(data255)){const len43 = data255.length;for(let i43=0; i43<len43; i43++){let data256 = data255[i43];const _errs495 = errors;let valid289 = true;const _errs496 = errors;if(data256 && typeof data256 == "object" && !Array.isArray(data256)){if(((data256.binding === undefined) && ("binding")) || ((data256.type === undefined) && ("type"))){const err450 = {};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}else {if(data256.type !== undefined){let data257 = data256.type;const _errs497 = errors;if(!((data257 === "String") || (data257 === "Text"))){const err451 = {};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}var valid290 = _errs497 === errors;}else {var valid290 = true;}if(valid290){if(data256.binding !== undefined){let data258 = data256.binding;const _errs498 = errors;if(data258 && typeof data258 == "object" && !Array.isArray(data258)){if(((data258.type === undefined) && ("type")) || ((data258.property === undefined) && ("property"))){const err452 = {};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}else {if(data258.type !== undefined){const _errs499 = errors;if("zeebe:adHoc" !== data258.type){const err453 = {};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}var valid291 = _errs499 === errors;}else {var valid291 = true;}if(valid291){if(data258.property !== undefined){const _errs500 = errors;if("outputElement" !== data258.property){const err454 = {};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}var valid291 = _errs500 === errors;}else {var valid291 = true;}}}}var valid290 = _errs498 === errors;}else {var valid290 = true;}}}}var _valid38 = _errs496 === errors;errors = _errs495;if(vErrors !== null){if(_errs495){vErrors.length = _errs495;}else {vErrors = null;}}if(_valid38){const _errs501 = errors;if(data256 && typeof data256 == "object" && !Array.isArray(data256)){if(data256.feel === undefined){const err455 = {instancePath:instancePath+"/properties/" + i43,schemaPath:"#/allOf/2/allOf/3/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}if(data256.feel !== undefined){if("required" !== data256.feel){const err456 = {instancePath:instancePath+"/properties/" + i43+"/feel",schemaPath:"#/allOf/2/allOf/3/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}}}var _valid38 = _errs501 === errors;valid289 = _valid38;}if(!valid289){const err457 = {instancePath:instancePath+"/properties/" + i43,schemaPath:"#/allOf/2/allOf/3/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}}}}}var _valid36 = _errs492 === errors;valid281 = _valid36;}if(!valid281){const err458 = {instancePath,schemaPath:"#/allOf/2/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {instancePath:instancePath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.engines !== undefined){let data263 = data.engines;if(data263 && typeof data263 == "object" && !Array.isArray(data263)){if(data263.camunda !== undefined){if(typeof data263.camunda !== "string"){const err459 = {instancePath:instancePath+"/engines/camunda",schemaPath:"#/properties/engines/properties/camunda/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}}if(data263.camundaDesktopModeler !== undefined){if(typeof data263.camundaDesktopModeler !== "string"){const err460 = {instancePath:instancePath+"/engines/camundaDesktopModeler",schemaPath:"#/properties/engines/properties/camundaDesktopModeler/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}}if(data263.camundaWebModeler !== undefined){if(typeof data263.camundaWebModeler !== "string"){const err461 = {instancePath:instancePath+"/engines/camundaWebModeler",schemaPath:"#/properties/engines/properties/camundaWebModeler/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}}}else {const err462 = {instancePath:instancePath+"/engines",schemaPath:"#/properties/engines/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}if(data.category !== undefined){let data267 = data.category;if(data267 && typeof data267 == "object" && !Array.isArray(data267)){if(data267.id === undefined){const err463 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}if(data267.name === undefined){const err464 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}if(data267.id !== undefined){if(typeof data267.id !== "string"){const err465 = {instancePath:instancePath+"/category/id",schemaPath:"#/properties/category/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}}if(data267.name !== undefined){if(typeof data267.name !== "string"){const err466 = {instancePath:instancePath+"/category/name",schemaPath:"#/properties/category/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}}}else {const err467 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}}if(data.icon !== undefined){let data270 = data.icon;if(data270 && typeof data270 == "object" && !Array.isArray(data270)){if(data270.contents === undefined){const err468 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/required",keyword:"required",params:{missingProperty: "contents"},message:"must have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}if(data270.contents !== undefined){let data271 = data270.contents;if(typeof data271 === "string"){if(!pattern9.test(data271)){const err469 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",keyword:"pattern",params:{pattern: "^(https?|data):.*"},message:"must match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}}else {const err470 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}if(errors > 0){const emErrors7 = {"pattern":[]};const templates7 = {};for(const err471 of vErrors){if((((((err471.keyword !== "errorMessage") && (!err471.emUsed)) && (err471.instancePath === instancePath+"/icon/contents")) && (err471.keyword in emErrors7)) && (err471.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err471.schemaPath.slice(37)))){emErrors7[err471.keyword].push(err471);err471.emUsed = true;}}for(const key7 in emErrors7){if(emErrors7[key7].length){const err472 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",keyword:"errorMessage",params:{errors: emErrors7[key7]},message:key7 in templates7 ? templates7[key7]() : schema17.properties.icon.properties.contents.errorMessage[key7]};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}const emErrs39 = [];for(const err473 of vErrors){if(!err473.emUsed){emErrs39.push(err473);}}vErrors = emErrs39;errors = emErrs39.length;}}}else {const err474 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}if(errors > 0){const emErrors8 = {"required":{"contents":[]}};const templates8 = {required:{}};let emPropParams4;let emParamsErrors4;for(const err475 of vErrors){if((((((err475.keyword !== "errorMessage") && (!err475.emUsed)) && (err475.instancePath === instancePath+"/icon")) && (err475.keyword in emErrors8)) && (err475.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err475.schemaPath.slice(17)))){emPropParams4 = obj0[err475.keyword];emParamsErrors4 = emErrors8[err475.keyword][err475.params[emPropParams4]];if(emParamsErrors4){emParamsErrors4.push(err475);err475.emUsed = true;}}}for(const key8 in emErrors8){for(const keyProp4 in emErrors8[key8]){emParamsErrors4 = emErrors8[key8][keyProp4];if(emParamsErrors4.length){const tmpl4 = templates8[key8] && templates8[key8][keyProp4];const err476 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors4},message:tmpl4 ? tmpl4() : schema17.properties.icon.errorMessage[key8][keyProp4]};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}}}const emErrs40 = [];for(const err477 of vErrors){if(!err477.emUsed){emErrs40.push(err477);}}vErrors = emErrs40;errors = emErrs40.length;}}if(data.elementType !== undefined){let data272 = data.elementType;if(data272 && typeof data272 == "object" && !Array.isArray(data272)){if(data272.eventDefinition !== undefined){let data273 = data272.eventDefinition;if(!((((data273 === "bpmn:MessageEventDefinition") || (data273 === "bpmn:SignalEventDefinition")) || (data273 === "bpmn:TimerEventDefinition")) || (data273 === "bpmn:ConditionalEventDefinition"))){const err478 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}}}const _errs527 = errors;let valid300 = true;const _errs528 = errors;if(data272 && typeof data272 == "object" && !Array.isArray(data272)){if((data272.eventDefinition === undefined) && ("eventDefinition")){const err479 = {};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}}var _valid39 = _errs528 === errors;errors = _errs527;if(vErrors !== null){if(_errs527){vErrors.length = _errs527;}else {vErrors = null;}}if(_valid39){const _errs529 = errors;if(data272 && typeof data272 == "object" && !Array.isArray(data272)){if(data272.value === undefined){const err480 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}if(data272.value !== undefined){let data274 = data272.value;if(!(((((data274 === "bpmn:StartEvent") || (data274 === "bpmn:IntermediateCatchEvent")) || (data274 === "bpmn:IntermediateThrowEvent")) || (data274 === "bpmn:BoundaryEvent")) || (data274 === "bpmn:EndEvent"))){const err481 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}}}var _valid39 = _errs529 === errors;valid300 = _valid39;}if(!valid300){const err482 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}const _errs532 = errors;let valid302 = true;const _errs533 = errors;if(data272 && typeof data272 == "object" && !Array.isArray(data272)){if((data272.eventDefinition === undefined) && ("eventDefinition")){const err483 = {};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}else {if(data272.eventDefinition !== undefined){if("bpmn:TimerEventDefinition" !== data272.eventDefinition){const err484 = {};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}}}}var _valid40 = _errs533 === errors;errors = _errs532;if(vErrors !== null){if(_errs532){vErrors.length = _errs532;}else {vErrors = null;}}if(_valid40){const _errs535 = errors;if(data272 && typeof data272 == "object" && !Array.isArray(data272)){if(data272.value === undefined){const err485 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/2/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}if(data272.value !== undefined){let data276 = data272.value;if(!(((data276 === "bpmn:StartEvent") || (data276 === "bpmn:IntermediateCatchEvent")) || (data276 === "bpmn:BoundaryEvent"))){const err486 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/2/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[2].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}}}var _valid40 = _errs535 === errors;valid302 = _valid40;}if(!valid302){const err487 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}const _errs538 = errors;let valid305 = true;const _errs539 = errors;if(data272 && typeof data272 == "object" && !Array.isArray(data272)){if((data272.eventDefinition === undefined) && ("eventDefinition")){const err488 = {};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}else {if(data272.eventDefinition !== undefined){if("bpmn:ConditionalEventDefinition" !== data272.eventDefinition){const err489 = {};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}}}}var _valid41 = _errs539 === errors;errors = _errs538;if(vErrors !== null){if(_errs538){vErrors.length = _errs538;}else {vErrors = null;}}if(_valid41){const _errs541 = errors;if(data272 && typeof data272 == "object" && !Array.isArray(data272)){if(data272.value === undefined){const err490 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/3/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}if(data272.value !== undefined){let data278 = data272.value;if(!(((data278 === "bpmn:StartEvent") || (data278 === "bpmn:IntermediateCatchEvent")) || (data278 === "bpmn:BoundaryEvent"))){const err491 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/3/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[3].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}}}var _valid41 = _errs541 === errors;valid305 = _valid41;}if(!valid305){const err492 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}}if(data.groups !== undefined){let data279 = data.groups;if(Array.isArray(data279)){const len44 = data279.length;for(let i44=0; i44<len44; i44++){let data280 = data279[i44];if(data280 && typeof data280 == "object" && !Array.isArray(data280)){if(data280.tooltip !== undefined){if(typeof data280.tooltip !== "string"){const err493 = {instancePath:instancePath+"/groups/" + i44+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}}if(data280.openByDefault !== undefined){if(typeof data280.openByDefault !== "boolean"){const err494 = {instancePath:instancePath+"/groups/" + i44+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}}}}}}}else {const err495 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
762
+ };keyword0.push(warning1);validate14.warnings = keyword0;var _valid50 = _errs482 === errors;valid224 = _valid50;}if(!valid224){const err428 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}const _errs484 = errors;let valid226 = true;const _errs485 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err429 = {};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}else {if(data172.type !== undefined){if("zeebe:calledElement" !== data172.type){const err430 = {};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}}}}var _valid51 = _errs485 === errors;errors = _errs484;if(vErrors !== null){if(_errs484){vErrors.length = _errs484;}else {vErrors = null;}}if(_valid51){const _errs487 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err431 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}if(data172.property !== undefined){let data180 = data172.property;if(!(((((data180 === "processId") || (data180 === "bindingType")) || (data180 === "versionTag")) || (data180 === "propagateAllParentVariables")) || (data180 === "propagateAllChildVariables"))){const err432 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[5].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}}}var _valid51 = _errs487 === errors;valid226 = _valid51;}if(!valid226){const err433 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}const _errs490 = errors;let valid229 = true;const _errs491 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err434 = {};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}else {if(data172.type !== undefined){if("zeebe:script" !== data172.type){const err435 = {};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}}}}var _valid52 = _errs491 === errors;errors = _errs490;if(vErrors !== null){if(_errs490){vErrors.length = _errs490;}else {vErrors = null;}}if(_valid52){const _errs493 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err436 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}if(data172.property !== undefined){let data182 = data172.property;if(!((data182 === "expression") || (data182 === "resultVariable"))){const err437 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[6].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}}}var _valid52 = _errs493 === errors;valid229 = _valid52;}if(!valid229){const err438 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}const _errs496 = errors;let valid232 = true;const _errs497 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err439 = {};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}else {if(data172.type !== undefined){if("zeebe:formDefinition" !== data172.type){const err440 = {};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}}}}var _valid53 = _errs497 === errors;errors = _errs496;if(vErrors !== null){if(_errs496){vErrors.length = _errs496;}else {vErrors = null;}}if(_valid53){const _errs499 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err441 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}if(data172.property !== undefined){let data184 = data172.property;if(!((((data184 === "formId") || (data184 === "externalReference")) || (data184 === "bindingType")) || (data184 === "versionTag"))){const err442 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[7].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}}}var _valid53 = _errs499 === errors;valid232 = _valid53;}if(!valid232){const err443 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}const _errs502 = errors;let valid235 = true;const _errs503 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err444 = {};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}else {if(data172.type !== undefined){if("zeebe:calledDecision" !== data172.type){const err445 = {};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}}}}var _valid54 = _errs503 === errors;errors = _errs502;if(vErrors !== null){if(_errs502){vErrors.length = _errs502;}else {vErrors = null;}}if(_valid54){const _errs505 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err446 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}if(data172.property !== undefined){let data186 = data172.property;if(!((((data186 === "decisionId") || (data186 === "resultVariable")) || (data186 === "versionTag")) || (data186 === "bindingType"))){const err447 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[8].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}}}var _valid54 = _errs505 === errors;valid235 = _valid54;}if(!valid235){const err448 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}const _errs508 = errors;let valid238 = true;const _errs509 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err449 = {};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}else {if(data172.type !== undefined){if("zeebe:assignmentDefinition" !== data172.type){const err450 = {};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}}}}var _valid55 = _errs509 === errors;errors = _errs508;if(vErrors !== null){if(_errs508){vErrors.length = _errs508;}else {vErrors = null;}}if(_valid55){const _errs511 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err451 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/9/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}if(data172.property !== undefined){let data188 = data172.property;if(!(((data188 === "assignee") || (data188 === "candidateUsers")) || (data188 === "candidateGroups"))){const err452 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/9/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[9].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}}}var _valid55 = _errs511 === errors;valid238 = _valid55;}if(!valid238){const err453 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}const _errs514 = errors;let valid241 = true;const _errs515 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err454 = {};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}else {if(data172.type !== undefined){if("zeebe:priorityDefinition" !== data172.type){const err455 = {};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}}}}var _valid56 = _errs515 === errors;errors = _errs514;if(vErrors !== null){if(_errs514){vErrors.length = _errs514;}else {vErrors = null;}}if(_valid56){const _errs517 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err456 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/10/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}if(data172.property !== undefined){if("priority" !== data172.property){const err457 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/10/then/properties/property/const",keyword:"const",params:{allowedValue: "priority"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}}}var _valid56 = _errs517 === errors;valid241 = _valid56;}if(!valid241){const err458 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}const _errs520 = errors;let valid244 = true;const _errs521 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err459 = {};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}else {if(data172.type !== undefined){if("zeebe:adHoc" !== data172.type){const err460 = {};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}}}}var _valid57 = _errs521 === errors;errors = _errs520;if(vErrors !== null){if(_errs520){vErrors.length = _errs520;}else {vErrors = null;}}if(_valid57){const _errs523 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err461 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/11/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}if(data172.property !== undefined){let data192 = data172.property;if(!(((data192 === "activeElementsCollection") || (data192 === "outputCollection")) || (data192 === "outputElement"))){const err462 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/11/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[11].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}}var _valid57 = _errs523 === errors;valid244 = _valid57;}if(!valid244){const err463 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/11/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}const _errs526 = errors;let valid247 = true;const _errs527 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err464 = {};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}else {if(data172.type !== undefined){if("zeebe:taskSchedule" !== data172.type){const err465 = {};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}}}}var _valid58 = _errs527 === errors;errors = _errs526;if(vErrors !== null){if(_errs526){vErrors.length = _errs526;}else {vErrors = null;}}if(_valid58){const _errs529 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.property === undefined){const err466 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/12/then/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}if(data172.property !== undefined){let data194 = data172.property;if(!((data194 === "dueDate") || (data194 === "followUpDate"))){const err467 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/12/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[12].then.properties.property.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}}}var _valid58 = _errs529 === errors;valid247 = _valid58;}if(!valid247){const err468 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}const _errs532 = errors;let valid250 = true;const _errs533 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err469 = {};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}else {if(data172.type !== undefined){if("bpmn:Signal#property" !== data172.type){const err470 = {};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}}}}var _valid59 = _errs533 === errors;errors = _errs532;if(vErrors !== null){if(_errs532){vErrors.length = _errs532;}else {vErrors = null;}}if(_valid59){const _errs535 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.name === undefined){const err471 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/13/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}if(data172.name !== undefined){if("name" !== data172.name){const err472 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/13/then/properties/name/const",keyword:"const",params:{allowedValue: "name"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}}var _valid59 = _errs535 === errors;valid250 = _valid59;}if(!valid250){const err473 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/13/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}const _errs538 = errors;let valid253 = true;const _errs539 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err474 = {};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}else {if(data172.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data172.type){const err475 = {};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}}}}var _valid60 = _errs539 === errors;errors = _errs538;if(vErrors !== null){if(_errs538){vErrors.length = _errs538;}else {vErrors = null;}}if(_valid60){const _errs541 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.name === undefined){const err476 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/14/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}if(data172.name !== undefined){let data198 = data172.name;if(!(((data198 === "timeCycle") || (data198 === "timeDate")) || (data198 === "timeDuration"))){const err477 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/14/then/properties/name/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.allOf[14].then.properties.name.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}}}var _valid60 = _errs541 === errors;valid253 = _valid60;}if(!valid253){const err478 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}const _errs545 = errors;let valid257 = true;const _errs546 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err479 = {};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}else {if(data172.type !== undefined){if("bpmn:ConditionalEventDefinition#property" !== data172.type){const err480 = {};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}}}var _valid61 = _errs546 === errors;errors = _errs545;if(vErrors !== null){if(_errs545){vErrors.length = _errs545;}else {vErrors = null;}}if(_valid61){const _errs548 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.name === undefined){const err481 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/0/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}if(data172.name !== undefined){if("condition" !== data172.name){const err482 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/0/then/properties/name/const",keyword:"const",params:{allowedValue: "condition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}}}var _valid61 = _errs548 === errors;valid257 = _valid61;}if(!valid257){const err483 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}const _errs551 = errors;let valid260 = true;const _errs552 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if((data172.type === undefined) && ("type")){const err484 = {};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}else {if(data172.type !== undefined){if("bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property" !== data172.type){const err485 = {};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}}}}var _valid62 = _errs552 === errors;errors = _errs551;if(vErrors !== null){if(_errs551){vErrors.length = _errs551;}else {vErrors = null;}}if(_valid62){const _errs554 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.name === undefined){const err486 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/1/then/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}if(data172.name !== undefined){if("variableEvents" !== data172.name){const err487 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/1/then/properties/name/const",keyword:"const",params:{allowedValue: "variableEvents"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}}}var _valid62 = _errs554 === errors;valid260 = _valid62;}if(!valid260){const err488 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/15/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.type === undefined){const err489 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}if(data172.type !== undefined){let data203 = data172.type;if(typeof data203 !== "string"){const err490 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}if(!(((((((((((((((((((((((data203 === "property") || (data203 === "zeebe:taskDefinition:type")) || (data203 === "zeebe:input")) || (data203 === "zeebe:output")) || (data203 === "zeebe:property")) || (data203 === "zeebe:taskHeader")) || (data203 === "bpmn:Message#property")) || (data203 === "bpmn:Message#zeebe:subscription#property")) || (data203 === "zeebe:taskDefinition")) || (data203 === "zeebe:calledElement")) || (data203 === "zeebe:linkedResource")) || (data203 === "zeebe:userTask")) || (data203 === "zeebe:formDefinition")) || (data203 === "zeebe:calledDecision")) || (data203 === "zeebe:script")) || (data203 === "zeebe:assignmentDefinition")) || (data203 === "zeebe:priorityDefinition")) || (data203 === "zeebe:adHoc")) || (data203 === "zeebe:taskSchedule")) || (data203 === "bpmn:Signal#property")) || (data203 === "bpmn:TimerEventDefinition#property")) || (data203 === "bpmn:ConditionalEventDefinition#property")) || (data203 === "bpmn:ConditionalEventDefinition#zeebe:conditionalFilter#property"))){const err491 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}if(errors > 0){const emErrs49 = [];for(const err492 of vErrors){if(((((err492.keyword !== "errorMessage") && (!err492.emUsed)) && ((err492.instancePath === instancePath+"/" + i5+"/binding/type") || ((err492.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err492.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err492.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err492.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs49.push(err492);err492.emUsed = true;}}if(emErrs49.length){const err493 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs49},message:"invalid property.binding type " + JSON.stringify(data203) + "; must be any of { property, zeebe:taskDefinition:type, zeebe:input, zeebe:output, zeebe:property, zeebe:taskHeader, bpmn:Message#property, bpmn:Message#zeebe:subscription#property, zeebe:taskDefinition, zeebe:calledElement, zeebe:linkedResource, zeebe:userTask, zeebe:formDefinition, zeebe:calledDecision, zeebe:script, zeebe:assignmentDefinition, zeebe:priorityDefinition, zeebe:adHoc, zeebe:taskSchedule, bpmn:Signal#property, bpmn:TimerEventDefinition#property }"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}const emErrs50 = [];for(const err494 of vErrors){if(!err494.emUsed){emErrs50.push(err494);}}vErrors = emErrs50;errors = emErrs50.length;}}if(data172.name !== undefined){if(typeof data172.name !== "string"){const err495 = {instancePath:instancePath+"/" + i5+"/binding/name",schemaPath:"#/allOf/1/items/properties/binding/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}}if(data172.source !== undefined){if(typeof data172.source !== "string"){const err496 = {instancePath:instancePath+"/" + i5+"/binding/source",schemaPath:"#/allOf/1/items/properties/binding/properties/source/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}}if(data172.key !== undefined){if(typeof data172.key !== "string"){const err497 = {instancePath:instancePath+"/" + i5+"/binding/key",schemaPath:"#/allOf/1/items/properties/binding/properties/key/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}}if(data172.property !== undefined){if(typeof data172.property !== "string"){const err498 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/properties/property/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}}if(data172.linkName !== undefined){if(typeof data172.linkName !== "string"){const err499 = {instancePath:instancePath+"/" + i5+"/binding/linkName",schemaPath:"#/allOf/1/items/properties/binding/properties/linkName/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}}}else {const err500 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}}if(data42.optional !== undefined){if(typeof data42.optional !== "boolean"){const err501 = {instancePath:instancePath+"/" + i5+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}}if(data42.feel !== undefined){let data210 = data42.feel;if(typeof data210 !== "string"){const err502 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}if(!(((data210 === "optional") || (data210 === "required")) || (data210 === "static"))){const err503 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",keyword:"enum",params:{allowedValues: schema22.allOf[1].items.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}}if(data42.language !== undefined){if(typeof data42.language !== "string"){const err504 = {instancePath:instancePath+"/" + i5+"/language",schemaPath:"#/allOf/1/items/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}}if(data42.generatedValue !== undefined){let data212 = data42.generatedValue;if(data212 && typeof data212 == "object" && !Array.isArray(data212)){if(data212.type === undefined){const err505 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}if(data212.type !== undefined){if("uuid" !== data212.type){const err506 = {instancePath:instancePath+"/" + i5+"/generatedValue/type",schemaPath:"#/allOf/1/items/properties/generatedValue/properties/type/const",keyword:"const",params:{allowedValue: "uuid"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}}}else {const err507 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}}if(data42.tooltip !== undefined){if(typeof data42.tooltip !== "string"){const err508 = {instancePath:instancePath+"/" + i5+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}}else {const err509 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}if(errors > 0){const emErrors3 = {"required":{"binding":[]}};const templates3 = {required:{binding:function(){return "missing binding for property \"" + JSON.stringify(i5) + "\""}}};let emPropParams2;let emParamsErrors2;for(const err510 of vErrors){if((((((err510.keyword !== "errorMessage") && (!err510.emUsed)) && (err510.instancePath === instancePath+"/" + i5)) && (err510.keyword in emErrors3)) && (err510.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err510.schemaPath.slice(15)))){emPropParams2 = obj0[err510.keyword];emParamsErrors2 = emErrors3[err510.keyword][err510.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err510);err510.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp2 in emErrors3[key3]){emParamsErrors2 = emErrors3[key3][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates3[key3] && templates3[key3][keyProp2];const err511 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema22.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}}}const emErrs51 = [];for(const err512 of vErrors){if(!err512.emUsed){emErrs51.push(err512);}}vErrors = emErrs51;errors = emErrs51.length;}}}else {const err513 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}validate16.errors = vErrors;return errors === 0;}function validate15(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.name === undefined){const err0 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.id === undefined){const err1 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.appliesTo === undefined){const err2 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.properties === undefined){const err3 = {instancePath,schemaPath:"#/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}if(data.$schema !== undefined){if(typeof data.$schema !== "string"){const err4 = {instancePath:instancePath+"/$schema",schemaPath:"#/allOf/0/properties/%24schema/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.name !== undefined){if(typeof data.name !== "string"){const err5 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err6 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err7 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.version !== undefined){let data4 = data.version;if(!((typeof data4 == "number") && (!(data4 % 1) && !isNaN(data4)))){const err8 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err9 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}if(data.deprecated !== undefined){let data6 = data.deprecated;if((typeof data6 !== "boolean") && (!(data6 && typeof data6 == "object" && !Array.isArray(data6)))){const err10 = {instancePath:instancePath+"/deprecated",schemaPath:"#/allOf/0/properties/deprecated/type",keyword:"type",params:{type: schema17.allOf[0].properties.deprecated.type},message:"must be boolean,object"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data6 && typeof data6 == "object" && !Array.isArray(data6)){if(data6.message !== undefined){if(typeof data6.message !== "string"){const err11 = {instancePath:instancePath+"/deprecated/message",schemaPath:"#/allOf/0/properties/deprecated/properties/message/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}}if(data6.documentationRef !== undefined){let data8 = data6.documentationRef;if(typeof data8 === "string"){if(!pattern0.test(data8)){const err12 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}else {const err13 = {instancePath:instancePath+"/deprecated/documentationRef",schemaPath:"#/allOf/0/properties/deprecated/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}}}if(data.appliesTo !== undefined){let data9 = data.appliesTo;if(Array.isArray(data9)){const len0 = data9.length;for(let i0=0; i0<len0; i0++){let data10 = data9[i0];if(typeof data10 === "string"){if(!pattern1.test(data10)){const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}else {const err15 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err16 of vErrors){if((((((err16.keyword !== "errorMessage") && (!err16.emUsed)) && (err16.instancePath === instancePath+"/appliesTo/" + i0)) && (err16.keyword in emErrors0)) && (err16.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err16.schemaPath.slice(36)))){emErrors0[err16.keyword].push(err16);err16.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err17 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/errorMessage",keyword:"errorMessage",params:{errors: emErrors0[key0]},message:key0 in templates0 ? templates0[key0]() : schema17.allOf[0].properties.appliesTo.items.errorMessage[key0]};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}}const emErrs0 = [];for(const err18 of vErrors){if(!err18.emUsed){emErrs0.push(err18);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err19 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}}if(data.elementType !== undefined){let data11 = data.elementType;if(data11 && typeof data11 == "object" && !Array.isArray(data11)){if(data11.value === undefined){const err20 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if(data11.value !== undefined){let data12 = data11.value;if(typeof data12 === "string"){if(!pattern1.test(data12)){const err21 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/pattern",keyword:"pattern",params:{pattern: "^[\\w\\d]+:[\\w\\d]+$"},message:"must match pattern \""+"^[\\w\\d]+:[\\w\\d]+$"+"\""};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}}else {const err22 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err23 of vErrors){if((((((err23.keyword !== "errorMessage") && (!err23.emUsed)) && (err23.instancePath === instancePath+"/elementType/value")) && (err23.keyword in emErrors1)) && (err23.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err23.schemaPath.slice(49)))){emErrors1[err23.keyword].push(err23);err23.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err24 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/0/properties/elementType/properties/value/errorMessage",keyword:"errorMessage",params:{errors: emErrors1[key1]},message:key1 in templates1 ? templates1[key1]() : schema17.allOf[0].properties.elementType.properties.value.errorMessage[key1]};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}const emErrs1 = [];for(const err25 of vErrors){if(!err25.emUsed){emErrs1.push(err25);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err26 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err27 of vErrors){if((((((err27.keyword !== "errorMessage") && (!err27.emUsed)) && (err27.instancePath === instancePath+"/elementType")) && (err27.keyword in emErrors2)) && (err27.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err27.schemaPath.slice(32)))){emPropParams0 = obj0[err27.keyword];emParamsErrors0 = emErrors2[err27.keyword][err27.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err27);err27.emUsed = true;}}}for(const key2 in emErrors2){for(const keyProp0 in emErrors2[key2]){emParamsErrors0 = emErrors2[key2][keyProp0];if(emParamsErrors0.length){const tmpl0 = templates2[key2] && templates2[key2][keyProp0];const err28 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors0},message:tmpl0 ? tmpl0() : schema17.allOf[0].properties.elementType.errorMessage[key2][keyProp0]};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}}const emErrs2 = [];for(const err29 of vErrors){if(!err29.emUsed){emErrs2.push(err29);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data13 = data.metadata;if(!(data13 && typeof data13 == "object" && !Array.isArray(data13))){const err30 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}if(data.keywords !== undefined){let data14 = data.keywords;if(Array.isArray(data14)){const len1 = data14.length;for(let i1=0; i1<len1; i1++){if(typeof data14[i1] !== "string"){const err31 = {instancePath:instancePath+"/keywords/" + i1,schemaPath:"#/allOf/0/properties/keywords/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}}else {const err32 = {instancePath:instancePath+"/keywords",schemaPath:"#/allOf/0/properties/keywords/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(data.groups !== undefined){let data16 = data.groups;if(Array.isArray(data16)){const len2 = data16.length;for(let i2=0; i2<len2; i2++){let data17 = data16[i2];if(data17 && typeof data17 == "object" && !Array.isArray(data17)){if(data17.id === undefined){const err33 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if(data17.label === undefined){const err34 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if(data17.id !== undefined){if(typeof data17.id !== "string"){const err35 = {instancePath:instancePath+"/groups/" + i2+"/id",schemaPath:"#/allOf/0/properties/groups/items/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}}if(data17.label !== undefined){if(typeof data17.label !== "string"){const err36 = {instancePath:instancePath+"/groups/" + i2+"/label",schemaPath:"#/allOf/0/properties/groups/items/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}}}else {const err37 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if(errors > 0){const emErrors3 = {"required":{"id":[],"label":[]}};const templates3 = {required:{id:function(){return "missing id for group \"" + JSON.stringify(i2) + "\""},label:function(){return "missing label for group \"" + JSON.stringify(i2) + "\""}}};let emPropParams1;let emParamsErrors1;for(const err38 of vErrors){if((((((err38.keyword !== "errorMessage") && (!err38.emUsed)) && (err38.instancePath === instancePath+"/groups/" + i2)) && (err38.keyword in emErrors3)) && (err38.schemaPath.indexOf("#/allOf/0/properties/groups/items") === 0)) && (/^\/[^\/]*$/.test(err38.schemaPath.slice(33)))){emPropParams1 = obj0[err38.keyword];emParamsErrors1 = emErrors3[err38.keyword][err38.params[emPropParams1]];if(emParamsErrors1){emParamsErrors1.push(err38);err38.emUsed = true;}}}for(const key3 in emErrors3){for(const keyProp1 in emErrors3[key3]){emParamsErrors1 = emErrors3[key3][keyProp1];if(emParamsErrors1.length){const tmpl1 = templates3[key3] && templates3[key3][keyProp1];const err39 = {instancePath:instancePath+"/groups/" + i2,schemaPath:"#/allOf/0/properties/groups/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors1},message:tmpl1 ? tmpl1() : schema17.allOf[0].properties.groups.items.errorMessage[key3][keyProp1]};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}const emErrs3 = [];for(const err40 of vErrors){if(!err40.emUsed){emErrs3.push(err40);}}vErrors = emErrs3;errors = emErrs3.length;}}}else {const err41 = {instancePath:instancePath+"/groups",schemaPath:"#/allOf/0/properties/groups/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}if(data.documentationRef !== undefined){let data20 = data.documentationRef;if(typeof data20 === "string"){if(!pattern0.test(data20)){const err42 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/pattern",keyword:"pattern",params:{pattern: "^(https|http)://.*"},message:"must match pattern \""+"^(https|http)://.*"+"\""};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if(errors > 0){const emErrors4 = {"pattern":[]};const templates4 = {};for(const err44 of vErrors){if((((((err44.keyword !== "errorMessage") && (!err44.emUsed)) && (err44.instancePath === instancePath+"/documentationRef")) && (err44.keyword in emErrors4)) && (err44.schemaPath.indexOf("#/allOf/0/properties/documentationRef") === 0)) && (/^\/[^\/]*$/.test(err44.schemaPath.slice(37)))){emErrors4[err44.keyword].push(err44);err44.emUsed = true;}}for(const key4 in emErrors4){if(emErrors4[key4].length){const err45 = {instancePath:instancePath+"/documentationRef",schemaPath:"#/allOf/0/properties/documentationRef/errorMessage",keyword:"errorMessage",params:{errors: emErrors4[key4]},message:key4 in templates4 ? templates4[key4]() : schema17.allOf[0].properties.documentationRef.errorMessage[key4]};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}}const emErrs4 = [];for(const err46 of vErrors){if(!err46.emUsed){emErrs4.push(err46);}}vErrors = emErrs4;errors = emErrs4.length;}}}if(errors > 0){const emErrors5 = {"required":{"name":[],"id":[],"appliesTo":[],"properties":[]}};const templates5 = {required:{}};let emPropParams2;let emParamsErrors2;for(const err47 of vErrors){if((((((err47.keyword !== "errorMessage") && (!err47.emUsed)) && (err47.instancePath === instancePath)) && (err47.keyword in emErrors5)) && (err47.schemaPath.indexOf("#/allOf/0") === 0)) && (/^\/[^\/]*$/.test(err47.schemaPath.slice(9)))){emPropParams2 = obj0[err47.keyword];emParamsErrors2 = emErrors5[err47.keyword][err47.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err47);err47.emUsed = true;}}}for(const key5 in emErrors5){for(const keyProp2 in emErrors5[key5]){emParamsErrors2 = emErrors5[key5][keyProp2];if(emParamsErrors2.length){const tmpl2 = templates5[key5] && templates5[key5][keyProp2];const err48 = {instancePath,schemaPath:"#/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema17.allOf[0].errorMessage[key5][keyProp2]};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}}const emErrs5 = [];for(const err49 of vErrors){if(!err49.emUsed){emErrs5.push(err49);}}vErrors = emErrs5;errors = emErrs5.length;}const _errs46 = errors;let valid15 = true;const _errs47 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}else {if(data.properties !== undefined){let data21 = data.properties;if(Array.isArray(data21)){const _errs49 = errors;const len3 = data21.length;for(let i3=0; i3<len3; i3++){let data22 = data21[i3];const _errs50 = errors;if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if((data22.binding === undefined) && ("binding")){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}else {if(data22.binding !== undefined){let data23 = data22.binding;if(data23 && typeof data23 == "object" && !Array.isArray(data23)){if((data23.type === undefined) && ("type")){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data23.type !== undefined){if("bpmn:Message#property" !== data23.type){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}}}}}var valid17 = _errs50 === errors;if(valid17){break;}}if(!valid17){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}}}}}var _valid0 = _errs47 === errors;errors = _errs46;if(vErrors !== null){if(_errs46){vErrors.length = _errs46;}else {vErrors = null;}}if(_valid0){const _errs53 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err55 = {instancePath,schemaPath:"#/allOf/1/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data.elementType !== undefined){let data25 = data.elementType;const _errs56 = errors;let valid22 = true;const _errs57 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value !== undefined){let data26 = data25.value;if(!(((((data26 === "bpmn:StartEvent") || (data26 === "bpmn:IntermediateCatchEvent")) || (data26 === "bpmn:IntermediateThrowEvent")) || (data26 === "bpmn:BoundaryEvent")) || (data26 === "bpmn:EndEvent"))){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}var _valid1 = _errs57 === errors;errors = _errs56;if(vErrors !== null){if(_errs56){vErrors.length = _errs56;}else {vErrors = null;}}if(_valid1){const _errs59 = errors;if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.eventDefinition === undefined){const err57 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}var _valid1 = _errs59 === errors;valid22 = _valid1;}if(!valid22){const err58 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if(data25 && typeof data25 == "object" && !Array.isArray(data25)){if(data25.value === undefined){const err59 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if(data25.value !== undefined){let data27 = data25.value;if(!(((((((data27 === "bpmn:ReceiveTask") || (data27 === "bpmn:SendTask")) || (data27 === "bpmn:StartEvent")) || (data27 === "bpmn:IntermediateCatchEvent")) || (data27 === "bpmn:IntermediateThrowEvent")) || (data27 === "bpmn:BoundaryEvent")) || (data27 === "bpmn:EndEvent"))){const err60 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}}}}var _valid0 = _errs53 === errors;valid15 = _valid0;}if(!valid15){const err61 = {instancePath,schemaPath:"#/allOf/1/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}const _errs62 = errors;let valid25 = true;const _errs63 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}else {if(data.properties !== undefined){let data28 = data.properties;if(Array.isArray(data28)){const _errs65 = errors;const len4 = data28.length;for(let i4=0; i4<len4; i4++){let data29 = data28[i4];const _errs66 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if((data29.binding === undefined) && ("binding")){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data29.binding !== undefined){let data30 = data29.binding;if(data30 && typeof data30 == "object" && !Array.isArray(data30)){if((data30.type === undefined) && ("type")){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {if(data30.type !== undefined){if("bpmn:Message#zeebe:subscription#property" !== data30.type){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}}}}}}var valid27 = _errs66 === errors;if(valid27){break;}}if(!valid27){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {errors = _errs65;if(vErrors !== null){if(_errs65){vErrors.length = _errs65;}else {vErrors = null;}}}}}}}var _valid2 = _errs63 === errors;errors = _errs62;if(vErrors !== null){if(_errs62){vErrors.length = _errs62;}else {vErrors = null;}}if(_valid2){const _errs69 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err67 = {instancePath,schemaPath:"#/allOf/1/allOf/1/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if(data.elementType !== undefined){let data32 = data.elementType;const _errs72 = errors;let valid32 = true;const _errs73 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value !== undefined){let data33 = data32.value;if(!(((((data33 === "bpmn:StartEvent") || (data33 === "bpmn:IntermediateCatchEvent")) || (data33 === "bpmn:IntermediateThrowEvent")) || (data33 === "bpmn:BoundaryEvent")) || (data33 === "bpmn:EndEvent"))){const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}}var _valid3 = _errs73 === errors;errors = _errs72;if(vErrors !== null){if(_errs72){vErrors.length = _errs72;}else {vErrors = null;}}if(_valid3){const _errs75 = errors;if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.eventDefinition === undefined){const err69 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/then/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}var _valid3 = _errs75 === errors;valid32 = _valid3;}if(!valid32){const err70 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.value === undefined){const err71 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if(data32.value !== undefined){let data34 = data32.value;if(!((((((data34 === "bpmn:ReceiveTask") || (data34 === "bpmn:StartEvent")) || (data34 === "bpmn:IntermediateCatchEvent")) || (data34 === "bpmn:IntermediateThrowEvent")) || (data34 === "bpmn:BoundaryEvent")) || (data34 === "bpmn:EndEvent"))){const err72 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/1/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[1].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}}}var _valid2 = _errs69 === errors;valid25 = _valid2;}if(!valid25){const err73 = {instancePath,schemaPath:"#/allOf/1/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}const _errs78 = errors;let valid35 = true;const _errs79 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}else {if(data.properties !== undefined){let data35 = data.properties;if(Array.isArray(data35)){const _errs81 = errors;const len5 = data35.length;for(let i5=0; i5<len5; i5++){let data36 = data35[i5];const _errs82 = errors;if(data36 && typeof data36 == "object" && !Array.isArray(data36)){if((data36.binding === undefined) && ("binding")){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}else {if(data36.binding !== undefined){let data37 = data36.binding;if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if((data37.type === undefined) && ("type")){const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {if(data37.type !== undefined){if("zeebe:calledElement" !== data37.type){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}}}}}}var valid37 = _errs82 === errors;if(valid37){break;}}if(!valid37){const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}else {errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}}}}}}var _valid4 = _errs79 === errors;errors = _errs78;if(vErrors !== null){if(_errs78){vErrors.length = _errs78;}else {vErrors = null;}}if(_valid4){const _errs85 = errors;const _errs86 = errors;let valid40 = false;const _errs87 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err79 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}if(data.elementType !== undefined){let data39 = data.elementType;if(data39 && typeof data39 == "object" && !Array.isArray(data39)){if(data39.value === undefined){const err80 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data39.value !== undefined){if("bpmn:CallActivity" !== data39.value){const err81 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/2/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:CallActivity"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}}}var _valid5 = _errs87 === errors;valid40 = valid40 || _valid5;if(!valid40){const _errs90 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err82 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const)){const err83 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/2/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[2].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}}var _valid5 = _errs90 === errors;valid40 = valid40 || _valid5;}if(!valid40){const err84 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {errors = _errs86;if(vErrors !== null){if(_errs86){vErrors.length = _errs86;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err85 = {instancePath,schemaPath:"#/allOf/1/allOf/2/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(data.properties !== undefined){let data42 = data.properties;if(Array.isArray(data42)){const _errs93 = errors;const len6 = data42.length;for(let i6=0; i6<len6; i6++){let data43 = data42[i6];const _errs94 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if(data43.binding === undefined){const err86 = {instancePath:instancePath+"/properties/" + i6,schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(data43.binding !== undefined){let data44 = data43.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if(data44.property === undefined){const err87 = {instancePath:instancePath+"/properties/" + i6+"/binding",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data44.type === undefined){const err88 = {instancePath:instancePath+"/properties/" + i6+"/binding",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data44.type !== undefined){if("zeebe:calledElement" !== data44.type){const err89 = {instancePath:instancePath+"/properties/" + i6+"/binding/type",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:calledElement"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}if(data44.property !== undefined){if("processId" !== data44.property){const err90 = {instancePath:instancePath+"/properties/" + i6+"/binding/property",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "processId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}}}var valid45 = _errs94 === errors;if(valid45){break;}}if(!valid45){const err91 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}}}if(errors > 0){const emErrs6 = [];for(const err92 of vErrors){if(((((err92.keyword !== "errorMessage") && (!err92.emUsed)) && ((err92.instancePath === instancePath+"/properties") || ((err92.instancePath.indexOf(instancePath+"/properties") === 0) && (err92.instancePath[instancePath+"/properties".length] === "/")))) && (err92.schemaPath.indexOf("#/allOf/1/allOf/2/then/properties/properties") === 0)) && (err92.schemaPath["#/allOf/1/allOf/2/then/properties/properties".length] === "/")){emErrs6.push(err92);err92.emUsed = true;}}if(emErrs6.length){const err93 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/2/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs6},message:"Binding with `property`=`processId` and `type`=`zeebe:calledElement` is required, when using a binding with `type`=`zeebe:calledElement`"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}const emErrs7 = [];for(const err94 of vErrors){if(!err94.emUsed){emErrs7.push(err94);}}vErrors = emErrs7;errors = emErrs7.length;}}}var _valid4 = _errs85 === errors;valid35 = _valid4;}if(!valid35){const err95 = {instancePath,schemaPath:"#/allOf/1/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}const _errs99 = errors;let valid48 = true;const _errs100 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {if(data.properties !== undefined){let data47 = data.properties;if(Array.isArray(data47)){const _errs102 = errors;const len7 = data47.length;for(let i7=0; i7<len7; i7++){let data48 = data47[i7];const _errs103 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if((data48.binding === undefined) && ("binding")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data48.binding !== undefined){let data49 = data48.binding;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.type === undefined) && ("type")){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}else {if(data49.type !== undefined){if("zeebe:userTask" !== data49.type){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}}}}}var valid50 = _errs103 === errors;if(valid50){break;}}if(!valid50){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}}}}}}var _valid6 = _errs100 === errors;errors = _errs99;if(vErrors !== null){if(_errs99){vErrors.length = _errs99;}else {vErrors = null;}}if(_valid6){const _errs106 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err101 = {instancePath,schemaPath:"#/allOf/1/allOf/3/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(data.elementType !== undefined){let data51 = data.elementType;if(data51 && typeof data51 == "object" && !Array.isArray(data51)){if(data51.value === undefined){const err102 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/3/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data51.value !== undefined){if("bpmn:UserTask" !== data51.value){const err103 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/3/then/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:UserTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}}var _valid6 = _errs106 === errors;valid48 = _valid6;}if(!valid48){const err104 = {instancePath,schemaPath:"#/allOf/1/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}const _errs110 = errors;let valid55 = true;const _errs111 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}else {if(data.properties !== undefined){let data53 = data.properties;if(Array.isArray(data53)){const _errs113 = errors;const len8 = data53.length;for(let i8=0; i8<len8; i8++){let data54 = data53[i8];const _errs114 = errors;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if((data54.binding === undefined) && ("binding")){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}else {if(data54.binding !== undefined){let data55 = data54.binding;if(data55 && typeof data55 == "object" && !Array.isArray(data55)){if((data55.type === undefined) && ("type")){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}else {if(data55.type !== undefined){let data56 = data55.type;if(!((((data56 === "zeebe:formDefinition") || (data56 === "zeebe:assignmentDefinition")) || (data56 === "zeebe:priorityDefinition")) || (data56 === "zeebe:taskSchedule"))){const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}}}}var valid57 = _errs114 === errors;if(valid57){break;}}if(!valid57){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}else {errors = _errs113;if(vErrors !== null){if(_errs113){vErrors.length = _errs113;}else {vErrors = null;}}}}}}}var _valid7 = _errs111 === errors;errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}if(_valid7){const _errs117 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err110 = {instancePath,schemaPath:"#/allOf/1/allOf/4/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data.properties !== undefined){let data57 = data.properties;if(Array.isArray(data57)){const _errs119 = errors;const len9 = data57.length;for(let i9=0; i9<len9; i9++){let data58 = data57[i9];const _errs120 = errors;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if(data58.binding === undefined){const err111 = {instancePath:instancePath+"/properties/" + i9,schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if(data58.binding !== undefined){let data59 = data58.binding;if(data59 && typeof data59 == "object" && !Array.isArray(data59)){if(data59.type === undefined){const err112 = {instancePath:instancePath+"/properties/" + i9+"/binding",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(data59.type !== undefined){if("zeebe:userTask" !== data59.type){const err113 = {instancePath:instancePath+"/properties/" + i9+"/binding/type",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:userTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}}}}var valid61 = _errs120 === errors;if(valid61){break;}}if(!valid61){const err114 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}}if(errors > 0){const emErrs8 = [];for(const err115 of vErrors){if(((((err115.keyword !== "errorMessage") && (!err115.emUsed)) && ((err115.instancePath === instancePath+"/properties") || ((err115.instancePath.indexOf(instancePath+"/properties") === 0) && (err115.instancePath[instancePath+"/properties".length] === "/")))) && (err115.schemaPath.indexOf("#/allOf/1/allOf/4/then/properties/properties") === 0)) && (err115.schemaPath["#/allOf/1/allOf/4/then/properties/properties".length] === "/")){emErrs8.push(err115);err115.emUsed = true;}}if(emErrs8.length){const err116 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/4/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs8},message:"When using " + JSON.stringify(data57 && data57["0"] && data57["0"].binding && data57["0"].binding.type) + ", \"zeebe:userTask\" must be set on the same element"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}const emErrs9 = [];for(const err117 of vErrors){if(!err117.emUsed){emErrs9.push(err117);}}vErrors = emErrs9;errors = emErrs9.length;}}}var _valid7 = _errs117 === errors;valid55 = _valid7;}if(!valid55){const err118 = {instancePath,schemaPath:"#/allOf/1/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}const _errs124 = errors;let valid64 = true;const _errs125 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}else {if(data.properties !== undefined){let data61 = data.properties;if(Array.isArray(data61)){const _errs127 = errors;const len10 = data61.length;for(let i10=0; i10<len10; i10++){let data62 = data61[i10];const _errs128 = errors;if(data62 && typeof data62 == "object" && !Array.isArray(data62)){if((data62.binding === undefined) && ("binding")){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {if(data62.binding !== undefined){let data63 = data62.binding;if(data63 && typeof data63 == "object" && !Array.isArray(data63)){if((data63.type === undefined) && ("type")){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {if(data63.type !== undefined){if("zeebe:calledDecision" !== data63.type){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}}}}}}var valid66 = _errs128 === errors;if(valid66){break;}}if(!valid66){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}else {errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}}}}}}var _valid8 = _errs125 === errors;errors = _errs124;if(vErrors !== null){if(_errs124){vErrors.length = _errs124;}else {vErrors = null;}}if(_valid8){const _errs131 = errors;const _errs132 = errors;let valid69 = false;const _errs133 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err124 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data.elementType !== undefined){let data65 = data.elementType;if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.value === undefined){const err125 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/5/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data65.value !== undefined){if("bpmn:BusinessRuleTask" !== data65.value){const err126 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/5/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:BusinessRuleTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}}}}var _valid9 = _errs133 === errors;valid69 = valid69 || _valid9;if(!valid69){const _errs136 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err127 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[5].then.anyOf[1].properties.appliesTo.const)){const err128 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/5/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[5].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}var _valid9 = _errs136 === errors;valid69 = valid69 || _valid9;}if(!valid69){const err129 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}else {errors = _errs132;if(vErrors !== null){if(_errs132){vErrors.length = _errs132;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data68 = data.properties;if(Array.isArray(data68)){const _errs140 = errors;const len11 = data68.length;for(let i11=0; i11<len11; i11++){let data69 = data68[i11];const _errs141 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if(data69.binding === undefined){const err130 = {instancePath:instancePath+"/properties/" + i11,schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if(data69.binding !== undefined){let data70 = data69.binding;if(data70 && typeof data70 == "object" && !Array.isArray(data70)){if(data70.property === undefined){const err131 = {instancePath:instancePath+"/properties/" + i11+"/binding",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}if(data70.property !== undefined){if("decisionId" !== data70.property){const err132 = {instancePath:instancePath+"/properties/" + i11+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "decisionId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(errors > 0){const emErrs10 = [];for(const err133 of vErrors){if(((((err133.keyword !== "errorMessage") && (!err133.emUsed)) && ((err133.instancePath === instancePath+"/properties/" + i11+"/binding/property") || ((err133.instancePath.indexOf(instancePath+"/properties/" + i11+"/binding/property") === 0) && (err133.instancePath[instancePath+"/properties/" + i11+"/binding/property".length] === "/")))) && (err133.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property") === 0)) && (err133.schemaPath["#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property".length] === "/")){emErrs10.push(err133);err133.emUsed = true;}}if(emErrs10.length){const err134 = {instancePath:instancePath+"/properties/" + i11+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs10},message:"Binding type \"zeebe:calledDecision\" must contain property \"decisionId\""};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}const emErrs11 = [];for(const err135 of vErrors){if(!err135.emUsed){emErrs11.push(err135);}}vErrors = emErrs11;errors = emErrs11.length;}}}}}var valid75 = _errs141 === errors;if(valid75){break;}}if(!valid75){const err136 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data72 = data.properties;if(Array.isArray(data72)){const _errs146 = errors;const len12 = data72.length;for(let i12=0; i12<len12; i12++){let data73 = data72[i12];const _errs147 = errors;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if(data73.binding === undefined){const err137 = {instancePath:instancePath+"/properties/" + i12,schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(data73.binding !== undefined){let data74 = data73.binding;if(data74 && typeof data74 == "object" && !Array.isArray(data74)){if(data74.property === undefined){const err138 = {instancePath:instancePath+"/properties/" + i12+"/binding",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(data74.property !== undefined){if("resultVariable" !== data74.property){const err139 = {instancePath:instancePath+"/properties/" + i12+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "resultVariable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if(errors > 0){const emErrs12 = [];for(const err140 of vErrors){if(((((err140.keyword !== "errorMessage") && (!err140.emUsed)) && ((err140.instancePath === instancePath+"/properties/" + i12+"/binding/property") || ((err140.instancePath.indexOf(instancePath+"/properties/" + i12+"/binding/property") === 0) && (err140.instancePath[instancePath+"/properties/" + i12+"/binding/property".length] === "/")))) && (err140.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property") === 0)) && (err140.schemaPath["#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property".length] === "/")){emErrs12.push(err140);err140.emUsed = true;}}if(emErrs12.length){const err141 = {instancePath:instancePath+"/properties/" + i12+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs12},message:"Binding type \"zeebe:calledDecision\" must contain property \"resultVariable\""};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}const emErrs13 = [];for(const err142 of vErrors){if(!err142.emUsed){emErrs13.push(err142);}}vErrors = emErrs13;errors = emErrs13.length;}}}}}var valid79 = _errs147 === errors;if(valid79){break;}}if(!valid79){const err143 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}else {errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err144 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/allOf/2/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}if(data.properties !== undefined){let data76 = data.properties;const _errs152 = errors;const _errs153 = errors;if(Array.isArray(data76)){const _errs154 = errors;const len13 = data76.length;for(let i13=0; i13<len13; i13++){let data77 = data76[i13];const _errs155 = errors;if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if((data77.binding === undefined) && ("binding")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data77.binding !== undefined){let data78 = data77.binding;if(data78 && typeof data78 == "object" && !Array.isArray(data78)){if((data78.type === undefined) && ("type")){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}else {if(data78.type !== undefined){let data79 = data78.type;if(!((data79 === "zeebe:taskDefinition") || (data79 === "zeebe:taskDefinition:type"))){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}}}}}var valid84 = _errs155 === errors;if(valid84){break;}}if(!valid84){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}}}var valid83 = _errs153 === errors;if(valid83){const err149 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/5/then/allOf/2/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}else {errors = _errs152;if(vErrors !== null){if(_errs152){vErrors.length = _errs152;}else {vErrors = null;}}}}}if(errors > 0){const emErrs14 = [];for(const err150 of vErrors){if(((((err150.keyword !== "errorMessage") && (!err150.emUsed)) && ((err150.instancePath === instancePath) || ((err150.instancePath.indexOf(instancePath) === 0) && (err150.instancePath[instancePath.length] === "/")))) && (err150.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/2") === 0)) && (err150.schemaPath["#/allOf/1/allOf/5/then/allOf/2".length] === "/")){emErrs14.push(err150);err150.emUsed = true;}}if(emErrs14.length){const err151 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/allOf/2/errorMessage",keyword:"errorMessage",params:{errors: emErrs14},message:"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:calledDecision\" is set."};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}const emErrs15 = [];for(const err152 of vErrors){if(!err152.emUsed){emErrs15.push(err152);}}vErrors = emErrs15;errors = emErrs15.length;}var _valid8 = _errs131 === errors;valid64 = _valid8;}if(!valid64){const err153 = {instancePath,schemaPath:"#/allOf/1/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}const _errs159 = errors;let valid87 = true;const _errs160 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}else {if(data.properties !== undefined){let data80 = data.properties;if(Array.isArray(data80)){const _errs162 = errors;const len14 = data80.length;for(let i14=0; i14<len14; i14++){let data81 = data80[i14];const _errs163 = errors;if(data81 && typeof data81 == "object" && !Array.isArray(data81)){if((data81.binding === undefined) && ("binding")){const err155 = {};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {if(data81.binding !== undefined){let data82 = data81.binding;if(data82 && typeof data82 == "object" && !Array.isArray(data82)){if((data82.type === undefined) && ("type")){const err156 = {};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}else {if(data82.type !== undefined){if("zeebe:script" !== data82.type){const err157 = {};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}}}}}}}var valid89 = _errs163 === errors;if(valid89){break;}}if(!valid89){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}else {errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}}}}}}var _valid10 = _errs160 === errors;errors = _errs159;if(vErrors !== null){if(_errs159){vErrors.length = _errs159;}else {vErrors = null;}}if(_valid10){const _errs166 = errors;const _errs167 = errors;let valid92 = false;const _errs168 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err159 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if(data.elementType !== undefined){let data84 = data.elementType;if(data84 && typeof data84 == "object" && !Array.isArray(data84)){if(data84.value === undefined){const err160 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/6/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if(data84.value !== undefined){if("bpmn:ScriptTask" !== data84.value){const err161 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/6/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:ScriptTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}}}}var _valid11 = _errs168 === errors;valid92 = valid92 || _valid11;if(!valid92){const _errs171 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err162 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[6].then.anyOf[1].properties.appliesTo.const)){const err163 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/6/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[6].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}}var _valid11 = _errs171 === errors;valid92 = valid92 || _valid11;}if(!valid92){const err164 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}else {errors = _errs167;if(vErrors !== null){if(_errs167){vErrors.length = _errs167;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data87 = data.properties;if(Array.isArray(data87)){const _errs175 = errors;const len15 = data87.length;for(let i15=0; i15<len15; i15++){let data88 = data87[i15];const _errs176 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.binding === undefined){const err165 = {instancePath:instancePath+"/properties/" + i15,schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data88.binding !== undefined){let data89 = data88.binding;if(data89 && typeof data89 == "object" && !Array.isArray(data89)){if(data89.property === undefined){const err166 = {instancePath:instancePath+"/properties/" + i15+"/binding",schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(data89.property !== undefined){if("expression" !== data89.property){const err167 = {instancePath:instancePath+"/properties/" + i15+"/binding/property",schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "expression"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}}}var valid98 = _errs176 === errors;if(valid98){break;}}if(!valid98){const err168 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/6/then/allOf/0/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}else {errors = _errs175;if(vErrors !== null){if(_errs175){vErrors.length = _errs175;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data91 = data.properties;if(Array.isArray(data91)){const _errs181 = errors;const len16 = data91.length;for(let i16=0; i16<len16; i16++){let data92 = data91[i16];const _errs182 = errors;if(data92 && typeof data92 == "object" && !Array.isArray(data92)){if(data92.binding === undefined){const err169 = {instancePath:instancePath+"/properties/" + i16,schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if(data92.binding !== undefined){let data93 = data92.binding;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(data93.property === undefined){const err170 = {instancePath:instancePath+"/properties/" + i16+"/binding",schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(data93.property !== undefined){if("resultVariable" !== data93.property){const err171 = {instancePath:instancePath+"/properties/" + i16+"/binding/property",schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "resultVariable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}}}var valid102 = _errs182 === errors;if(valid102){break;}}if(!valid102){const err172 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/6/then/allOf/1/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}else {errors = _errs181;if(vErrors !== null){if(_errs181){vErrors.length = _errs181;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err173 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/allOf/2/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(data.properties !== undefined){let data95 = data.properties;const _errs187 = errors;const _errs188 = errors;if(Array.isArray(data95)){const _errs189 = errors;const len17 = data95.length;for(let i17=0; i17<len17; i17++){let data96 = data95[i17];const _errs190 = errors;if(data96 && typeof data96 == "object" && !Array.isArray(data96)){if((data96.binding === undefined) && ("binding")){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {if(data96.binding !== undefined){let data97 = data96.binding;if(data97 && typeof data97 == "object" && !Array.isArray(data97)){if((data97.type === undefined) && ("type")){const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {if(data97.type !== undefined){let data98 = data97.type;if(!((data98 === "zeebe:taskDefinition") || (data98 === "zeebe:taskDefinition:type"))){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}}}}}var valid107 = _errs190 === errors;if(valid107){break;}}if(!valid107){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}else {errors = _errs189;if(vErrors !== null){if(_errs189){vErrors.length = _errs189;}else {vErrors = null;}}}}var valid106 = _errs188 === errors;if(valid106){const err178 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/6/then/allOf/2/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}else {errors = _errs187;if(vErrors !== null){if(_errs187){vErrors.length = _errs187;}else {vErrors = null;}}}}}if(errors > 0){const emErrs16 = [];for(const err179 of vErrors){if(((((err179.keyword !== "errorMessage") && (!err179.emUsed)) && ((err179.instancePath === instancePath) || ((err179.instancePath.indexOf(instancePath) === 0) && (err179.instancePath[instancePath.length] === "/")))) && (err179.schemaPath.indexOf("#/allOf/1/allOf/6/then/allOf/2") === 0)) && (err179.schemaPath["#/allOf/1/allOf/6/then/allOf/2".length] === "/")){emErrs16.push(err179);err179.emUsed = true;}}if(emErrs16.length){const err180 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/allOf/2/errorMessage",keyword:"errorMessage",params:{errors: emErrs16},message:"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:script\" is set."};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}const emErrs17 = [];for(const err181 of vErrors){if(!err181.emUsed){emErrs17.push(err181);}}vErrors = emErrs17;errors = emErrs17.length;}var _valid10 = _errs166 === errors;valid87 = _valid10;}if(!valid87){const err182 = {instancePath,schemaPath:"#/allOf/1/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}const _errs195 = errors;let valid111 = true;const _errs196 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err183 = {};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}else {if(data.properties !== undefined){let data99 = data.properties;if(Array.isArray(data99)){const _errs198 = errors;const len18 = data99.length;for(let i18=0; i18<len18; i18++){let data100 = data99[i18];const _errs199 = errors;if(data100 && typeof data100 == "object" && !Array.isArray(data100)){if(((data100.binding === undefined) && ("binding")) || ((data100.value === undefined) && ("value"))){const err184 = {};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}else {if(data100.binding !== undefined){let data101 = data100.binding;const _errs200 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(((data101.property === undefined) && ("property")) || ((data101.type === undefined) && ("type"))){const err185 = {};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}else {if(data101.property !== undefined){const _errs201 = errors;if("bindingType" !== data101.property){const err186 = {};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}var valid115 = _errs201 === errors;}else {var valid115 = true;}if(valid115){if(data101.type !== undefined){let data103 = data101.type;const _errs202 = errors;if(!((((data103 === "zeebe:calledDecision") || (data103 === "zeebe:formDefinition")) || (data103 === "zeebe:calledElement")) || (data103 === "zeebe:linkedResource"))){const err187 = {};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}var valid115 = _errs202 === errors;}else {var valid115 = true;}}}}var valid114 = _errs200 === errors;}else {var valid114 = true;}if(valid114){if(data100.value !== undefined){const _errs203 = errors;if("versionTag" !== data100.value){const err188 = {};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}var valid114 = _errs203 === errors;}else {var valid114 = true;}}}}var valid113 = _errs199 === errors;if(valid113){break;}}if(!valid113){const err189 = {};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}else {errors = _errs198;if(vErrors !== null){if(_errs198){vErrors.length = _errs198;}else {vErrors = null;}}}}}}}var _valid12 = _errs196 === errors;errors = _errs195;if(vErrors !== null){if(_errs195){vErrors.length = _errs195;}else {vErrors = null;}}if(_valid12){const _errs204 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err190 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/0/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data.properties !== undefined){let data105 = data.properties;if(Array.isArray(data105)){const _errs206 = errors;const len19 = data105.length;for(let i19=0; i19<len19; i19++){let data106 = data105[i19];const _errs207 = errors;if(data106 && typeof data106 == "object" && !Array.isArray(data106)){if(data106.binding === undefined){const err191 = {instancePath:instancePath+"/properties/" + i19,schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if(data106.binding !== undefined){let data107 = data106.binding;if(data107 && typeof data107 == "object" && !Array.isArray(data107)){if(data107.property === undefined){const err192 = {instancePath:instancePath+"/properties/" + i19+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}if(data107.type === undefined){const err193 = {instancePath:instancePath+"/properties/" + i19+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}if(data107.type !== undefined){let data108 = data107.type;if(!((((data108 === "zeebe:calledDecision") || (data108 === "zeebe:formDefinition")) || (data108 === "zeebe:calledElement")) || (data108 === "zeebe:linkedResource"))){const err194 = {instancePath:instancePath+"/properties/" + i19+"/binding/type",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/properties/type/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[7].allOf[0].then.properties.properties.contains.properties.binding.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}if(data107.property !== undefined){if("versionTag" !== data107.property){const err195 = {instancePath:instancePath+"/properties/" + i19+"/binding/property",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "versionTag"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}}}}var valid117 = _errs207 === errors;if(valid117){break;}}if(!valid117){const err196 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}else {errors = _errs206;if(vErrors !== null){if(_errs206){vErrors.length = _errs206;}else {vErrors = null;}}}}if(errors > 0){const emErrs18 = [];for(const err197 of vErrors){if(((((err197.keyword !== "errorMessage") && (!err197.emUsed)) && ((err197.instancePath === instancePath+"/properties") || ((err197.instancePath.indexOf(instancePath+"/properties") === 0) && (err197.instancePath[instancePath+"/properties".length] === "/")))) && (err197.schemaPath.indexOf("#/allOf/1/allOf/7/allOf/0/then/properties/properties") === 0)) && (err197.schemaPath["#/allOf/1/allOf/7/allOf/0/then/properties/properties".length] === "/")){emErrs18.push(err197);err197.emUsed = true;}}if(emErrs18.length){const err198 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/0/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs18},message:"Missing binding with `property`=`versionTag` as binding with `property`=`bindingType` and `value`=`versionTag` is set"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}const emErrs19 = [];for(const err199 of vErrors){if(!err199.emUsed){emErrs19.push(err199);}}vErrors = emErrs19;errors = emErrs19.length;}}}var _valid12 = _errs204 === errors;valid111 = _valid12;}if(!valid111){const err200 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}const _errs212 = errors;let valid120 = true;const _errs213 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err201 = {};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}else {if(data.properties !== undefined){let data110 = data.properties;if(Array.isArray(data110)){const _errs215 = errors;const len20 = data110.length;for(let i20=0; i20<len20; i20++){let data111 = data110[i20];const _errs216 = errors;const _errs217 = errors;const _errs218 = errors;if(data111 && typeof data111 == "object" && !Array.isArray(data111)){if((data111.condition === undefined) && ("condition")){const err202 = {};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}var valid123 = _errs218 === errors;if(valid123){const err203 = {};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}else {errors = _errs217;if(vErrors !== null){if(_errs217){vErrors.length = _errs217;}else {vErrors = null;}}}if(errors === _errs216){if(data111 && typeof data111 == "object" && !Array.isArray(data111)){if((data111.binding === undefined) && ("binding")){const err204 = {};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}else {if(data111.binding !== undefined){let data112 = data111.binding;if(data112 && typeof data112 == "object" && !Array.isArray(data112)){if((data112.property === undefined) && ("property")){const err205 = {};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}else {if(data112.type !== undefined){let data113 = data112.type;const _errs220 = errors;if(!((((data113 === "zeebe:calledDecision") || (data113 === "zeebe:calledElement")) || (data113 === "zeebe:formDefinition")) || (data113 === "zeebe:linkedResource"))){const err206 = {};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}var valid125 = _errs220 === errors;}else {var valid125 = true;}if(valid125){if(data112.property !== undefined){const _errs221 = errors;if("versionTag" !== data112.property){const err207 = {};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}var valid125 = _errs221 === errors;}else {var valid125 = true;}}}}}}}}var valid122 = _errs216 === errors;if(valid122){break;}}if(!valid122){const err208 = {};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}else {errors = _errs215;if(vErrors !== null){if(_errs215){vErrors.length = _errs215;}else {vErrors = null;}}}}}}}var _valid13 = _errs213 === errors;errors = _errs212;if(vErrors !== null){if(_errs212){vErrors.length = _errs212;}else {vErrors = null;}}if(_valid13){const _errs222 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err209 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if(data.properties !== undefined){let data115 = data.properties;if(Array.isArray(data115)){const _errs224 = errors;const len21 = data115.length;for(let i21=0; i21<len21; i21++){let data116 = data115[i21];const _errs225 = errors;if(data116 && typeof data116 == "object" && !Array.isArray(data116)){if(data116.binding === undefined){const err210 = {instancePath:instancePath+"/properties/" + i21,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}if(data116.value === undefined){const err211 = {instancePath:instancePath+"/properties/" + i21,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if(data116.type === undefined){const err212 = {instancePath:instancePath+"/properties/" + i21,schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}if(data116.binding !== undefined){let data117 = data116.binding;if(data117 && typeof data117 == "object" && !Array.isArray(data117)){if(data117.property === undefined){const err213 = {instancePath:instancePath+"/properties/" + i21+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}if(data117.property !== undefined){if("bindingType" !== data117.property){const err214 = {instancePath:instancePath+"/properties/" + i21+"/binding/property",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "bindingType"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}}}}if(data116.value !== undefined){if("versionTag" !== data116.value){const err215 = {instancePath:instancePath+"/properties/" + i21+"/value",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/value/const",keyword:"const",params:{allowedValue: "versionTag"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(data116.type !== undefined){if("Hidden" !== data116.type){const err216 = {instancePath:instancePath+"/properties/" + i21+"/type",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains/properties/type/const",keyword:"const",params:{allowedValue: "Hidden"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}}var valid127 = _errs225 === errors;if(valid127){break;}}if(!valid127){const err217 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}else {errors = _errs224;if(vErrors !== null){if(_errs224){vErrors.length = _errs224;}else {vErrors = null;}}}}if(errors > 0){const emErrs20 = [];for(const err218 of vErrors){if(((((err218.keyword !== "errorMessage") && (!err218.emUsed)) && ((err218.instancePath === instancePath+"/properties") || ((err218.instancePath.indexOf(instancePath+"/properties") === 0) && (err218.instancePath[instancePath+"/properties".length] === "/")))) && (err218.schemaPath.indexOf("#/allOf/1/allOf/7/allOf/1/then/properties/properties") === 0)) && (err218.schemaPath["#/allOf/1/allOf/7/allOf/1/then/properties/properties".length] === "/")){emErrs20.push(err218);err218.emUsed = true;}}if(emErrs20.length){const err219 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs20},message:"Binding with property=`bindingType` and value=`versionTag` must be set when using a binding with property=`versionTag`"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}const emErrs21 = [];for(const err220 of vErrors){if(!err220.emUsed){emErrs21.push(err220);}}vErrors = emErrs21;errors = emErrs21.length;}}}var _valid13 = _errs222 === errors;valid120 = _valid13;}if(!valid120){const err221 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}const _errs231 = errors;let valid130 = true;const _errs232 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err222 = {};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}else {if(data.properties !== undefined){let data121 = data.properties;if(Array.isArray(data121)){const _errs234 = errors;const len22 = data121.length;for(let i22=0; i22<len22; i22++){let data122 = data121[i22];const _errs235 = errors;if(data122 && typeof data122 == "object" && !Array.isArray(data122)){if((data122.binding === undefined) && ("binding")){const err223 = {};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}else {if(data122.binding !== undefined){let data123 = data122.binding;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){if(((data123.property === undefined) && ("property")) || ((data123.type === undefined) && ("type"))){const err224 = {};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {if(data123.property !== undefined){const _errs237 = errors;if("bindingType" !== data123.property){const err225 = {};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}var valid134 = _errs237 === errors;}else {var valid134 = true;}if(valid134){if(data123.type !== undefined){const _errs238 = errors;if("zeebe:formDefinition" !== data123.type){const err226 = {};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}var valid134 = _errs238 === errors;}else {var valid134 = true;}}}}}}}var valid132 = _errs235 === errors;if(valid132){break;}}if(!valid132){const err227 = {};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}else {errors = _errs234;if(vErrors !== null){if(_errs234){vErrors.length = _errs234;}else {vErrors = null;}}}}}}}var _valid14 = _errs232 === errors;errors = _errs231;if(vErrors !== null){if(_errs231){vErrors.length = _errs231;}else {vErrors = null;}}if(_valid14){const _errs239 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err228 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/2/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}if(data.properties !== undefined){let data126 = data.properties;if(Array.isArray(data126)){const _errs241 = errors;const len23 = data126.length;for(let i23=0; i23<len23; i23++){let data127 = data126[i23];const _errs242 = errors;if(data127 && typeof data127 == "object" && !Array.isArray(data127)){if(data127.binding === undefined){const err229 = {instancePath:instancePath+"/properties/" + i23,schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}if(data127.binding !== undefined){let data128 = data127.binding;if(data128 && typeof data128 == "object" && !Array.isArray(data128)){if(data128.property === undefined){const err230 = {instancePath:instancePath+"/properties/" + i23+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}if(data128.type === undefined){const err231 = {instancePath:instancePath+"/properties/" + i23+"/binding",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}if(data128.type !== undefined){if("zeebe:formDefinition" !== data128.type){const err232 = {instancePath:instancePath+"/properties/" + i23+"/binding/type",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:formDefinition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}if(data128.property !== undefined){if("formId" !== data128.property){const err233 = {instancePath:instancePath+"/properties/" + i23+"/binding/property",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "formId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}}}var valid136 = _errs242 === errors;if(valid136){break;}}if(!valid136){const err234 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}else {errors = _errs241;if(vErrors !== null){if(_errs241){vErrors.length = _errs241;}else {vErrors = null;}}}}if(errors > 0){const emErrs22 = [];for(const err235 of vErrors){if(((((err235.keyword !== "errorMessage") && (!err235.emUsed)) && ((err235.instancePath === instancePath+"/properties") || ((err235.instancePath.indexOf(instancePath+"/properties") === 0) && (err235.instancePath[instancePath+"/properties".length] === "/")))) && (err235.schemaPath.indexOf("#/allOf/1/allOf/7/allOf/2/then/properties/properties") === 0)) && (err235.schemaPath["#/allOf/1/allOf/7/allOf/2/then/properties/properties".length] === "/")){emErrs22.push(err235);err235.emUsed = true;}}if(emErrs22.length){const err236 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/allOf/2/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs22},message:"`property`=`bindingType` is not supported when using `property`=`externalReference`. Use `formId` with `bindingType`"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}const emErrs23 = [];for(const err237 of vErrors){if(!err237.emUsed){emErrs23.push(err237);}}vErrors = emErrs23;errors = emErrs23.length;}}}var _valid14 = _errs239 === errors;valid130 = _valid14;}if(!valid130){const err238 = {instancePath,schemaPath:"#/allOf/1/allOf/7/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}const _errs247 = errors;let valid139 = true;const _errs248 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err239 = {};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}else {if(data.properties !== undefined){let data131 = data.properties;if(Array.isArray(data131)){const _errs250 = errors;const len24 = data131.length;for(let i24=0; i24<len24; i24++){let data132 = data131[i24];const _errs251 = errors;if(data132 && typeof data132 == "object" && !Array.isArray(data132)){if((data132.binding === undefined) && ("binding")){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}else {if(data132.binding !== undefined){let data133 = data132.binding;if(data133 && typeof data133 == "object" && !Array.isArray(data133)){if(((data133.property === undefined) && ("property")) || ((data133.type === undefined) && ("type"))){const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}else {if(data133.property !== undefined){const _errs253 = errors;if("formId" !== data133.property){const err242 = {};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}var valid143 = _errs253 === errors;}else {var valid143 = true;}if(valid143){if(data133.type !== undefined){const _errs254 = errors;if("zeebe:formDefinition" !== data133.type){const err243 = {};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}var valid143 = _errs254 === errors;}else {var valid143 = true;}}}}}}}var valid141 = _errs251 === errors;if(valid141){break;}}if(!valid141){const err244 = {};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}else {errors = _errs250;if(vErrors !== null){if(_errs250){vErrors.length = _errs250;}else {vErrors = null;}}}}}}}var _valid15 = _errs248 === errors;errors = _errs247;if(vErrors !== null){if(_errs247){vErrors.length = _errs247;}else {vErrors = null;}}if(_valid15){const _errs255 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err245 = {instancePath,schemaPath:"#/allOf/1/allOf/8/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if(data.properties !== undefined){let data136 = data.properties;const _errs257 = errors;const _errs258 = errors;if(Array.isArray(data136)){const _errs259 = errors;const len25 = data136.length;for(let i25=0; i25<len25; i25++){let data137 = data136[i25];const _errs260 = errors;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if((data137.binding === undefined) && ("binding")){const err246 = {};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}else {if(data137.binding !== undefined){let data138 = data137.binding;if(data138 && typeof data138 == "object" && !Array.isArray(data138)){if(((data138.property === undefined) && ("property")) || ((data138.type === undefined) && ("type"))){const err247 = {};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}else {if(data138.type !== undefined){const _errs262 = errors;if("zeebe:formDefinition" !== data138.type){const err248 = {};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}var valid148 = _errs262 === errors;}else {var valid148 = true;}if(valid148){if(data138.property !== undefined){const _errs263 = errors;if("externalReference" !== data138.property){const err249 = {};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}var valid148 = _errs263 === errors;}else {var valid148 = true;}}}}}}}var valid146 = _errs260 === errors;if(valid146){break;}}if(!valid146){const err250 = {};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}else {errors = _errs259;if(vErrors !== null){if(_errs259){vErrors.length = _errs259;}else {vErrors = null;}}}}var valid145 = _errs258 === errors;if(valid145){const err251 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/8/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}else {errors = _errs257;if(vErrors !== null){if(_errs257){vErrors.length = _errs257;}else {vErrors = null;}}}if(errors > 0){const emErrs24 = [];for(const err252 of vErrors){if(((((err252.keyword !== "errorMessage") && (!err252.emUsed)) && ((err252.instancePath === instancePath+"/properties") || ((err252.instancePath.indexOf(instancePath+"/properties") === 0) && (err252.instancePath[instancePath+"/properties".length] === "/")))) && (err252.schemaPath.indexOf("#/allOf/1/allOf/8/then/properties/properties") === 0)) && (err252.schemaPath["#/allOf/1/allOf/8/then/properties/properties".length] === "/")){emErrs24.push(err252);err252.emUsed = true;}}if(emErrs24.length){const err253 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/8/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs24},message:"\"formId\" and \"externalReference\" cannot be used together"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}const emErrs25 = [];for(const err254 of vErrors){if(!err254.emUsed){emErrs25.push(err254);}}vErrors = emErrs25;errors = emErrs25.length;}}}var _valid15 = _errs255 === errors;valid139 = _valid15;}if(!valid139){const err255 = {instancePath,schemaPath:"#/allOf/1/allOf/8/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}const _errs266 = errors;let valid150 = true;const _errs267 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err256 = {};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}else {if(data.properties !== undefined){let data141 = data.properties;if(Array.isArray(data141)){const _errs269 = errors;const len26 = data141.length;for(let i26=0; i26<len26; i26++){let data142 = data141[i26];const _errs270 = errors;if(data142 && typeof data142 == "object" && !Array.isArray(data142)){if((data142.binding === undefined) && ("binding")){const err257 = {};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}else {if(data142.binding !== undefined){let data143 = data142.binding;if(data143 && typeof data143 == "object" && !Array.isArray(data143)){if((data143.type === undefined) && ("type")){const err258 = {};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}else {if(data143.type !== undefined){if("zeebe:adHoc" !== data143.type){const err259 = {};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}}}}}}var valid152 = _errs270 === errors;if(valid152){break;}}if(!valid152){const err260 = {};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}else {errors = _errs269;if(vErrors !== null){if(_errs269){vErrors.length = _errs269;}else {vErrors = null;}}}}}}}var _valid16 = _errs267 === errors;errors = _errs266;if(vErrors !== null){if(_errs266){vErrors.length = _errs266;}else {vErrors = null;}}if(_valid16){const _errs273 = errors;const _errs274 = errors;let valid155 = false;const _errs275 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err261 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/0/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}if(data.elementType !== undefined){let data145 = data.elementType;if(data145 && typeof data145 == "object" && !Array.isArray(data145)){if(data145.value === undefined){const err262 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if(data145.value !== undefined){if("bpmn:AdHocSubProcess" !== data145.value){const err263 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/0/properties/elementType/properties/value/const",keyword:"const",params:{allowedValue: "bpmn:AdHocSubProcess"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}}}}var _valid17 = _errs275 === errors;valid155 = valid155 || _valid17;if(!valid155){const _errs278 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err264 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/1/required",keyword:"required",params:{missingProperty: "appliesTo"},message:"must have required property '"+"appliesTo"+"'"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[9].allOf[0].then.anyOf[1].properties.appliesTo.const)){const err265 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf/1/properties/appliesTo/const",keyword:"const",params:{allowedValue: schema17.allOf[1].allOf[9].allOf[0].then.anyOf[1].properties.appliesTo.const},message:"must be equal to constant"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}}}var _valid17 = _errs278 === errors;valid155 = valid155 || _valid17;}if(!valid155){const err266 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}else {errors = _errs274;if(vErrors !== null){if(_errs274){vErrors.length = _errs274;}else {vErrors = null;}}}var _valid16 = _errs273 === errors;valid150 = _valid16;}if(!valid150){const err267 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}const _errs282 = errors;let valid159 = true;const _errs283 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err268 = {};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}else {if(data.properties !== undefined){let data148 = data.properties;if(Array.isArray(data148)){const _errs285 = errors;const len27 = data148.length;for(let i27=0; i27<len27; i27++){let data149 = data148[i27];const _errs286 = errors;if(data149 && typeof data149 == "object" && !Array.isArray(data149)){if((data149.binding === undefined) && ("binding")){const err269 = {};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}else {if(data149.binding !== undefined){let data150 = data149.binding;if(data150 && typeof data150 == "object" && !Array.isArray(data150)){if(((data150.type === undefined) && ("type")) || ((data150.property === undefined) && ("property"))){const err270 = {};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}else {if(data150.type !== undefined){const _errs288 = errors;if("zeebe:adHoc" !== data150.type){const err271 = {};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}var valid163 = _errs288 === errors;}else {var valid163 = true;}if(valid163){if(data150.property !== undefined){let data152 = data150.property;const _errs289 = errors;if(!((data152 === "outputCollection") || (data152 === "outputElement"))){const err272 = {};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}var valid163 = _errs289 === errors;}else {var valid163 = true;}}}}}}}var valid161 = _errs286 === errors;if(valid161){break;}}if(!valid161){const err273 = {};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}else {errors = _errs285;if(vErrors !== null){if(_errs285){vErrors.length = _errs285;}else {vErrors = null;}}}}}}}var _valid18 = _errs283 === errors;errors = _errs282;if(vErrors !== null){if(_errs282){vErrors.length = _errs282;}else {vErrors = null;}}if(_valid18){const _errs290 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err274 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/1/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}if(data.properties !== undefined){let data153 = data.properties;if(Array.isArray(data153)){const _errs293 = errors;const len28 = data153.length;for(let i28=0; i28<len28; i28++){let data154 = data153[i28];const _errs294 = errors;if(data154 && typeof data154 == "object" && !Array.isArray(data154)){if(data154.binding === undefined){const err275 = {instancePath:instancePath+"/properties/" + i28,schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}if(data154.binding !== undefined){let data155 = data154.binding;if(data155 && typeof data155 == "object" && !Array.isArray(data155)){if(data155.type === undefined){const err276 = {instancePath:instancePath+"/properties/" + i28+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}if(data155.property === undefined){const err277 = {instancePath:instancePath+"/properties/" + i28+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}if(data155.type !== undefined){if("zeebe:adHoc" !== data155.type){const err278 = {instancePath:instancePath+"/properties/" + i28+"/binding/type",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:adHoc"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}if(data155.property !== undefined){if("outputElement" !== data155.property){const err279 = {instancePath:instancePath+"/properties/" + i28+"/binding/property",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "outputElement"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}}}}var valid166 = _errs294 === errors;if(valid166){break;}}if(!valid166){const err280 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}else {errors = _errs293;if(vErrors !== null){if(_errs293){vErrors.length = _errs293;}else {vErrors = null;}}}}if(errors > 0){const emErrs26 = [];for(const err281 of vErrors){if(((((err281.keyword !== "errorMessage") && (!err281.emUsed)) && ((err281.instancePath === instancePath+"/properties") || ((err281.instancePath.indexOf(instancePath+"/properties") === 0) && (err281.instancePath[instancePath+"/properties".length] === "/")))) && (err281.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0") === 0)) && (err281.schemaPath["#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0".length] === "/")){emErrs26.push(err281);err281.emUsed = true;}}if(emErrs26.length){const err282 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emErrs26},message:"When \"outputCollection\" is defined for \"zeebe:adHoc\", \"outputElement\" must be defined, too"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}const emErrs27 = [];for(const err283 of vErrors){if(!err283.emUsed){emErrs27.push(err283);}}vErrors = emErrs27;errors = emErrs27.length;}if(Array.isArray(data153)){const _errs299 = errors;const len29 = data153.length;for(let i29=0; i29<len29; i29++){let data158 = data153[i29];const _errs300 = errors;if(data158 && typeof data158 == "object" && !Array.isArray(data158)){if(data158.binding === undefined){const err284 = {instancePath:instancePath+"/properties/" + i29,schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if(data158.binding !== undefined){let data159 = data158.binding;if(data159 && typeof data159 == "object" && !Array.isArray(data159)){if(data159.type === undefined){const err285 = {instancePath:instancePath+"/properties/" + i29+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}if(data159.property === undefined){const err286 = {instancePath:instancePath+"/properties/" + i29+"/binding",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/required",keyword:"required",params:{missingProperty: "property"},message:"must have required property '"+"property"+"'"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if(data159.type !== undefined){if("zeebe:adHoc" !== data159.type){const err287 = {instancePath:instancePath+"/properties/" + i29+"/binding/type",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:adHoc"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}if(data159.property !== undefined){if("outputCollection" !== data159.property){const err288 = {instancePath:instancePath+"/properties/" + i29+"/binding/property",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains/properties/binding/properties/property/const",keyword:"const",params:{allowedValue: "outputCollection"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}}}}}var valid169 = _errs300 === errors;if(valid169){break;}}if(!valid169){const err289 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}else {errors = _errs299;if(vErrors !== null){if(_errs299){vErrors.length = _errs299;}else {vErrors = null;}}}}if(errors > 0){const emErrs28 = [];for(const err290 of vErrors){if(((((err290.keyword !== "errorMessage") && (!err290.emUsed)) && ((err290.instancePath === instancePath+"/properties") || ((err290.instancePath.indexOf(instancePath+"/properties") === 0) && (err290.instancePath[instancePath+"/properties".length] === "/")))) && (err290.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1") === 0)) && (err290.schemaPath["#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1".length] === "/")){emErrs28.push(err290);err290.emUsed = true;}}if(emErrs28.length){const err291 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/9/allOf/1/then/properties/properties/allOf/1/errorMessage",keyword:"errorMessage",params:{errors: emErrs28},message:"When \"outputElement\" is defined for \"zeebe:adHoc\", \"outputCollection\" must be defined, too"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}const emErrs29 = [];for(const err292 of vErrors){if(!err292.emUsed){emErrs29.push(err292);}}vErrors = emErrs29;errors = emErrs29.length;}}}var _valid18 = _errs290 === errors;valid159 = _valid18;}if(!valid159){const err293 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}const _errs306 = errors;let valid172 = true;const _errs307 = errors;const _errs308 = errors;const _errs309 = errors;let valid174 = false;const _errs310 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}else {if(data.elementType !== undefined){let data162 = data.elementType;if(data162 && typeof data162 == "object" && !Array.isArray(data162)){if((data162.value === undefined) && ("value")){const err295 = {};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}else {if(data162.value !== undefined){if("bpmn:AdHocSubProcess" !== data162.value){const err296 = {};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}}}}}}var _valid20 = _errs310 === errors;valid174 = valid174 || _valid20;if(!valid174){const _errs313 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[9].allOf[2].if.allOf[0].anyOf[1].properties.appliesTo.const)){const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}}}var _valid20 = _errs313 === errors;valid174 = valid174 || _valid20;}if(!valid174){const err299 = {};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}else {errors = _errs309;if(vErrors !== null){if(_errs309){vErrors.length = _errs309;}else {vErrors = null;}}}var valid173 = _errs308 === errors;if(valid173){const _errs315 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err300 = {};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}else {if(data.properties !== undefined){let data165 = data.properties;if(Array.isArray(data165)){const _errs317 = errors;const len30 = data165.length;for(let i30=0; i30<len30; i30++){let data166 = data165[i30];const _errs318 = errors;if(errors === _errs318){if(data166 && typeof data166 == "object" && !Array.isArray(data166)){if((data166.binding === undefined) && ("binding")){const err301 = {};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}else {if(data166.binding !== undefined){let data167 = data166.binding;if(data167 && typeof data167 == "object" && !Array.isArray(data167)){if(((data167.type === undefined) && ("type")) || ((data167.property === undefined) && ("property"))){const err302 = {};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}else {if(data167.type !== undefined){const _errs321 = errors;if("zeebe:taskDefinition" !== data167.type){const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}var valid181 = _errs321 === errors;}else {var valid181 = true;}if(valid181){if(data167.property !== undefined){const _errs322 = errors;if("type" !== data167.property){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}var valid181 = _errs322 === errors;}else {var valid181 = true;}}}}}}}else {const err305 = {};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}}var valid179 = _errs318 === errors;if(valid179){break;}}if(!valid179){const err306 = {};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}else {errors = _errs317;if(vErrors !== null){if(_errs317){vErrors.length = _errs317;}else {vErrors = null;}}}}}}}var valid173 = _errs315 === errors;}var _valid19 = _errs307 === errors;errors = _errs306;if(vErrors !== null){if(_errs306){vErrors.length = _errs306;}else {vErrors = null;}}if(_valid19){const _errs323 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err307 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if(data.properties !== undefined){let data170 = data.properties;if(Array.isArray(data170)){const len31 = data170.length;for(let i31=0; i31<len31; i31++){let data171 = data170[i31];const _errs327 = errors;const _errs328 = errors;if(data171 && typeof data171 == "object" && !Array.isArray(data171)){if((data171.binding === undefined) && ("binding")){const err308 = {};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}else {if(data171.binding !== undefined){let data172 = data171.binding;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(((data172.type === undefined) && ("type")) || ((data172.name === undefined) && ("name"))){const err309 = {};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}else {if(data172.type !== undefined){const _errs330 = errors;if("property" !== data172.type){const err310 = {};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}var valid188 = _errs330 === errors;}else {var valid188 = true;}if(valid188){if(data172.name !== undefined){let data174 = data172.name;const _errs331 = errors;if(!((data174 === "cancelRemainingInstances") || (data174 === "completionCondition"))){const err311 = {};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}var valid188 = _errs331 === errors;}else {var valid188 = true;}}}}}}}var valid186 = _errs328 === errors;if(valid186){const err312 = {instancePath:instancePath+"/properties/" + i31,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}else {errors = _errs327;if(vErrors !== null){if(_errs327){vErrors.length = _errs327;}else {vErrors = null;}}}if(errors > 0){const emErrs30 = [];for(const err313 of vErrors){if(((((err313.keyword !== "errorMessage") && (!err313.emUsed)) && ((err313.instancePath === instancePath+"/properties/" + i31) || ((err313.instancePath.indexOf(instancePath+"/properties/" + i31) === 0) && (err313.instancePath[instancePath+"/properties/" + i31.length] === "/")))) && (err313.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items") === 0)) && (err313.schemaPath["#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items".length] === "/")){emErrs30.push(err313);err313.emUsed = true;}}if(emErrs30.length){const err314 = {instancePath:instancePath+"/properties/" + i31,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/0/properties/properties/items/errorMessage",keyword:"errorMessage",params:{errors: emErrs30},message:"Property " + JSON.stringify(data171 && data171.binding && data171.binding.name) + " must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}const emErrs31 = [];for(const err315 of vErrors){if(!err315.emUsed){emErrs31.push(err315);}}vErrors = emErrs31;errors = emErrs31.length;}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err316 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/1/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}if(data.properties !== undefined){let data175 = data.properties;if(Array.isArray(data175)){const len32 = data175.length;for(let i32=0; i32<len32; i32++){let data176 = data175[i32];const _errs335 = errors;const _errs336 = errors;if(data176 && typeof data176 == "object" && !Array.isArray(data176)){if((data176.binding === undefined) && ("binding")){const err317 = {};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}else {if(data176.binding !== undefined){let data177 = data176.binding;if(data177 && typeof data177 == "object" && !Array.isArray(data177)){if(((data177.type === undefined) && ("type")) || ((data177.property === undefined) && ("property"))){const err318 = {};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}else {if(data177.type !== undefined){const _errs338 = errors;if("zeebe:adHoc" !== data177.type){const err319 = {};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}var valid194 = _errs338 === errors;}else {var valid194 = true;}if(valid194){if(data177.property !== undefined){const _errs339 = errors;if("activeElementsCollection" !== data177.property){const err320 = {};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}var valid194 = _errs339 === errors;}else {var valid194 = true;}}}}}}}var valid192 = _errs336 === errors;if(valid192){const err321 = {instancePath:instancePath+"/properties/" + i32,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}else {errors = _errs335;if(vErrors !== null){if(_errs335){vErrors.length = _errs335;}else {vErrors = null;}}}if(errors > 0){const emErrs32 = [];for(const err322 of vErrors){if(((((err322.keyword !== "errorMessage") && (!err322.emUsed)) && ((err322.instancePath === instancePath+"/properties/" + i32) || ((err322.instancePath.indexOf(instancePath+"/properties/" + i32) === 0) && (err322.instancePath[instancePath+"/properties/" + i32.length] === "/")))) && (err322.schemaPath.indexOf("#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items") === 0)) && (err322.schemaPath["#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items".length] === "/")){emErrs32.push(err322);err322.emUsed = true;}}if(emErrs32.length){const err323 = {instancePath:instancePath+"/properties/" + i32,schemaPath:"#/allOf/1/allOf/9/allOf/2/then/allOf/1/properties/properties/items/errorMessage",keyword:"errorMessage",params:{errors: emErrs32},message:"Property " + JSON.stringify(data176 && data176.binding && data176.binding.property) + " must not be set when using a \"zeebe:taskDefinition\" implementation for a \"bpmn:AdHocSubProcess\""};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}const emErrs33 = [];for(const err324 of vErrors){if(!err324.emUsed){emErrs33.push(err324);}}vErrors = emErrs33;errors = emErrs33.length;}}}}}var _valid19 = _errs323 === errors;valid172 = _valid19;}if(!valid172){const err325 = {instancePath,schemaPath:"#/allOf/1/allOf/9/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}const _errs342 = errors;let valid196 = true;const _errs343 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err326 = {};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}else {if(data.properties !== undefined){let data180 = data.properties;if(Array.isArray(data180)){const _errs345 = errors;const len33 = data180.length;for(let i33=0; i33<len33; i33++){let data181 = data180[i33];const _errs346 = errors;if(data181 && typeof data181 == "object" && !Array.isArray(data181)){if((data181.binding === undefined) && ("binding")){const err327 = {};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}else {if(data181.binding !== undefined){let data182 = data181.binding;if(data182 && typeof data182 == "object" && !Array.isArray(data182)){if((data182.type === undefined) && ("type")){const err328 = {};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}else {if(data182.type !== undefined){if("bpmn:Signal#property" !== data182.type){const err329 = {};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}}}}}}var valid198 = _errs346 === errors;if(valid198){break;}}if(!valid198){const err330 = {};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}else {errors = _errs345;if(vErrors !== null){if(_errs345){vErrors.length = _errs345;}else {vErrors = null;}}}}}}}var _valid21 = _errs343 === errors;errors = _errs342;if(vErrors !== null){if(_errs342){vErrors.length = _errs342;}else {vErrors = null;}}if(_valid21){const _errs349 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err331 = {instancePath,schemaPath:"#/allOf/1/allOf/10/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}if(data.elementType !== undefined){let data184 = data.elementType;if(data184 && typeof data184 == "object" && !Array.isArray(data184)){if(data184.eventDefinition === undefined){const err332 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if(data184.value === undefined){const err333 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}if(data184.value !== undefined){let data185 = data184.value;if(!(((((data185 === "bpmn:StartEvent") || (data185 === "bpmn:IntermediateCatchEvent")) || (data185 === "bpmn:IntermediateThrowEvent")) || (data185 === "bpmn:BoundaryEvent")) || (data185 === "bpmn:EndEvent"))){const err334 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[10].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}}if(data184.eventDefinition !== undefined){if("bpmn:SignalEventDefinition" !== data184.eventDefinition){const err335 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/allOf/1/allOf/10/allOf/0/then/properties/elementType/properties/eventDefinition/const",keyword:"const",params:{allowedValue: "bpmn:SignalEventDefinition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}}}}}var _valid21 = _errs349 === errors;valid196 = _valid21;}if(!valid196){const err336 = {instancePath,schemaPath:"#/allOf/1/allOf/10/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}const _errs354 = errors;let valid203 = true;const _errs355 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err337 = {};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}else {if(data.elementType !== undefined){let data187 = data.elementType;if(data187 && typeof data187 == "object" && !Array.isArray(data187)){if((data187.eventDefinition === undefined) && ("eventDefinition")){const err338 = {};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}else {if(data187.eventDefinition !== undefined){if("bpmn:SignalEventDefinition" !== data187.eventDefinition){const err339 = {};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}}}}}}var _valid22 = _errs355 === errors;errors = _errs354;if(vErrors !== null){if(_errs354){vErrors.length = _errs354;}else {vErrors = null;}}if(_valid22){const _errs358 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data189 = data.properties;if(Array.isArray(data189)){const _errs360 = errors;const len34 = data189.length;for(let i34=0; i34<len34; i34++){let data190 = data189[i34];const _errs361 = errors;if(data190 && typeof data190 == "object" && !Array.isArray(data190)){if(data190.binding === undefined){const err340 = {instancePath:instancePath+"/properties/" + i34,schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}if(data190.binding !== undefined){let data191 = data190.binding;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.type === undefined){const err341 = {instancePath:instancePath+"/properties/" + i34+"/binding",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}if(data191.type !== undefined){if("bpmn:Signal#property" !== data191.type){const err342 = {instancePath:instancePath+"/properties/" + i34+"/binding/type",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:Signal#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}}}}}var valid207 = _errs361 === errors;if(valid207){break;}}if(!valid207){const err343 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}else {errors = _errs360;if(vErrors !== null){if(_errs360){vErrors.length = _errs360;}else {vErrors = null;}}}}if(errors > 0){const emErrs34 = [];for(const err344 of vErrors){if(((((err344.keyword !== "errorMessage") && (!err344.emUsed)) && ((err344.instancePath === instancePath+"/properties") || ((err344.instancePath.indexOf(instancePath+"/properties") === 0) && (err344.instancePath[instancePath+"/properties".length] === "/")))) && (err344.schemaPath.indexOf("#/allOf/1/allOf/10/allOf/1/then/properties/properties") === 0)) && (err344.schemaPath["#/allOf/1/allOf/10/allOf/1/then/properties/properties".length] === "/")){emErrs34.push(err344);err344.emUsed = true;}}if(emErrs34.length){const err345 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/10/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs34},message:"Binding with `type`=`bpmn:Signal#property` is required, when using `elementType.eventDefinition`=`bpmn:SignalEventDefinition`"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}const emErrs35 = [];for(const err346 of vErrors){if(!err346.emUsed){emErrs35.push(err346);}}vErrors = emErrs35;errors = emErrs35.length;}}}var _valid22 = _errs358 === errors;valid203 = _valid22;}if(!valid203){const err347 = {instancePath,schemaPath:"#/allOf/1/allOf/10/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}const _errs366 = errors;let valid211 = true;const _errs367 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err348 = {};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}else {if(data.properties !== undefined){let data193 = data.properties;if(Array.isArray(data193)){const _errs369 = errors;const len35 = data193.length;for(let i35=0; i35<len35; i35++){let data194 = data193[i35];const _errs370 = errors;if(data194 && typeof data194 == "object" && !Array.isArray(data194)){if((data194.binding === undefined) && ("binding")){const err349 = {};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}else {if(data194.binding !== undefined){let data195 = data194.binding;if(data195 && typeof data195 == "object" && !Array.isArray(data195)){if(((data195.type === undefined) && ("type")) || ((data195.name === undefined) && ("name"))){const err350 = {};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}else {if(data195.type !== undefined){const _errs372 = errors;if("bpmn:TimerEventDefinition#property" !== data195.type){const err351 = {};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}var valid215 = _errs372 === errors;}else {var valid215 = true;}if(valid215){if(data195.name !== undefined){let data197 = data195.name;const _errs373 = errors;if(!(((data197 === "timeDate") || (data197 === "timeCycle")) || (data197 === "timeDuration"))){const err352 = {};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}var valid215 = _errs373 === errors;}else {var valid215 = true;}}}}}}}var valid213 = _errs370 === errors;if(valid213){break;}}if(!valid213){const err353 = {};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}else {errors = _errs369;if(vErrors !== null){if(_errs369){vErrors.length = _errs369;}else {vErrors = null;}}}}}}}var _valid23 = _errs367 === errors;errors = _errs366;if(vErrors !== null){if(_errs366){vErrors.length = _errs366;}else {vErrors = null;}}if(_valid23){const _errs374 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err354 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/0/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}if(data.elementType !== undefined){let data198 = data.elementType;if(data198 && typeof data198 == "object" && !Array.isArray(data198)){if(data198.eventDefinition === undefined){const err355 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "eventDefinition"},message:"must have required property '"+"eventDefinition"+"'"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}if(data198.value === undefined){const err356 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}if(data198.eventDefinition !== undefined){if("bpmn:TimerEventDefinition" !== data198.eventDefinition){const err357 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/properties/eventDefinition/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}}if(data198.value !== undefined){let data200 = data198.value;if(!(((data200 === "bpmn:StartEvent") || (data200 === "bpmn:IntermediateCatchEvent")) || (data200 === "bpmn:BoundaryEvent"))){const err358 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.allOf[1].allOf[11].allOf[0].then.properties.elementType.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}}}if(errors > 0){const emErrors6 = {"required":{"eventDefinition":[]}};const templates6 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err359 of vErrors){if((((((err359.keyword !== "errorMessage") && (!err359.emUsed)) && (err359.instancePath === instancePath+"/elementType")) && (err359.keyword in emErrors6)) && (err359.schemaPath.indexOf("#/allOf/1/allOf/11/allOf/0/then/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err359.schemaPath.slice(54)))){emPropParams3 = obj0[err359.keyword];emParamsErrors3 = emErrors6[err359.keyword][err359.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err359);err359.emUsed = true;}}}for(const key6 in emErrors6){for(const keyProp3 in emErrors6[key6]){emParamsErrors3 = emErrors6[key6][keyProp3];if(emParamsErrors3.length){const tmpl3 = templates6[key6] && templates6[key6][keyProp3];const err360 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/1/allOf/11/allOf/0/then/properties/elementType/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.allOf[1].allOf[11].allOf[0].then.properties.elementType.errorMessage[key6][keyProp3]};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}}}const emErrs36 = [];for(const err361 of vErrors){if(!err361.emUsed){emErrs36.push(err361);}}vErrors = emErrs36;errors = emErrs36.length;}}}var _valid23 = _errs374 === errors;valid211 = _valid23;}if(!valid211){const err362 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}const _errs379 = errors;let valid218 = true;const _errs380 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err363 = {};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}else {if(data.elementType !== undefined){let data201 = data.elementType;if(data201 && typeof data201 == "object" && !Array.isArray(data201)){if((data201.eventDefinition === undefined) && ("eventDefinition")){const err364 = {};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}else {if(data201.eventDefinition !== undefined){if("bpmn:TimerEventDefinition" !== data201.eventDefinition){const err365 = {};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}}}}}}}var _valid24 = _errs380 === errors;errors = _errs379;if(vErrors !== null){if(_errs379){vErrors.length = _errs379;}else {vErrors = null;}}if(_valid24){const _errs383 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err366 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/1/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}if(data.properties !== undefined){let data203 = data.properties;const _errs385 = errors;let valid222 = false;let passing0 = null;const _errs386 = errors;if(Array.isArray(data203)){const _errs387 = errors;const len36 = data203.length;for(let i36=0; i36<len36; i36++){let data204 = data203[i36];const _errs388 = errors;if(data204 && typeof data204 == "object" && !Array.isArray(data204)){if(data204.binding === undefined){const err367 = {instancePath:instancePath+"/properties/" + i36,schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if(data204.binding !== undefined){let data205 = data204.binding;if(data205 && typeof data205 == "object" && !Array.isArray(data205)){if(data205.type === undefined){const err368 = {instancePath:instancePath+"/properties/" + i36+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if(data205.name === undefined){const err369 = {instancePath:instancePath+"/properties/" + i36+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}if(data205.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data205.type){const err370 = {instancePath:instancePath+"/properties/" + i36+"/binding/type",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}}if(data205.name !== undefined){if("timeDate" !== data205.name){const err371 = {instancePath:instancePath+"/properties/" + i36+"/binding/name",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDateProperty/properties/binding/properties/name/const",keyword:"const",params:{allowedValue: "timeDate"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}}}}var valid223 = _errs388 === errors;if(valid223){break;}}if(!valid223){const err372 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf/0/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}else {errors = _errs387;if(vErrors !== null){if(_errs387){vErrors.length = _errs387;}else {vErrors = null;}}}}var _valid25 = _errs386 === errors;if(_valid25){valid222 = true;passing0 = 0;}const _errs393 = errors;if(Array.isArray(data203)){const _errs394 = errors;const len37 = data203.length;for(let i37=0; i37<len37; i37++){let data208 = data203[i37];const _errs395 = errors;if(data208 && typeof data208 == "object" && !Array.isArray(data208)){if(data208.binding === undefined){const err373 = {instancePath:instancePath+"/properties/" + i37,schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}if(data208.binding !== undefined){let data209 = data208.binding;if(data209 && typeof data209 == "object" && !Array.isArray(data209)){if(data209.type === undefined){const err374 = {instancePath:instancePath+"/properties/" + i37+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}if(data209.name === undefined){const err375 = {instancePath:instancePath+"/properties/" + i37+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}if(data209.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data209.type){const err376 = {instancePath:instancePath+"/properties/" + i37+"/binding/type",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}}if(data209.name !== undefined){if("timeCycle" !== data209.name){const err377 = {instancePath:instancePath+"/properties/" + i37+"/binding/name",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeCycleProperty/properties/binding/properties/name/const",keyword:"const",params:{allowedValue: "timeCycle"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}}}}}var valid227 = _errs395 === errors;if(valid227){break;}}if(!valid227){const err378 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf/1/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}else {errors = _errs394;if(vErrors !== null){if(_errs394){vErrors.length = _errs394;}else {vErrors = null;}}}}var _valid25 = _errs393 === errors;if(_valid25 && valid222){valid222 = false;passing0 = [passing0, 1];}else {if(_valid25){valid222 = true;passing0 = 1;}const _errs400 = errors;if(Array.isArray(data203)){const _errs401 = errors;const len38 = data203.length;for(let i38=0; i38<len38; i38++){let data212 = data203[i38];const _errs402 = errors;if(data212 && typeof data212 == "object" && !Array.isArray(data212)){if(data212.binding === undefined){const err379 = {instancePath:instancePath+"/properties/" + i38,schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}if(data212.binding !== undefined){let data213 = data212.binding;if(data213 && typeof data213 == "object" && !Array.isArray(data213)){if(data213.type === undefined){const err380 = {instancePath:instancePath+"/properties/" + i38+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}if(data213.name === undefined){const err381 = {instancePath:instancePath+"/properties/" + i38+"/binding",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}if(data213.type !== undefined){if("bpmn:TimerEventDefinition#property" !== data213.type){const err382 = {instancePath:instancePath+"/properties/" + i38+"/binding/type",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "bpmn:TimerEventDefinition#property"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}}if(data213.name !== undefined){if("timeDuration" !== data213.name){const err383 = {instancePath:instancePath+"/properties/" + i38+"/binding/name",schemaPath:"#/definitions/template/allOf/1/allOf/11/$defs/timeDurationProperty/properties/binding/properties/name/const",keyword:"const",params:{allowedValue: "timeDuration"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}}}}var valid231 = _errs402 === errors;if(valid231){break;}}if(!valid231){const err384 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf/2/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}else {errors = _errs401;if(vErrors !== null){if(_errs401){vErrors.length = _errs401;}else {vErrors = null;}}}}var _valid25 = _errs400 === errors;if(_valid25 && valid222){valid222 = false;passing0 = [passing0, 2];}else {if(_valid25){valid222 = true;passing0 = 2;}}}if(!valid222){const err385 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}else {errors = _errs385;if(vErrors !== null){if(_errs385){vErrors.length = _errs385;}else {vErrors = null;}}}if(errors > 0){const emErrs37 = [];for(const err386 of vErrors){if(((((err386.keyword !== "errorMessage") && (!err386.emUsed)) && ((err386.instancePath === instancePath+"/properties") || ((err386.instancePath.indexOf(instancePath+"/properties") === 0) && (err386.instancePath[instancePath+"/properties".length] === "/")))) && (err386.schemaPath.indexOf("#/allOf/1/allOf/11/allOf/1/then/properties/properties") === 0)) && (err386.schemaPath["#/allOf/1/allOf/11/allOf/1/then/properties/properties".length] === "/")){emErrs37.push(err386);err386.emUsed = true;}}if(emErrs37.length){const err387 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/1/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs37},message:"Template with elementType.eventDefinition=\"bpmn:TimerEventDefinition\" must have exactly one binding with type \"bpmn:TimerEventDefinition#property\" and name \"timeDate\", \"timeCycle\", or \"timeDuration\"."};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}const emErrs38 = [];for(const err388 of vErrors){if(!err388.emUsed){emErrs38.push(err388);}}vErrors = emErrs38;errors = emErrs38.length;}}}var _valid24 = _errs383 === errors;valid218 = _valid24;}if(!valid218){const err389 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}const _errs408 = errors;let valid235 = true;const _errs409 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err390 = {};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}else {if(data.elementType !== undefined){let data216 = data.elementType;if(data216 && typeof data216 == "object" && !Array.isArray(data216)){if(((data216.eventDefinition === undefined) && ("eventDefinition")) || ((data216.value === undefined) && ("value"))){const err391 = {};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}else {if(data216.eventDefinition !== undefined){const _errs411 = errors;if("bpmn:TimerEventDefinition" !== data216.eventDefinition){const err392 = {};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}var valid237 = _errs411 === errors;}else {var valid237 = true;}if(valid237){if(data216.value !== undefined){const _errs412 = errors;if("bpmn:IntermediateCatchEvent" !== data216.value){const err393 = {};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}var valid237 = _errs412 === errors;}else {var valid237 = true;}}}}}}}var _valid26 = _errs409 === errors;errors = _errs408;if(vErrors !== null){if(_errs408){vErrors.length = _errs408;}else {vErrors = null;}}if(_valid26){const _errs413 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data219 = data.properties;const _errs415 = errors;const _errs416 = errors;if(Array.isArray(data219)){const _errs417 = errors;const len39 = data219.length;for(let i39=0; i39<len39; i39++){let data220 = data219[i39];const _errs418 = errors;if(data220 && typeof data220 == "object" && !Array.isArray(data220)){if((data220.binding === undefined) && ("binding")){const err394 = {};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}else {if(data220.binding !== undefined){let data221 = data220.binding;if(data221 && typeof data221 == "object" && !Array.isArray(data221)){if(((data221.type === undefined) && ("type")) || ((data221.name === undefined) && ("name"))){const err395 = {};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}else {if(data221.type !== undefined){const _errs421 = errors;if("bpmn:TimerEventDefinition#property" !== data221.type){const err396 = {};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}var valid243 = _errs421 === errors;}else {var valid243 = true;}if(valid243){if(data221.name !== undefined){const _errs422 = errors;if("timeCycle" !== data221.name){const err397 = {};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}var valid243 = _errs422 === errors;}else {var valid243 = true;}}}}}}}var valid240 = _errs418 === errors;if(valid240){break;}}if(!valid240){const err398 = {};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}else {errors = _errs417;if(vErrors !== null){if(_errs417){vErrors.length = _errs417;}else {vErrors = null;}}}}var valid239 = _errs416 === errors;if(valid239){const err399 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/11/allOf/2/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}else {errors = _errs415;if(vErrors !== null){if(_errs415){vErrors.length = _errs415;}else {vErrors = null;}}}}}var _valid26 = _errs413 === errors;valid235 = _valid26;}if(!valid235){const err400 = {instancePath,schemaPath:"#/allOf/1/allOf/11/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}const _errs424 = errors;let valid244 = true;const _errs425 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err401 = {};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}else {if(data.properties !== undefined){let data224 = data.properties;if(Array.isArray(data224)){const _errs427 = errors;const len40 = data224.length;for(let i40=0; i40<len40; i40++){let data225 = data224[i40];const _errs428 = errors;if(data225 && typeof data225 == "object" && !Array.isArray(data225)){if(((data225.binding === undefined) && ("binding")) || ((data225.value === undefined) && ("value"))){const err402 = {};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}else {if(data225.binding !== undefined){let data226 = data225.binding;const _errs429 = errors;if(data226 && typeof data226 == "object" && !Array.isArray(data226)){if(((data226.property === undefined) && ("property")) || ((data226.type === undefined) && ("type"))){const err403 = {};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}else {if(data226.type !== undefined){const _errs430 = errors;if("zeebe:calledElement" !== data226.type){const err404 = {};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}var valid248 = _errs430 === errors;}else {var valid248 = true;}if(valid248){if(data226.property !== undefined){const _errs431 = errors;if("propagateAllChildVariables" !== data226.property){const err405 = {};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}var valid248 = _errs431 === errors;}else {var valid248 = true;}}}}var valid247 = _errs429 === errors;}else {var valid247 = true;}if(valid247){if(data225.value !== undefined){const _errs432 = errors;if(true !== data225.value){const err406 = {};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}var valid247 = _errs432 === errors;}else {var valid247 = true;}}}}var valid246 = _errs428 === errors;if(valid246){break;}}if(!valid246){const err407 = {};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}else {errors = _errs427;if(vErrors !== null){if(_errs427){vErrors.length = _errs427;}else {vErrors = null;}}}}}}}var _valid27 = _errs425 === errors;errors = _errs424;if(vErrors !== null){if(_errs424){vErrors.length = _errs424;}else {vErrors = null;}}if(_valid27){const _errs433 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err408 = {instancePath,schemaPath:"#/allOf/1/allOf/12/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}if(data.properties !== undefined){let data230 = data.properties;const _errs435 = errors;const _errs436 = errors;if(Array.isArray(data230)){const _errs437 = errors;const len41 = data230.length;for(let i41=0; i41<len41; i41++){let data231 = data230[i41];const _errs438 = errors;if(data231 && typeof data231 == "object" && !Array.isArray(data231)){if((data231.binding === undefined) && ("binding")){const err409 = {};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}else {if(data231.binding !== undefined){let data232 = data231.binding;if(data232 && typeof data232 == "object" && !Array.isArray(data232)){if((data232.type === undefined) && ("type")){const err410 = {};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}else {if(data232.type !== undefined){if("zeebe:output" !== data232.type){const err411 = {};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}}}}}}}var valid251 = _errs438 === errors;if(valid251){break;}}if(!valid251){const err412 = {};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}else {errors = _errs437;if(vErrors !== null){if(_errs437){vErrors.length = _errs437;}else {vErrors = null;}}}}var valid250 = _errs436 === errors;if(valid250){const err413 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/12/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}else {errors = _errs435;if(vErrors !== null){if(_errs435){vErrors.length = _errs435;}else {vErrors = null;}}}if(errors > 0){const emErrs39 = [];for(const err414 of vErrors){if(((((err414.keyword !== "errorMessage") && (!err414.emUsed)) && ((err414.instancePath === instancePath+"/properties") || ((err414.instancePath.indexOf(instancePath+"/properties") === 0) && (err414.instancePath[instancePath+"/properties".length] === "/")))) && (err414.schemaPath.indexOf("#/allOf/1/allOf/12/then/properties/properties") === 0)) && (err414.schemaPath["#/allOf/1/allOf/12/then/properties/properties".length] === "/")){emErrs39.push(err414);err414.emUsed = true;}}if(emErrs39.length){const err415 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/12/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs39},message:"Binding with `type`=`zeebe:output` cannot be used when `propagateAllChildVariables` is set to `true`"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}const emErrs40 = [];for(const err416 of vErrors){if(!err416.emUsed){emErrs40.push(err416);}}vErrors = emErrs40;errors = emErrs40.length;}}}var _valid27 = _errs433 === errors;valid244 = _valid27;}if(!valid244){const err417 = {instancePath,schemaPath:"#/allOf/1/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}const _errs443 = errors;let valid255 = true;const _errs444 = errors;const _errs445 = errors;let valid256 = false;const _errs446 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err418 = {};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}else {if(data.elementType !== undefined){let data234 = data.elementType;if(data234 && typeof data234 == "object" && !Array.isArray(data234)){if((data234.value === undefined) && ("value")){const err419 = {};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}else {if(data234.value !== undefined){if("bpmn:AdHocSubProcess" !== data234.value){const err420 = {};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}}}}}}}var _valid29 = _errs446 === errors;valid256 = valid256 || _valid29;if(!valid256){const _errs449 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err421 = {};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[0].if.anyOf[1].properties.appliesTo.const)){const err422 = {};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}}}}var _valid29 = _errs449 === errors;valid256 = valid256 || _valid29;}if(!valid256){const err423 = {};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}else {errors = _errs445;if(vErrors !== null){if(_errs445){vErrors.length = _errs445;}else {vErrors = null;}}}var _valid28 = _errs444 === errors;errors = _errs443;if(vErrors !== null){if(_errs443){vErrors.length = _errs443;}else {vErrors = null;}}if(_valid28){const _errs451 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data237 = data.properties;if(Array.isArray(data237)){const len42 = data237.length;for(let i42=0; i42<len42; i42++){let data238 = data237[i42];const _errs454 = errors;let valid263 = true;const _errs455 = errors;if(data238 && typeof data238 == "object" && !Array.isArray(data238)){if((data238.binding === undefined) && ("binding")){const err424 = {};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}else {if(data238.binding !== undefined){let data239 = data238.binding;if(data239 && typeof data239 == "object" && !Array.isArray(data239)){if(((data239.type === undefined) && ("type")) || ((data239.name === undefined) && ("name"))){const err425 = {};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}else {if(data239.type !== undefined){const _errs457 = errors;if("property" !== data239.type){const err426 = {};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}var valid265 = _errs457 === errors;}else {var valid265 = true;}if(valid265){if(data239.name !== undefined){const _errs458 = errors;if("completionCondition" !== data239.name){const err427 = {};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}var valid265 = _errs458 === errors;}else {var valid265 = true;}}}}}}}var _valid30 = _errs455 === errors;errors = _errs454;if(vErrors !== null){if(_errs454){vErrors.length = _errs454;}else {vErrors = null;}}if(_valid30){const _errs459 = errors;if(data238 && typeof data238 == "object" && !Array.isArray(data238)){if(data238.feel === undefined){const err428 = {instancePath:instancePath+"/properties/" + i42,schemaPath:"#/allOf/2/allOf/0/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}if(data238.feel !== undefined){if("required" !== data238.feel){const err429 = {instancePath:instancePath+"/properties/" + i42+"/feel",schemaPath:"#/allOf/2/allOf/0/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}}}var _valid30 = _errs459 === errors;valid263 = _valid30;}if(!valid263){const err430 = {instancePath:instancePath+"/properties/" + i42,schemaPath:"#/allOf/2/allOf/0/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}}}}}var _valid28 = _errs451 === errors;valid255 = _valid28;}if(!valid255){const err431 = {instancePath,schemaPath:"#/allOf/2/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}const _errs462 = errors;let valid267 = true;const _errs463 = errors;const _errs464 = errors;let valid268 = false;const _errs465 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err432 = {};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}else {if(data.elementType !== undefined){let data243 = data.elementType;if(data243 && typeof data243 == "object" && !Array.isArray(data243)){if((data243.value === undefined) && ("value")){const err433 = {};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}else {if(data243.value !== undefined){if("bpmn:SequenceFlow" !== data243.value){const err434 = {};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}}}}}}}var _valid32 = _errs465 === errors;valid268 = valid268 || _valid32;if(!valid268){const _errs468 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err435 = {};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[1].if.anyOf[1].properties.appliesTo.const)){const err436 = {};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}}}}var _valid32 = _errs468 === errors;valid268 = valid268 || _valid32;}if(!valid268){const err437 = {};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}else {errors = _errs464;if(vErrors !== null){if(_errs464){vErrors.length = _errs464;}else {vErrors = null;}}}var _valid31 = _errs463 === errors;errors = _errs462;if(vErrors !== null){if(_errs462){vErrors.length = _errs462;}else {vErrors = null;}}if(_valid31){const _errs470 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data246 = data.properties;if(Array.isArray(data246)){const len43 = data246.length;for(let i43=0; i43<len43; i43++){let data247 = data246[i43];const _errs473 = errors;let valid275 = true;const _errs474 = errors;if(data247 && typeof data247 == "object" && !Array.isArray(data247)){if((data247.binding === undefined) && ("binding")){const err438 = {};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}else {if(data247.binding !== undefined){let data248 = data247.binding;if(data248 && typeof data248 == "object" && !Array.isArray(data248)){if(((data248.type === undefined) && ("type")) || ((data248.name === undefined) && ("name"))){const err439 = {};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}else {if(data248.type !== undefined){const _errs476 = errors;if("property" !== data248.type){const err440 = {};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}var valid277 = _errs476 === errors;}else {var valid277 = true;}if(valid277){if(data248.name !== undefined){const _errs477 = errors;if("conditionExpression" !== data248.name){const err441 = {};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}var valid277 = _errs477 === errors;}else {var valid277 = true;}}}}}}}var _valid33 = _errs474 === errors;errors = _errs473;if(vErrors !== null){if(_errs473){vErrors.length = _errs473;}else {vErrors = null;}}if(_valid33){const _errs478 = errors;if(data247 && typeof data247 == "object" && !Array.isArray(data247)){if(data247.feel === undefined){const err442 = {instancePath:instancePath+"/properties/" + i43,schemaPath:"#/allOf/2/allOf/1/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}if(data247.feel !== undefined){if("required" !== data247.feel){const err443 = {instancePath:instancePath+"/properties/" + i43+"/feel",schemaPath:"#/allOf/2/allOf/1/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}}}var _valid33 = _errs478 === errors;valid275 = _valid33;}if(!valid275){const err444 = {instancePath:instancePath+"/properties/" + i43,schemaPath:"#/allOf/2/allOf/1/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}}}}}var _valid31 = _errs470 === errors;valid267 = _valid31;}if(!valid267){const err445 = {instancePath,schemaPath:"#/allOf/2/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}const _errs481 = errors;let valid279 = true;const _errs482 = errors;const _errs483 = errors;let valid280 = false;const _errs484 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err446 = {};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}else {if(data.elementType !== undefined){let data252 = data.elementType;if(data252 && typeof data252 == "object" && !Array.isArray(data252)){if((data252.value === undefined) && ("value")){const err447 = {};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}else {if(data252.value !== undefined){if("bpmn:ComplexGateway" !== data252.value){const err448 = {};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}}}}}}}var _valid35 = _errs484 === errors;valid280 = valid280 || _valid35;if(!valid280){const _errs487 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err449 = {};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[2].if.anyOf[1].properties.appliesTo.const)){const err450 = {};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}}}}var _valid35 = _errs487 === errors;valid280 = valid280 || _valid35;}if(!valid280){const err451 = {};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}else {errors = _errs483;if(vErrors !== null){if(_errs483){vErrors.length = _errs483;}else {vErrors = null;}}}var _valid34 = _errs482 === errors;errors = _errs481;if(vErrors !== null){if(_errs481){vErrors.length = _errs481;}else {vErrors = null;}}if(_valid34){const _errs489 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data255 = data.properties;if(Array.isArray(data255)){const len44 = data255.length;for(let i44=0; i44<len44; i44++){let data256 = data255[i44];const _errs492 = errors;let valid287 = true;const _errs493 = errors;if(data256 && typeof data256 == "object" && !Array.isArray(data256)){if((data256.binding === undefined) && ("binding")){const err452 = {};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}else {if(data256.binding !== undefined){let data257 = data256.binding;if(data257 && typeof data257 == "object" && !Array.isArray(data257)){if(((data257.type === undefined) && ("type")) || ((data257.name === undefined) && ("name"))){const err453 = {};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}else {if(data257.type !== undefined){const _errs495 = errors;if("property" !== data257.type){const err454 = {};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}var valid289 = _errs495 === errors;}else {var valid289 = true;}if(valid289){if(data257.name !== undefined){const _errs496 = errors;if("activationCondition" !== data257.name){const err455 = {};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}var valid289 = _errs496 === errors;}else {var valid289 = true;}}}}}}}var _valid36 = _errs493 === errors;errors = _errs492;if(vErrors !== null){if(_errs492){vErrors.length = _errs492;}else {vErrors = null;}}if(_valid36){const _errs497 = errors;if(data256 && typeof data256 == "object" && !Array.isArray(data256)){if(data256.feel === undefined){const err456 = {instancePath:instancePath+"/properties/" + i44,schemaPath:"#/allOf/2/allOf/2/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}if(data256.feel !== undefined){if("required" !== data256.feel){const err457 = {instancePath:instancePath+"/properties/" + i44+"/feel",schemaPath:"#/allOf/2/allOf/2/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}}}var _valid36 = _errs497 === errors;valid287 = _valid36;}if(!valid287){const err458 = {instancePath:instancePath+"/properties/" + i44,schemaPath:"#/allOf/2/allOf/2/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}}}}}var _valid34 = _errs489 === errors;valid279 = _valid34;}if(!valid279){const err459 = {instancePath,schemaPath:"#/allOf/2/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}const _errs500 = errors;let valid291 = true;const _errs501 = errors;const _errs502 = errors;let valid292 = false;const _errs503 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err460 = {};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}else {if(data.elementType !== undefined){let data261 = data.elementType;if(data261 && typeof data261 == "object" && !Array.isArray(data261)){if((data261.value === undefined) && ("value")){const err461 = {};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}else {if(data261.value !== undefined){if("bpmn:AdHocSubProcess" !== data261.value){const err462 = {};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}}}}}}var _valid38 = _errs503 === errors;valid292 = valid292 || _valid38;if(!valid292){const _errs506 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err463 = {};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[3].if.anyOf[1].properties.appliesTo.const)){const err464 = {};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}}}}var _valid38 = _errs506 === errors;valid292 = valid292 || _valid38;}if(!valid292){const err465 = {};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}else {errors = _errs502;if(vErrors !== null){if(_errs502){vErrors.length = _errs502;}else {vErrors = null;}}}var _valid37 = _errs501 === errors;errors = _errs500;if(vErrors !== null){if(_errs500){vErrors.length = _errs500;}else {vErrors = null;}}if(_valid37){const _errs508 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data264 = data.properties;if(Array.isArray(data264)){const len45 = data264.length;for(let i45=0; i45<len45; i45++){let data265 = data264[i45];const _errs511 = errors;let valid299 = true;const _errs512 = errors;if(data265 && typeof data265 == "object" && !Array.isArray(data265)){if(((data265.binding === undefined) && ("binding")) || ((data265.type === undefined) && ("type"))){const err466 = {};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}else {if(data265.type !== undefined){let data266 = data265.type;const _errs513 = errors;if(!((data266 === "String") || (data266 === "Text"))){const err467 = {};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}var valid300 = _errs513 === errors;}else {var valid300 = true;}if(valid300){if(data265.binding !== undefined){let data267 = data265.binding;const _errs514 = errors;if(data267 && typeof data267 == "object" && !Array.isArray(data267)){if(((data267.type === undefined) && ("type")) || ((data267.property === undefined) && ("property"))){const err468 = {};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}else {if(data267.type !== undefined){const _errs515 = errors;if("zeebe:adHoc" !== data267.type){const err469 = {};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}var valid301 = _errs515 === errors;}else {var valid301 = true;}if(valid301){if(data267.property !== undefined){const _errs516 = errors;if("outputElement" !== data267.property){const err470 = {};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}var valid301 = _errs516 === errors;}else {var valid301 = true;}}}}var valid300 = _errs514 === errors;}else {var valid300 = true;}}}}var _valid39 = _errs512 === errors;errors = _errs511;if(vErrors !== null){if(_errs511){vErrors.length = _errs511;}else {vErrors = null;}}if(_valid39){const _errs517 = errors;if(data265 && typeof data265 == "object" && !Array.isArray(data265)){if(data265.feel === undefined){const err471 = {instancePath:instancePath+"/properties/" + i45,schemaPath:"#/allOf/2/allOf/3/then/properties/properties/items/then/required",keyword:"required",params:{missingProperty: "feel"},message:"must have required property '"+"feel"+"'"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}if(data265.feel !== undefined){if("required" !== data265.feel){const err472 = {instancePath:instancePath+"/properties/" + i45+"/feel",schemaPath:"#/allOf/2/allOf/3/then/properties/properties/items/then/properties/feel/const",keyword:"const",params:{allowedValue: "required"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}}var _valid39 = _errs517 === errors;valid299 = _valid39;}if(!valid299){const err473 = {instancePath:instancePath+"/properties/" + i45,schemaPath:"#/allOf/2/allOf/3/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}}}}}var _valid37 = _errs508 === errors;valid291 = _valid37;}if(!valid291){const err474 = {instancePath,schemaPath:"#/allOf/2/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){if(!(validate16(data.properties, {instancePath:instancePath+"/properties",parentData:data,parentDataProperty:"properties",rootData}))){vErrors = vErrors === null ? validate16.errors : vErrors.concat(validate16.errors);errors = vErrors.length;}}if(data.engines !== undefined){let data272 = data.engines;if(data272 && typeof data272 == "object" && !Array.isArray(data272)){if(data272.camunda !== undefined){if(typeof data272.camunda !== "string"){const err475 = {instancePath:instancePath+"/engines/camunda",schemaPath:"#/properties/engines/properties/camunda/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}}if(data272.camundaDesktopModeler !== undefined){if(typeof data272.camundaDesktopModeler !== "string"){const err476 = {instancePath:instancePath+"/engines/camundaDesktopModeler",schemaPath:"#/properties/engines/properties/camundaDesktopModeler/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}}if(data272.camundaWebModeler !== undefined){if(typeof data272.camundaWebModeler !== "string"){const err477 = {instancePath:instancePath+"/engines/camundaWebModeler",schemaPath:"#/properties/engines/properties/camundaWebModeler/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}}}else {const err478 = {instancePath:instancePath+"/engines",schemaPath:"#/properties/engines/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}}if(data.category !== undefined){let data276 = data.category;if(data276 && typeof data276 == "object" && !Array.isArray(data276)){if(data276.id === undefined){const err479 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}if(data276.name === undefined){const err480 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}if(data276.id !== undefined){if(typeof data276.id !== "string"){const err481 = {instancePath:instancePath+"/category/id",schemaPath:"#/properties/category/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}}if(data276.name !== undefined){if(typeof data276.name !== "string"){const err482 = {instancePath:instancePath+"/category/name",schemaPath:"#/properties/category/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}}}else {const err483 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}}if(data.icon !== undefined){let data279 = data.icon;if(data279 && typeof data279 == "object" && !Array.isArray(data279)){if(data279.contents === undefined){const err484 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/required",keyword:"required",params:{missingProperty: "contents"},message:"must have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}if(data279.contents !== undefined){let data280 = data279.contents;if(typeof data280 === "string"){if(!pattern9.test(data280)){const err485 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/pattern",keyword:"pattern",params:{pattern: "^(https?|data):.*"},message:"must match pattern \""+"^(https?|data):.*"+"\""};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}}else {const err486 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}if(errors > 0){const emErrors7 = {"pattern":[]};const templates7 = {};for(const err487 of vErrors){if((((((err487.keyword !== "errorMessage") && (!err487.emUsed)) && (err487.instancePath === instancePath+"/icon/contents")) && (err487.keyword in emErrors7)) && (err487.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err487.schemaPath.slice(37)))){emErrors7[err487.keyword].push(err487);err487.emUsed = true;}}for(const key7 in emErrors7){if(emErrors7[key7].length){const err488 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",keyword:"errorMessage",params:{errors: emErrors7[key7]},message:key7 in templates7 ? templates7[key7]() : schema17.properties.icon.properties.contents.errorMessage[key7]};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}}const emErrs41 = [];for(const err489 of vErrors){if(!err489.emUsed){emErrs41.push(err489);}}vErrors = emErrs41;errors = emErrs41.length;}}}else {const err490 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}if(errors > 0){const emErrors8 = {"required":{"contents":[]}};const templates8 = {required:{}};let emPropParams4;let emParamsErrors4;for(const err491 of vErrors){if((((((err491.keyword !== "errorMessage") && (!err491.emUsed)) && (err491.instancePath === instancePath+"/icon")) && (err491.keyword in emErrors8)) && (err491.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err491.schemaPath.slice(17)))){emPropParams4 = obj0[err491.keyword];emParamsErrors4 = emErrors8[err491.keyword][err491.params[emPropParams4]];if(emParamsErrors4){emParamsErrors4.push(err491);err491.emUsed = true;}}}for(const key8 in emErrors8){for(const keyProp4 in emErrors8[key8]){emParamsErrors4 = emErrors8[key8][keyProp4];if(emParamsErrors4.length){const tmpl4 = templates8[key8] && templates8[key8][keyProp4];const err492 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors4},message:tmpl4 ? tmpl4() : schema17.properties.icon.errorMessage[key8][keyProp4]};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}}}const emErrs42 = [];for(const err493 of vErrors){if(!err493.emUsed){emErrs42.push(err493);}}vErrors = emErrs42;errors = emErrs42.length;}}if(data.elementType !== undefined){let data281 = data.elementType;if(data281 && typeof data281 == "object" && !Array.isArray(data281)){if(data281.eventDefinition !== undefined){let data282 = data281.eventDefinition;if(!((((data282 === "bpmn:MessageEventDefinition") || (data282 === "bpmn:SignalEventDefinition")) || (data282 === "bpmn:TimerEventDefinition")) || (data282 === "bpmn:ConditionalEventDefinition"))){const err494 = {instancePath:instancePath+"/elementType/eventDefinition",schemaPath:"#/properties/elementType/allOf/0/allOf/0/properties/eventDefinition/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[0].properties.eventDefinition.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}}}const _errs543 = errors;let valid310 = true;const _errs544 = errors;if(data281 && typeof data281 == "object" && !Array.isArray(data281)){if((data281.eventDefinition === undefined) && ("eventDefinition")){const err495 = {};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}}var _valid40 = _errs544 === errors;errors = _errs543;if(vErrors !== null){if(_errs543){vErrors.length = _errs543;}else {vErrors = null;}}if(_valid40){const _errs545 = errors;if(data281 && typeof data281 == "object" && !Array.isArray(data281)){if(data281.value === undefined){const err496 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}if(data281.value !== undefined){let data283 = data281.value;if(!(((((data283 === "bpmn:StartEvent") || (data283 === "bpmn:IntermediateCatchEvent")) || (data283 === "bpmn:IntermediateThrowEvent")) || (data283 === "bpmn:BoundaryEvent")) || (data283 === "bpmn:EndEvent"))){const err497 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/1/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[1].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}}}var _valid40 = _errs545 === errors;valid310 = _valid40;}if(!valid310){const err498 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}const _errs548 = errors;let valid312 = true;const _errs549 = errors;if(data281 && typeof data281 == "object" && !Array.isArray(data281)){if((data281.eventDefinition === undefined) && ("eventDefinition")){const err499 = {};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}else {if(data281.eventDefinition !== undefined){if("bpmn:TimerEventDefinition" !== data281.eventDefinition){const err500 = {};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}}}}var _valid41 = _errs549 === errors;errors = _errs548;if(vErrors !== null){if(_errs548){vErrors.length = _errs548;}else {vErrors = null;}}if(_valid41){const _errs551 = errors;if(data281 && typeof data281 == "object" && !Array.isArray(data281)){if(data281.value === undefined){const err501 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/2/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}if(data281.value !== undefined){let data285 = data281.value;if(!(((data285 === "bpmn:StartEvent") || (data285 === "bpmn:IntermediateCatchEvent")) || (data285 === "bpmn:BoundaryEvent"))){const err502 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/2/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[2].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}}}var _valid41 = _errs551 === errors;valid312 = _valid41;}if(!valid312){const err503 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}const _errs554 = errors;let valid315 = true;const _errs555 = errors;if(data281 && typeof data281 == "object" && !Array.isArray(data281)){if((data281.eventDefinition === undefined) && ("eventDefinition")){const err504 = {};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}else {if(data281.eventDefinition !== undefined){if("bpmn:ConditionalEventDefinition" !== data281.eventDefinition){const err505 = {};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}}}}var _valid42 = _errs555 === errors;errors = _errs554;if(vErrors !== null){if(_errs554){vErrors.length = _errs554;}else {vErrors = null;}}if(_valid42){const _errs557 = errors;if(data281 && typeof data281 == "object" && !Array.isArray(data281)){if(data281.value === undefined){const err506 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/3/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}if(data281.value !== undefined){let data287 = data281.value;if(!(((data287 === "bpmn:StartEvent") || (data287 === "bpmn:IntermediateCatchEvent")) || (data287 === "bpmn:BoundaryEvent"))){const err507 = {instancePath:instancePath+"/elementType/value",schemaPath:"#/properties/elementType/allOf/0/allOf/3/then/properties/value/enum",keyword:"enum",params:{allowedValues: schema17.properties.elementType.allOf[0].allOf[3].then.properties.value.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}}}var _valid42 = _errs557 === errors;valid315 = _valid42;}if(!valid315){const err508 = {instancePath:instancePath+"/elementType",schemaPath:"#/properties/elementType/allOf/0/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}if(data.groups !== undefined){let data288 = data.groups;if(Array.isArray(data288)){const len46 = data288.length;for(let i46=0; i46<len46; i46++){let data289 = data288[i46];if(data289 && typeof data289 == "object" && !Array.isArray(data289)){if(data289.tooltip !== undefined){if(typeof data289.tooltip !== "string"){const err509 = {instancePath:instancePath+"/groups/" + i46+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}}if(data289.openByDefault !== undefined){if(typeof data289.openByDefault !== "boolean"){const err510 = {instancePath:instancePath+"/groups/" + i46+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}}}}}}if(data.entriesVisible !== undefined){let data292 = data.entriesVisible;const _errs566 = errors;let valid321 = false;let passing1 = null;const _errs567 = errors;if(typeof data292 !== "boolean"){const err511 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/oneOf/0/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}var _valid43 = _errs567 === errors;if(_valid43){valid321 = true;passing1 = 0;}const _errs569 = errors;if(data292 && typeof data292 == "object" && !Array.isArray(data292)){for(const key9 in data292){if(!(key9 === "outputs")){const err512 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/oneOf/1/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key9},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}}if(data292.outputs !== undefined){if(typeof data292.outputs !== "boolean"){const err513 = {instancePath:instancePath+"/entriesVisible/outputs",schemaPath:"#/properties/entriesVisible/oneOf/1/properties/outputs/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}}}else {const err514 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}var _valid43 = _errs569 === errors;if(_valid43 && valid321){valid321 = false;passing1 = [passing1, 1];}else {if(_valid43){valid321 = true;passing1 = 1;}}if(!valid321){const err515 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/properties/entriesVisible/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}else {errors = _errs566;if(vErrors !== null){if(_errs566){vErrors.length = _errs566;}else {vErrors = null;}}}}}else {const err516 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}validate15.errors = vErrors;return errors === 0;}function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs0 = errors;let valid0 = false;let passing0 = null;const _errs1 = errors;if(!(validate15(data, {instancePath,parentData,parentDataProperty,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid0 = _errs1 === errors;if(_valid0){valid0 = true;passing0 = 0;}const _errs2 = errors;if(Array.isArray(data)){const len0 = data.length;for(let i0=0; i0<len0; i0++){if(!(validate15(data[i0], {instancePath:instancePath+"/" + i0,parentData:data,parentDataProperty:i0,rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}}}else {const err0 = {instancePath,schemaPath:"#/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}var _valid0 = _errs2 === errors;if(_valid0 && valid0){valid0 = false;passing0 = [passing0, 1];}else {if(_valid0){valid0 = true;passing0 = 1;}}if(!valid0){const err1 = {instancePath,schemaPath:"#/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {errors = _errs0;if(vErrors !== null){if(_errs0){vErrors.length = _errs0;}else {vErrors = null;}}}validate14.errors = vErrors;return errors === 0;}
763
763
  return standaloneZeebeValidator.exports;
764
764
  }
765
765