@bpmn-io/element-templates-validator 2.5.0 → 2.6.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 +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -708,7 +708,7 @@ function validateAll(objects) {
|
|
708
708
|
}
|
709
709
|
|
710
710
|
var name = "@camunda/zeebe-element-templates-json-schema";
|
711
|
-
var version = "0.
|
711
|
+
var version = "0.25.1";
|
712
712
|
|
713
713
|
var standaloneZeebeValidator = {exports: {}};
|
714
714
|
|
@@ -717,7 +717,7 @@ var hasRequiredStandaloneZeebeValidator;
|
|
717
717
|
function requireStandaloneZeebeValidator () {
|
718
718
|
if (hasRequiredStandaloneZeebeValidator) return standaloneZeebeValidator.exports;
|
719
719
|
hasRequiredStandaloneZeebeValidator = 1;
|
720
|
-
standaloneZeebeValidator.exports = validate14;standaloneZeebeValidator.exports.default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"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 version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Indicates whether the element template is deprecated.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"Optional link to migration documentation."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","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":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","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 describe the element template.","default":[]},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","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":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}},"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"]}}}]}},{"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":{"const":"zeebe:formDefinition"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"allOf":[{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"],"errorMessage":"When using \"zeebe:formDefinition\", \"zeebe:userTask\" must be set on the same element"}]}},{"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"]}}}},{"not":{"properties":{"properties":{"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."}],"required":["properties"]}},{"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"]}}}},{"not":{"properties":{"properties":{"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."}],"required":["properties"]}}]}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"engines":{"$id":"#/engines","type":"object","description":"Defines the compatibility of this element template with different engines. Keys are engine names, values are semantic version ranges.","default":{},"examples":[{"camunda":"^8.5"}],"properties":{"camunda":{"$id":"#/engines/camunda","type":"string","description":"A semantic version range that denotes compatible Camunda versions.","default":""}}},"category":{"$id":"#/category","type":"object","description":"A custom category to semantically group element templates","default":{},"example":{"id":"custom-category","name":"Custom Category"},"properties":{"id":{"$id":"#/category/id","type":"string","description":"The unique identifier of the category."},"name":{"$id":"#/category/name","type":"string","description":"The name of the category."}},"required":["id","name"]},"icon":{"$id":"#/icon","type":"object","description":"Custom icon to be shown on the element","default":{},"properties":{"contents":{"$id":"#/icon/contents","type":"string","description":"The URL of an icon.","pattern":"^(https?|data):.*","errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"required":["contents"],"errorMessage":{"required":{"contents":"missing icon contents"}}},"elementType":{"allOf":[{"allOf":[{"properties":{"eventDefinition":{"$id":"#/elementType/eventDefinition","enum":["bpmn:MessageEventDefinition"]}}},{"if":{"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"required":["value"]}}]}]},"groups":{"items":{"properties":{"tooltip":{"$id":"#/groups/group/tooltip","type":"string"},"openByDefault":{"$id":"#/groups/group/openByDefault","type":"boolean","description":"Specifies whether the Group should be opened when first viewed. Defaults to true.","default":true}}}}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern4 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const func0 = requireEqual().default;const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","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":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"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."},"condition":{"type":"object","description":"Condition(s) to activate the binding.","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}},"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"}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"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":"The validation constraints of a control field.","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":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$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"]}},"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":{"type":"string"}}}},{"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"]}}}}],"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"]}},"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":{"const":"processId"}},"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"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:calledDecision"}},"required":["type"]},"then":{"properties":{"property":{"enum":["decisionId","resultVariable"]}},"required":["property"]}},{"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"],"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 }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"The key value of a property binding (zeebe:taskHeader)."},"property":{"$id":"#/properties/property/binding/property","type":"string","description":"The name of the property defined in the binding."},"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":"Indicates whether the property can be a feel expression","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","required":["type"],"properties":{"type":{"const":"uuid"}},"description":"Sets property to a generated value according to given scheme."},"tooltip":{"$id":"#/properties/property/tooltip","type":"string","description":"Hints for the control field."}},"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}}}}]};const schema19 = {"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}};const schema20 = {"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"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: 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")) || (data45 === "Number"))){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, 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"))){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: 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(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: schema18.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: schema18.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: schema18.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: schema18.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){if(typeof data42.value !== "string"){const err156 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}}var _valid18 = _errs199 === errors;valid88 = _valid18;}if(!valid88){const err157 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}const _errs203 = errors;let valid91 = true;const _errs204 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}else {if(data42.binding !== undefined){let data64 = data42.binding;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if((data64.type === undefined) && ("type")){const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {if(data64.type !== undefined){if("zeebe:linkedResource" !== data64.type){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}}}}}var _valid19 = _errs204 === errors;errors = _errs203;if(vErrors !== null){if(_errs203){vErrors.length = _errs203;}else {vErrors = null;}}if(_valid19){const _errs207 = 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 err161 = {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 = [err161];}else {vErrors.push(err161);}errors++;}if(data66.property === undefined){const err162 = {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 = [err162];}else {vErrors.push(err162);}errors++;}if(data66.linkName !== undefined){if(typeof data66.linkName !== "string"){const err163 = {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 = [err163];}else {vErrors.push(err163);}errors++;}}if(data66.property !== undefined){let data68 = data66.property;if(!((((data68 === "resourceId") || (data68 === "resourceType")) || (data68 === "bindingType")) || (data68 === "versionTag"))){const err164 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.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 = [err164];}else {vErrors.push(err164);}errors++;}if(errors > 0){const emErrs19 = [];for(const err165 of vErrors){if(((((err165.keyword !== "errorMessage") && (!err165.emUsed)) && ((err165.instancePath === instancePath+"/" + i5+"/binding/property") || ((err165.instancePath.indexOf(instancePath+"/" + i5+"/binding/property") === 0) && (err165.instancePath[instancePath+"/" + i5+"/binding/property".length] === "/")))) && (err165.schemaPath.indexOf("#/allOf/1/items/allOf/10/then/properties/binding/properties/property") === 0)) && (err165.schemaPath["#/allOf/1/items/allOf/10/then/properties/binding/properties/property".length] === "/")){emErrs19.push(err165);err165.emUsed = true;}}if(emErrs19.length){const err166 = {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 = [err166];}else {vErrors.push(err166);}errors++;}const emErrs20 = [];for(const err167 of vErrors){if(!err167.emUsed){emErrs20.push(err167);}}vErrors = emErrs20;errors = emErrs20.length;}}}}}var _valid19 = _errs207 === errors;valid91 = _valid19;}if(!valid91){const err168 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}const _errs214 = errors;let valid97 = true;const _errs215 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.binding === undefined) && ("binding")) || ((data42.type === undefined) && ("type"))){const err169 = {};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {if(data42.binding !== undefined){let data69 = data42.binding;const _errs216 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if((data69.type === undefined) && ("type")){const err170 = {};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}else {if(data69.type !== undefined){let data70 = data69.type;if(!((data70 === "zeebe:input") || (data70 === "zeebe:output"))){const err171 = {};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}}var valid98 = _errs216 === errors;}else {var valid98 = true;}if(valid98){if(data42.type !== undefined){let data71 = data42.type;const _errs218 = errors;if(!((data71 === "Boolean") || (data71 === "Number"))){const err172 = {};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}var valid98 = _errs218 === errors;}else {var valid98 = true;}}}}var _valid20 = _errs215 === errors;errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}if(_valid20){const _errs219 = errors;var _valid20 = _errs219 === errors;valid97 = _valid20;}if(!valid97){const err173 = {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 = [err173];}else {vErrors.push(err173);}errors++;}const _errs221 = errors;let valid100 = true;const _errs222 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {if(data42.binding !== undefined){let data72 = data42.binding;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if((data72.type === undefined) && ("type")){const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {if(data72.type !== undefined){if("zeebe:userTask" !== data72.type){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}}}}}var _valid21 = _errs222 === errors;errors = _errs221;if(vErrors !== null){if(_errs221){vErrors.length = _errs221;}else {vErrors = null;}}if(_valid21){const _errs225 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err177 = {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 = [err177];}else {vErrors.push(err177);}errors++;}if(data42.type !== undefined){if(!(data42.type === "Hidden")){const err178 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/12/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[12].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}var _valid21 = _errs225 === errors;valid100 = _valid21;}if(!valid100){const err179 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}const _errs228 = errors;let valid104 = true;const _errs229 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err180 = {};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}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 err181 = {};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}else {if(data75.type !== undefined){const _errs231 = errors;if("zeebe:formDefinition" !== data75.type){const err182 = {};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}var valid106 = _errs231 === errors;}else {var valid106 = true;}if(valid106){if(data75.property !== undefined){const _errs232 = errors;if("formId" !== data75.property){const err183 = {};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}var valid106 = _errs232 === errors;}else {var valid106 = true;}}}}}}}var _valid22 = _errs229 === errors;errors = _errs228;if(vErrors !== null){if(_errs228){vErrors.length = _errs228;}else {vErrors = null;}}if(_valid22){const _errs233 = errors;const _errs234 = errors;const _errs235 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err184 = {};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}var valid107 = _errs235 === errors;if(valid107){const err185 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/13/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}else {errors = _errs234;if(vErrors !== null){if(_errs234){vErrors.length = _errs234;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err186 of vErrors){if(((((err186.keyword !== "errorMessage") && (!err186.emUsed)) && ((err186.instancePath === instancePath+"/" + i5) || ((err186.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err186.instancePath[instancePath+"/" + i5.length] === "/")))) && (err186.schemaPath.indexOf("#/allOf/1/items/allOf/13/then") === 0)) && (err186.schemaPath["#/allOf/1/items/allOf/13/then".length] === "/")){emErrs21.push(err186);err186.emUsed = true;}}if(emErrs21.length){const err187 = {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 = [err187];}else {vErrors.push(err187);}errors++;}const emErrs22 = [];for(const err188 of vErrors){if(!err188.emUsed){emErrs22.push(err188);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid22 = _errs233 === errors;valid104 = _valid22;}if(!valid104){const err189 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/13/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}const _errs237 = errors;let valid108 = true;const _errs238 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err190 = {};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}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 err191 = {};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}else {if(data78.type !== undefined){const _errs240 = errors;if("zeebe:formDefinition" !== data78.type){const err192 = {};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}var valid110 = _errs240 === errors;}else {var valid110 = true;}if(valid110){if(data78.property !== undefined){let data80 = data78.property;const _errs241 = errors;if(!((data80 === "externalReference") || (data80 === "formId"))){const err193 = {};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var valid110 = _errs241 === errors;}else {var valid110 = true;}}}}}}}var _valid23 = _errs238 === errors;errors = _errs237;if(vErrors !== null){if(_errs237){vErrors.length = _errs237;}else {vErrors = null;}}if(_valid23){const _errs242 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err194 = {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 = [err194];}else {vErrors.push(err194);}errors++;}if(data42.type !== undefined){let data81 = data42.type;if(!((((data81 === "Hidden") || (data81 === "String")) || (data81 === "Text")) || (data81 === "Dropdown"))){const err195 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/14/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[14].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}}var _valid23 = _errs242 === errors;valid108 = _valid23;}if(!valid108){const err196 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}const _errs245 = errors;let valid112 = true;const _errs246 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err197 = {};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}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 err198 = {};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}else {if(data82.type !== undefined){const _errs248 = errors;if("zeebe:calledDecision" !== data82.type){const err199 = {};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}var valid114 = _errs248 === errors;}else {var valid114 = true;}if(valid114){if(data82.property !== undefined){const _errs249 = errors;if("resultVariable" !== data82.property){const err200 = {};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}var valid114 = _errs249 === errors;}else {var valid114 = true;}}}}}}}var _valid24 = _errs246 === errors;errors = _errs245;if(vErrors !== null){if(_errs245){vErrors.length = _errs245;}else {vErrors = null;}}if(_valid24){const _errs250 = errors;const _errs251 = errors;const _errs252 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err201 = {};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}var valid115 = _errs252 === errors;if(valid115){const err202 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/15/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}else {errors = _errs251;if(vErrors !== null){if(_errs251){vErrors.length = _errs251;}else {vErrors = null;}}}if(errors > 0){const emErrs23 = [];for(const err203 of vErrors){if(((((err203.keyword !== "errorMessage") && (!err203.emUsed)) && ((err203.instancePath === instancePath+"/" + i5) || ((err203.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err203.instancePath[instancePath+"/" + i5.length] === "/")))) && (err203.schemaPath.indexOf("#/allOf/1/items/allOf/15/then") === 0)) && (err203.schemaPath["#/allOf/1/items/allOf/15/then".length] === "/")){emErrs23.push(err203);err203.emUsed = true;}}if(emErrs23.length){const err204 = {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 = [err204];}else {vErrors.push(err204);}errors++;}const emErrs24 = [];for(const err205 of vErrors){if(!err205.emUsed){emErrs24.push(err205);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid24 = _errs250 === errors;valid112 = _valid24;}if(!valid112){const err206 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/15/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}const _errs254 = errors;let valid116 = true;const _errs255 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err207 = {};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}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 err208 = {};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}else {if(data85.type !== undefined){const _errs257 = errors;if("zeebe:calledDecision" !== data85.type){const err209 = {};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}var valid118 = _errs257 === errors;}else {var valid118 = true;}if(valid118){if(data85.property !== undefined){let data87 = data85.property;const _errs258 = errors;if(!((data87 === "resultVariable") || (data87 === "decisionId"))){const err210 = {};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}var valid118 = _errs258 === errors;}else {var valid118 = true;}}}}}}}var _valid25 = _errs255 === errors;errors = _errs254;if(vErrors !== null){if(_errs254){vErrors.length = _errs254;}else {vErrors = null;}}if(_valid25){const _errs259 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err211 = {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 = [err211];}else {vErrors.push(err211);}errors++;}if(data42.type !== undefined){let data88 = data42.type;if(!((((data88 === "Hidden") || (data88 === "String")) || (data88 === "Text")) || (data88 === "Dropdown"))){const err212 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/16/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[16].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}}var _valid25 = _errs259 === errors;valid116 = _valid25;}if(!valid116){const err213 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/16/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}const _errs262 = errors;let valid120 = true;const _errs263 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err214 = {};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}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 err215 = {};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}else {if(data89.type !== undefined){const _errs265 = errors;if("zeebe:script" !== data89.type){const err216 = {};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}var valid122 = _errs265 === errors;}else {var valid122 = true;}if(valid122){if(data89.property !== undefined){const _errs266 = errors;if("resultVariable" !== data89.property){const err217 = {};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}var valid122 = _errs266 === errors;}else {var valid122 = true;}}}}}}}var _valid26 = _errs263 === errors;errors = _errs262;if(vErrors !== null){if(_errs262){vErrors.length = _errs262;}else {vErrors = null;}}if(_valid26){const _errs267 = errors;const _errs268 = errors;const _errs269 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err218 = {};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}var valid123 = _errs269 === errors;if(valid123){const err219 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/17/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}else {errors = _errs268;if(vErrors !== null){if(_errs268){vErrors.length = _errs268;}else {vErrors = null;}}}if(errors > 0){const emErrs25 = [];for(const err220 of vErrors){if(((((err220.keyword !== "errorMessage") && (!err220.emUsed)) && ((err220.instancePath === instancePath+"/" + i5) || ((err220.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err220.instancePath[instancePath+"/" + i5.length] === "/")))) && (err220.schemaPath.indexOf("#/allOf/1/items/allOf/17/then") === 0)) && (err220.schemaPath["#/allOf/1/items/allOf/17/then".length] === "/")){emErrs25.push(err220);err220.emUsed = true;}}if(emErrs25.length){const err221 = {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 = [err221];}else {vErrors.push(err221);}errors++;}const emErrs26 = [];for(const err222 of vErrors){if(!err222.emUsed){emErrs26.push(err222);}}vErrors = emErrs26;errors = emErrs26.length;}var _valid26 = _errs267 === errors;valid120 = _valid26;}if(!valid120){const err223 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/17/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}const _errs271 = errors;let valid124 = true;const _errs272 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.type === undefined) && ("type")) || ((data42.binding === undefined) && ("binding"))){const err224 = {};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {if(data42.type !== undefined){let data92 = data42.type;const _errs273 = errors;if(!((data92 === "String") || (data92 === "Text"))){const err225 = {};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}var valid125 = _errs273 === errors;}else {var valid125 = true;}if(valid125){if(data42.binding !== undefined){let data93 = data42.binding;const _errs274 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(((data93.type === undefined) && ("type")) || ((data93.property === undefined) && ("property"))){const err226 = {};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}else {if(data93.type !== undefined){const _errs275 = errors;if("zeebe:script" !== data93.type){const err227 = {};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}var valid126 = _errs275 === errors;}else {var valid126 = true;}if(valid126){if(data93.property !== undefined){const _errs276 = errors;if("expression" !== data93.property){const err228 = {};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}var valid126 = _errs276 === errors;}else {var valid126 = true;}}}}var valid125 = _errs274 === errors;}else {var valid125 = true;}}}}var _valid27 = _errs272 === errors;errors = _errs271;if(vErrors !== null){if(_errs271){vErrors.length = _errs271;}else {vErrors = null;}}if(_valid27){const _errs277 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.feel === undefined){const err229 = {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 = [err229];}else {vErrors.push(err229);}errors++;}if(data42.feel !== undefined){if(!(data42.feel === "required")){const err230 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/18/then/properties/feel/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[18].then.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}var _valid27 = _errs277 === errors;valid124 = _valid27;}if(!valid124){const err231 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/18/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}const _errs280 = errors;let valid128 = true;const _errs281 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}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 err233 = {};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}else {if(data97.type !== undefined){const _errs283 = errors;if("zeebe:script" !== data97.type){const err234 = {};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}var valid130 = _errs283 === errors;}else {var valid130 = true;}if(valid130){if(data97.property !== undefined){let data99 = data97.property;const _errs284 = errors;if(!((data99 === "resultVariable") || (data99 === "expression"))){const err235 = {};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}var valid130 = _errs284 === errors;}else {var valid130 = true;}}}}}}}var _valid28 = _errs281 === errors;errors = _errs280;if(vErrors !== null){if(_errs280){vErrors.length = _errs280;}else {vErrors = null;}}if(_valid28){const _errs285 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err236 = {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 = [err236];}else {vErrors.push(err236);}errors++;}if(data42.type !== undefined){let data100 = data42.type;if(!((((data100 === "Hidden") || (data100 === "String")) || (data100 === "Text")) || (data100 === "Dropdown"))){const err237 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/19/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[19].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}}var _valid28 = _errs285 === errors;valid128 = _valid28;}if(!valid128){const err238 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/19/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding === undefined){const err239 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if(data42.binding !== undefined){let data101 = data42.binding;const _errs290 = errors;let valid134 = true;const _errs291 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}else {if(data101.type !== undefined){let data102 = data101.type;if(!(((((data102 === "property") || (data102 === "zeebe:property")) || (data102 === "zeebe:input")) || (data102 === "bpmn:Message#property")) || (data102 === "bpmn:Message#zeebe:subscription#property"))){const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}}}}var _valid29 = _errs291 === errors;errors = _errs290;if(vErrors !== null){if(_errs290){vErrors.length = _errs290;}else {vErrors = null;}}if(_valid29){const _errs293 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.name === undefined){const err242 = {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 = [err242];}else {vErrors.push(err242);}errors++;}}if(errors > 0){const emErrs27 = [];for(const err243 of vErrors){if(((((err243.keyword !== "errorMessage") && (!err243.emUsed)) && ((err243.instancePath === instancePath+"/" + i5+"/binding") || ((err243.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err243.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err243.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err243.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs27.push(err243);err243.emUsed = true;}}if(emErrs27.length){const err244 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs27},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires name"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}const emErrs28 = [];for(const err245 of vErrors){if(!err245.emUsed){emErrs28.push(err245);}}vErrors = emErrs28;errors = emErrs28.length;}var _valid29 = _errs293 === errors;valid134 = _valid29;}if(!valid134){const err246 = {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 = [err246];}else {vErrors.push(err246);}errors++;}const _errs295 = errors;let valid136 = true;const _errs296 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err247 = {};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}else {if(data101.type !== undefined){if("zeebe:output" !== data101.type){const err248 = {};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}}}var _valid30 = _errs296 === errors;errors = _errs295;if(vErrors !== null){if(_errs295){vErrors.length = _errs295;}else {vErrors = null;}}if(_valid30){const _errs298 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.source === undefined){const err249 = {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 = [err249];}else {vErrors.push(err249);}errors++;}}if(errors > 0){const emErrs29 = [];for(const err250 of vErrors){if(((((err250.keyword !== "errorMessage") && (!err250.emUsed)) && ((err250.instancePath === instancePath+"/" + i5+"/binding") || ((err250.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err250.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err250.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err250.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs29.push(err250);err250.emUsed = true;}}if(emErrs29.length){const err251 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs29},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires source"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}const emErrs30 = [];for(const err252 of vErrors){if(!err252.emUsed){emErrs30.push(err252);}}vErrors = emErrs30;errors = emErrs30.length;}var _valid30 = _errs298 === errors;valid136 = _valid30;}if(!valid136){const err253 = {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 = [err253];}else {vErrors.push(err253);}errors++;}const _errs300 = errors;let valid138 = true;const _errs301 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err254 = {};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}else {if(data101.type !== undefined){if("zeebe:taskHeader" !== data101.type){const err255 = {};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}}}}var _valid31 = _errs301 === errors;errors = _errs300;if(vErrors !== null){if(_errs300){vErrors.length = _errs300;}else {vErrors = null;}}if(_valid31){const _errs303 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.key === undefined){const err256 = {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 = [err256];}else {vErrors.push(err256);}errors++;}}if(errors > 0){const emErrs31 = [];for(const err257 of vErrors){if(((((err257.keyword !== "errorMessage") && (!err257.emUsed)) && ((err257.instancePath === instancePath+"/" + i5+"/binding") || ((err257.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err257.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err257.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err257.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs31.push(err257);err257.emUsed = true;}}if(emErrs31.length){const err258 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs31},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires key"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}const emErrs32 = [];for(const err259 of vErrors){if(!err259.emUsed){emErrs32.push(err259);}}vErrors = emErrs32;errors = emErrs32.length;}var _valid31 = _errs303 === errors;valid138 = _valid31;}if(!valid138){const err260 = {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 = [err260];}else {vErrors.push(err260);}errors++;}const _errs305 = errors;let valid140 = true;const _errs306 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err261 = {};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}else {if(data101.type !== undefined){if("zeebe:taskDefinition" !== data101.type){const err262 = {};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}}}}var _valid32 = _errs306 === errors;errors = _errs305;if(vErrors !== null){if(_errs305){vErrors.length = _errs305;}else {vErrors = null;}}if(_valid32){const _errs308 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.property === undefined){const err263 = {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 = [err263];}else {vErrors.push(err263);}errors++;}if(data101.property !== undefined){let data106 = data101.property;if(!((data106 === "type") || (data106 === "retries"))){const err264 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.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 = [err264];}else {vErrors.push(err264);}errors++;}}}var _valid32 = _errs308 === errors;valid140 = _valid32;}if(!valid140){const err265 = {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 = [err265];}else {vErrors.push(err265);}errors++;}const _errs313 = errors;let valid143 = true;const _errs314 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err266 = {};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}else {if(data101.type !== undefined){if("zeebe:calledElement" !== data101.type){const err267 = {};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}}}var _valid33 = _errs314 === errors;errors = _errs313;if(vErrors !== null){if(_errs313){vErrors.length = _errs313;}else {vErrors = null;}}if(_valid33){const _errs316 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.property === undefined){const err268 = {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 = [err268];}else {vErrors.push(err268);}errors++;}if(data101.property !== undefined){if("processId" !== data101.property){const err269 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/properties/property/const",keyword:"const",params:{allowedValue: "processId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}}var _valid33 = _errs316 === errors;valid143 = _valid33;}if(!valid143){const err270 = {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 = [err270];}else {vErrors.push(err270);}errors++;}const _errs319 = errors;let valid146 = true;const _errs320 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err271 = {};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}else {if(data101.type !== undefined){if("zeebe:script" !== data101.type){const err272 = {};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}}}var _valid34 = _errs320 === errors;errors = _errs319;if(vErrors !== null){if(_errs319){vErrors.length = _errs319;}else {vErrors = null;}}if(_valid34){const _errs322 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.property === undefined){const err273 = {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 = [err273];}else {vErrors.push(err273);}errors++;}if(data101.property !== undefined){let data110 = data101.property;if(!((data110 === "expression") || (data110 === "resultVariable"))){const err274 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.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 = [err274];}else {vErrors.push(err274);}errors++;}}}var _valid34 = _errs322 === errors;valid146 = _valid34;}if(!valid146){const err275 = {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 = [err275];}else {vErrors.push(err275);}errors++;}const _errs325 = errors;let valid149 = true;const _errs326 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err276 = {};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}else {if(data101.type !== undefined){if("zeebe:formDefinition" !== data101.type){const err277 = {};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}}}var _valid35 = _errs326 === errors;errors = _errs325;if(vErrors !== null){if(_errs325){vErrors.length = _errs325;}else {vErrors = null;}}if(_valid35){const _errs328 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.property === undefined){const err278 = {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 = [err278];}else {vErrors.push(err278);}errors++;}if(data101.property !== undefined){let data112 = data101.property;if(!((data112 === "formId") || (data112 === "externalReference"))){const err279 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.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 = [err279];}else {vErrors.push(err279);}errors++;}}}var _valid35 = _errs328 === errors;valid149 = _valid35;}if(!valid149){const err280 = {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 = [err280];}else {vErrors.push(err280);}errors++;}const _errs331 = errors;let valid152 = true;const _errs332 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err281 = {};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}else {if(data101.type !== undefined){if("zeebe:calledDecision" !== data101.type){const err282 = {};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}}}var _valid36 = _errs332 === errors;errors = _errs331;if(vErrors !== null){if(_errs331){vErrors.length = _errs331;}else {vErrors = null;}}if(_valid36){const _errs334 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.property === undefined){const err283 = {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 = [err283];}else {vErrors.push(err283);}errors++;}if(data101.property !== undefined){let data114 = data101.property;if(!((data114 === "decisionId") || (data114 === "resultVariable"))){const err284 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.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 = [err284];}else {vErrors.push(err284);}errors++;}}}var _valid36 = _errs334 === errors;valid152 = _valid36;}if(!valid152){const err285 = {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 = [err285];}else {vErrors.push(err285);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.type === undefined){const err286 = {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 = [err286];}else {vErrors.push(err286);}errors++;}if(data101.type !== undefined){let data115 = data101.type;if(typeof data115 !== "string"){const err287 = {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 = [err287];}else {vErrors.push(err287);}errors++;}if(!(((((((((((((((data115 === "property") || (data115 === "zeebe:taskDefinition:type")) || (data115 === "zeebe:input")) || (data115 === "zeebe:output")) || (data115 === "zeebe:property")) || (data115 === "zeebe:taskHeader")) || (data115 === "bpmn:Message#property")) || (data115 === "bpmn:Message#zeebe:subscription#property")) || (data115 === "zeebe:taskDefinition")) || (data115 === "zeebe:calledElement")) || (data115 === "zeebe:linkedResource")) || (data115 === "zeebe:userTask")) || (data115 === "zeebe:formDefinition")) || (data115 === "zeebe:calledDecision")) || (data115 === "zeebe:script"))){const err288 = {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 = [err288];}else {vErrors.push(err288);}errors++;}if(errors > 0){const emErrs33 = [];for(const err289 of vErrors){if(((((err289.keyword !== "errorMessage") && (!err289.emUsed)) && ((err289.instancePath === instancePath+"/" + i5+"/binding/type") || ((err289.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err289.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err289.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err289.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs33.push(err289);err289.emUsed = true;}}if(emErrs33.length){const err290 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs33},message:"invalid property.binding type " + JSON.stringify(data115) + "; 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 }"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}const emErrs34 = [];for(const err291 of vErrors){if(!err291.emUsed){emErrs34.push(err291);}}vErrors = emErrs34;errors = emErrs34.length;}}if(data101.name !== undefined){if(typeof data101.name !== "string"){const err292 = {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 = [err292];}else {vErrors.push(err292);}errors++;}}if(data101.source !== undefined){if(typeof data101.source !== "string"){const err293 = {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 = [err293];}else {vErrors.push(err293);}errors++;}}if(data101.key !== undefined){if(typeof data101.key !== "string"){const err294 = {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 = [err294];}else {vErrors.push(err294);}errors++;}}if(data101.property !== undefined){if(typeof data101.property !== "string"){const err295 = {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 = [err295];}else {vErrors.push(err295);}errors++;}}if(data101.linkName !== undefined){if(typeof data101.linkName !== "string"){const err296 = {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 = [err296];}else {vErrors.push(err296);}errors++;}}}else {const err297 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}}if(data42.optional !== undefined){if(typeof data42.optional !== "boolean"){const err298 = {instancePath:instancePath+"/" + i5+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}if(data42.feel !== undefined){let data122 = data42.feel;if(typeof data122 !== "string"){const err299 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}if(!(((data122 === "optional") || (data122 === "required")) || (data122 === "static"))){const err300 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}}if(data42.language !== undefined){if(typeof data42.language !== "string"){const err301 = {instancePath:instancePath+"/" + i5+"/language",schemaPath:"#/allOf/1/items/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}if(data42.generatedValue !== undefined){let data124 = data42.generatedValue;if(data124 && typeof data124 == "object" && !Array.isArray(data124)){if(data124.type === undefined){const err302 = {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 = [err302];}else {vErrors.push(err302);}errors++;}if(data124.type !== undefined){if("uuid" !== data124.type){const err303 = {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 = [err303];}else {vErrors.push(err303);}errors++;}}}else {const err304 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}}if(data42.tooltip !== undefined){if(typeof data42.tooltip !== "string"){const err305 = {instancePath:instancePath+"/" + i5+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}}}else {const err306 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}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 err307 of vErrors){if((((((err307.keyword !== "errorMessage") && (!err307.emUsed)) && (err307.instancePath === instancePath+"/" + i5)) && (err307.keyword in emErrors3)) && (err307.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err307.schemaPath.slice(15)))){emPropParams2 = obj0[err307.keyword];emParamsErrors2 = emErrors3[err307.keyword][err307.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err307);err307.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 err308 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}}const emErrs35 = [];for(const err309 of vErrors){if(!err309.emUsed){emErrs35.push(err309);}}vErrors = emErrs35;errors = emErrs35.length;}}}else {const err310 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}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.name !== undefined){if(typeof data.name !== "string"){const err4 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {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 = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {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 = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0.test(data7)){const err11 = {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 = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {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 = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1.test(data9)){const err13 = {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 = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.instancePath === instancePath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {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 = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1.test(data11)){const err20 = {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 = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {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 = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.instancePath === instancePath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {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 = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.instancePath === instancePath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.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 err27 = {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 = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.keywords !== undefined){let data13 = data.keywords;if(Array.isArray(data13)){const len1 = data13.length;for(let i1=0; i1<len1; i1++){if(typeof data13[i1] !== "string"){const err30 = {instancePath:instancePath+"/keywords/" + i1,schemaPath:"#/allOf/0/properties/keywords/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}else {const err31 = {instancePath:instancePath+"/keywords",schemaPath:"#/allOf/0/properties/keywords/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err32 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};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;}}}var _valid4 = _errs85 === errors;valid35 = _valid4;}if(!valid35){const err85 = {instancePath,schemaPath:"#/allOf/1/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}const _errs93 = errors;let valid44 = true;const _errs94 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {if(data.properties !== undefined){let data42 = data.properties;if(Array.isArray(data42)){const _errs96 = errors;const len6 = data42.length;for(let i6=0; i6<len6; i6++){let data43 = data42[i6];const _errs97 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.binding === undefined) && ("binding")){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {if(data43.binding !== undefined){let data44 = data43.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.type === undefined) && ("type")){const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}else {if(data44.type !== undefined){if("zeebe:userTask" !== data44.type){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}}}}}var valid46 = _errs97 === errors;if(valid46){break;}}if(!valid46){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}else {errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}}}}}}var _valid6 = _errs94 === errors;errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}if(_valid6){const _errs100 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err91 = {instancePath,schemaPath:"#/allOf/1/allOf/3/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data.elementType !== undefined){let data46 = data.elementType;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.value === undefined){const err92 = {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 = [err92];}else {vErrors.push(err92);}errors++;}if(data46.value !== undefined){if("bpmn:UserTask" !== data46.value){const err93 = {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 = [err93];}else {vErrors.push(err93);}errors++;}}}}}var _valid6 = _errs100 === errors;valid44 = _valid6;}if(!valid44){const err94 = {instancePath,schemaPath:"#/allOf/1/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const _errs104 = errors;let valid51 = true;const _errs105 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {if(data.properties !== undefined){let data48 = data.properties;if(Array.isArray(data48)){const _errs107 = errors;const len7 = data48.length;for(let i7=0; i7<len7; i7++){let data49 = data48[i7];const _errs108 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.binding === undefined) && ("binding")){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {if(data49.binding !== undefined){let data50 = data49.binding;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data50.type !== undefined){if("zeebe:formDefinition" !== data50.type){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}}}}}var valid53 = _errs108 === errors;if(valid53){break;}}if(!valid53){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}else {errors = _errs107;if(vErrors !== null){if(_errs107){vErrors.length = _errs107;}else {vErrors = null;}}}}}}}var _valid7 = _errs105 === errors;errors = _errs104;if(vErrors !== null){if(_errs104){vErrors.length = _errs104;}else {vErrors = null;}}if(_valid7){const _errs111 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err100 = {instancePath,schemaPath:"#/allOf/1/allOf/4/then/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(data.properties !== undefined){let data52 = data.properties;if(Array.isArray(data52)){const _errs114 = errors;const len8 = data52.length;for(let i8=0; i8<len8; i8++){let data53 = data52[i8];const _errs115 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.binding === undefined){const err101 = {instancePath:instancePath+"/properties/" + i8,schemaPath:"#/allOf/1/allOf/4/then/allOf/0/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(data53.binding !== undefined){let data54 = data53.binding;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.type === undefined){const err102 = {instancePath:instancePath+"/properties/" + i8+"/binding",schemaPath:"#/allOf/1/allOf/4/then/allOf/0/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data54.type !== undefined){if("zeebe:userTask" !== data54.type){const err103 = {instancePath:instancePath+"/properties/" + i8+"/binding/type",schemaPath:"#/allOf/1/allOf/4/then/allOf/0/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:userTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}}var valid58 = _errs115 === errors;if(valid58){break;}}if(!valid58){const err104 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/4/then/allOf/0/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}else {errors = _errs114;if(vErrors !== null){if(_errs114){vErrors.length = _errs114;}else {vErrors = null;}}}}}}if(errors > 0){const emErrs6 = [];for(const err105 of vErrors){if(((((err105.keyword !== "errorMessage") && (!err105.emUsed)) && ((err105.instancePath === instancePath) || ((err105.instancePath.indexOf(instancePath) === 0) && (err105.instancePath[instancePath.length] === "/")))) && (err105.schemaPath.indexOf("#/allOf/1/allOf/4/then/allOf/0") === 0)) && (err105.schemaPath["#/allOf/1/allOf/4/then/allOf/0".length] === "/")){emErrs6.push(err105);err105.emUsed = true;}}if(emErrs6.length){const err106 = {instancePath,schemaPath:"#/allOf/1/allOf/4/then/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emErrs6},message:"When using \"zeebe:formDefinition\", \"zeebe:userTask\" must be set on the same element"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const emErrs7 = [];for(const err107 of vErrors){if(!err107.emUsed){emErrs7.push(err107);}}vErrors = emErrs7;errors = emErrs7.length;}var _valid7 = _errs111 === errors;valid51 = _valid7;}if(!valid51){const err108 = {instancePath,schemaPath:"#/allOf/1/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}const _errs119 = errors;let valid61 = true;const _errs120 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}else {if(data.properties !== undefined){let data56 = data.properties;if(Array.isArray(data56)){const _errs122 = errors;const len9 = data56.length;for(let i9=0; i9<len9; i9++){let data57 = data56[i9];const _errs123 = errors;if(data57 && typeof data57 == "object" && !Array.isArray(data57)){if((data57.binding === undefined) && ("binding")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}else {if(data57.binding !== undefined){let data58 = data57.binding;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {if(data58.type !== undefined){if("zeebe:calledDecision" !== data58.type){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}}}}var valid63 = _errs123 === errors;if(valid63){break;}}if(!valid63){const err113 = {};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs122;if(vErrors !== null){if(_errs122){vErrors.length = _errs122;}else {vErrors = null;}}}}}}}var _valid8 = _errs120 === errors;errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}if(_valid8){const _errs126 = errors;const _errs127 = errors;let valid66 = false;const _errs128 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err114 = {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 = [err114];}else {vErrors.push(err114);}errors++;}if(data.elementType !== undefined){let data60 = data.elementType;if(data60 && typeof data60 == "object" && !Array.isArray(data60)){if(data60.value === undefined){const err115 = {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 = [err115];}else {vErrors.push(err115);}errors++;}if(data60.value !== undefined){if("bpmn:BusinessRuleTask" !== data60.value){const err116 = {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 = [err116];}else {vErrors.push(err116);}errors++;}}}}}var _valid9 = _errs128 === errors;valid66 = valid66 || _valid9;if(!valid66){const _errs131 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err117 = {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 = [err117];}else {vErrors.push(err117);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[5].then.anyOf[1].properties.appliesTo.const)){const err118 = {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 = [err118];}else {vErrors.push(err118);}errors++;}}}var _valid9 = _errs131 === errors;valid66 = valid66 || _valid9;}if(!valid66){const err119 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}else {errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data63 = data.properties;if(Array.isArray(data63)){const _errs135 = errors;const len10 = data63.length;for(let i10=0; i10<len10; i10++){let data64 = data63[i10];const _errs136 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if(data64.binding === undefined){const err120 = {instancePath:instancePath+"/properties/" + i10,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 = [err120];}else {vErrors.push(err120);}errors++;}if(data64.binding !== undefined){let data65 = data64.binding;if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.property === undefined){const err121 = {instancePath:instancePath+"/properties/" + i10+"/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 = [err121];}else {vErrors.push(err121);}errors++;}if(data65.property !== undefined){if("decisionId" !== data65.property){const err122 = {instancePath:instancePath+"/properties/" + i10+"/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 = [err122];}else {vErrors.push(err122);}errors++;}if(errors > 0){const emErrs8 = [];for(const err123 of vErrors){if(((((err123.keyword !== "errorMessage") && (!err123.emUsed)) && ((err123.instancePath === instancePath+"/properties/" + i10+"/binding/property") || ((err123.instancePath.indexOf(instancePath+"/properties/" + i10+"/binding/property") === 0) && (err123.instancePath[instancePath+"/properties/" + i10+"/binding/property".length] === "/")))) && (err123.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property") === 0)) && (err123.schemaPath["#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property".length] === "/")){emErrs8.push(err123);err123.emUsed = true;}}if(emErrs8.length){const err124 = {instancePath:instancePath+"/properties/" + i10+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs8},message:"Binding type \"zeebe:calledDecision\" must contain property \"decisionId\""};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}const emErrs9 = [];for(const err125 of vErrors){if(!err125.emUsed){emErrs9.push(err125);}}vErrors = emErrs9;errors = emErrs9.length;}}}}}var valid72 = _errs136 === errors;if(valid72){break;}}if(!valid72){const err126 = {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 = [err126];}else {vErrors.push(err126);}errors++;}else {errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data67 = data.properties;if(Array.isArray(data67)){const _errs141 = errors;const len11 = data67.length;for(let i11=0; i11<len11; i11++){let data68 = data67[i11];const _errs142 = errors;if(data68 && typeof data68 == "object" && !Array.isArray(data68)){if(data68.binding === undefined){const err127 = {instancePath:instancePath+"/properties/" + i11,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 = [err127];}else {vErrors.push(err127);}errors++;}if(data68.binding !== undefined){let data69 = data68.binding;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if(data69.property === undefined){const err128 = {instancePath:instancePath+"/properties/" + i11+"/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 = [err128];}else {vErrors.push(err128);}errors++;}if(data69.property !== undefined){if("resultVariable" !== data69.property){const err129 = {instancePath:instancePath+"/properties/" + i11+"/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 = [err129];}else {vErrors.push(err129);}errors++;}if(errors > 0){const emErrs10 = [];for(const err130 of vErrors){if(((((err130.keyword !== "errorMessage") && (!err130.emUsed)) && ((err130.instancePath === instancePath+"/properties/" + i11+"/binding/property") || ((err130.instancePath.indexOf(instancePath+"/properties/" + i11+"/binding/property") === 0) && (err130.instancePath[instancePath+"/properties/" + i11+"/binding/property".length] === "/")))) && (err130.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property") === 0)) && (err130.schemaPath["#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property".length] === "/")){emErrs10.push(err130);err130.emUsed = true;}}if(emErrs10.length){const err131 = {instancePath:instancePath+"/properties/" + i11+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs10},message:"Binding type \"zeebe:calledDecision\" must contain property \"resultVariable\""};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}const emErrs11 = [];for(const err132 of vErrors){if(!err132.emUsed){emErrs11.push(err132);}}vErrors = emErrs11;errors = emErrs11.length;}}}}}var valid76 = _errs142 === errors;if(valid76){break;}}if(!valid76){const err133 = {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 = [err133];}else {vErrors.push(err133);}errors++;}else {errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}}}}}const _errs146 = errors;const _errs147 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {if(data.properties !== undefined){let data71 = data.properties;if(Array.isArray(data71)){const _errs149 = errors;const len12 = data71.length;for(let i12=0; i12<len12; i12++){let data72 = data71[i12];const _errs150 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if((data72.binding === undefined) && ("binding")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {if(data72.binding !== undefined){let data73 = data72.binding;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if((data73.type === undefined) && ("type")){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {if(data73.type !== undefined){let data74 = data73.type;if(!((data74 === "zeebe:taskDefinition") || (data74 === "zeebe:taskDefinition:type"))){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}}}}}}var valid81 = _errs150 === errors;if(valid81){break;}}if(!valid81){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {errors = _errs149;if(vErrors !== null){if(_errs149){vErrors.length = _errs149;}else {vErrors = null;}}}}}}}var valid79 = _errs147 === errors;if(valid79){const err139 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}}if(errors > 0){const emErrs12 = [];for(const err140 of vErrors){if(((((err140.keyword !== "errorMessage") && (!err140.emUsed)) && ((err140.instancePath === instancePath) || ((err140.instancePath.indexOf(instancePath) === 0) && (err140.instancePath[instancePath.length] === "/")))) && (err140.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/2") === 0)) && (err140.schemaPath["#/allOf/1/allOf/5/then/allOf/2".length] === "/")){emErrs12.push(err140);err140.emUsed = true;}}if(emErrs12.length){const err141 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/allOf/2/errorMessage",keyword:"errorMessage",params:{errors: emErrs12},message:"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:calledDecision\" is set."};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;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err143 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}var _valid8 = _errs126 === errors;valid61 = _valid8;}if(!valid61){const err144 = {instancePath,schemaPath:"#/allOf/1/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const _errs154 = errors;let valid84 = true;const _errs155 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data.properties !== undefined){let data75 = data.properties;if(Array.isArray(data75)){const _errs157 = errors;const len13 = data75.length;for(let i13=0; i13<len13; i13++){let data76 = data75[i13];const _errs158 = errors;if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if((data76.binding === undefined) && ("binding")){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}else {if(data76.binding !== undefined){let data77 = data76.binding;if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if((data77.type === undefined) && ("type")){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}else {if(data77.type !== undefined){if("zeebe:script" !== data77.type){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}}}}}var valid86 = _errs158 === errors;if(valid86){break;}}if(!valid86){const err149 = {};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}else {errors = _errs157;if(vErrors !== null){if(_errs157){vErrors.length = _errs157;}else {vErrors = null;}}}}}}}var _valid10 = _errs155 === errors;errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}if(_valid10){const _errs161 = errors;const _errs162 = errors;let valid89 = false;const _errs163 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err150 = {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 = [err150];}else {vErrors.push(err150);}errors++;}if(data.elementType !== undefined){let data79 = data.elementType;if(data79 && typeof data79 == "object" && !Array.isArray(data79)){if(data79.value === undefined){const err151 = {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 = [err151];}else {vErrors.push(err151);}errors++;}if(data79.value !== undefined){if("bpmn:ScriptTask" !== data79.value){const err152 = {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 = [err152];}else {vErrors.push(err152);}errors++;}}}}}var _valid11 = _errs163 === errors;valid89 = valid89 || _valid11;if(!valid89){const _errs166 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err153 = {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 = [err153];}else {vErrors.push(err153);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[6].then.anyOf[1].properties.appliesTo.const)){const err154 = {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 = [err154];}else {vErrors.push(err154);}errors++;}}}var _valid11 = _errs166 === errors;valid89 = valid89 || _valid11;}if(!valid89){const err155 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}else {errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data82 = data.properties;if(Array.isArray(data82)){const _errs170 = errors;const len14 = data82.length;for(let i14=0; i14<len14; i14++){let data83 = data82[i14];const _errs171 = errors;if(data83 && typeof data83 == "object" && !Array.isArray(data83)){if(data83.binding === undefined){const err156 = {instancePath:instancePath+"/properties/" + i14,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 = [err156];}else {vErrors.push(err156);}errors++;}if(data83.binding !== undefined){let data84 = data83.binding;if(data84 && typeof data84 == "object" && !Array.isArray(data84)){if(data84.property === undefined){const err157 = {instancePath:instancePath+"/properties/" + i14+"/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 = [err157];}else {vErrors.push(err157);}errors++;}if(data84.property !== undefined){if("expression" !== data84.property){const err158 = {instancePath:instancePath+"/properties/" + i14+"/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 = [err158];}else {vErrors.push(err158);}errors++;}}}}}var valid95 = _errs171 === errors;if(valid95){break;}}if(!valid95){const err159 = {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 = [err159];}else {vErrors.push(err159);}errors++;}else {errors = _errs170;if(vErrors !== null){if(_errs170){vErrors.length = _errs170;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data86 = data.properties;if(Array.isArray(data86)){const _errs176 = errors;const len15 = data86.length;for(let i15=0; i15<len15; i15++){let data87 = data86[i15];const _errs177 = errors;if(data87 && typeof data87 == "object" && !Array.isArray(data87)){if(data87.binding === undefined){const err160 = {instancePath:instancePath+"/properties/" + i15,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 = [err160];}else {vErrors.push(err160);}errors++;}if(data87.binding !== undefined){let data88 = data87.binding;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.property === undefined){const err161 = {instancePath:instancePath+"/properties/" + i15+"/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 = [err161];}else {vErrors.push(err161);}errors++;}if(data88.property !== undefined){if("resultVariable" !== data88.property){const err162 = {instancePath:instancePath+"/properties/" + i15+"/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 = [err162];}else {vErrors.push(err162);}errors++;}}}}}var valid99 = _errs177 === errors;if(valid99){break;}}if(!valid99){const err163 = {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 = [err163];}else {vErrors.push(err163);}errors++;}else {errors = _errs176;if(vErrors !== null){if(_errs176){vErrors.length = _errs176;}else {vErrors = null;}}}}}}const _errs181 = errors;const _errs182 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}else {if(data.properties !== undefined){let data90 = data.properties;if(Array.isArray(data90)){const _errs184 = errors;const len16 = data90.length;for(let i16=0; i16<len16; i16++){let data91 = data90[i16];const _errs185 = errors;if(data91 && typeof data91 == "object" && !Array.isArray(data91)){if((data91.binding === undefined) && ("binding")){const err165 = {};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}else {if(data91.binding !== undefined){let data92 = data91.binding;if(data92 && typeof data92 == "object" && !Array.isArray(data92)){if((data92.type === undefined) && ("type")){const err166 = {};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}else {if(data92.type !== undefined){let data93 = data92.type;if(!((data93 === "zeebe:taskDefinition") || (data93 === "zeebe:taskDefinition:type"))){const err167 = {};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}}}}}}}var valid104 = _errs185 === errors;if(valid104){break;}}if(!valid104){const err168 = {};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}else {errors = _errs184;if(vErrors !== null){if(_errs184){vErrors.length = _errs184;}else {vErrors = null;}}}}}}}var valid102 = _errs182 === errors;if(valid102){const err169 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/allOf/2/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {errors = _errs181;if(vErrors !== null){if(_errs181){vErrors.length = _errs181;}else {vErrors = null;}}}if(errors > 0){const emErrs14 = [];for(const err170 of vErrors){if(((((err170.keyword !== "errorMessage") && (!err170.emUsed)) && ((err170.instancePath === instancePath) || ((err170.instancePath.indexOf(instancePath) === 0) && (err170.instancePath[instancePath.length] === "/")))) && (err170.schemaPath.indexOf("#/allOf/1/allOf/6/then/allOf/2") === 0)) && (err170.schemaPath["#/allOf/1/allOf/6/then/allOf/2".length] === "/")){emErrs14.push(err170);err170.emUsed = true;}}if(emErrs14.length){const err171 = {instancePath,schemaPath:"#/allOf/1/allOf/6/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:script\" is set."};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}const emErrs15 = [];for(const err172 of vErrors){if(!err172.emUsed){emErrs15.push(err172);}}vErrors = emErrs15;errors = emErrs15.length;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err173 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}var _valid10 = _errs161 === errors;valid84 = _valid10;}if(!valid84){const err174 = {instancePath,schemaPath:"#/allOf/1/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}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 data95 = data.engines;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.camunda !== undefined){if(typeof data95.camunda !== "string"){const err175 = {instancePath:instancePath+"/engines/camunda",schemaPath:"#/properties/engines/properties/camunda/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}}else {const err176 = {instancePath:instancePath+"/engines",schemaPath:"#/properties/engines/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(data.category !== undefined){let data97 = data.category;if(data97 && typeof data97 == "object" && !Array.isArray(data97)){if(data97.id === undefined){const err177 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(data97.name === undefined){const err178 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}if(data97.id !== undefined){if(typeof data97.id !== "string"){const err179 = {instancePath:instancePath+"/category/id",schemaPath:"#/properties/category/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(data97.name !== undefined){if(typeof data97.name !== "string"){const err180 = {instancePath:instancePath+"/category/name",schemaPath:"#/properties/category/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}else {const err181 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}if(data.icon !== undefined){let data100 = data.icon;if(data100 && typeof data100 == "object" && !Array.isArray(data100)){if(data100.contents === undefined){const err182 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/required",keyword:"required",params:{missingProperty: "contents"},message:"must have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}if(data100.contents !== undefined){let data101 = data100.contents;if(typeof data101 === "string"){if(!pattern4.test(data101)){const err183 = {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 = [err183];}else {vErrors.push(err183);}errors++;}}else {const err184 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err185 of vErrors){if((((((err185.keyword !== "errorMessage") && (!err185.emUsed)) && (err185.instancePath === instancePath+"/icon/contents")) && (err185.keyword in emErrors6)) && (err185.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err185.schemaPath.slice(37)))){emErrors6[err185.keyword].push(err185);err185.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err186 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",keyword:"errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema17.properties.icon.properties.contents.errorMessage[key6]};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}const emErrs16 = [];for(const err187 of vErrors){if(!err187.emUsed){emErrs16.push(err187);}}vErrors = emErrs16;errors = emErrs16.length;}}}else {const err188 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/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":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err189 of vErrors){if((((((err189.keyword !== "errorMessage") && (!err189.emUsed)) && (err189.instancePath === instancePath+"/icon")) && (err189.keyword in emErrors7)) && (err189.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err189.schemaPath.slice(17)))){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+"/icon",schemaPath:"#/properties/icon/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.icon.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}}const emErrs17 = [];for(const err191 of vErrors){if(!err191.emUsed){emErrs17.push(err191);}}vErrors = emErrs17;errors = emErrs17.length;}}if(data.elementType !== undefined){let data102 = data.elementType;if(data102 && typeof data102 == "object" && !Array.isArray(data102)){if(data102.eventDefinition !== undefined){if(!(data102.eventDefinition === "bpmn:MessageEventDefinition")){const err192 = {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 = [err192];}else {vErrors.push(err192);}errors++;}}}const _errs208 = errors;let valid114 = true;const _errs209 = errors;if(data102 && typeof data102 == "object" && !Array.isArray(data102)){if((data102.eventDefinition === undefined) && ("eventDefinition")){const err193 = {};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}var _valid12 = _errs209 === errors;errors = _errs208;if(vErrors !== null){if(_errs208){vErrors.length = _errs208;}else {vErrors = null;}}if(_valid12){const _errs210 = errors;if(data102 && typeof data102 == "object" && !Array.isArray(data102)){if(data102.value === undefined){const err194 = {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 = [err194];}else {vErrors.push(err194);}errors++;}if(data102.value !== undefined){let data104 = data102.value;if(!(((((data104 === "bpmn:StartEvent") || (data104 === "bpmn:IntermediateCatchEvent")) || (data104 === "bpmn:IntermediateThrowEvent")) || (data104 === "bpmn:BoundaryEvent")) || (data104 === "bpmn:EndEvent"))){const err195 = {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 = [err195];}else {vErrors.push(err195);}errors++;}}}var _valid12 = _errs210 === errors;valid114 = _valid12;}if(!valid114){const err196 = {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 = [err196];}else {vErrors.push(err196);}errors++;}}if(data.groups !== undefined){let data105 = data.groups;if(Array.isArray(data105)){const len17 = data105.length;for(let i17=0; i17<len17; i17++){let data106 = data105[i17];if(data106 && typeof data106 == "object" && !Array.isArray(data106)){if(data106.tooltip !== undefined){if(typeof data106.tooltip !== "string"){const err197 = {instancePath:instancePath+"/groups/" + i17+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}if(data106.openByDefault !== undefined){if(typeof data106.openByDefault !== "boolean"){const err198 = {instancePath:instancePath+"/groups/" + i17+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}}}}}}else {const err199 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}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;}
|
720
|
+
standaloneZeebeValidator.exports = validate14;standaloneZeebeValidator.exports.default = validate14;const schema17 = {"type":"object","allOf":[{"required":["name","id","appliesTo","properties"],"properties":{"name":{"$id":"#/name","type":"string","description":"The name of the element template."},"id":{"$id":"#/id","type":"string","description":"The identifier of the element template."},"description":{"$id":"#/description","type":"string","description":"The description of the element template."},"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 version is different."},"isDefault":{"$id":"#/isDefault","type":"boolean","description":"Indicates whether the element template is a default template."},"deprecated":{"$id":"#/deprecated","type":["boolean","object"],"description":"Indicates whether the element template is deprecated.","properties":{"message":{"$id":"#/deprecated/message","type":"string","description":"Optional message to describe migration path."},"documentationRef":{"$id":"#/deprecated/documentationRef","type":"string","pattern":"^(https|http)://.*","description":"Optional link to migration documentation."}}},"appliesTo":{"$id":"#/appliesTo","type":"array","description":"List of BPMN types the template can be applied to.","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":"The BPMN type the element will be transformed into.","default":{},"required":["value"],"properties":{"value":{"$id":"#/elementType/value","type":"string","pattern":"^[\\w\\d]+:[\\w\\d]+$","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 describe the element template.","default":[]},"entriesVisible":{"$id":"#/entriesVisible","type":"boolean","description":"Select whether non-template entries are visible in the properties panel."},"groups":{"$id":"#/groups","type":"array","description":"Custom fields can be ordered together via groups.","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":"The id of the custom group"},"label":{"$id":"#/groups/group/label","type":"string","description":"The label of the custom group"}},"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"]}}}]}},{"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":{"const":"zeebe:formDefinition"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"]},"then":{"allOf":[{"properties":{"properties":{"contains":{"properties":{"binding":{"properties":{"type":{"const":"zeebe:userTask"}},"required":["type"]}},"required":["binding"]}}},"required":["properties"],"errorMessage":"When using \"zeebe:formDefinition\", \"zeebe:userTask\" must be set on the same element"}]}},{"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."}]}},{"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":{"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"]}}}}}}]}],"properties":{"properties":{"$ref":"#/definitions/properties","$id":"#/properties"},"engines":{"$id":"#/engines","type":"object","description":"Defines the compatibility of this element template with different engines. Keys are engine names, values are semantic version ranges.","default":{},"examples":[{"camunda":"^8.5"}],"properties":{"camunda":{"$id":"#/engines/camunda","type":"string","description":"A semantic version range that denotes compatible Camunda versions.","default":""}}},"category":{"$id":"#/category","type":"object","description":"A custom category to semantically group element templates","default":{},"example":{"id":"custom-category","name":"Custom Category"},"properties":{"id":{"$id":"#/category/id","type":"string","description":"The unique identifier of the category."},"name":{"$id":"#/category/name","type":"string","description":"The name of the category."}},"required":["id","name"]},"icon":{"$id":"#/icon","type":"object","description":"Custom icon to be shown on the element","default":{},"properties":{"contents":{"$id":"#/icon/contents","type":"string","description":"The URL of an icon.","pattern":"^(https?|data):.*","errorMessage":{"pattern":"Malformed icon source, must be a valid HTTP(s) or data URL"}}},"required":["contents"],"errorMessage":{"required":{"contents":"missing icon contents"}}},"elementType":{"allOf":[{"allOf":[{"properties":{"eventDefinition":{"$id":"#/elementType/eventDefinition","enum":["bpmn:MessageEventDefinition"]}}},{"if":{"required":["eventDefinition"]},"then":{"properties":{"value":{"enum":["bpmn:StartEvent","bpmn:IntermediateCatchEvent","bpmn:IntermediateThrowEvent","bpmn:BoundaryEvent","bpmn:EndEvent"]}},"required":["value"]}}]}]},"groups":{"items":{"properties":{"tooltip":{"$id":"#/groups/group/tooltip","type":"string"},"openByDefault":{"$id":"#/groups/group/openByDefault","type":"boolean","description":"Specifies whether the Group should be opened when first viewed. Defaults to true.","default":true}}}}}};const pattern0 = new RegExp("^(https|http)://.*", "u");const pattern1 = new RegExp("^[\\w\\d]+:[\\w\\d]+$", "u");const pattern4 = new RegExp("^(https?|data):.*", "u");const obj0 = {"required":"missingProperty","dependencies":"property","dependentRequired":"property"};const func0 = requireEqual().default;const schema18 = {"allOf":[{"type":"array","description":"List of properties of the element template.","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":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"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."},"condition":{"type":"object","description":"Condition(s) to activate the binding.","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}},"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"}}},"else":{"not":{"required":["placeholder"]}}}],"properties":{"value":{"$id":"#/properties/property/value","type":["string","number","boolean"],"description":"The value of a control field."},"description":{"$id":"#/properties/property/description","type":"string","description":"The description of a control field."},"label":{"$id":"#/properties/property/label","type":"string","description":"The label of a control field."},"type":{"$id":"#/properties/property/type","type":"string","description":"The type of a control field."},"editable":{"$id":"#/properties/property/editable","type":"boolean","description":"Indicates whether a control field is editable or not."},"choices":{"$id":"#/properties/property/choices","type":"array","description":"The choices for dropdown fields.","default":[],"items":{"$id":"#/properties/property/choices/item","type":"object","default":{},"properties":{"name":{"$id":"#/properties/property/choices/item/name","type":"string","description":"The name of a choice."},"value":{"$id":"#/properties/property/choices/item/value","type":"string","description":"The value of a choice."},"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":"The validation constraints of a control field.","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":"A regular expression pattern for a constraint.","oneOf":[{"type":"object","default":{},"properties":{"value":{"$id":"#/properties/property/constraints/pattern/value","type":"string","description":"The regular expression of a pattern."},"message":{"$id":"#/properties/property/constraints/pattern/message","type":"string","description":"The validation message of a pattern."}}},{"type":"string"}]}}},"group":{"$id":"#/properties/property/group","type":"string","description":"The custom group of a control field."}}}},{"$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"]}},"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":{"type":"string"}}}},{"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"]}}}}],"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"]}},"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":{"const":"processId"}},"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"]}},"required":["property"]}},{"if":{"properties":{"type":{"const":"zeebe:calledDecision"}},"required":["type"]},"then":{"properties":{"property":{"enum":["decisionId","resultVariable"]}},"required":["property"]}},{"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"],"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 }"},"name":{"$id":"#/properties/property/binding/name","type":"string","description":"The name of a property binding."},"source":{"$id":"#/properties/property/binding/source","type":"string","description":"The source value of a property binding (zeebe:output)."},"key":{"$id":"#/properties/property/binding/key","type":"string","description":"The key value of a property binding (zeebe:taskHeader)."},"property":{"$id":"#/properties/property/binding/property","type":"string","description":"The name of the property defined in the binding."},"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":"Indicates whether the property can be a feel expression","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","required":["type"],"properties":{"type":{"const":"uuid"}},"description":"Sets property to a generated value according to given scheme."},"tooltip":{"$id":"#/properties/property/tooltip","type":"string","description":"Hints for the control field."}},"errorMessage":{"required":{"binding":"missing binding for property \"${0#}\""}}}}]};const schema19 = {"required":["property"],"properties":{"property":{"const":{"$data":"2/id"}}}};const schema20 = {"type":"object","required":["property"],"properties":{"type":{"$id":"#/condition/type","const":"simple","description":"The type of the condition.","default":"simple"},"property":{"$id":"#/condition/property","type":"string","description":"The id of the property to check."}},"oneOf":[{"properties":{"equals":{"type":["string","number","boolean"]}},"required":["equals"]},{"properties":{"oneOf":{"type":"array","items":{"type":["string","number"]}}},"required":["oneOf"]},{"properties":{"isActive":{"type":"boolean","description":"For `true`, activates the property when given property is active"}},"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: 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")) || (data45 === "Number"))){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, 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"))){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: 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(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: schema18.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: schema18.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: schema18.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: schema18.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){if(typeof data42.value !== "string"){const err156 = {instancePath:instancePath+"/" + i5+"/value",schemaPath:"#/allOf/1/items/allOf/9/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}}var _valid18 = _errs199 === errors;valid88 = _valid18;}if(!valid88){const err157 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/9/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}const _errs203 = errors;let valid91 = true;const _errs204 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err158 = {};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}else {if(data42.binding !== undefined){let data64 = data42.binding;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if((data64.type === undefined) && ("type")){const err159 = {};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}else {if(data64.type !== undefined){if("zeebe:linkedResource" !== data64.type){const err160 = {};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}}}}}var _valid19 = _errs204 === errors;errors = _errs203;if(vErrors !== null){if(_errs203){vErrors.length = _errs203;}else {vErrors = null;}}if(_valid19){const _errs207 = 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 err161 = {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 = [err161];}else {vErrors.push(err161);}errors++;}if(data66.property === undefined){const err162 = {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 = [err162];}else {vErrors.push(err162);}errors++;}if(data66.linkName !== undefined){if(typeof data66.linkName !== "string"){const err163 = {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 = [err163];}else {vErrors.push(err163);}errors++;}}if(data66.property !== undefined){let data68 = data66.property;if(!((((data68 === "resourceId") || (data68 === "resourceType")) || (data68 === "bindingType")) || (data68 === "versionTag"))){const err164 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/allOf/10/then/properties/binding/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.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 = [err164];}else {vErrors.push(err164);}errors++;}if(errors > 0){const emErrs19 = [];for(const err165 of vErrors){if(((((err165.keyword !== "errorMessage") && (!err165.emUsed)) && ((err165.instancePath === instancePath+"/" + i5+"/binding/property") || ((err165.instancePath.indexOf(instancePath+"/" + i5+"/binding/property") === 0) && (err165.instancePath[instancePath+"/" + i5+"/binding/property".length] === "/")))) && (err165.schemaPath.indexOf("#/allOf/1/items/allOf/10/then/properties/binding/properties/property") === 0)) && (err165.schemaPath["#/allOf/1/items/allOf/10/then/properties/binding/properties/property".length] === "/")){emErrs19.push(err165);err165.emUsed = true;}}if(emErrs19.length){const err166 = {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 = [err166];}else {vErrors.push(err166);}errors++;}const emErrs20 = [];for(const err167 of vErrors){if(!err167.emUsed){emErrs20.push(err167);}}vErrors = emErrs20;errors = emErrs20.length;}}}}}var _valid19 = _errs207 === errors;valid91 = _valid19;}if(!valid91){const err168 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/10/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}const _errs214 = errors;let valid97 = true;const _errs215 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.binding === undefined) && ("binding")) || ((data42.type === undefined) && ("type"))){const err169 = {};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {if(data42.binding !== undefined){let data69 = data42.binding;const _errs216 = errors;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if((data69.type === undefined) && ("type")){const err170 = {};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}else {if(data69.type !== undefined){let data70 = data69.type;if(!((data70 === "zeebe:input") || (data70 === "zeebe:output"))){const err171 = {};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}}var valid98 = _errs216 === errors;}else {var valid98 = true;}if(valid98){if(data42.type !== undefined){let data71 = data42.type;const _errs218 = errors;if(!((data71 === "Boolean") || (data71 === "Number"))){const err172 = {};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}var valid98 = _errs218 === errors;}else {var valid98 = true;}}}}var _valid20 = _errs215 === errors;errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}if(_valid20){const _errs219 = errors;var _valid20 = _errs219 === errors;valid97 = _valid20;}if(!valid97){const err173 = {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 = [err173];}else {vErrors.push(err173);}errors++;}const _errs221 = errors;let valid100 = true;const _errs222 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {if(data42.binding !== undefined){let data72 = data42.binding;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if((data72.type === undefined) && ("type")){const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {if(data72.type !== undefined){if("zeebe:userTask" !== data72.type){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}}}}}}var _valid21 = _errs222 === errors;errors = _errs221;if(vErrors !== null){if(_errs221){vErrors.length = _errs221;}else {vErrors = null;}}if(_valid21){const _errs225 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err177 = {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 = [err177];}else {vErrors.push(err177);}errors++;}if(data42.type !== undefined){if(!(data42.type === "Hidden")){const err178 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/12/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[12].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}var _valid21 = _errs225 === errors;valid100 = _valid21;}if(!valid100){const err179 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/12/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}const _errs228 = errors;let valid104 = true;const _errs229 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err180 = {};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}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 err181 = {};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}else {if(data75.type !== undefined){const _errs231 = errors;if("zeebe:formDefinition" !== data75.type){const err182 = {};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}var valid106 = _errs231 === errors;}else {var valid106 = true;}if(valid106){if(data75.property !== undefined){const _errs232 = errors;if("formId" !== data75.property){const err183 = {};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}var valid106 = _errs232 === errors;}else {var valid106 = true;}}}}}}}var _valid22 = _errs229 === errors;errors = _errs228;if(vErrors !== null){if(_errs228){vErrors.length = _errs228;}else {vErrors = null;}}if(_valid22){const _errs233 = errors;const _errs234 = errors;const _errs235 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err184 = {};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}var valid107 = _errs235 === errors;if(valid107){const err185 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/13/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}else {errors = _errs234;if(vErrors !== null){if(_errs234){vErrors.length = _errs234;}else {vErrors = null;}}}if(errors > 0){const emErrs21 = [];for(const err186 of vErrors){if(((((err186.keyword !== "errorMessage") && (!err186.emUsed)) && ((err186.instancePath === instancePath+"/" + i5) || ((err186.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err186.instancePath[instancePath+"/" + i5.length] === "/")))) && (err186.schemaPath.indexOf("#/allOf/1/items/allOf/13/then") === 0)) && (err186.schemaPath["#/allOf/1/items/allOf/13/then".length] === "/")){emErrs21.push(err186);err186.emUsed = true;}}if(emErrs21.length){const err187 = {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 = [err187];}else {vErrors.push(err187);}errors++;}const emErrs22 = [];for(const err188 of vErrors){if(!err188.emUsed){emErrs22.push(err188);}}vErrors = emErrs22;errors = emErrs22.length;}var _valid22 = _errs233 === errors;valid104 = _valid22;}if(!valid104){const err189 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/13/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}const _errs237 = errors;let valid108 = true;const _errs238 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err190 = {};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}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 err191 = {};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}else {if(data78.type !== undefined){const _errs240 = errors;if("zeebe:formDefinition" !== data78.type){const err192 = {};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}var valid110 = _errs240 === errors;}else {var valid110 = true;}if(valid110){if(data78.property !== undefined){let data80 = data78.property;const _errs241 = errors;if(!((data80 === "externalReference") || (data80 === "formId"))){const err193 = {};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var valid110 = _errs241 === errors;}else {var valid110 = true;}}}}}}}var _valid23 = _errs238 === errors;errors = _errs237;if(vErrors !== null){if(_errs237){vErrors.length = _errs237;}else {vErrors = null;}}if(_valid23){const _errs242 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err194 = {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 = [err194];}else {vErrors.push(err194);}errors++;}if(data42.type !== undefined){let data81 = data42.type;if(!((((data81 === "Hidden") || (data81 === "String")) || (data81 === "Text")) || (data81 === "Dropdown"))){const err195 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/14/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[14].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}}}var _valid23 = _errs242 === errors;valid108 = _valid23;}if(!valid108){const err196 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/14/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}const _errs245 = errors;let valid112 = true;const _errs246 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err197 = {};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}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 err198 = {};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}else {if(data82.type !== undefined){const _errs248 = errors;if("zeebe:calledDecision" !== data82.type){const err199 = {};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}var valid114 = _errs248 === errors;}else {var valid114 = true;}if(valid114){if(data82.property !== undefined){const _errs249 = errors;if("resultVariable" !== data82.property){const err200 = {};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}var valid114 = _errs249 === errors;}else {var valid114 = true;}}}}}}}var _valid24 = _errs246 === errors;errors = _errs245;if(vErrors !== null){if(_errs245){vErrors.length = _errs245;}else {vErrors = null;}}if(_valid24){const _errs250 = errors;const _errs251 = errors;const _errs252 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err201 = {};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}var valid115 = _errs252 === errors;if(valid115){const err202 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/15/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}else {errors = _errs251;if(vErrors !== null){if(_errs251){vErrors.length = _errs251;}else {vErrors = null;}}}if(errors > 0){const emErrs23 = [];for(const err203 of vErrors){if(((((err203.keyword !== "errorMessage") && (!err203.emUsed)) && ((err203.instancePath === instancePath+"/" + i5) || ((err203.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err203.instancePath[instancePath+"/" + i5.length] === "/")))) && (err203.schemaPath.indexOf("#/allOf/1/items/allOf/15/then") === 0)) && (err203.schemaPath["#/allOf/1/items/allOf/15/then".length] === "/")){emErrs23.push(err203);err203.emUsed = true;}}if(emErrs23.length){const err204 = {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 = [err204];}else {vErrors.push(err204);}errors++;}const emErrs24 = [];for(const err205 of vErrors){if(!err205.emUsed){emErrs24.push(err205);}}vErrors = emErrs24;errors = emErrs24.length;}var _valid24 = _errs250 === errors;valid112 = _valid24;}if(!valid112){const err206 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/15/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}const _errs254 = errors;let valid116 = true;const _errs255 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err207 = {};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}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 err208 = {};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}else {if(data85.type !== undefined){const _errs257 = errors;if("zeebe:calledDecision" !== data85.type){const err209 = {};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}var valid118 = _errs257 === errors;}else {var valid118 = true;}if(valid118){if(data85.property !== undefined){let data87 = data85.property;const _errs258 = errors;if(!((data87 === "resultVariable") || (data87 === "decisionId"))){const err210 = {};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}var valid118 = _errs258 === errors;}else {var valid118 = true;}}}}}}}var _valid25 = _errs255 === errors;errors = _errs254;if(vErrors !== null){if(_errs254){vErrors.length = _errs254;}else {vErrors = null;}}if(_valid25){const _errs259 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err211 = {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 = [err211];}else {vErrors.push(err211);}errors++;}if(data42.type !== undefined){let data88 = data42.type;if(!((((data88 === "Hidden") || (data88 === "String")) || (data88 === "Text")) || (data88 === "Dropdown"))){const err212 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/16/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[16].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}}var _valid25 = _errs259 === errors;valid116 = _valid25;}if(!valid116){const err213 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/16/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}const _errs262 = errors;let valid120 = true;const _errs263 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err214 = {};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}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 err215 = {};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}else {if(data89.type !== undefined){const _errs265 = errors;if("zeebe:script" !== data89.type){const err216 = {};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}var valid122 = _errs265 === errors;}else {var valid122 = true;}if(valid122){if(data89.property !== undefined){const _errs266 = errors;if("resultVariable" !== data89.property){const err217 = {};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}var valid122 = _errs266 === errors;}else {var valid122 = true;}}}}}}}var _valid26 = _errs263 === errors;errors = _errs262;if(vErrors !== null){if(_errs262){vErrors.length = _errs262;}else {vErrors = null;}}if(_valid26){const _errs267 = errors;const _errs268 = errors;const _errs269 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.feel === undefined) && ("feel")){const err218 = {};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}var valid123 = _errs269 === errors;if(valid123){const err219 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/17/then/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}else {errors = _errs268;if(vErrors !== null){if(_errs268){vErrors.length = _errs268;}else {vErrors = null;}}}if(errors > 0){const emErrs25 = [];for(const err220 of vErrors){if(((((err220.keyword !== "errorMessage") && (!err220.emUsed)) && ((err220.instancePath === instancePath+"/" + i5) || ((err220.instancePath.indexOf(instancePath+"/" + i5) === 0) && (err220.instancePath[instancePath+"/" + i5.length] === "/")))) && (err220.schemaPath.indexOf("#/allOf/1/items/allOf/17/then") === 0)) && (err220.schemaPath["#/allOf/1/items/allOf/17/then".length] === "/")){emErrs25.push(err220);err220.emUsed = true;}}if(emErrs25.length){const err221 = {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 = [err221];}else {vErrors.push(err221);}errors++;}const emErrs26 = [];for(const err222 of vErrors){if(!err222.emUsed){emErrs26.push(err222);}}vErrors = emErrs26;errors = emErrs26.length;}var _valid26 = _errs267 === errors;valid120 = _valid26;}if(!valid120){const err223 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/17/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}const _errs271 = errors;let valid124 = true;const _errs272 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(((data42.type === undefined) && ("type")) || ((data42.binding === undefined) && ("binding"))){const err224 = {};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {if(data42.type !== undefined){let data92 = data42.type;const _errs273 = errors;if(!((data92 === "String") || (data92 === "Text"))){const err225 = {};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}var valid125 = _errs273 === errors;}else {var valid125 = true;}if(valid125){if(data42.binding !== undefined){let data93 = data42.binding;const _errs274 = errors;if(data93 && typeof data93 == "object" && !Array.isArray(data93)){if(((data93.type === undefined) && ("type")) || ((data93.property === undefined) && ("property"))){const err226 = {};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}else {if(data93.type !== undefined){const _errs275 = errors;if("zeebe:script" !== data93.type){const err227 = {};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}var valid126 = _errs275 === errors;}else {var valid126 = true;}if(valid126){if(data93.property !== undefined){const _errs276 = errors;if("expression" !== data93.property){const err228 = {};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}var valid126 = _errs276 === errors;}else {var valid126 = true;}}}}var valid125 = _errs274 === errors;}else {var valid125 = true;}}}}var _valid27 = _errs272 === errors;errors = _errs271;if(vErrors !== null){if(_errs271){vErrors.length = _errs271;}else {vErrors = null;}}if(_valid27){const _errs277 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.feel === undefined){const err229 = {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 = [err229];}else {vErrors.push(err229);}errors++;}if(data42.feel !== undefined){if(!(data42.feel === "required")){const err230 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/allOf/18/then/properties/feel/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[18].then.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}var _valid27 = _errs277 === errors;valid124 = _valid27;}if(!valid124){const err231 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/18/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}const _errs280 = errors;let valid128 = true;const _errs281 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if((data42.binding === undefined) && ("binding")){const err232 = {};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}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 err233 = {};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}else {if(data97.type !== undefined){const _errs283 = errors;if("zeebe:script" !== data97.type){const err234 = {};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}var valid130 = _errs283 === errors;}else {var valid130 = true;}if(valid130){if(data97.property !== undefined){let data99 = data97.property;const _errs284 = errors;if(!((data99 === "resultVariable") || (data99 === "expression"))){const err235 = {};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}var valid130 = _errs284 === errors;}else {var valid130 = true;}}}}}}}var _valid28 = _errs281 === errors;errors = _errs280;if(vErrors !== null){if(_errs280){vErrors.length = _errs280;}else {vErrors = null;}}if(_valid28){const _errs285 = errors;if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.type === undefined){const err236 = {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 = [err236];}else {vErrors.push(err236);}errors++;}if(data42.type !== undefined){let data100 = data42.type;if(!((((data100 === "Hidden") || (data100 === "String")) || (data100 === "Text")) || (data100 === "Dropdown"))){const err237 = {instancePath:instancePath+"/" + i5+"/type",schemaPath:"#/allOf/1/items/allOf/19/then/properties/type/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.allOf[19].then.properties.type.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}}var _valid28 = _errs285 === errors;valid128 = _valid28;}if(!valid128){const err238 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/allOf/19/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}if(data42 && typeof data42 == "object" && !Array.isArray(data42)){if(data42.binding === undefined){const err239 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if(data42.binding !== undefined){let data101 = data42.binding;const _errs290 = errors;let valid134 = true;const _errs291 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err240 = {};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}else {if(data101.type !== undefined){let data102 = data101.type;if(!(((((data102 === "property") || (data102 === "zeebe:property")) || (data102 === "zeebe:input")) || (data102 === "bpmn:Message#property")) || (data102 === "bpmn:Message#zeebe:subscription#property"))){const err241 = {};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}}}}var _valid29 = _errs291 === errors;errors = _errs290;if(vErrors !== null){if(_errs290){vErrors.length = _errs290;}else {vErrors = null;}}if(_valid29){const _errs293 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.name === undefined){const err242 = {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 = [err242];}else {vErrors.push(err242);}errors++;}}if(errors > 0){const emErrs27 = [];for(const err243 of vErrors){if(((((err243.keyword !== "errorMessage") && (!err243.emUsed)) && ((err243.instancePath === instancePath+"/" + i5+"/binding") || ((err243.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err243.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err243.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/0/then") === 0)) && (err243.schemaPath["#/allOf/1/items/properties/binding/allOf/0/then".length] === "/")){emErrs27.push(err243);err243.emUsed = true;}}if(emErrs27.length){const err244 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/0/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs27},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires name"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}const emErrs28 = [];for(const err245 of vErrors){if(!err245.emUsed){emErrs28.push(err245);}}vErrors = emErrs28;errors = emErrs28.length;}var _valid29 = _errs293 === errors;valid134 = _valid29;}if(!valid134){const err246 = {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 = [err246];}else {vErrors.push(err246);}errors++;}const _errs295 = errors;let valid136 = true;const _errs296 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err247 = {};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}else {if(data101.type !== undefined){if("zeebe:output" !== data101.type){const err248 = {};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}}}var _valid30 = _errs296 === errors;errors = _errs295;if(vErrors !== null){if(_errs295){vErrors.length = _errs295;}else {vErrors = null;}}if(_valid30){const _errs298 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.source === undefined){const err249 = {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 = [err249];}else {vErrors.push(err249);}errors++;}}if(errors > 0){const emErrs29 = [];for(const err250 of vErrors){if(((((err250.keyword !== "errorMessage") && (!err250.emUsed)) && ((err250.instancePath === instancePath+"/" + i5+"/binding") || ((err250.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err250.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err250.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/1/then") === 0)) && (err250.schemaPath["#/allOf/1/items/properties/binding/allOf/1/then".length] === "/")){emErrs29.push(err250);err250.emUsed = true;}}if(emErrs29.length){const err251 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/1/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs29},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires source"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}const emErrs30 = [];for(const err252 of vErrors){if(!err252.emUsed){emErrs30.push(err252);}}vErrors = emErrs30;errors = emErrs30.length;}var _valid30 = _errs298 === errors;valid136 = _valid30;}if(!valid136){const err253 = {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 = [err253];}else {vErrors.push(err253);}errors++;}const _errs300 = errors;let valid138 = true;const _errs301 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err254 = {};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}else {if(data101.type !== undefined){if("zeebe:taskHeader" !== data101.type){const err255 = {};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}}}}var _valid31 = _errs301 === errors;errors = _errs300;if(vErrors !== null){if(_errs300){vErrors.length = _errs300;}else {vErrors = null;}}if(_valid31){const _errs303 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.key === undefined){const err256 = {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 = [err256];}else {vErrors.push(err256);}errors++;}}if(errors > 0){const emErrs31 = [];for(const err257 of vErrors){if(((((err257.keyword !== "errorMessage") && (!err257.emUsed)) && ((err257.instancePath === instancePath+"/" + i5+"/binding") || ((err257.instancePath.indexOf(instancePath+"/" + i5+"/binding") === 0) && (err257.instancePath[instancePath+"/" + i5+"/binding".length] === "/")))) && (err257.schemaPath.indexOf("#/allOf/1/items/properties/binding/allOf/2/then") === 0)) && (err257.schemaPath["#/allOf/1/items/properties/binding/allOf/2/then".length] === "/")){emErrs31.push(err257);err257.emUsed = true;}}if(emErrs31.length){const err258 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/allOf/2/then/errorMessage",keyword:"errorMessage",params:{errors: emErrs31},message:"property.binding " + JSON.stringify(data101 && data101.type) + " requires key"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}const emErrs32 = [];for(const err259 of vErrors){if(!err259.emUsed){emErrs32.push(err259);}}vErrors = emErrs32;errors = emErrs32.length;}var _valid31 = _errs303 === errors;valid138 = _valid31;}if(!valid138){const err260 = {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 = [err260];}else {vErrors.push(err260);}errors++;}const _errs305 = errors;let valid140 = true;const _errs306 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err261 = {};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}else {if(data101.type !== undefined){if("zeebe:taskDefinition" !== data101.type){const err262 = {};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}}}}var _valid32 = _errs306 === errors;errors = _errs305;if(vErrors !== null){if(_errs305){vErrors.length = _errs305;}else {vErrors = null;}}if(_valid32){const _errs308 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.property === undefined){const err263 = {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 = [err263];}else {vErrors.push(err263);}errors++;}if(data101.property !== undefined){let data106 = data101.property;if(!((data106 === "type") || (data106 === "retries"))){const err264 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/3/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.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 = [err264];}else {vErrors.push(err264);}errors++;}}}var _valid32 = _errs308 === errors;valid140 = _valid32;}if(!valid140){const err265 = {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 = [err265];}else {vErrors.push(err265);}errors++;}const _errs313 = errors;let valid143 = true;const _errs314 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err266 = {};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}else {if(data101.type !== undefined){if("zeebe:calledElement" !== data101.type){const err267 = {};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}}}var _valid33 = _errs314 === errors;errors = _errs313;if(vErrors !== null){if(_errs313){vErrors.length = _errs313;}else {vErrors = null;}}if(_valid33){const _errs316 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.property === undefined){const err268 = {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 = [err268];}else {vErrors.push(err268);}errors++;}if(data101.property !== undefined){if("processId" !== data101.property){const err269 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/5/then/properties/property/const",keyword:"const",params:{allowedValue: "processId"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}}var _valid33 = _errs316 === errors;valid143 = _valid33;}if(!valid143){const err270 = {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 = [err270];}else {vErrors.push(err270);}errors++;}const _errs319 = errors;let valid146 = true;const _errs320 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err271 = {};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}else {if(data101.type !== undefined){if("zeebe:script" !== data101.type){const err272 = {};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}}}var _valid34 = _errs320 === errors;errors = _errs319;if(vErrors !== null){if(_errs319){vErrors.length = _errs319;}else {vErrors = null;}}if(_valid34){const _errs322 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.property === undefined){const err273 = {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 = [err273];}else {vErrors.push(err273);}errors++;}if(data101.property !== undefined){let data110 = data101.property;if(!((data110 === "expression") || (data110 === "resultVariable"))){const err274 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/6/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.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 = [err274];}else {vErrors.push(err274);}errors++;}}}var _valid34 = _errs322 === errors;valid146 = _valid34;}if(!valid146){const err275 = {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 = [err275];}else {vErrors.push(err275);}errors++;}const _errs325 = errors;let valid149 = true;const _errs326 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err276 = {};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}else {if(data101.type !== undefined){if("zeebe:formDefinition" !== data101.type){const err277 = {};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}}}var _valid35 = _errs326 === errors;errors = _errs325;if(vErrors !== null){if(_errs325){vErrors.length = _errs325;}else {vErrors = null;}}if(_valid35){const _errs328 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.property === undefined){const err278 = {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 = [err278];}else {vErrors.push(err278);}errors++;}if(data101.property !== undefined){let data112 = data101.property;if(!((data112 === "formId") || (data112 === "externalReference"))){const err279 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/7/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.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 = [err279];}else {vErrors.push(err279);}errors++;}}}var _valid35 = _errs328 === errors;valid149 = _valid35;}if(!valid149){const err280 = {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 = [err280];}else {vErrors.push(err280);}errors++;}const _errs331 = errors;let valid152 = true;const _errs332 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if((data101.type === undefined) && ("type")){const err281 = {};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}else {if(data101.type !== undefined){if("zeebe:calledDecision" !== data101.type){const err282 = {};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}}}var _valid36 = _errs332 === errors;errors = _errs331;if(vErrors !== null){if(_errs331){vErrors.length = _errs331;}else {vErrors = null;}}if(_valid36){const _errs334 = errors;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.property === undefined){const err283 = {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 = [err283];}else {vErrors.push(err283);}errors++;}if(data101.property !== undefined){let data114 = data101.property;if(!((data114 === "decisionId") || (data114 === "resultVariable"))){const err284 = {instancePath:instancePath+"/" + i5+"/binding/property",schemaPath:"#/allOf/1/items/properties/binding/allOf/8/then/properties/property/enum",keyword:"enum",params:{allowedValues: schema18.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 = [err284];}else {vErrors.push(err284);}errors++;}}}var _valid36 = _errs334 === errors;valid152 = _valid36;}if(!valid152){const err285 = {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 = [err285];}else {vErrors.push(err285);}errors++;}if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(data101.type === undefined){const err286 = {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 = [err286];}else {vErrors.push(err286);}errors++;}if(data101.type !== undefined){let data115 = data101.type;if(typeof data115 !== "string"){const err287 = {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 = [err287];}else {vErrors.push(err287);}errors++;}if(!(((((((((((((((data115 === "property") || (data115 === "zeebe:taskDefinition:type")) || (data115 === "zeebe:input")) || (data115 === "zeebe:output")) || (data115 === "zeebe:property")) || (data115 === "zeebe:taskHeader")) || (data115 === "bpmn:Message#property")) || (data115 === "bpmn:Message#zeebe:subscription#property")) || (data115 === "zeebe:taskDefinition")) || (data115 === "zeebe:calledElement")) || (data115 === "zeebe:linkedResource")) || (data115 === "zeebe:userTask")) || (data115 === "zeebe:formDefinition")) || (data115 === "zeebe:calledDecision")) || (data115 === "zeebe:script"))){const err288 = {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 = [err288];}else {vErrors.push(err288);}errors++;}if(errors > 0){const emErrs33 = [];for(const err289 of vErrors){if(((((err289.keyword !== "errorMessage") && (!err289.emUsed)) && ((err289.instancePath === instancePath+"/" + i5+"/binding/type") || ((err289.instancePath.indexOf(instancePath+"/" + i5+"/binding/type") === 0) && (err289.instancePath[instancePath+"/" + i5+"/binding/type".length] === "/")))) && (err289.schemaPath.indexOf("#/allOf/1/items/properties/binding/properties/type") === 0)) && (err289.schemaPath["#/allOf/1/items/properties/binding/properties/type".length] === "/")){emErrs33.push(err289);err289.emUsed = true;}}if(emErrs33.length){const err290 = {instancePath:instancePath+"/" + i5+"/binding/type",schemaPath:"#/allOf/1/items/properties/binding/properties/type/errorMessage",keyword:"errorMessage",params:{errors: emErrs33},message:"invalid property.binding type " + JSON.stringify(data115) + "; 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 }"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}const emErrs34 = [];for(const err291 of vErrors){if(!err291.emUsed){emErrs34.push(err291);}}vErrors = emErrs34;errors = emErrs34.length;}}if(data101.name !== undefined){if(typeof data101.name !== "string"){const err292 = {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 = [err292];}else {vErrors.push(err292);}errors++;}}if(data101.source !== undefined){if(typeof data101.source !== "string"){const err293 = {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 = [err293];}else {vErrors.push(err293);}errors++;}}if(data101.key !== undefined){if(typeof data101.key !== "string"){const err294 = {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 = [err294];}else {vErrors.push(err294);}errors++;}}if(data101.property !== undefined){if(typeof data101.property !== "string"){const err295 = {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 = [err295];}else {vErrors.push(err295);}errors++;}}if(data101.linkName !== undefined){if(typeof data101.linkName !== "string"){const err296 = {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 = [err296];}else {vErrors.push(err296);}errors++;}}}else {const err297 = {instancePath:instancePath+"/" + i5+"/binding",schemaPath:"#/allOf/1/items/properties/binding/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}}if(data42.optional !== undefined){if(typeof data42.optional !== "boolean"){const err298 = {instancePath:instancePath+"/" + i5+"/optional",schemaPath:"#/allOf/1/items/properties/optional/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}}if(data42.feel !== undefined){let data122 = data42.feel;if(typeof data122 !== "string"){const err299 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}if(!(((data122 === "optional") || (data122 === "required")) || (data122 === "static"))){const err300 = {instancePath:instancePath+"/" + i5+"/feel",schemaPath:"#/allOf/1/items/properties/feel/enum",keyword:"enum",params:{allowedValues: schema18.allOf[1].items.properties.feel.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}}if(data42.language !== undefined){if(typeof data42.language !== "string"){const err301 = {instancePath:instancePath+"/" + i5+"/language",schemaPath:"#/allOf/1/items/properties/language/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}if(data42.generatedValue !== undefined){let data124 = data42.generatedValue;if(data124 && typeof data124 == "object" && !Array.isArray(data124)){if(data124.type === undefined){const err302 = {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 = [err302];}else {vErrors.push(err302);}errors++;}if(data124.type !== undefined){if("uuid" !== data124.type){const err303 = {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 = [err303];}else {vErrors.push(err303);}errors++;}}}else {const err304 = {instancePath:instancePath+"/" + i5+"/generatedValue",schemaPath:"#/allOf/1/items/properties/generatedValue/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}}if(data42.tooltip !== undefined){if(typeof data42.tooltip !== "string"){const err305 = {instancePath:instancePath+"/" + i5+"/tooltip",schemaPath:"#/allOf/1/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}}}else {const err306 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}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 err307 of vErrors){if((((((err307.keyword !== "errorMessage") && (!err307.emUsed)) && (err307.instancePath === instancePath+"/" + i5)) && (err307.keyword in emErrors3)) && (err307.schemaPath.indexOf("#/allOf/1/items") === 0)) && (/^\/[^\/]*$/.test(err307.schemaPath.slice(15)))){emPropParams2 = obj0[err307.keyword];emParamsErrors2 = emErrors3[err307.keyword][err307.params[emPropParams2]];if(emParamsErrors2){emParamsErrors2.push(err307);err307.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 err308 = {instancePath:instancePath+"/" + i5,schemaPath:"#/allOf/1/items/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors2},message:tmpl2 ? tmpl2() : schema18.allOf[1].items.errorMessage[key3][keyProp2]};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}}const emErrs35 = [];for(const err309 of vErrors){if(!err309.emUsed){emErrs35.push(err309);}}vErrors = emErrs35;errors = emErrs35.length;}}}else {const err310 = {instancePath,schemaPath:"#/allOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}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.name !== undefined){if(typeof data.name !== "string"){const err4 = {instancePath:instancePath+"/name",schemaPath:"#/allOf/0/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){if(typeof data.id !== "string"){const err5 = {instancePath:instancePath+"/id",schemaPath:"#/allOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.description !== undefined){if(typeof data.description !== "string"){const err6 = {instancePath:instancePath+"/description",schemaPath:"#/allOf/0/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.version !== undefined){let data3 = data.version;if(!((typeof data3 == "number") && (!(data3 % 1) && !isNaN(data3)))){const err7 = {instancePath:instancePath+"/version",schemaPath:"#/allOf/0/properties/version/type",keyword:"type",params:{type: "integer"},message:"must be integer"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.isDefault !== undefined){if(typeof data.isDefault !== "boolean"){const err8 = {instancePath:instancePath+"/isDefault",schemaPath:"#/allOf/0/properties/isDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.deprecated !== undefined){let data5 = data.deprecated;if((typeof data5 !== "boolean") && (!(data5 && typeof data5 == "object" && !Array.isArray(data5)))){const err9 = {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 = [err9];}else {vErrors.push(err9);}errors++;}if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.message !== undefined){if(typeof data5.message !== "string"){const err10 = {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 = [err10];}else {vErrors.push(err10);}errors++;}}if(data5.documentationRef !== undefined){let data7 = data5.documentationRef;if(typeof data7 === "string"){if(!pattern0.test(data7)){const err11 = {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 = [err11];}else {vErrors.push(err11);}errors++;}}else {const err12 = {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 = [err12];}else {vErrors.push(err12);}errors++;}}}}if(data.appliesTo !== undefined){let data8 = data.appliesTo;if(Array.isArray(data8)){const len0 = data8.length;for(let i0=0; i0<len0; i0++){let data9 = data8[i0];if(typeof data9 === "string"){if(!pattern1.test(data9)){const err13 = {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 = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/appliesTo/" + i0,schemaPath:"#/allOf/0/properties/appliesTo/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if(errors > 0){const emErrors0 = {"pattern":[]};const templates0 = {};for(const err15 of vErrors){if((((((err15.keyword !== "errorMessage") && (!err15.emUsed)) && (err15.instancePath === instancePath+"/appliesTo/" + i0)) && (err15.keyword in emErrors0)) && (err15.schemaPath.indexOf("#/allOf/0/properties/appliesTo/items") === 0)) && (/^\/[^\/]*$/.test(err15.schemaPath.slice(36)))){emErrors0[err15.keyword].push(err15);err15.emUsed = true;}}for(const key0 in emErrors0){if(emErrors0[key0].length){const err16 = {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 = [err16];}else {vErrors.push(err16);}errors++;}}const emErrs0 = [];for(const err17 of vErrors){if(!err17.emUsed){emErrs0.push(err17);}}vErrors = emErrs0;errors = emErrs0.length;}}}else {const err18 = {instancePath:instancePath+"/appliesTo",schemaPath:"#/allOf/0/properties/appliesTo/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}if(data.elementType !== undefined){let data10 = data.elementType;if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.value === undefined){const err19 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if(data10.value !== undefined){let data11 = data10.value;if(typeof data11 === "string"){if(!pattern1.test(data11)){const err20 = {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 = [err20];}else {vErrors.push(err20);}errors++;}}else {const err21 = {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 = [err21];}else {vErrors.push(err21);}errors++;}if(errors > 0){const emErrors1 = {"pattern":[]};const templates1 = {};for(const err22 of vErrors){if((((((err22.keyword !== "errorMessage") && (!err22.emUsed)) && (err22.instancePath === instancePath+"/elementType/value")) && (err22.keyword in emErrors1)) && (err22.schemaPath.indexOf("#/allOf/0/properties/elementType/properties/value") === 0)) && (/^\/[^\/]*$/.test(err22.schemaPath.slice(49)))){emErrors1[err22.keyword].push(err22);err22.emUsed = true;}}for(const key1 in emErrors1){if(emErrors1[key1].length){const err23 = {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 = [err23];}else {vErrors.push(err23);}errors++;}}const emErrs1 = [];for(const err24 of vErrors){if(!err24.emUsed){emErrs1.push(err24);}}vErrors = emErrs1;errors = emErrs1.length;}}}else {const err25 = {instancePath:instancePath+"/elementType",schemaPath:"#/allOf/0/properties/elementType/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if(errors > 0){const emErrors2 = {"required":{"value":[]}};const templates2 = {required:{}};let emPropParams0;let emParamsErrors0;for(const err26 of vErrors){if((((((err26.keyword !== "errorMessage") && (!err26.emUsed)) && (err26.instancePath === instancePath+"/elementType")) && (err26.keyword in emErrors2)) && (err26.schemaPath.indexOf("#/allOf/0/properties/elementType") === 0)) && (/^\/[^\/]*$/.test(err26.schemaPath.slice(32)))){emPropParams0 = obj0[err26.keyword];emParamsErrors0 = emErrors2[err26.keyword][err26.params[emPropParams0]];if(emParamsErrors0){emParamsErrors0.push(err26);err26.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 err27 = {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 = [err27];}else {vErrors.push(err27);}errors++;}}}const emErrs2 = [];for(const err28 of vErrors){if(!err28.emUsed){emErrs2.push(err28);}}vErrors = emErrs2;errors = emErrs2.length;}}if(data.metadata !== undefined){let data12 = data.metadata;if(!(data12 && typeof data12 == "object" && !Array.isArray(data12))){const err29 = {instancePath:instancePath+"/metadata",schemaPath:"#/allOf/0/properties/metadata/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}if(data.keywords !== undefined){let data13 = data.keywords;if(Array.isArray(data13)){const len1 = data13.length;for(let i1=0; i1<len1; i1++){if(typeof data13[i1] !== "string"){const err30 = {instancePath:instancePath+"/keywords/" + i1,schemaPath:"#/allOf/0/properties/keywords/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}}}else {const err31 = {instancePath:instancePath+"/keywords",schemaPath:"#/allOf/0/properties/keywords/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}}if(data.entriesVisible !== undefined){if(typeof data.entriesVisible !== "boolean"){const err32 = {instancePath:instancePath+"/entriesVisible",schemaPath:"#/allOf/0/properties/entriesVisible/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};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;}}}var _valid4 = _errs85 === errors;valid35 = _valid4;}if(!valid35){const err85 = {instancePath,schemaPath:"#/allOf/1/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}const _errs93 = errors;let valid44 = true;const _errs94 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {if(data.properties !== undefined){let data42 = data.properties;if(Array.isArray(data42)){const _errs96 = errors;const len6 = data42.length;for(let i6=0; i6<len6; i6++){let data43 = data42[i6];const _errs97 = errors;if(data43 && typeof data43 == "object" && !Array.isArray(data43)){if((data43.binding === undefined) && ("binding")){const err87 = {};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}else {if(data43.binding !== undefined){let data44 = data43.binding;if(data44 && typeof data44 == "object" && !Array.isArray(data44)){if((data44.type === undefined) && ("type")){const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}else {if(data44.type !== undefined){if("zeebe:userTask" !== data44.type){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}}}}}var valid46 = _errs97 === errors;if(valid46){break;}}if(!valid46){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}else {errors = _errs96;if(vErrors !== null){if(_errs96){vErrors.length = _errs96;}else {vErrors = null;}}}}}}}var _valid6 = _errs94 === errors;errors = _errs93;if(vErrors !== null){if(_errs93){vErrors.length = _errs93;}else {vErrors = null;}}if(_valid6){const _errs100 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err91 = {instancePath,schemaPath:"#/allOf/1/allOf/3/then/required",keyword:"required",params:{missingProperty: "elementType"},message:"must have required property '"+"elementType"+"'"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if(data.elementType !== undefined){let data46 = data.elementType;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.value === undefined){const err92 = {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 = [err92];}else {vErrors.push(err92);}errors++;}if(data46.value !== undefined){if("bpmn:UserTask" !== data46.value){const err93 = {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 = [err93];}else {vErrors.push(err93);}errors++;}}}}}var _valid6 = _errs100 === errors;valid44 = _valid6;}if(!valid44){const err94 = {instancePath,schemaPath:"#/allOf/1/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const _errs104 = errors;let valid51 = true;const _errs105 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {if(data.properties !== undefined){let data48 = data.properties;if(Array.isArray(data48)){const _errs107 = errors;const len7 = data48.length;for(let i7=0; i7<len7; i7++){let data49 = data48[i7];const _errs108 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if((data49.binding === undefined) && ("binding")){const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {if(data49.binding !== undefined){let data50 = data49.binding;if(data50 && typeof data50 == "object" && !Array.isArray(data50)){if((data50.type === undefined) && ("type")){const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}else {if(data50.type !== undefined){if("zeebe:formDefinition" !== data50.type){const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}}}}}var valid53 = _errs108 === errors;if(valid53){break;}}if(!valid53){const err99 = {};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}else {errors = _errs107;if(vErrors !== null){if(_errs107){vErrors.length = _errs107;}else {vErrors = null;}}}}}}}var _valid7 = _errs105 === errors;errors = _errs104;if(vErrors !== null){if(_errs104){vErrors.length = _errs104;}else {vErrors = null;}}if(_valid7){const _errs111 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err100 = {instancePath,schemaPath:"#/allOf/1/allOf/4/then/allOf/0/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(data.properties !== undefined){let data52 = data.properties;if(Array.isArray(data52)){const _errs114 = errors;const len8 = data52.length;for(let i8=0; i8<len8; i8++){let data53 = data52[i8];const _errs115 = errors;if(data53 && typeof data53 == "object" && !Array.isArray(data53)){if(data53.binding === undefined){const err101 = {instancePath:instancePath+"/properties/" + i8,schemaPath:"#/allOf/1/allOf/4/then/allOf/0/properties/properties/contains/required",keyword:"required",params:{missingProperty: "binding"},message:"must have required property '"+"binding"+"'"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if(data53.binding !== undefined){let data54 = data53.binding;if(data54 && typeof data54 == "object" && !Array.isArray(data54)){if(data54.type === undefined){const err102 = {instancePath:instancePath+"/properties/" + i8+"/binding",schemaPath:"#/allOf/1/allOf/4/then/allOf/0/properties/properties/contains/properties/binding/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data54.type !== undefined){if("zeebe:userTask" !== data54.type){const err103 = {instancePath:instancePath+"/properties/" + i8+"/binding/type",schemaPath:"#/allOf/1/allOf/4/then/allOf/0/properties/properties/contains/properties/binding/properties/type/const",keyword:"const",params:{allowedValue: "zeebe:userTask"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}}}}}var valid58 = _errs115 === errors;if(valid58){break;}}if(!valid58){const err104 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/4/then/allOf/0/properties/properties/contains",keyword:"contains",params:{minContains: 1},message:"must contain at least 1 valid item(s)"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}else {errors = _errs114;if(vErrors !== null){if(_errs114){vErrors.length = _errs114;}else {vErrors = null;}}}}}}if(errors > 0){const emErrs6 = [];for(const err105 of vErrors){if(((((err105.keyword !== "errorMessage") && (!err105.emUsed)) && ((err105.instancePath === instancePath) || ((err105.instancePath.indexOf(instancePath) === 0) && (err105.instancePath[instancePath.length] === "/")))) && (err105.schemaPath.indexOf("#/allOf/1/allOf/4/then/allOf/0") === 0)) && (err105.schemaPath["#/allOf/1/allOf/4/then/allOf/0".length] === "/")){emErrs6.push(err105);err105.emUsed = true;}}if(emErrs6.length){const err106 = {instancePath,schemaPath:"#/allOf/1/allOf/4/then/allOf/0/errorMessage",keyword:"errorMessage",params:{errors: emErrs6},message:"When using \"zeebe:formDefinition\", \"zeebe:userTask\" must be set on the same element"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}const emErrs7 = [];for(const err107 of vErrors){if(!err107.emUsed){emErrs7.push(err107);}}vErrors = emErrs7;errors = emErrs7.length;}var _valid7 = _errs111 === errors;valid51 = _valid7;}if(!valid51){const err108 = {instancePath,schemaPath:"#/allOf/1/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}const _errs119 = errors;let valid61 = true;const _errs120 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}else {if(data.properties !== undefined){let data56 = data.properties;if(Array.isArray(data56)){const _errs122 = errors;const len9 = data56.length;for(let i9=0; i9<len9; i9++){let data57 = data56[i9];const _errs123 = errors;if(data57 && typeof data57 == "object" && !Array.isArray(data57)){if((data57.binding === undefined) && ("binding")){const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}else {if(data57.binding !== undefined){let data58 = data57.binding;if(data58 && typeof data58 == "object" && !Array.isArray(data58)){if((data58.type === undefined) && ("type")){const err111 = {};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {if(data58.type !== undefined){if("zeebe:calledDecision" !== data58.type){const err112 = {};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}}}}}var valid63 = _errs123 === errors;if(valid63){break;}}if(!valid63){const err113 = {};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}else {errors = _errs122;if(vErrors !== null){if(_errs122){vErrors.length = _errs122;}else {vErrors = null;}}}}}}}var _valid8 = _errs120 === errors;errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}if(_valid8){const _errs126 = errors;const _errs127 = errors;let valid66 = false;const _errs128 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err114 = {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 = [err114];}else {vErrors.push(err114);}errors++;}if(data.elementType !== undefined){let data60 = data.elementType;if(data60 && typeof data60 == "object" && !Array.isArray(data60)){if(data60.value === undefined){const err115 = {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 = [err115];}else {vErrors.push(err115);}errors++;}if(data60.value !== undefined){if("bpmn:BusinessRuleTask" !== data60.value){const err116 = {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 = [err116];}else {vErrors.push(err116);}errors++;}}}}}var _valid9 = _errs128 === errors;valid66 = valid66 || _valid9;if(!valid66){const _errs131 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err117 = {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 = [err117];}else {vErrors.push(err117);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[5].then.anyOf[1].properties.appliesTo.const)){const err118 = {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 = [err118];}else {vErrors.push(err118);}errors++;}}}var _valid9 = _errs131 === errors;valid66 = valid66 || _valid9;}if(!valid66){const err119 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}else {errors = _errs127;if(vErrors !== null){if(_errs127){vErrors.length = _errs127;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data63 = data.properties;if(Array.isArray(data63)){const _errs135 = errors;const len10 = data63.length;for(let i10=0; i10<len10; i10++){let data64 = data63[i10];const _errs136 = errors;if(data64 && typeof data64 == "object" && !Array.isArray(data64)){if(data64.binding === undefined){const err120 = {instancePath:instancePath+"/properties/" + i10,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 = [err120];}else {vErrors.push(err120);}errors++;}if(data64.binding !== undefined){let data65 = data64.binding;if(data65 && typeof data65 == "object" && !Array.isArray(data65)){if(data65.property === undefined){const err121 = {instancePath:instancePath+"/properties/" + i10+"/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 = [err121];}else {vErrors.push(err121);}errors++;}if(data65.property !== undefined){if("decisionId" !== data65.property){const err122 = {instancePath:instancePath+"/properties/" + i10+"/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 = [err122];}else {vErrors.push(err122);}errors++;}if(errors > 0){const emErrs8 = [];for(const err123 of vErrors){if(((((err123.keyword !== "errorMessage") && (!err123.emUsed)) && ((err123.instancePath === instancePath+"/properties/" + i10+"/binding/property") || ((err123.instancePath.indexOf(instancePath+"/properties/" + i10+"/binding/property") === 0) && (err123.instancePath[instancePath+"/properties/" + i10+"/binding/property".length] === "/")))) && (err123.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property") === 0)) && (err123.schemaPath["#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property".length] === "/")){emErrs8.push(err123);err123.emUsed = true;}}if(emErrs8.length){const err124 = {instancePath:instancePath+"/properties/" + i10+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/0/properties/properties/contains/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs8},message:"Binding type \"zeebe:calledDecision\" must contain property \"decisionId\""};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}const emErrs9 = [];for(const err125 of vErrors){if(!err125.emUsed){emErrs9.push(err125);}}vErrors = emErrs9;errors = emErrs9.length;}}}}}var valid72 = _errs136 === errors;if(valid72){break;}}if(!valid72){const err126 = {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 = [err126];}else {vErrors.push(err126);}errors++;}else {errors = _errs135;if(vErrors !== null){if(_errs135){vErrors.length = _errs135;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data67 = data.properties;if(Array.isArray(data67)){const _errs141 = errors;const len11 = data67.length;for(let i11=0; i11<len11; i11++){let data68 = data67[i11];const _errs142 = errors;if(data68 && typeof data68 == "object" && !Array.isArray(data68)){if(data68.binding === undefined){const err127 = {instancePath:instancePath+"/properties/" + i11,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 = [err127];}else {vErrors.push(err127);}errors++;}if(data68.binding !== undefined){let data69 = data68.binding;if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if(data69.property === undefined){const err128 = {instancePath:instancePath+"/properties/" + i11+"/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 = [err128];}else {vErrors.push(err128);}errors++;}if(data69.property !== undefined){if("resultVariable" !== data69.property){const err129 = {instancePath:instancePath+"/properties/" + i11+"/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 = [err129];}else {vErrors.push(err129);}errors++;}if(errors > 0){const emErrs10 = [];for(const err130 of vErrors){if(((((err130.keyword !== "errorMessage") && (!err130.emUsed)) && ((err130.instancePath === instancePath+"/properties/" + i11+"/binding/property") || ((err130.instancePath.indexOf(instancePath+"/properties/" + i11+"/binding/property") === 0) && (err130.instancePath[instancePath+"/properties/" + i11+"/binding/property".length] === "/")))) && (err130.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property") === 0)) && (err130.schemaPath["#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property".length] === "/")){emErrs10.push(err130);err130.emUsed = true;}}if(emErrs10.length){const err131 = {instancePath:instancePath+"/properties/" + i11+"/binding/property",schemaPath:"#/allOf/1/allOf/5/then/allOf/1/properties/properties/contains/properties/binding/properties/property/errorMessage",keyword:"errorMessage",params:{errors: emErrs10},message:"Binding type \"zeebe:calledDecision\" must contain property \"resultVariable\""};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}const emErrs11 = [];for(const err132 of vErrors){if(!err132.emUsed){emErrs11.push(err132);}}vErrors = emErrs11;errors = emErrs11.length;}}}}}var valid76 = _errs142 === errors;if(valid76){break;}}if(!valid76){const err133 = {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 = [err133];}else {vErrors.push(err133);}errors++;}else {errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err134 = {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 = [err134];}else {vErrors.push(err134);}errors++;}if(data.properties !== undefined){let data71 = data.properties;const _errs147 = errors;const _errs148 = errors;if(Array.isArray(data71)){const _errs149 = errors;const len12 = data71.length;for(let i12=0; i12<len12; i12++){let data72 = data71[i12];const _errs150 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if((data72.binding === undefined) && ("binding")){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {if(data72.binding !== undefined){let data73 = data72.binding;if(data73 && typeof data73 == "object" && !Array.isArray(data73)){if((data73.type === undefined) && ("type")){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}else {if(data73.type !== undefined){let data74 = data73.type;if(!((data74 === "zeebe:taskDefinition") || (data74 === "zeebe:taskDefinition:type"))){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}}}}}}var valid81 = _errs150 === errors;if(valid81){break;}}if(!valid81){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {errors = _errs149;if(vErrors !== null){if(_errs149){vErrors.length = _errs149;}else {vErrors = null;}}}}var valid80 = _errs148 === errors;if(valid80){const err139 = {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 = [err139];}else {vErrors.push(err139);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}}}if(errors > 0){const emErrs12 = [];for(const err140 of vErrors){if(((((err140.keyword !== "errorMessage") && (!err140.emUsed)) && ((err140.instancePath === instancePath) || ((err140.instancePath.indexOf(instancePath) === 0) && (err140.instancePath[instancePath.length] === "/")))) && (err140.schemaPath.indexOf("#/allOf/1/allOf/5/then/allOf/2") === 0)) && (err140.schemaPath["#/allOf/1/allOf/5/then/allOf/2".length] === "/")){emErrs12.push(err140);err140.emUsed = true;}}if(emErrs12.length){const err141 = {instancePath,schemaPath:"#/allOf/1/allOf/5/then/allOf/2/errorMessage",keyword:"errorMessage",params:{errors: emErrs12},message:"Binding type \"zeebe:taskDefinition\" or \"zeebe:taskDefinition:type\" cannot be set when binding type \"zeebe:calledDecision\" is set."};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 _valid8 = _errs126 === errors;valid61 = _valid8;}if(!valid61){const err143 = {instancePath,schemaPath:"#/allOf/1/allOf/5/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}const _errs154 = errors;let valid84 = true;const _errs155 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}else {if(data.properties !== undefined){let data75 = data.properties;if(Array.isArray(data75)){const _errs157 = errors;const len13 = data75.length;for(let i13=0; i13<len13; i13++){let data76 = data75[i13];const _errs158 = errors;if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if((data76.binding === undefined) && ("binding")){const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}else {if(data76.binding !== undefined){let data77 = data76.binding;if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if((data77.type === undefined) && ("type")){const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}else {if(data77.type !== undefined){if("zeebe:script" !== data77.type){const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}}}}}var valid86 = _errs158 === errors;if(valid86){break;}}if(!valid86){const err148 = {};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}else {errors = _errs157;if(vErrors !== null){if(_errs157){vErrors.length = _errs157;}else {vErrors = null;}}}}}}}var _valid10 = _errs155 === errors;errors = _errs154;if(vErrors !== null){if(_errs154){vErrors.length = _errs154;}else {vErrors = null;}}if(_valid10){const _errs161 = errors;const _errs162 = errors;let valid89 = false;const _errs163 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.elementType === undefined){const err149 = {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 = [err149];}else {vErrors.push(err149);}errors++;}if(data.elementType !== undefined){let data79 = data.elementType;if(data79 && typeof data79 == "object" && !Array.isArray(data79)){if(data79.value === undefined){const err150 = {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 = [err150];}else {vErrors.push(err150);}errors++;}if(data79.value !== undefined){if("bpmn:ScriptTask" !== data79.value){const err151 = {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 = [err151];}else {vErrors.push(err151);}errors++;}}}}}var _valid11 = _errs163 === errors;valid89 = valid89 || _valid11;if(!valid89){const _errs166 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.appliesTo === undefined){const err152 = {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 = [err152];}else {vErrors.push(err152);}errors++;}if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[1].allOf[6].then.anyOf[1].properties.appliesTo.const)){const err153 = {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 = [err153];}else {vErrors.push(err153);}errors++;}}}var _valid11 = _errs166 === errors;valid89 = valid89 || _valid11;}if(!valid89){const err154 = {instancePath,schemaPath:"#/allOf/1/allOf/6/then/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}else {errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data82 = data.properties;if(Array.isArray(data82)){const _errs170 = errors;const len14 = data82.length;for(let i14=0; i14<len14; i14++){let data83 = data82[i14];const _errs171 = errors;if(data83 && typeof data83 == "object" && !Array.isArray(data83)){if(data83.binding === undefined){const err155 = {instancePath:instancePath+"/properties/" + i14,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 = [err155];}else {vErrors.push(err155);}errors++;}if(data83.binding !== undefined){let data84 = data83.binding;if(data84 && typeof data84 == "object" && !Array.isArray(data84)){if(data84.property === undefined){const err156 = {instancePath:instancePath+"/properties/" + i14+"/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 = [err156];}else {vErrors.push(err156);}errors++;}if(data84.property !== undefined){if("expression" !== data84.property){const err157 = {instancePath:instancePath+"/properties/" + i14+"/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 = [err157];}else {vErrors.push(err157);}errors++;}}}}}var valid95 = _errs171 === errors;if(valid95){break;}}if(!valid95){const err158 = {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 = [err158];}else {vErrors.push(err158);}errors++;}else {errors = _errs170;if(vErrors !== null){if(_errs170){vErrors.length = _errs170;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data86 = data.properties;if(Array.isArray(data86)){const _errs176 = errors;const len15 = data86.length;for(let i15=0; i15<len15; i15++){let data87 = data86[i15];const _errs177 = errors;if(data87 && typeof data87 == "object" && !Array.isArray(data87)){if(data87.binding === undefined){const err159 = {instancePath:instancePath+"/properties/" + i15,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 = [err159];}else {vErrors.push(err159);}errors++;}if(data87.binding !== undefined){let data88 = data87.binding;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.property === undefined){const err160 = {instancePath:instancePath+"/properties/" + i15+"/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 = [err160];}else {vErrors.push(err160);}errors++;}if(data88.property !== undefined){if("resultVariable" !== data88.property){const err161 = {instancePath:instancePath+"/properties/" + i15+"/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 = [err161];}else {vErrors.push(err161);}errors++;}}}}}var valid99 = _errs177 === errors;if(valid99){break;}}if(!valid99){const err162 = {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 = [err162];}else {vErrors.push(err162);}errors++;}else {errors = _errs176;if(vErrors !== null){if(_errs176){vErrors.length = _errs176;}else {vErrors = null;}}}}}}if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err163 = {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 = [err163];}else {vErrors.push(err163);}errors++;}if(data.properties !== undefined){let data90 = data.properties;const _errs182 = errors;const _errs183 = errors;if(Array.isArray(data90)){const _errs184 = errors;const len16 = data90.length;for(let i16=0; i16<len16; i16++){let data91 = data90[i16];const _errs185 = errors;if(data91 && typeof data91 == "object" && !Array.isArray(data91)){if((data91.binding === undefined) && ("binding")){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}else {if(data91.binding !== undefined){let data92 = data91.binding;if(data92 && typeof data92 == "object" && !Array.isArray(data92)){if((data92.type === undefined) && ("type")){const err165 = {};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}else {if(data92.type !== undefined){let data93 = data92.type;if(!((data93 === "zeebe:taskDefinition") || (data93 === "zeebe:taskDefinition:type"))){const err166 = {};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}}}}}}var valid104 = _errs185 === errors;if(valid104){break;}}if(!valid104){const err167 = {};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}else {errors = _errs184;if(vErrors !== null){if(_errs184){vErrors.length = _errs184;}else {vErrors = null;}}}}var valid103 = _errs183 === errors;if(valid103){const err168 = {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 = [err168];}else {vErrors.push(err168);}errors++;}else {errors = _errs182;if(vErrors !== null){if(_errs182){vErrors.length = _errs182;}else {vErrors = null;}}}}}if(errors > 0){const emErrs14 = [];for(const err169 of vErrors){if(((((err169.keyword !== "errorMessage") && (!err169.emUsed)) && ((err169.instancePath === instancePath) || ((err169.instancePath.indexOf(instancePath) === 0) && (err169.instancePath[instancePath.length] === "/")))) && (err169.schemaPath.indexOf("#/allOf/1/allOf/6/then/allOf/2") === 0)) && (err169.schemaPath["#/allOf/1/allOf/6/then/allOf/2".length] === "/")){emErrs14.push(err169);err169.emUsed = true;}}if(emErrs14.length){const err170 = {instancePath,schemaPath:"#/allOf/1/allOf/6/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:script\" is set."};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}const emErrs15 = [];for(const err171 of vErrors){if(!err171.emUsed){emErrs15.push(err171);}}vErrors = emErrs15;errors = emErrs15.length;}var _valid10 = _errs161 === errors;valid84 = _valid10;}if(!valid84){const err172 = {instancePath,schemaPath:"#/allOf/1/allOf/6/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}const _errs189 = errors;let valid107 = true;const _errs190 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.properties === undefined) && ("properties")){const err173 = {};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}else {if(data.properties !== undefined){let data94 = data.properties;if(Array.isArray(data94)){const _errs192 = errors;const len17 = data94.length;for(let i17=0; i17<len17; i17++){let data95 = data94[i17];const _errs193 = errors;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if((data95.binding === undefined) && ("binding")){const err174 = {};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {if(data95.binding !== undefined){let data96 = data95.binding;if(data96 && typeof data96 == "object" && !Array.isArray(data96)){if(((data96.property === undefined) && ("property")) || ((data96.type === undefined) && ("type"))){const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {if(data96.property !== undefined){const _errs195 = errors;if("formId" !== data96.property){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}var valid111 = _errs195 === errors;}else {var valid111 = true;}if(valid111){if(data96.type !== undefined){const _errs196 = errors;if("zeebe:formDefinition" !== data96.type){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}var valid111 = _errs196 === errors;}else {var valid111 = true;}}}}}}}var valid109 = _errs193 === errors;if(valid109){break;}}if(!valid109){const err178 = {};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}else {errors = _errs192;if(vErrors !== null){if(_errs192){vErrors.length = _errs192;}else {vErrors = null;}}}}}}}var _valid12 = _errs190 === errors;errors = _errs189;if(vErrors !== null){if(_errs189){vErrors.length = _errs189;}else {vErrors = null;}}if(_valid12){const _errs197 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties === undefined){const err179 = {instancePath,schemaPath:"#/allOf/1/allOf/7/then/required",keyword:"required",params:{missingProperty: "properties"},message:"must have required property '"+"properties"+"'"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if(data.properties !== undefined){let data99 = data.properties;const _errs199 = errors;const _errs200 = errors;if(Array.isArray(data99)){const _errs201 = errors;const len18 = data99.length;for(let i18=0; i18<len18; i18++){let data100 = data99[i18];const _errs202 = errors;if(data100 && typeof data100 == "object" && !Array.isArray(data100)){if((data100.binding === undefined) && ("binding")){const err180 = {};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}else {if(data100.binding !== undefined){let data101 = data100.binding;if(data101 && typeof data101 == "object" && !Array.isArray(data101)){if(((data101.property === undefined) && ("property")) || ((data101.type === undefined) && ("type"))){const err181 = {};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}else {if(data101.type !== undefined){const _errs204 = errors;if("zeebe:formDefinition" !== data101.type){const err182 = {};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}var valid116 = _errs204 === errors;}else {var valid116 = true;}if(valid116){if(data101.property !== undefined){const _errs205 = errors;if("externalReference" !== data101.property){const err183 = {};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}var valid116 = _errs205 === errors;}else {var valid116 = true;}}}}}}}var valid114 = _errs202 === errors;if(valid114){break;}}if(!valid114){const err184 = {};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}else {errors = _errs201;if(vErrors !== null){if(_errs201){vErrors.length = _errs201;}else {vErrors = null;}}}}var valid113 = _errs200 === errors;if(valid113){const err185 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/then/properties/properties/not",keyword:"not",params:{},message:"must NOT be valid"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}else {errors = _errs199;if(vErrors !== null){if(_errs199){vErrors.length = _errs199;}else {vErrors = null;}}}if(errors > 0){const emErrs16 = [];for(const err186 of vErrors){if(((((err186.keyword !== "errorMessage") && (!err186.emUsed)) && ((err186.instancePath === instancePath+"/properties") || ((err186.instancePath.indexOf(instancePath+"/properties") === 0) && (err186.instancePath[instancePath+"/properties".length] === "/")))) && (err186.schemaPath.indexOf("#/allOf/1/allOf/7/then/properties/properties") === 0)) && (err186.schemaPath["#/allOf/1/allOf/7/then/properties/properties".length] === "/")){emErrs16.push(err186);err186.emUsed = true;}}if(emErrs16.length){const err187 = {instancePath:instancePath+"/properties",schemaPath:"#/allOf/1/allOf/7/then/properties/properties/errorMessage",keyword:"errorMessage",params:{errors: emErrs16},message:"\"formId\" and \"externalReference\" cannot be used together"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}const emErrs17 = [];for(const err188 of vErrors){if(!err188.emUsed){emErrs17.push(err188);}}vErrors = emErrs17;errors = emErrs17.length;}}}var _valid12 = _errs197 === errors;valid107 = _valid12;}if(!valid107){const err189 = {instancePath,schemaPath:"#/allOf/1/allOf/7/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}const _errs208 = errors;let valid118 = true;const _errs209 = errors;const _errs210 = errors;let valid119 = false;const _errs211 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err190 = {};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}else {if(data.elementType !== undefined){let data104 = data.elementType;if(data104 && typeof data104 == "object" && !Array.isArray(data104)){if((data104.value === undefined) && ("value")){const err191 = {};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}else {if(data104.value !== undefined){if("bpmn:AdHocSubProcess" !== data104.value){const err192 = {};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}}}}}}var _valid14 = _errs211 === errors;valid119 = valid119 || _valid14;if(!valid119){const _errs214 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err193 = {};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[0].if.anyOf[1].properties.appliesTo.const)){const err194 = {};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}}}}var _valid14 = _errs214 === errors;valid119 = valid119 || _valid14;}if(!valid119){const err195 = {};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}else {errors = _errs210;if(vErrors !== null){if(_errs210){vErrors.length = _errs210;}else {vErrors = null;}}}var _valid13 = _errs209 === errors;errors = _errs208;if(vErrors !== null){if(_errs208){vErrors.length = _errs208;}else {vErrors = null;}}if(_valid13){const _errs216 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data107 = data.properties;if(Array.isArray(data107)){const len19 = data107.length;for(let i19=0; i19<len19; i19++){let data108 = data107[i19];const _errs219 = errors;let valid126 = true;const _errs220 = errors;if(data108 && typeof data108 == "object" && !Array.isArray(data108)){if((data108.binding === undefined) && ("binding")){const err196 = {};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}else {if(data108.binding !== undefined){let data109 = data108.binding;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){if(((data109.type === undefined) && ("type")) || ((data109.name === undefined) && ("name"))){const err197 = {};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}else {if(data109.type !== undefined){const _errs222 = errors;if("property" !== data109.type){const err198 = {};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}var valid128 = _errs222 === errors;}else {var valid128 = true;}if(valid128){if(data109.name !== undefined){const _errs223 = errors;if("completionCondition" !== data109.name){const err199 = {};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}var valid128 = _errs223 === errors;}else {var valid128 = true;}}}}}}}var _valid15 = _errs220 === errors;errors = _errs219;if(vErrors !== null){if(_errs219){vErrors.length = _errs219;}else {vErrors = null;}}if(_valid15){const _errs224 = errors;if(data108 && typeof data108 == "object" && !Array.isArray(data108)){if(data108.feel === undefined){const err200 = {instancePath:instancePath+"/properties/" + i19,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 = [err200];}else {vErrors.push(err200);}errors++;}if(data108.feel !== undefined){if("required" !== data108.feel){const err201 = {instancePath:instancePath+"/properties/" + i19+"/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 = [err201];}else {vErrors.push(err201);}errors++;}}}var _valid15 = _errs224 === errors;valid126 = _valid15;}if(!valid126){const err202 = {instancePath:instancePath+"/properties/" + i19,schemaPath:"#/allOf/2/allOf/0/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}}}}var _valid13 = _errs216 === errors;valid118 = _valid13;}if(!valid118){const err203 = {instancePath,schemaPath:"#/allOf/2/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}const _errs227 = errors;let valid130 = true;const _errs228 = errors;const _errs229 = errors;let valid131 = false;const _errs230 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err204 = {};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}else {if(data.elementType !== undefined){let data113 = data.elementType;if(data113 && typeof data113 == "object" && !Array.isArray(data113)){if((data113.value === undefined) && ("value")){const err205 = {};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}else {if(data113.value !== undefined){if("bpmn:SequenceFlow" !== data113.value){const err206 = {};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}}}}}}}var _valid17 = _errs230 === errors;valid131 = valid131 || _valid17;if(!valid131){const _errs233 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err207 = {};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[1].if.anyOf[1].properties.appliesTo.const)){const err208 = {};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}}}var _valid17 = _errs233 === errors;valid131 = valid131 || _valid17;}if(!valid131){const err209 = {};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}else {errors = _errs229;if(vErrors !== null){if(_errs229){vErrors.length = _errs229;}else {vErrors = null;}}}var _valid16 = _errs228 === errors;errors = _errs227;if(vErrors !== null){if(_errs227){vErrors.length = _errs227;}else {vErrors = null;}}if(_valid16){const _errs235 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data116 = data.properties;if(Array.isArray(data116)){const len20 = data116.length;for(let i20=0; i20<len20; i20++){let data117 = data116[i20];const _errs238 = errors;let valid138 = true;const _errs239 = errors;if(data117 && typeof data117 == "object" && !Array.isArray(data117)){if((data117.binding === undefined) && ("binding")){const err210 = {};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}else {if(data117.binding !== undefined){let data118 = data117.binding;if(data118 && typeof data118 == "object" && !Array.isArray(data118)){if(((data118.type === undefined) && ("type")) || ((data118.name === undefined) && ("name"))){const err211 = {};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}else {if(data118.type !== undefined){const _errs241 = errors;if("property" !== data118.type){const err212 = {};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}var valid140 = _errs241 === errors;}else {var valid140 = true;}if(valid140){if(data118.name !== undefined){const _errs242 = errors;if("conditionExpression" !== data118.name){const err213 = {};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}var valid140 = _errs242 === errors;}else {var valid140 = true;}}}}}}}var _valid18 = _errs239 === errors;errors = _errs238;if(vErrors !== null){if(_errs238){vErrors.length = _errs238;}else {vErrors = null;}}if(_valid18){const _errs243 = errors;if(data117 && typeof data117 == "object" && !Array.isArray(data117)){if(data117.feel === undefined){const err214 = {instancePath:instancePath+"/properties/" + i20,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 = [err214];}else {vErrors.push(err214);}errors++;}if(data117.feel !== undefined){if("required" !== data117.feel){const err215 = {instancePath:instancePath+"/properties/" + i20+"/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 = [err215];}else {vErrors.push(err215);}errors++;}}}var _valid18 = _errs243 === errors;valid138 = _valid18;}if(!valid138){const err216 = {instancePath:instancePath+"/properties/" + i20,schemaPath:"#/allOf/2/allOf/1/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}}}}var _valid16 = _errs235 === errors;valid130 = _valid16;}if(!valid130){const err217 = {instancePath,schemaPath:"#/allOf/2/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}const _errs246 = errors;let valid142 = true;const _errs247 = errors;const _errs248 = errors;let valid143 = false;const _errs249 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.elementType === undefined) && ("elementType")){const err218 = {};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}else {if(data.elementType !== undefined){let data122 = data.elementType;if(data122 && typeof data122 == "object" && !Array.isArray(data122)){if((data122.value === undefined) && ("value")){const err219 = {};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}else {if(data122.value !== undefined){if("bpmn:ComplexGateway" !== data122.value){const err220 = {};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}}}}}}var _valid20 = _errs249 === errors;valid143 = valid143 || _valid20;if(!valid143){const _errs252 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if((data.appliesTo === undefined) && ("appliesTo")){const err221 = {};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}else {if(data.appliesTo !== undefined){if(!func0(data.appliesTo, schema17.allOf[2].allOf[2].if.anyOf[1].properties.appliesTo.const)){const err222 = {};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}}var _valid20 = _errs252 === errors;valid143 = valid143 || _valid20;}if(!valid143){const err223 = {};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}else {errors = _errs248;if(vErrors !== null){if(_errs248){vErrors.length = _errs248;}else {vErrors = null;}}}var _valid19 = _errs247 === errors;errors = _errs246;if(vErrors !== null){if(_errs246){vErrors.length = _errs246;}else {vErrors = null;}}if(_valid19){const _errs254 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.properties !== undefined){let data125 = data.properties;if(Array.isArray(data125)){const len21 = data125.length;for(let i21=0; i21<len21; i21++){let data126 = data125[i21];const _errs257 = errors;let valid150 = true;const _errs258 = errors;if(data126 && typeof data126 == "object" && !Array.isArray(data126)){if((data126.binding === undefined) && ("binding")){const err224 = {};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {if(data126.binding !== undefined){let data127 = data126.binding;if(data127 && typeof data127 == "object" && !Array.isArray(data127)){if(((data127.type === undefined) && ("type")) || ((data127.name === undefined) && ("name"))){const err225 = {};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}else {if(data127.type !== undefined){const _errs260 = errors;if("property" !== data127.type){const err226 = {};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}var valid152 = _errs260 === errors;}else {var valid152 = true;}if(valid152){if(data127.name !== undefined){const _errs261 = errors;if("activationCondition" !== data127.name){const err227 = {};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}var valid152 = _errs261 === errors;}else {var valid152 = true;}}}}}}}var _valid21 = _errs258 === errors;errors = _errs257;if(vErrors !== null){if(_errs257){vErrors.length = _errs257;}else {vErrors = null;}}if(_valid21){const _errs262 = errors;if(data126 && typeof data126 == "object" && !Array.isArray(data126)){if(data126.feel === undefined){const err228 = {instancePath:instancePath+"/properties/" + i21,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 = [err228];}else {vErrors.push(err228);}errors++;}if(data126.feel !== undefined){if("required" !== data126.feel){const err229 = {instancePath:instancePath+"/properties/" + i21+"/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 = [err229];}else {vErrors.push(err229);}errors++;}}}var _valid21 = _errs262 === errors;valid150 = _valid21;}if(!valid150){const err230 = {instancePath:instancePath+"/properties/" + i21,schemaPath:"#/allOf/2/allOf/2/then/properties/properties/items/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}}}var _valid19 = _errs254 === errors;valid142 = _valid19;}if(!valid142){const err231 = {instancePath,schemaPath:"#/allOf/2/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}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 data132 = data.engines;if(data132 && typeof data132 == "object" && !Array.isArray(data132)){if(data132.camunda !== undefined){if(typeof data132.camunda !== "string"){const err232 = {instancePath:instancePath+"/engines/camunda",schemaPath:"#/properties/engines/properties/camunda/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}}else {const err233 = {instancePath:instancePath+"/engines",schemaPath:"#/properties/engines/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}if(data.category !== undefined){let data134 = data.category;if(data134 && typeof data134 == "object" && !Array.isArray(data134)){if(data134.id === undefined){const err234 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}if(data134.name === undefined){const err235 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if(data134.id !== undefined){if(typeof data134.id !== "string"){const err236 = {instancePath:instancePath+"/category/id",schemaPath:"#/properties/category/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}}if(data134.name !== undefined){if(typeof data134.name !== "string"){const err237 = {instancePath:instancePath+"/category/name",schemaPath:"#/properties/category/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}}else {const err238 = {instancePath:instancePath+"/category",schemaPath:"#/properties/category/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}if(data.icon !== undefined){let data137 = data.icon;if(data137 && typeof data137 == "object" && !Array.isArray(data137)){if(data137.contents === undefined){const err239 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/required",keyword:"required",params:{missingProperty: "contents"},message:"must have required property '"+"contents"+"'"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if(data137.contents !== undefined){let data138 = data137.contents;if(typeof data138 === "string"){if(!pattern4.test(data138)){const err240 = {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 = [err240];}else {vErrors.push(err240);}errors++;}}else {const err241 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if(errors > 0){const emErrors6 = {"pattern":[]};const templates6 = {};for(const err242 of vErrors){if((((((err242.keyword !== "errorMessage") && (!err242.emUsed)) && (err242.instancePath === instancePath+"/icon/contents")) && (err242.keyword in emErrors6)) && (err242.schemaPath.indexOf("#/properties/icon/properties/contents") === 0)) && (/^\/[^\/]*$/.test(err242.schemaPath.slice(37)))){emErrors6[err242.keyword].push(err242);err242.emUsed = true;}}for(const key6 in emErrors6){if(emErrors6[key6].length){const err243 = {instancePath:instancePath+"/icon/contents",schemaPath:"#/properties/icon/properties/contents/errorMessage",keyword:"errorMessage",params:{errors: emErrors6[key6]},message:key6 in templates6 ? templates6[key6]() : schema17.properties.icon.properties.contents.errorMessage[key6]};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}const emErrs18 = [];for(const err244 of vErrors){if(!err244.emUsed){emErrs18.push(err244);}}vErrors = emErrs18;errors = emErrs18.length;}}}else {const err245 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if(errors > 0){const emErrors7 = {"required":{"contents":[]}};const templates7 = {required:{}};let emPropParams3;let emParamsErrors3;for(const err246 of vErrors){if((((((err246.keyword !== "errorMessage") && (!err246.emUsed)) && (err246.instancePath === instancePath+"/icon")) && (err246.keyword in emErrors7)) && (err246.schemaPath.indexOf("#/properties/icon") === 0)) && (/^\/[^\/]*$/.test(err246.schemaPath.slice(17)))){emPropParams3 = obj0[err246.keyword];emParamsErrors3 = emErrors7[err246.keyword][err246.params[emPropParams3]];if(emParamsErrors3){emParamsErrors3.push(err246);err246.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 err247 = {instancePath:instancePath+"/icon",schemaPath:"#/properties/icon/errorMessage",keyword:"errorMessage",params:{errors: emParamsErrors3},message:tmpl3 ? tmpl3() : schema17.properties.icon.errorMessage[key7][keyProp3]};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}}const emErrs19 = [];for(const err248 of vErrors){if(!err248.emUsed){emErrs19.push(err248);}}vErrors = emErrs19;errors = emErrs19.length;}}if(data.elementType !== undefined){let data139 = data.elementType;if(data139 && typeof data139 == "object" && !Array.isArray(data139)){if(data139.eventDefinition !== undefined){if(!(data139.eventDefinition === "bpmn:MessageEventDefinition")){const err249 = {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 = [err249];}else {vErrors.push(err249);}errors++;}}}const _errs284 = errors;let valid161 = true;const _errs285 = errors;if(data139 && typeof data139 == "object" && !Array.isArray(data139)){if((data139.eventDefinition === undefined) && ("eventDefinition")){const err250 = {};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}var _valid22 = _errs285 === errors;errors = _errs284;if(vErrors !== null){if(_errs284){vErrors.length = _errs284;}else {vErrors = null;}}if(_valid22){const _errs286 = errors;if(data139 && typeof data139 == "object" && !Array.isArray(data139)){if(data139.value === undefined){const err251 = {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 = [err251];}else {vErrors.push(err251);}errors++;}if(data139.value !== undefined){let data141 = data139.value;if(!(((((data141 === "bpmn:StartEvent") || (data141 === "bpmn:IntermediateCatchEvent")) || (data141 === "bpmn:IntermediateThrowEvent")) || (data141 === "bpmn:BoundaryEvent")) || (data141 === "bpmn:EndEvent"))){const err252 = {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 = [err252];}else {vErrors.push(err252);}errors++;}}}var _valid22 = _errs286 === errors;valid161 = _valid22;}if(!valid161){const err253 = {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 = [err253];}else {vErrors.push(err253);}errors++;}}if(data.groups !== undefined){let data142 = data.groups;if(Array.isArray(data142)){const len22 = data142.length;for(let i22=0; i22<len22; i22++){let data143 = data142[i22];if(data143 && typeof data143 == "object" && !Array.isArray(data143)){if(data143.tooltip !== undefined){if(typeof data143.tooltip !== "string"){const err254 = {instancePath:instancePath+"/groups/" + i22+"/tooltip",schemaPath:"#/properties/groups/items/properties/tooltip/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}if(data143.openByDefault !== undefined){if(typeof data143.openByDefault !== "boolean"){const err255 = {instancePath:instancePath+"/groups/" + i22+"/openByDefault",schemaPath:"#/properties/groups/items/properties/openByDefault/type",keyword:"type",params:{type: "boolean"},message:"must be boolean"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}}}}}}}else {const err256 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}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;}
|
721
721
|
return standaloneZeebeValidator.exports;
|
722
722
|
}
|
723
723
|
|