@lincs.project/webannotation-schema 1.2.2 → 1.2.3

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.
@@ -1 +1 @@
1
- "use strict";module.exports = validate10;module.exports.default = validate10;const schema11 = {"$id":"https://wa.lincsproject.ca/v1/schema.jsonld","type":"object","description":"Web Annotation","properties":{"@context":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"http://www.w3.org/ns/anno.jsonld"},{"type":"string","const":"https://wa.lincsproject.ca/v1/ns/anno.jsonld"}],"description":"The context that determines the meaning of the JSON as an Annotation. The itens should point to a URI containing the defiintion used in this schema."},"id":{"type":"string","format":"uri","description":"The type of the Annotation."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Annotation"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The type of the Annotation."},"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","enum":["identifying","describing","correcting","tagging","classifying","linking","citing"]},{"type":"string","const":"crm:E55_Type"}],"description":"The relationship between an Annotation and a Motivation."},"created":{"type":"string","format":"date-time","description":"The time at which the resource was created."},"modified":{"type":"string","format":"date-time","description":"The time at which the resource was modified, after creation."},"creator":{"$ref":"defs.jsonld#/definitions/creator"},"contributor":{"type":"array","items":{"$ref":"defs.jsonld#/definitions/creator"},"minItems":1},"generator":{"$ref":"defs.jsonld#/definitions/software"},"target":{"$ref":"defs.jsonld#/definitions/target"},"body":{"oneOf":[{"$ref":"defs.jsonld#/definitions/bodyChoice"},{"$ref":"defs.jsonld#/definitions/body"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"},"minItems":1}]},"status":{"type":"string","enum":["draft","approved","published"]}},"required":["@context","id","type","motivation","created","generator","target","body","status"],"allOf":[{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"oneOf":[{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Person"},{"oneOf":[{"type":"string","const":"crm:E21_Person","description":"Real Person"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Person"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Place"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"oneOf":[{"type":"string","const":"crm:E74_Group","description":"Real Organization"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Organization"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E89_Propositional_Object"},{"oneOf":[{"type":"string","const":"frbroo:F1","description":"Real Work"},{"type":"string","const":"wikidata:Q15306849","description":"Fictional Work"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Physical Thing"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Conceptual Object"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"YET TO BE DEFINED EVENT CLASS"},{"oneOf":[{"type":"string","const":"crm:E5_Event","description":"Real Event"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Event"}]}]}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"identifying"},{"type":"string","const":"crm:E55_Type"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"string","const":"crm:E33_Linguistic_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"describing"},{"type":"string","const":"crm:E55_Type"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"correcting"},{"type":"string","const":"crm:E55_Type"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"tagging"},{"type":"string","const":"crm:E55_Type"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"classifying"},{"type":"string","const":"crm:E55_Type"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"string","const":"crmdig:D1_Digital_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"linking"},{"type":"string","const":"crm:E55_Type"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"citing"},{"type":"string","const":"crm:E55_Type"}]}}}}}}}}}}],"additionalProperties":false};const schema13 = {"type":"object","description":"Software Agent","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the agent (Creator or Contributor)."},"type":{"type":"string","const":"crm:E21_Person"},"name":{"type":"string","minLength":1,"description":"The name of the agent."}},"required":["id","type","name"]};const schema15 = {"type":"object","description":"Software Agent","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the agent (software)."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Software"},{"type":"string","const":"crm:P16_used_specific_object"}],"description":"The type of the Agent."},"label":{"type":"string","minLength":1,"description":"The name of the software."},"softwareVersion":{"type":"string","description":"The software version."}},"required":["id","type","label"]};const schema35 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Body resource."},"type":{"type":"string","const":"TextualBody"},"entityType":{"oneOf":[{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Person"},{"oneOf":[{"type":"string","const":"crm:E21_Person","description":"Real Person"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Person"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Place"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"oneOf":[{"type":"string","const":"crm:E74_Group","description":"Real Organization"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Organization"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E89_Propositional_Object"},{"oneOf":[{"type":"string","const":"frbroo:F1","description":"Real Work"},{"type":"string","const":"wikidata:Q15306849","description":"Fictional Work"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Physical Thing"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Conceptual Object"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"string","const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"string","const":"crmdig:D1_Digital_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"YET TO BE DEFINED EVENT CLASS"},{"oneOf":[{"type":"string","const":"crm:E5_Event","description":"Real Event"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Event"}]}]}]},"additionalType":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"value":{"type":"string"},"certainty":{"type":"string","enum":["edit:qualityLow","edit:qualityMedium","edit:qualityHigh","edit:qualityUnknown"],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},"precision":{"type":"string","enum":["edit:qualityLow","edit:qualityMedium","edit:qualityHigh","edit:qualityUnknown"],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."},"label":{"type":"string","minLength":1,"description":"The title or name of a linked resource or named entity."},"description":{"type":"string","description":"Short description of the linked resources or named entity."}},"required":["id","entityType"],"anyOf":[{"if":{"type":"object","properties":{"entityType":{"anyOf":[{"const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"xsd:date"},{"const":"crm:E52_Time-Span"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"fabio:Correction"},{"const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"crm:E55_Type"},{"const":"crm:E33_Linguistic_Object"}]}]}}},"then":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","const":"TextualBody"}},"if":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"xsd:date"},{"const":"crm:E52_Time-Span"}]}}},"then":{"type":"object","properties":{"value":{"type":"string","pattern":"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"}}},"else":{"type":"object","properties":{"value":{"type":"string"}}}}}],"additionalProperties":false};const func2 = Object.prototype.hasOwnProperty;const func3 = require("ajv/dist/runtime/ucs2length").default;const formats0 = require("ajv-formats/dist/formats").fullFormats.uri;const formats2 = require("ajv-formats/dist/formats").fullFormats["date-time"];const schema16 = {"type":"object","description":"Web Annotation Target","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Target resource."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"SpecificResource"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Specific Resource."},"source":{"type":"object","description":"Web Annotation Target's source","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Target source."},"format":{"type":["string","array"],"nullable":true,"anyOf":[{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},{"type":"array","minItems":1,"items":{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},"description":"The formats of the Web Resource's content. The value of the property should and array of media-types of the format, following the [rfc6838] specification."}]},"language":{"type":["string","array"],"nullable":true,"anyOf":[{"type":"string","description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.","minLength":2,"maxLength":3},{"type":"array","minItems":1,"items":{"type":"string","description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.","minLength":2,"maxLength":3},"description":"The languages of the Web Resource's content. The value of the property should be an array of language code following the [bcp47] specification."}]},"title":{"type":"string","minLength":1,"nullable":true,"description":"The title of the document being annotated."}},"required":["id"]},"renderedVia":{"$ref":"defs.jsonld#/definitions/software","description":"The relationship between the Specific Resource that represents the Target in the annotation, and the piece of software or other system that was used to render the Target when the annotation was created."},"selector":{"anyOf":[{"type":"object","oneOf":[{"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"nullable":true,"required":[]}},"required":["id","type","exact","prefix","suffix"]},{"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"nullable":true,"required":[]}},"required":["id","type","start","end"]},{"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"nullable":true,"required":[]}},"required":["id","type","value"]},{"type":"object","description":"Range Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"startSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"},"endSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"}},"required":["id","type","startSelector","endSelector"]}],"required":[]},{"type":"array","items":{"type":"object","oneOf":[{"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"nullable":true,"required":[]}},"required":["id","type","exact","prefix","suffix"]},{"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"nullable":true,"required":[]}},"required":["id","type","start","end"]},{"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"nullable":true,"required":[]}},"required":["id","type","value"]},{"type":"object","description":"Range Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"startSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"},"endSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"}},"required":["id","type","startSelector","endSelector"]}],"required":[]},"minItems":1}]}},"required":["id","type","source","selector"],"allOf":[{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["id","type","exact","prefix","suffix"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","startSelector","endSelector"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","value"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","start","end"]}}}}]};const schema18 = {"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."}},"required":["id","type","start","end"]};const schema19 = {"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."}},"required":["id","type","exact","prefix","suffix"]};const schema24 = {"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"}},"required":["id","type","value"]};function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(errors === _errs3){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data0 = data.selector;const _errs5 = errors;if(errors === _errs5){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.type !== undefined){let data1 = data0.type;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data1)){if(data1.length > 2){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data1.length < 2){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs9 = errors;if(typeof data2 !== "string"){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("TextQuoteSelector" !== data2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid4 = _errs9 === errors;}if(valid4){if(len0 > 1){let data3 = data1[1];const _errs11 = errors;if(typeof data3 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("crm:E33_Linguistic_Object" !== data3){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid4 = _errs11 === errors;}}}}}else {const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data4 = data.selector;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.id === undefined){const err9 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data4.type === undefined){const err10 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data4.exact === undefined){const err11 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data4.prefix === undefined){const err12 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data4.suffix === undefined){const err13 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}else {const err15 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid0 = _errs13 === errors;valid1 = _valid0;}if(!valid1){const err16 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}const _errs18 = errors;let valid6 = true;const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data5 = data.selector;const _errs21 = errors;if(errors === _errs21){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.type !== undefined){let data6 = data5.type;const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data6)){if(data6.length > 2){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {if(data6.length < 2){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {const len1 = data6.length;if(len1 > 0){let data7 = data6[0];const _errs25 = errors;if(typeof data7 !== "string"){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("RangeSelector" !== data7){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid9 = _errs25 === errors;}if(valid9){if(len1 > 1){let data8 = data6[1];const _errs27 = errors;if(typeof data8 !== "string"){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("crm:E73_Information_Object" !== data8){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid9 = _errs27 === errors;}}}}}else {const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}}else {const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}}else {const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}var _valid1 = _errs19 === errors;errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}if(_valid1){const _errs29 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data9 = data.selector;if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.type === undefined){const err26 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data9.startSelector === undefined){const err27 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data9.endSelector === undefined){const err28 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath,schemaPath:"#/allOf/1/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid1 = _errs29 === errors;valid6 = _valid1;}if(!valid6){const err31 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}const _errs34 = errors;let valid11 = true;const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data10 = data.selector;const _errs37 = errors;if(errors === _errs37){if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.type !== undefined){let data11 = data10.type;const _errs39 = errors;if(errors === _errs39){if(Array.isArray(data11)){if(data11.length > 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data11.length < 2){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const len2 = data11.length;if(len2 > 0){let data12 = data11[0];const _errs41 = errors;if(typeof data12 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("XPathSelector" !== data12){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid14 = _errs41 === errors;}if(valid14){if(len2 > 1){let data13 = data11[1];const _errs43 = errors;if(typeof data13 !== "string"){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("crm:E73_Information_Object" !== data13){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid14 = _errs43 === errors;}}}}}else {const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}}else {const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}}else {const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}var _valid2 = _errs35 === errors;errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}if(_valid2){const _errs45 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data14 = data.selector;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.type === undefined){const err41 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data14.value === undefined){const err42 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {instancePath,schemaPath:"#/allOf/2/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var _valid2 = _errs45 === errors;valid11 = _valid2;}if(!valid11){const err45 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}const _errs50 = errors;let valid16 = true;const _errs51 = errors;if(errors === _errs51){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data15 = data.selector;const _errs53 = errors;if(errors === _errs53){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.type !== undefined){let data16 = data15.type;const _errs55 = errors;if(errors === _errs55){if(Array.isArray(data16)){if(data16.length > 2){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {if(data16.length < 2){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {const len3 = data16.length;if(len3 > 0){let data17 = data16[0];const _errs57 = errors;if(typeof data17 !== "string"){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("TextPositionSelector" !== data17){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid19 = _errs57 === errors;}if(valid19){if(len3 > 1){let data18 = data16[1];const _errs59 = errors;if(typeof data18 !== "string"){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("crm:E73_Information_Object" !== data18){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid19 = _errs59 === errors;}}}}}else {const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}}else {const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}}else {const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}var _valid3 = _errs51 === errors;errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}if(_valid3){const _errs61 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data19 = data.selector;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.type === undefined){const err55 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data19.start === undefined){const err56 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data19.end === undefined){const err57 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}else {const err58 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}else {const err59 = {instancePath,schemaPath:"#/allOf/3/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var _valid3 = _errs61 === errors;valid16 = _valid3;}if(!valid16){const err60 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err61 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(data.type === undefined){const err62 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(data.source === undefined){const err63 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(data.selector === undefined){const err64 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "selector"},message:"must have required property '"+"selector"+"'"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if(data.id !== undefined){let data20 = data.id;if(typeof data20 === "string"){if(!(formats0(data20))){const err65 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}else {const err66 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data.type !== undefined){let data21 = data.type;if(Array.isArray(data21)){if(data21.length > 2){const err67 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if(data21.length < 2){const err68 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}const len4 = data21.length;if(len4 > 0){let data22 = data21[0];if(typeof data22 !== "string"){const err69 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if("SpecificResource" !== data22){const err70 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "SpecificResource"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(len4 > 1){let data23 = data21[1];if(typeof data23 !== "string"){const err71 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("crm:E73_Information_Object" !== data23){const err72 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}else {const err73 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data.source !== undefined){let data24 = data.source;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(data24.id === undefined){const err74 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(data24.id !== undefined){let data25 = data24.id;if(typeof data25 === "string"){if(!(formats0(data25))){const err75 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}else {const err76 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}if(data24.format !== undefined){let data26 = data24.format;if(((typeof data26 !== "string") && (!(Array.isArray(data26)))) && (data26 !== null)){const err77 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/type",keyword:"type",params:{type: schema16.properties.source.properties.format.type},message:"must be string,array,null"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}const _errs80 = errors;let valid24 = false;const _errs81 = errors;if(typeof data26 === "string"){if(func3(data26) < 1){const err78 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}else {const err79 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}var _valid4 = _errs81 === errors;valid24 = valid24 || _valid4;if(!valid24){const _errs83 = errors;if(Array.isArray(data26)){if(data26.length < 1){const err80 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const len5 = data26.length;for(let i0=0; i0<len5; i0++){let data27 = data26[i0];if(typeof data27 === "string"){if(func3(data27) < 1){const err81 = {instancePath:instancePath+"/source/format/" + i0,schemaPath:"#/properties/source/properties/format/anyOf/1/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}else {const err82 = {instancePath:instancePath+"/source/format/" + i0,schemaPath:"#/properties/source/properties/format/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}}else {const err83 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var _valid4 = _errs83 === errors;valid24 = valid24 || _valid4;}if(!valid24){const err84 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {errors = _errs80;if(vErrors !== null){if(_errs80){vErrors.length = _errs80;}else {vErrors = null;}}}}if(data24.language !== undefined){let data28 = data24.language;if(((typeof data28 !== "string") && (!(Array.isArray(data28)))) && (data28 !== null)){const err85 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/type",keyword:"type",params:{type: schema16.properties.source.properties.language.type},message:"must be string,array,null"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}const _errs90 = errors;let valid27 = false;const _errs91 = errors;if(typeof data28 === "string"){if(func3(data28) > 3){const err86 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 3},message:"must NOT have more than 3 characters"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(func3(data28) < 2){const err87 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}else {const err88 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var _valid5 = _errs91 === errors;valid27 = valid27 || _valid5;if(!valid27){const _errs93 = errors;if(Array.isArray(data28)){if(data28.length < 1){const err89 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}const len6 = data28.length;for(let i1=0; i1<len6; i1++){let data29 = data28[i1];if(typeof data29 === "string"){if(func3(data29) > 3){const err90 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/maxLength",keyword:"maxLength",params:{limit: 3},message:"must NOT have more than 3 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(func3(data29) < 2){const err91 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}else {const err92 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}else {const err93 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}var _valid5 = _errs93 === errors;valid27 = valid27 || _valid5;}if(!valid27){const err94 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}else {errors = _errs90;if(vErrors !== null){if(_errs90){vErrors.length = _errs90;}else {vErrors = null;}}}}if(data24.title !== undefined){let data30 = data24.title;if((typeof data30 !== "string") && (data30 !== null)){const err95 = {instancePath:instancePath+"/source/title",schemaPath:"#/properties/source/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(typeof data30 === "string"){if(func3(data30) < 1){const err96 = {instancePath:instancePath+"/source/title",schemaPath:"#/properties/source/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}}else {const err97 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}if(data.renderedVia !== undefined){let data31 = data.renderedVia;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(data31.id === undefined){const err98 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(data31.type === undefined){const err99 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data31.label === undefined){const err100 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(data31.id !== undefined){let data32 = data31.id;if(typeof data32 === "string"){if(!(formats0(data32))){const err101 = {instancePath:instancePath+"/renderedVia/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}else {const err102 = {instancePath:instancePath+"/renderedVia/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(data31.type !== undefined){let data33 = data31.type;if(Array.isArray(data33)){if(data33.length > 2){const err103 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data33.length < 2){const err104 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}const len7 = data33.length;if(len7 > 0){let data34 = data33[0];if(typeof data34 !== "string"){const err105 = {instancePath:instancePath+"/renderedVia/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if("Software" !== data34){const err106 = {instancePath:instancePath+"/renderedVia/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}if(len7 > 1){let data35 = data33[1];if(typeof data35 !== "string"){const err107 = {instancePath:instancePath+"/renderedVia/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if("crm:P16_used_specific_object" !== data35){const err108 = {instancePath:instancePath+"/renderedVia/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:P16_used_specific_object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}else {const err109 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data31.label !== undefined){let data36 = data31.label;if(typeof data36 === "string"){if(func3(data36) < 1){const err110 = {instancePath:instancePath+"/renderedVia/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}else {const err111 = {instancePath:instancePath+"/renderedVia/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}if(data31.softwareVersion !== undefined){if(typeof data31.softwareVersion !== "string"){const err112 = {instancePath:instancePath+"/renderedVia/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}else {const err113 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(data.selector !== undefined){let data38 = data.selector;const _errs116 = errors;let valid33 = false;const _errs117 = errors;const _errs119 = errors;let valid34 = false;let passing0 = null;const _errs120 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.id === undefined){const err114 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(data38.type === undefined){const err115 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if(data38.exact === undefined){const err116 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}if(data38.prefix === undefined){const err117 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(data38.suffix === undefined){const err118 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if(data38.id !== undefined){let data39 = data38.id;if(typeof data39 === "string"){if(!(formats0(data39))){const err119 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data38.type !== undefined){let data40 = data38.type;if(Array.isArray(data40)){if(data40.length > 2){const err121 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if(data40.length < 2){const err122 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}const len8 = data40.length;if(len8 > 0){let data41 = data40[0];if(typeof data41 !== "string"){const err123 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if("TextQuoteSelector" !== data41){const err124 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(len8 > 1){let data42 = data40[1];if(typeof data42 !== "string"){const err125 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if("crm:E33_Linguistic_Object" !== data42){const err126 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}}else {const err127 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}if(data38.exact !== undefined){if(typeof data38.exact !== "string"){const err128 = {instancePath:instancePath+"/selector/exact",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}if(data38.prefix !== undefined){if(typeof data38.prefix !== "string"){const err129 = {instancePath:instancePath+"/selector/prefix",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(data38.suffix !== undefined){if(typeof data38.suffix !== "string"){const err130 = {instancePath:instancePath+"/selector/suffix",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(data38.refinedBy !== undefined){let data46 = data38.refinedBy;if((!(data46 && typeof data46 == "object" && !Array.isArray(data46))) && (data46 !== null)){const err131 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}const _errs139 = errors;let valid37 = false;let passing1 = null;const _errs140 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.id === undefined){const err132 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data46.type === undefined){const err133 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}if(data46.start === undefined){const err134 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}if(data46.end === undefined){const err135 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(data46.id !== undefined){let data47 = data46.id;if(typeof data47 === "string"){if(!(formats0(data47))){const err136 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}else {const err137 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(data46.type !== undefined){let data48 = data46.type;if(Array.isArray(data48)){if(data48.length > 2){const err138 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if(data48.length < 2){const err139 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}const len9 = data48.length;if(len9 > 0){let data49 = data48[0];if(typeof data49 !== "string"){const err140 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}if("TextPositionSelector" !== data49){const err141 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}if(len9 > 1){let data50 = data48[1];if(typeof data50 !== "string"){const err142 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if("crm:E73_Information_Object" !== data50){const err143 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}else {const err144 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(data46.start !== undefined){let data51 = data46.start;if((typeof data51 == "number") && (isFinite(data51))){if(data51 < 0 || isNaN(data51)){const err145 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}else {const err146 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(data46.end !== undefined){let data52 = data46.end;if((typeof data52 == "number") && (isFinite(data52))){if(data52 < 0 || isNaN(data52)){const err147 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}else {const err148 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var _valid8 = _errs140 === errors;if(_valid8){valid37 = true;passing1 = 0;}const _errs155 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.id === undefined){const err150 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data46.type === undefined){const err151 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data46.exact === undefined){const err152 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(data46.prefix === undefined){const err153 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(data46.suffix === undefined){const err154 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if(data46.id !== undefined){let data53 = data46.id;if(typeof data53 === "string"){if(!(formats0(data53))){const err155 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}else {const err156 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}}if(data46.type !== undefined){let data54 = data46.type;if(Array.isArray(data54)){if(data54.length > 2){const err157 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if(data54.length < 2){const err158 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}const len10 = data54.length;if(len10 > 0){let data55 = data54[0];if(typeof data55 !== "string"){const err159 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if("TextQuoteSelector" !== data55){const err160 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(len10 > 1){let data56 = data54[1];if(typeof data56 !== "string"){const err161 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if("crm:E33_Linguistic_Object" !== data56){const err162 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}}else {const err163 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data46.exact !== undefined){if(typeof data46.exact !== "string"){const err164 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data46.prefix !== undefined){if(typeof data46.prefix !== "string"){const err165 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}if(data46.suffix !== undefined){if(typeof data46.suffix !== "string"){const err166 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}}else {const err167 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}var _valid8 = _errs155 === errors;if(_valid8 && valid37){valid37 = false;passing1 = [passing1, 1];}else {if(_valid8){valid37 = true;passing1 = 1;}}if(!valid37){const err168 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}else {errors = _errs139;if(vErrors !== null){if(_errs139){vErrors.length = _errs139;}else {vErrors = null;}}}}}else {const err169 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}var _valid7 = _errs120 === errors;if(_valid7){valid34 = true;passing0 = 0;}const _errs172 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.id === undefined){const err170 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(data38.type === undefined){const err171 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if(data38.start === undefined){const err172 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if(data38.end === undefined){const err173 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(data38.id !== undefined){let data60 = data38.id;if(typeof data60 === "string"){if(!(formats0(data60))){const err174 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}else {const err175 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data38.type !== undefined){let data61 = data38.type;if(Array.isArray(data61)){if(data61.length > 2){const err176 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if(data61.length < 2){const err177 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}const len11 = data61.length;if(len11 > 0){let data62 = data61[0];if(typeof data62 !== "string"){const err178 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}if("TextPositionSelector" !== data62){const err179 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(len11 > 1){let data63 = data61[1];if(typeof data63 !== "string"){const err180 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if("crm:E73_Information_Object" !== data63){const err181 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}}else {const err182 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data38.start !== undefined){let data64 = data38.start;if((typeof data64 == "number") && (isFinite(data64))){if(data64 < 0 || isNaN(data64)){const err183 = {instancePath:instancePath+"/selector/start",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}else {const err184 = {instancePath:instancePath+"/selector/start",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}if(data38.end !== undefined){let data65 = data38.end;if((typeof data65 == "number") && (isFinite(data65))){if(data65 < 0 || isNaN(data65)){const err185 = {instancePath:instancePath+"/selector/end",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}else {const err186 = {instancePath:instancePath+"/selector/end",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}if(data38.refinedBy !== undefined){let data66 = data38.refinedBy;if((!(data66 && typeof data66 == "object" && !Array.isArray(data66))) && (data66 !== null)){const err187 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}const _errs189 = errors;let valid46 = false;let passing2 = null;const _errs190 = errors;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.id === undefined){const err188 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if(data66.type === undefined){const err189 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if(data66.start === undefined){const err190 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data66.end === undefined){const err191 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if(data66.id !== undefined){let data67 = data66.id;if(typeof data67 === "string"){if(!(formats0(data67))){const err192 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}else {const err193 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}if(data66.type !== undefined){let data68 = data66.type;if(Array.isArray(data68)){if(data68.length > 2){const err194 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if(data68.length < 2){const err195 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}const len12 = data68.length;if(len12 > 0){let data69 = data68[0];if(typeof data69 !== "string"){const err196 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if("TextPositionSelector" !== data69){const err197 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}}if(len12 > 1){let data70 = data68[1];if(typeof data70 !== "string"){const err198 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}if("crm:E73_Information_Object" !== data70){const err199 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}}else {const err200 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(data66.start !== undefined){let data71 = data66.start;if((typeof data71 == "number") && (isFinite(data71))){if(data71 < 0 || isNaN(data71)){const err201 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}else {const err202 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}if(data66.end !== undefined){let data72 = data66.end;if((typeof data72 == "number") && (isFinite(data72))){if(data72 < 0 || isNaN(data72)){const err203 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}else {const err204 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}}else {const err205 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}var _valid9 = _errs190 === errors;if(_valid9){valid46 = true;passing2 = 0;}const _errs205 = errors;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.id === undefined){const err206 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}if(data66.type === undefined){const err207 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(data66.exact === undefined){const err208 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}if(data66.prefix === undefined){const err209 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if(data66.suffix === undefined){const err210 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}if(data66.id !== undefined){let data73 = data66.id;if(typeof data73 === "string"){if(!(formats0(data73))){const err211 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}else {const err212 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data66.type !== undefined){let data74 = data66.type;if(Array.isArray(data74)){if(data74.length > 2){const err213 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}if(data74.length < 2){const err214 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}const len13 = data74.length;if(len13 > 0){let data75 = data74[0];if(typeof data75 !== "string"){const err215 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if("TextQuoteSelector" !== data75){const err216 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(len13 > 1){let data76 = data74[1];if(typeof data76 !== "string"){const err217 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}if("crm:E33_Linguistic_Object" !== data76){const err218 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}}else {const err219 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data66.exact !== undefined){if(typeof data66.exact !== "string"){const err220 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data66.prefix !== undefined){if(typeof data66.prefix !== "string"){const err221 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}if(data66.suffix !== undefined){if(typeof data66.suffix !== "string"){const err222 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}else {const err223 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}var _valid9 = _errs205 === errors;if(_valid9 && valid46){valid46 = false;passing2 = [passing2, 1];}else {if(_valid9){valid46 = true;passing2 = 1;}}if(!valid46){const err224 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {errors = _errs189;if(vErrors !== null){if(_errs189){vErrors.length = _errs189;}else {vErrors = null;}}}}}else {const err225 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}var _valid7 = _errs172 === errors;if(_valid7 && valid34){valid34 = false;passing0 = [passing0, 1];}else {if(_valid7){valid34 = true;passing0 = 1;}const _errs222 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.id === undefined){const err226 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}if(data38.type === undefined){const err227 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}if(data38.value === undefined){const err228 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}if(data38.id !== undefined){let data80 = data38.id;if(typeof data80 === "string"){if(!(formats0(data80))){const err229 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}else {const err230 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}if(data38.type !== undefined){let data81 = data38.type;if(Array.isArray(data81)){if(data81.length > 2){const err231 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}if(data81.length < 2){const err232 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}const len14 = data81.length;if(len14 > 0){let data82 = data81[0];if(typeof data82 !== "string"){const err233 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}if("XPathSelector" !== data82){const err234 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}if(len14 > 1){let data83 = data81[1];if(typeof data83 !== "string"){const err235 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if("crm:E73_Information_Object" !== data83){const err236 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}}}else {const err237 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}if(data38.value !== undefined){if(typeof data38.value !== "string"){const err238 = {instancePath:instancePath+"/selector/value",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}if(data38.refinedBy !== undefined){let data85 = data38.refinedBy;if((!(data85 && typeof data85 == "object" && !Array.isArray(data85))) && (data85 !== null)){const err239 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}const _errs237 = errors;let valid55 = false;const _errs238 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.id === undefined){const err240 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}if(data85.type === undefined){const err241 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if(data85.start === undefined){const err242 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}if(data85.end === undefined){const err243 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}if(data85.id !== undefined){let data86 = data85.id;if(typeof data86 === "string"){if(!(formats0(data86))){const err244 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}else {const err245 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}if(data85.type !== undefined){let data87 = data85.type;if(Array.isArray(data87)){if(data87.length > 2){const err246 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}if(data87.length < 2){const err247 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}const len15 = data87.length;if(len15 > 0){let data88 = data87[0];if(typeof data88 !== "string"){const err248 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if("TextPositionSelector" !== data88){const err249 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}if(len15 > 1){let data89 = data87[1];if(typeof data89 !== "string"){const err250 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}if("crm:E73_Information_Object" !== data89){const err251 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}}else {const err252 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}}if(data85.start !== undefined){let data90 = data85.start;if((typeof data90 == "number") && (isFinite(data90))){if(data90 < 0 || isNaN(data90)){const err253 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}else {const err254 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}if(data85.end !== undefined){let data91 = data85.end;if((typeof data91 == "number") && (isFinite(data91))){if(data91 < 0 || isNaN(data91)){const err255 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}}else {const err256 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}}else {const err257 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}var _valid10 = _errs238 === errors;valid55 = valid55 || _valid10;if(!valid55){const _errs253 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.id === undefined){const err258 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}if(data85.type === undefined){const err259 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}if(data85.exact === undefined){const err260 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}if(data85.prefix === undefined){const err261 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}if(data85.suffix === undefined){const err262 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if(data85.id !== undefined){let data92 = data85.id;if(typeof data92 === "string"){if(!(formats0(data92))){const err263 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}else {const err264 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}if(data85.type !== undefined){let data93 = data85.type;if(Array.isArray(data93)){if(data93.length > 2){const err265 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}if(data93.length < 2){const err266 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}const len16 = data93.length;if(len16 > 0){let data94 = data93[0];if(typeof data94 !== "string"){const err267 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}if("TextQuoteSelector" !== data94){const err268 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}}if(len16 > 1){let data95 = data93[1];if(typeof data95 !== "string"){const err269 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}if("crm:E33_Linguistic_Object" !== data95){const err270 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}}}else {const err271 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}if(data85.exact !== undefined){if(typeof data85.exact !== "string"){const err272 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}if(data85.prefix !== undefined){if(typeof data85.prefix !== "string"){const err273 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}}if(data85.suffix !== undefined){if(typeof data85.suffix !== "string"){const err274 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}}}else {const err275 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}var _valid10 = _errs253 === errors;valid55 = valid55 || _valid10;}if(!valid55){const err276 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}else {errors = _errs237;if(vErrors !== null){if(_errs237){vErrors.length = _errs237;}else {vErrors = null;}}}}}else {const err277 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}var _valid7 = _errs222 === errors;if(_valid7 && valid34){valid34 = false;passing0 = [passing0, 2];}else {if(_valid7){valid34 = true;passing0 = 2;}const _errs270 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.id === undefined){const err278 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}if(data38.type === undefined){const err279 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}if(data38.startSelector === undefined){const err280 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}if(data38.endSelector === undefined){const err281 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}if(data38.id !== undefined){let data99 = data38.id;if(typeof data99 === "string"){if(!(formats0(data99))){const err282 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}else {const err283 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}if(data38.type !== undefined){let data100 = data38.type;if(Array.isArray(data100)){if(data100.length > 2){const err284 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if(data100.length < 2){const err285 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}const len17 = data100.length;if(len17 > 0){let data101 = data100[0];if(typeof data101 !== "string"){const err286 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if("RangeSelector" !== data101){const err287 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}if(len17 > 1){let data102 = data100[1];if(typeof data102 !== "string"){const err288 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}if("crm:E73_Information_Object" !== data102){const err289 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}}else {const err290 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}if(data38.startSelector !== undefined){let data103 = data38.startSelector;if(data103 && typeof data103 == "object" && !Array.isArray(data103)){if(data103.id === undefined){const err291 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}if(data103.type === undefined){const err292 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}if(data103.value === undefined){const err293 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}if(data103.id !== undefined){let data104 = data103.id;if(typeof data104 === "string"){if(!(formats0(data104))){const err294 = {instancePath:instancePath+"/selector/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}}else {const err295 = {instancePath:instancePath+"/selector/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}}if(data103.type !== undefined){let data105 = data103.type;if(Array.isArray(data105)){if(data105.length > 2){const err296 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}if(data105.length < 2){const err297 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}const len18 = data105.length;if(len18 > 0){let data106 = data105[0];if(typeof data106 !== "string"){const err298 = {instancePath:instancePath+"/selector/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}if("XPathSelector" !== data106){const err299 = {instancePath:instancePath+"/selector/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}if(len18 > 1){let data107 = data105[1];if(typeof data107 !== "string"){const err300 = {instancePath:instancePath+"/selector/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}if("crm:E73_Information_Object" !== data107){const err301 = {instancePath:instancePath+"/selector/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}}else {const err302 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}if(data103.value !== undefined){if(typeof data103.value !== "string"){const err303 = {instancePath:instancePath+"/selector/startSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}}else {const err304 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}}if(data38.endSelector !== undefined){let data109 = data38.endSelector;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){if(data109.id === undefined){const err305 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}if(data109.type === undefined){const err306 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}if(data109.value === undefined){const err307 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if(data109.id !== undefined){let data110 = data109.id;if(typeof data110 === "string"){if(!(formats0(data110))){const err308 = {instancePath:instancePath+"/selector/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}else {const err309 = {instancePath:instancePath+"/selector/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}if(data109.type !== undefined){let data111 = data109.type;if(Array.isArray(data111)){if(data111.length > 2){const err310 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}if(data111.length < 2){const err311 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}const len19 = data111.length;if(len19 > 0){let data112 = data111[0];if(typeof data112 !== "string"){const err312 = {instancePath:instancePath+"/selector/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}if("XPathSelector" !== data112){const err313 = {instancePath:instancePath+"/selector/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}}if(len19 > 1){let data113 = data111[1];if(typeof data113 !== "string"){const err314 = {instancePath:instancePath+"/selector/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}if("crm:E73_Information_Object" !== data113){const err315 = {instancePath:instancePath+"/selector/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}}}else {const err316 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}}if(data109.value !== undefined){if(typeof data109.value !== "string"){const err317 = {instancePath:instancePath+"/selector/endSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}}else {const err318 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}}}else {const err319 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}var _valid7 = _errs270 === errors;if(_valid7 && valid34){valid34 = false;passing0 = [passing0, 3];}else {if(_valid7){valid34 = true;passing0 = 3;}}}}if(!valid34){const err320 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}if(!(data38 && typeof data38 == "object" && !Array.isArray(data38))){const err321 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}var _valid6 = _errs117 === errors;valid33 = valid33 || _valid6;if(!valid33){const _errs306 = errors;if(Array.isArray(data38)){if(data38.length < 1){const err322 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}const len20 = data38.length;for(let i2=0; i2<len20; i2++){let data115 = data38[i2];const _errs310 = errors;let valid72 = false;let passing3 = null;const _errs311 = errors;if(data115 && typeof data115 == "object" && !Array.isArray(data115)){if(data115.id === undefined){const err323 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}if(data115.type === undefined){const err324 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}if(data115.exact === undefined){const err325 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}if(data115.prefix === undefined){const err326 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}if(data115.suffix === undefined){const err327 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}if(data115.id !== undefined){let data116 = data115.id;if(typeof data116 === "string"){if(!(formats0(data116))){const err328 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}}else {const err329 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}if(data115.type !== undefined){let data117 = data115.type;if(Array.isArray(data117)){if(data117.length > 2){const err330 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}if(data117.length < 2){const err331 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}const len21 = data117.length;if(len21 > 0){let data118 = data117[0];if(typeof data118 !== "string"){const err332 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if("TextQuoteSelector" !== data118){const err333 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}}if(len21 > 1){let data119 = data117[1];if(typeof data119 !== "string"){const err334 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}if("crm:E33_Linguistic_Object" !== data119){const err335 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}}}else {const err336 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}}if(data115.exact !== undefined){if(typeof data115.exact !== "string"){const err337 = {instancePath:instancePath+"/selector/" + i2+"/exact",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}}if(data115.prefix !== undefined){if(typeof data115.prefix !== "string"){const err338 = {instancePath:instancePath+"/selector/" + i2+"/prefix",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}}if(data115.suffix !== undefined){if(typeof data115.suffix !== "string"){const err339 = {instancePath:instancePath+"/selector/" + i2+"/suffix",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}if(data115.refinedBy !== undefined){let data123 = data115.refinedBy;if((!(data123 && typeof data123 == "object" && !Array.isArray(data123))) && (data123 !== null)){const err340 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}const _errs330 = errors;let valid75 = false;let passing4 = null;const _errs331 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){if(data123.id === undefined){const err341 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}if(data123.type === undefined){const err342 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}if(data123.start === undefined){const err343 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}if(data123.end === undefined){const err344 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}if(data123.id !== undefined){let data124 = data123.id;if(typeof data124 === "string"){if(!(formats0(data124))){const err345 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}}else {const err346 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}}if(data123.type !== undefined){let data125 = data123.type;if(Array.isArray(data125)){if(data125.length > 2){const err347 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}if(data125.length < 2){const err348 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}const len22 = data125.length;if(len22 > 0){let data126 = data125[0];if(typeof data126 !== "string"){const err349 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}if("TextPositionSelector" !== data126){const err350 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}}if(len22 > 1){let data127 = data125[1];if(typeof data127 !== "string"){const err351 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}if("crm:E73_Information_Object" !== data127){const err352 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}}}else {const err353 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}}if(data123.start !== undefined){let data128 = data123.start;if((typeof data128 == "number") && (isFinite(data128))){if(data128 < 0 || isNaN(data128)){const err354 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}}else {const err355 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}}if(data123.end !== undefined){let data129 = data123.end;if((typeof data129 == "number") && (isFinite(data129))){if(data129 < 0 || isNaN(data129)){const err356 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}}else {const err357 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}}}else {const err358 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}var _valid12 = _errs331 === errors;if(_valid12){valid75 = true;passing4 = 0;}const _errs346 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){if(data123.id === undefined){const err359 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}if(data123.type === undefined){const err360 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}if(data123.exact === undefined){const err361 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}if(data123.prefix === undefined){const err362 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}if(data123.suffix === undefined){const err363 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}if(data123.id !== undefined){let data130 = data123.id;if(typeof data130 === "string"){if(!(formats0(data130))){const err364 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}}else {const err365 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}}if(data123.type !== undefined){let data131 = data123.type;if(Array.isArray(data131)){if(data131.length > 2){const err366 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}if(data131.length < 2){const err367 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}const len23 = data131.length;if(len23 > 0){let data132 = data131[0];if(typeof data132 !== "string"){const err368 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if("TextQuoteSelector" !== data132){const err369 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}}if(len23 > 1){let data133 = data131[1];if(typeof data133 !== "string"){const err370 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}if("crm:E33_Linguistic_Object" !== data133){const err371 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}}else {const err372 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}}if(data123.exact !== undefined){if(typeof data123.exact !== "string"){const err373 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}}if(data123.prefix !== undefined){if(typeof data123.prefix !== "string"){const err374 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}}if(data123.suffix !== undefined){if(typeof data123.suffix !== "string"){const err375 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}}}else {const err376 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}var _valid12 = _errs346 === errors;if(_valid12 && valid75){valid75 = false;passing4 = [passing4, 1];}else {if(_valid12){valid75 = true;passing4 = 1;}}if(!valid75){const err377 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}else {errors = _errs330;if(vErrors !== null){if(_errs330){vErrors.length = _errs330;}else {vErrors = null;}}}}}else {const err378 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}var _valid11 = _errs311 === errors;if(_valid11){valid72 = true;passing3 = 0;}const _errs363 = errors;if(data115 && typeof data115 == "object" && !Array.isArray(data115)){if(data115.id === undefined){const err379 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}if(data115.type === undefined){const err380 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}if(data115.start === undefined){const err381 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}if(data115.end === undefined){const err382 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}if(data115.id !== undefined){let data137 = data115.id;if(typeof data137 === "string"){if(!(formats0(data137))){const err383 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}else {const err384 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}}if(data115.type !== undefined){let data138 = data115.type;if(Array.isArray(data138)){if(data138.length > 2){const err385 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}if(data138.length < 2){const err386 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}const len24 = data138.length;if(len24 > 0){let data139 = data138[0];if(typeof data139 !== "string"){const err387 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}if("TextPositionSelector" !== data139){const err388 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}}if(len24 > 1){let data140 = data138[1];if(typeof data140 !== "string"){const err389 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}if("crm:E73_Information_Object" !== data140){const err390 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}}}else {const err391 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}}if(data115.start !== undefined){let data141 = data115.start;if((typeof data141 == "number") && (isFinite(data141))){if(data141 < 0 || isNaN(data141)){const err392 = {instancePath:instancePath+"/selector/" + i2+"/start",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}}else {const err393 = {instancePath:instancePath+"/selector/" + i2+"/start",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}}if(data115.end !== undefined){let data142 = data115.end;if((typeof data142 == "number") && (isFinite(data142))){if(data142 < 0 || isNaN(data142)){const err394 = {instancePath:instancePath+"/selector/" + i2+"/end",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}}else {const err395 = {instancePath:instancePath+"/selector/" + i2+"/end",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}}if(data115.refinedBy !== undefined){let data143 = data115.refinedBy;if((!(data143 && typeof data143 == "object" && !Array.isArray(data143))) && (data143 !== null)){const err396 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}const _errs380 = errors;let valid84 = false;let passing5 = null;const _errs381 = errors;if(data143 && typeof data143 == "object" && !Array.isArray(data143)){if(data143.id === undefined){const err397 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}if(data143.type === undefined){const err398 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}if(data143.start === undefined){const err399 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}if(data143.end === undefined){const err400 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}if(data143.id !== undefined){let data144 = data143.id;if(typeof data144 === "string"){if(!(formats0(data144))){const err401 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}}else {const err402 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}}if(data143.type !== undefined){let data145 = data143.type;if(Array.isArray(data145)){if(data145.length > 2){const err403 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}if(data145.length < 2){const err404 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}const len25 = data145.length;if(len25 > 0){let data146 = data145[0];if(typeof data146 !== "string"){const err405 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}if("TextPositionSelector" !== data146){const err406 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}}if(len25 > 1){let data147 = data145[1];if(typeof data147 !== "string"){const err407 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}if("crm:E73_Information_Object" !== data147){const err408 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}}else {const err409 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}}if(data143.start !== undefined){let data148 = data143.start;if((typeof data148 == "number") && (isFinite(data148))){if(data148 < 0 || isNaN(data148)){const err410 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}}else {const err411 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}}if(data143.end !== undefined){let data149 = data143.end;if((typeof data149 == "number") && (isFinite(data149))){if(data149 < 0 || isNaN(data149)){const err412 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}}else {const err413 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}}}else {const err414 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}var _valid13 = _errs381 === errors;if(_valid13){valid84 = true;passing5 = 0;}const _errs396 = errors;if(data143 && typeof data143 == "object" && !Array.isArray(data143)){if(data143.id === undefined){const err415 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}if(data143.type === undefined){const err416 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}if(data143.exact === undefined){const err417 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}if(data143.prefix === undefined){const err418 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}if(data143.suffix === undefined){const err419 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}if(data143.id !== undefined){let data150 = data143.id;if(typeof data150 === "string"){if(!(formats0(data150))){const err420 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}}else {const err421 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}}if(data143.type !== undefined){let data151 = data143.type;if(Array.isArray(data151)){if(data151.length > 2){const err422 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}if(data151.length < 2){const err423 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}const len26 = data151.length;if(len26 > 0){let data152 = data151[0];if(typeof data152 !== "string"){const err424 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}if("TextQuoteSelector" !== data152){const err425 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}}if(len26 > 1){let data153 = data151[1];if(typeof data153 !== "string"){const err426 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}if("crm:E33_Linguistic_Object" !== data153){const err427 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}}}else {const err428 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}}if(data143.exact !== undefined){if(typeof data143.exact !== "string"){const err429 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}}if(data143.prefix !== undefined){if(typeof data143.prefix !== "string"){const err430 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}}if(data143.suffix !== undefined){if(typeof data143.suffix !== "string"){const err431 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}}}else {const err432 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}var _valid13 = _errs396 === errors;if(_valid13 && valid84){valid84 = false;passing5 = [passing5, 1];}else {if(_valid13){valid84 = true;passing5 = 1;}}if(!valid84){const err433 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}else {errors = _errs380;if(vErrors !== null){if(_errs380){vErrors.length = _errs380;}else {vErrors = null;}}}}}else {const err434 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}var _valid11 = _errs363 === errors;if(_valid11 && valid72){valid72 = false;passing3 = [passing3, 1];}else {if(_valid11){valid72 = true;passing3 = 1;}const _errs413 = errors;if(data115 && typeof data115 == "object" && !Array.isArray(data115)){if(data115.id === undefined){const err435 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}if(data115.type === undefined){const err436 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}if(data115.value === undefined){const err437 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}if(data115.id !== undefined){let data157 = data115.id;if(typeof data157 === "string"){if(!(formats0(data157))){const err438 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}}else {const err439 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}}if(data115.type !== undefined){let data158 = data115.type;if(Array.isArray(data158)){if(data158.length > 2){const err440 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}if(data158.length < 2){const err441 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}const len27 = data158.length;if(len27 > 0){let data159 = data158[0];if(typeof data159 !== "string"){const err442 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}if("XPathSelector" !== data159){const err443 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}}if(len27 > 1){let data160 = data158[1];if(typeof data160 !== "string"){const err444 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}if("crm:E73_Information_Object" !== data160){const err445 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}}}else {const err446 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}}if(data115.value !== undefined){if(typeof data115.value !== "string"){const err447 = {instancePath:instancePath+"/selector/" + i2+"/value",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}}if(data115.refinedBy !== undefined){let data162 = data115.refinedBy;if((!(data162 && typeof data162 == "object" && !Array.isArray(data162))) && (data162 !== null)){const err448 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}const _errs428 = errors;let valid93 = false;const _errs429 = errors;if(data162 && typeof data162 == "object" && !Array.isArray(data162)){if(data162.id === undefined){const err449 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}if(data162.type === undefined){const err450 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}if(data162.start === undefined){const err451 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}if(data162.end === undefined){const err452 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}if(data162.id !== undefined){let data163 = data162.id;if(typeof data163 === "string"){if(!(formats0(data163))){const err453 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}}else {const err454 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}}if(data162.type !== undefined){let data164 = data162.type;if(Array.isArray(data164)){if(data164.length > 2){const err455 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}if(data164.length < 2){const err456 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}const len28 = data164.length;if(len28 > 0){let data165 = data164[0];if(typeof data165 !== "string"){const err457 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}if("TextPositionSelector" !== data165){const err458 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}}if(len28 > 1){let data166 = data164[1];if(typeof data166 !== "string"){const err459 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}if("crm:E73_Information_Object" !== data166){const err460 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}}}else {const err461 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}}if(data162.start !== undefined){let data167 = data162.start;if((typeof data167 == "number") && (isFinite(data167))){if(data167 < 0 || isNaN(data167)){const err462 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}else {const err463 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}}if(data162.end !== undefined){let data168 = data162.end;if((typeof data168 == "number") && (isFinite(data168))){if(data168 < 0 || isNaN(data168)){const err464 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}}else {const err465 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}}}else {const err466 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}var _valid14 = _errs429 === errors;valid93 = valid93 || _valid14;if(!valid93){const _errs444 = errors;if(data162 && typeof data162 == "object" && !Array.isArray(data162)){if(data162.id === undefined){const err467 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}if(data162.type === undefined){const err468 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}if(data162.exact === undefined){const err469 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}if(data162.prefix === undefined){const err470 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}if(data162.suffix === undefined){const err471 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}if(data162.id !== undefined){let data169 = data162.id;if(typeof data169 === "string"){if(!(formats0(data169))){const err472 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}else {const err473 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}}if(data162.type !== undefined){let data170 = data162.type;if(Array.isArray(data170)){if(data170.length > 2){const err474 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}if(data170.length < 2){const err475 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}const len29 = data170.length;if(len29 > 0){let data171 = data170[0];if(typeof data171 !== "string"){const err476 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}if("TextQuoteSelector" !== data171){const err477 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}}if(len29 > 1){let data172 = data170[1];if(typeof data172 !== "string"){const err478 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}if("crm:E33_Linguistic_Object" !== data172){const err479 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}}}else {const err480 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}if(data162.exact !== undefined){if(typeof data162.exact !== "string"){const err481 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}}if(data162.prefix !== undefined){if(typeof data162.prefix !== "string"){const err482 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}}if(data162.suffix !== undefined){if(typeof data162.suffix !== "string"){const err483 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}}}else {const err484 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}var _valid14 = _errs444 === errors;valid93 = valid93 || _valid14;}if(!valid93){const err485 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}else {errors = _errs428;if(vErrors !== null){if(_errs428){vErrors.length = _errs428;}else {vErrors = null;}}}}}else {const err486 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}var _valid11 = _errs413 === errors;if(_valid11 && valid72){valid72 = false;passing3 = [passing3, 2];}else {if(_valid11){valid72 = true;passing3 = 2;}const _errs461 = errors;if(data115 && typeof data115 == "object" && !Array.isArray(data115)){if(data115.id === undefined){const err487 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}if(data115.type === undefined){const err488 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}if(data115.startSelector === undefined){const err489 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}if(data115.endSelector === undefined){const err490 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}if(data115.id !== undefined){let data176 = data115.id;if(typeof data176 === "string"){if(!(formats0(data176))){const err491 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}}else {const err492 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}}if(data115.type !== undefined){let data177 = data115.type;if(Array.isArray(data177)){if(data177.length > 2){const err493 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}if(data177.length < 2){const err494 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}const len30 = data177.length;if(len30 > 0){let data178 = data177[0];if(typeof data178 !== "string"){const err495 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}if("RangeSelector" !== data178){const err496 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}}if(len30 > 1){let data179 = data177[1];if(typeof data179 !== "string"){const err497 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}if("crm:E73_Information_Object" !== data179){const err498 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}}}else {const err499 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}}if(data115.startSelector !== undefined){let data180 = data115.startSelector;if(data180 && typeof data180 == "object" && !Array.isArray(data180)){if(data180.id === undefined){const err500 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}if(data180.type === undefined){const err501 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}if(data180.value === undefined){const err502 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}if(data180.id !== undefined){let data181 = data180.id;if(typeof data181 === "string"){if(!(formats0(data181))){const err503 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}}else {const err504 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}}if(data180.type !== undefined){let data182 = data180.type;if(Array.isArray(data182)){if(data182.length > 2){const err505 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}if(data182.length < 2){const err506 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}const len31 = data182.length;if(len31 > 0){let data183 = data182[0];if(typeof data183 !== "string"){const err507 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}if("XPathSelector" !== data183){const err508 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}if(len31 > 1){let data184 = data182[1];if(typeof data184 !== "string"){const err509 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}if("crm:E73_Information_Object" !== data184){const err510 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}}}else {const err511 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}}if(data180.value !== undefined){if(typeof data180.value !== "string"){const err512 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}}}else {const err513 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}}if(data115.endSelector !== undefined){let data186 = data115.endSelector;if(data186 && typeof data186 == "object" && !Array.isArray(data186)){if(data186.id === undefined){const err514 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}if(data186.type === undefined){const err515 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}if(data186.value === undefined){const err516 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}if(data186.id !== undefined){let data187 = data186.id;if(typeof data187 === "string"){if(!(formats0(data187))){const err517 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}}else {const err518 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}}if(data186.type !== undefined){let data188 = data186.type;if(Array.isArray(data188)){if(data188.length > 2){const err519 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}if(data188.length < 2){const err520 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}const len32 = data188.length;if(len32 > 0){let data189 = data188[0];if(typeof data189 !== "string"){const err521 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}if("XPathSelector" !== data189){const err522 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}}if(len32 > 1){let data190 = data188[1];if(typeof data190 !== "string"){const err523 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}if("crm:E73_Information_Object" !== data190){const err524 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}}}else {const err525 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}}if(data186.value !== undefined){if(typeof data186.value !== "string"){const err526 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}}}else {const err527 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}}}else {const err528 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}var _valid11 = _errs461 === errors;if(_valid11 && valid72){valid72 = false;passing3 = [passing3, 3];}else {if(_valid11){valid72 = true;passing3 = 3;}}}}if(!valid72){const err529 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}else {errors = _errs310;if(vErrors !== null){if(_errs310){vErrors.length = _errs310;}else {vErrors = null;}}}if(!(data115 && typeof data115 == "object" && !Array.isArray(data115))){const err530 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}}}else {const err531 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}var _valid6 = _errs306 === errors;valid33 = valid33 || _valid6;}if(!valid33){const err532 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}}}else {const err533 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}validate12.errors = vErrors;return errors === 0;}const schema34 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Body resource."},"type":{"type":"string","const":"Choice"},"entityType":{"oneOf":[{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Person"},{"oneOf":[{"type":"string","const":"crm:E21_Person","description":"Real Person"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Person"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Place"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"oneOf":[{"type":"string","const":"crm:E74_Group","description":"Real Organization"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Organization"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E89_Propositional_Object"},{"oneOf":[{"type":"string","const":"frbroo:F1","description":"Real Work"},{"type":"string","const":"wikidata:Q15306849","description":"Fictional Work"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Physical Thing"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Conceptual Object"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"string","const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"string","const":"crmdig:D1_Digital_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"YET TO BE DEFINED EVENT CLASS"},{"oneOf":[{"type":"string","const":"crm:E5_Event","description":"Real Event"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Event"}]}]}]},"label":{"type":"string","minLength":1,"description":"The title or name of a linked resource or named entity."},"items":{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"}}},"required":["id","type","entityType","items"],"additionalProperties":false};const pattern0 = new RegExp("^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$", "u");function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.entityType === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.items === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!(((((key0 === "id") || (key0 === "type")) || (key0 === "entityType")) || (key0 === "label")) || (key0 === "items"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!(formats0(data0))){const err5 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.type !== undefined){let data1 = data.type;if(typeof data1 !== "string"){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if("Choice" !== data1){const err8 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "Choice"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.entityType !== undefined){let data2 = data.entityType;const _errs7 = errors;let valid1 = false;let passing0 = null;const _errs8 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err9 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data2.length < 2){const err10 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len0 = data2.length;if(len0 > 0){let data3 = data2[0];if(typeof data3 !== "string"){const err11 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/0/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("Person" !== data3){const err12 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/0/items/0/const",keyword:"const",params:{allowedValue: "Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(len0 > 1){let data4 = data2[1];const _errs13 = errors;let valid3 = false;let passing1 = null;const _errs14 = errors;if(typeof data4 !== "string"){const err13 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("crm:E21_Person" !== data4){const err14 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid1 = _errs14 === errors;if(_valid1){valid3 = true;passing1 = 0;}const _errs16 = errors;if(typeof data4 !== "string"){const err15 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("crm:E89_Propositional_Object" !== data4){const err16 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid1 = _errs16 === errors;if(_valid1 && valid3){valid3 = false;passing1 = [passing1, 1];}else {if(_valid1){valid3 = true;passing1 = 1;}}if(!valid3){const err17 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}}}else {const err18 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid0 = _errs8 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs18 = errors;const _errs19 = errors;let valid4 = false;let passing2 = null;const _errs20 = errors;if(typeof data2 !== "string"){const err19 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("cwrc:place" !== data2){const err20 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid2 = _errs20 === errors;if(_valid2){valid4 = true;passing2 = 0;}const _errs22 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err21 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data2.length < 2){const err22 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}const len1 = data2.length;if(len1 > 0){let data5 = data2[0];if(typeof data5 !== "string"){const err23 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("cwrc:place" !== data5){const err24 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(len1 > 1){let data6 = data2[1];if(typeof data6 !== "string"){const err25 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("crm:E89_Propositional_Object" !== data6){const err26 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid2 = _errs22 === errors;if(_valid2 && valid4){valid4 = false;passing2 = [passing2, 1];}else {if(_valid2){valid4 = true;passing2 = 1;}}if(!valid4){const err28 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}}var _valid0 = _errs18 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}const _errs28 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err29 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data2.length < 2){const err30 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}const len2 = data2.length;if(len2 > 0){let data7 = data2[0];if(typeof data7 !== "string"){const err31 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/2/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("foaf:Organization" !== data7){const err32 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/2/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(len2 > 1){let data8 = data2[1];const _errs33 = errors;let valid7 = false;let passing3 = null;const _errs34 = errors;if(typeof data8 !== "string"){const err33 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if("crm:E74_Group" !== data8){const err34 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var _valid3 = _errs34 === errors;if(_valid3){valid7 = true;passing3 = 0;}const _errs36 = errors;if(typeof data8 !== "string"){const err35 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("crm:E89_Propositional_Object" !== data8){const err36 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid3 = _errs36 === errors;if(_valid3 && valid7){valid7 = false;passing3 = [passing3, 1];}else {if(_valid3){valid7 = true;passing3 = 1;}}if(!valid7){const err37 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs33;if(vErrors !== null){if(_errs33){vErrors.length = _errs33;}else {vErrors = null;}}}}}else {const err38 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var _valid0 = _errs28 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 2];}else {if(_valid0){valid1 = true;passing0 = 2;}const _errs38 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err39 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(data2.length < 2){const err40 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}const len3 = data2.length;if(len3 > 0){let data9 = data2[0];if(typeof data9 !== "string"){const err41 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/3/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if("crm:E89_Propositional_Object" !== data9){const err42 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/3/items/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(len3 > 1){let data10 = data2[1];const _errs43 = errors;let valid9 = false;let passing4 = null;const _errs44 = errors;if(typeof data10 !== "string"){const err43 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("frbroo:F1" !== data10){const err44 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var _valid4 = _errs44 === errors;if(_valid4){valid9 = true;passing4 = 0;}const _errs46 = errors;if(typeof data10 !== "string"){const err45 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if("wikidata:Q15306849" !== data10){const err46 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var _valid4 = _errs46 === errors;if(_valid4 && valid9){valid9 = false;passing4 = [passing4, 1];}else {if(_valid4){valid9 = true;passing4 = 1;}}if(!valid9){const err47 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {errors = _errs43;if(vErrors !== null){if(_errs43){vErrors.length = _errs43;}else {vErrors = null;}}}}}else {const err48 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var _valid0 = _errs38 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 3];}else {if(_valid0){valid1 = true;passing0 = 3;}const _errs48 = errors;const _errs49 = errors;let valid10 = false;let passing5 = null;const _errs50 = errors;if(typeof data2 !== "string"){const err49 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if("crm:E18_Physical_Thing" !== data2){const err50 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var _valid5 = _errs50 === errors;if(_valid5){valid10 = true;passing5 = 0;}const _errs52 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err51 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(data2.length < 2){const err52 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}const len4 = data2.length;if(len4 > 0){let data11 = data2[0];if(typeof data11 !== "string"){const err53 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if("crm:E18_Physical_Thing" !== data11){const err54 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(len4 > 1){let data12 = data2[1];if(typeof data12 !== "string"){const err55 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if("wikidata:Q15831596" !== data12){const err56 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var _valid5 = _errs52 === errors;if(_valid5 && valid10){valid10 = false;passing5 = [passing5, 1];}else {if(_valid5){valid10 = true;passing5 = 1;}}if(!valid10){const err58 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}var _valid0 = _errs48 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 4];}else {if(_valid0){valid1 = true;passing0 = 4;}const _errs58 = errors;const _errs59 = errors;let valid12 = false;let passing6 = null;const _errs60 = errors;if(typeof data2 !== "string"){const err59 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("crm:E28_Conceptual_Object" !== data2){const err60 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var _valid6 = _errs60 === errors;if(_valid6){valid12 = true;passing6 = 0;}const _errs62 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err61 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(data2.length < 2){const err62 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}const len5 = data2.length;if(len5 > 0){let data13 = data2[0];if(typeof data13 !== "string"){const err63 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if("crm:E28_Conceptual_Object" !== data13){const err64 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(len5 > 1){let data14 = data2[1];if(typeof data14 !== "string"){const err65 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("wikidata:Q15831596" !== data14){const err66 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}else {const err67 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid6 = _errs62 === errors;if(_valid6 && valid12){valid12 = false;passing6 = [passing6, 1];}else {if(_valid6){valid12 = true;passing6 = 1;}}if(!valid12){const err68 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs59;if(vErrors !== null){if(_errs59){vErrors.length = _errs59;}else {vErrors = null;}}}var _valid0 = _errs58 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 5];}else {if(_valid0){valid1 = true;passing0 = 5;}const _errs68 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err69 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data2.length < 2){const err70 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}const len6 = data2.length;if(len6 > 0){let data15 = data2[0];if(typeof data15 !== "string"){const err71 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("cito:Citation" !== data15){const err72 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(len6 > 1){let data16 = data2[1];if(typeof data16 !== "string"){const err73 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("crm:E73_Information_Object" !== data16){const err74 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}}else {const err75 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}var _valid0 = _errs68 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 6];}else {if(_valid0){valid1 = true;passing0 = 6;}const _errs74 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err76 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data2.length < 2){const err77 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}const len7 = data2.length;if(len7 > 0){let data17 = data2[0];if(typeof data17 !== "string"){const err78 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if("xsd:date" !== data17){const err79 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(len7 > 1){let data18 = data2[1];if(typeof data18 !== "string"){const err80 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if("crm:E52_Time-Span" !== data18){const err81 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}else {const err82 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var _valid0 = _errs74 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 7];}else {if(_valid0){valid1 = true;passing0 = 7;}const _errs80 = errors;if(typeof data2 !== "string"){const err83 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("crm:E33_Linguistic_Object" !== data2){const err84 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var _valid0 = _errs80 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 8];}else {if(_valid0){valid1 = true;passing0 = 8;}const _errs82 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err85 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(data2.length < 2){const err86 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const len8 = data2.length;if(len8 > 0){let data19 = data2[0];if(typeof data19 !== "string"){const err87 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("fabio:Correction" !== data19){const err88 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(len8 > 1){let data20 = data2[1];if(typeof data20 !== "string"){const err89 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if("crm:E33_Linguistic_Object" !== data20){const err90 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var _valid0 = _errs82 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 9];}else {if(_valid0){valid1 = true;passing0 = 9;}const _errs88 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err92 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data2.length < 2){const err93 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}const len9 = data2.length;if(len9 > 0){let data21 = data2[0];if(typeof data21 !== "string"){const err94 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if("crm:E55_Type" !== data21){const err95 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(len9 > 1){let data22 = data2[1];if(typeof data22 !== "string"){const err96 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if("crmdig:D1_Digital_Object" !== data22){const err97 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}else {const err98 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}var _valid0 = _errs88 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 10];}else {if(_valid0){valid1 = true;passing0 = 10;}const _errs94 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err99 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data2.length < 2){const err100 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const len10 = data2.length;if(len10 > 0){let data23 = data2[0];if(typeof data23 !== "string"){const err101 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if("crm:E55_Type" !== data23){const err102 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(len10 > 1){let data24 = data2[1];if(typeof data24 !== "string"){const err103 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if("crm:E33_Linguistic_Object" !== data24){const err104 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}else {const err105 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var _valid0 = _errs94 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 11];}else {if(_valid0){valid1 = true;passing0 = 11;}const _errs100 = errors;if(typeof data2 !== "string"){const err106 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if("crmdig:D1_Digital_Object" !== data2){const err107 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}var _valid0 = _errs100 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 12];}else {if(_valid0){valid1 = true;passing0 = 12;}const _errs102 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err108 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(data2.length < 2){const err109 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}const len11 = data2.length;if(len11 > 0){let data25 = data2[0];if(typeof data25 !== "string"){const err110 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/13/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if("YET TO BE DEFINED EVENT CLASS" !== data25){const err111 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/13/items/0/const",keyword:"const",params:{allowedValue: "YET TO BE DEFINED EVENT CLASS"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}if(len11 > 1){let data26 = data2[1];const _errs107 = errors;let valid20 = false;let passing7 = null;const _errs108 = errors;if(typeof data26 !== "string"){const err112 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if("crm:E5_Event" !== data26){const err113 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}var _valid7 = _errs108 === errors;if(_valid7){valid20 = true;passing7 = 0;}const _errs110 = errors;if(typeof data26 !== "string"){const err114 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if("crm:E89_Propositional_Object" !== data26){const err115 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}var _valid7 = _errs110 === errors;if(_valid7 && valid20){valid20 = false;passing7 = [passing7, 1];}else {if(_valid7){valid20 = true;passing7 = 1;}}if(!valid20){const err116 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing7},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}else {errors = _errs107;if(vErrors !== null){if(_errs107){vErrors.length = _errs107;}else {vErrors = null;}}}}}else {const err117 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}var _valid0 = _errs102 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 13];}else {if(_valid0){valid1 = true;passing0 = 13;}}}}}}}}}}}}}}if(!valid1){const err118 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}}if(data.label !== undefined){let data27 = data.label;if(typeof data27 === "string"){if(func3(data27) < 1){const err119 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data.items !== undefined){let data28 = data.items;if(Array.isArray(data28)){const len12 = data28.length;for(let i0=0; i0<len12; i0++){let data29 = data28[i0];const _errs119 = errors;let valid24 = false;const _errs120 = errors;const _errs121 = errors;let valid25 = true;const _errs122 = errors;if(errors === _errs122){if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.entityType !== undefined){let data30 = data29.entityType;const _errs125 = errors;let valid27 = false;const _errs126 = errors;if("crm:E33_Linguistic_Object" !== data30){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var _valid10 = _errs126 === errors;valid27 = valid27 || _valid10;if(!valid27){const _errs127 = errors;if(errors === _errs127){if(Array.isArray(data30)){if(data30.length > 2){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {if(data30.length < 2){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}else {const len13 = data30.length;if(len13 > 0){const _errs129 = errors;if("xsd:date" !== data30[0]){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}var valid28 = _errs129 === errors;}if(valid28){if(len13 > 1){const _errs130 = errors;if("crm:E52_Time-Span" !== data30[1]){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var valid28 = _errs130 === errors;}}}}}else {const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}var _valid10 = _errs127 === errors;valid27 = valid27 || _valid10;if(!valid27){const _errs131 = errors;if(errors === _errs131){if(Array.isArray(data30)){if(data30.length > 2){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {if(data30.length < 2){const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {const len14 = data30.length;if(len14 > 0){const _errs133 = errors;if("fabio:Correction" !== data30[0]){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}var valid29 = _errs133 === errors;}if(valid29){if(len14 > 1){const _errs134 = errors;if("crm:E33_Linguistic_Object" !== data30[1]){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}var valid29 = _errs134 === errors;}}}}}else {const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}var _valid10 = _errs131 === errors;valid27 = valid27 || _valid10;if(!valid27){const _errs135 = errors;if(errors === _errs135){if(Array.isArray(data30)){if(data30.length > 2){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {if(data30.length < 2){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {const len15 = data30.length;if(len15 > 0){const _errs137 = errors;if("crm:E55_Type" !== data30[0]){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var valid30 = _errs137 === errors;}if(valid30){if(len15 > 1){const _errs138 = errors;if("crm:E33_Linguistic_Object" !== data30[1]){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}var valid30 = _errs138 === errors;}}}}}else {const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}var _valid10 = _errs135 === errors;valid27 = valid27 || _valid10;}}}if(!valid27){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}}}}else {const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var _valid9 = _errs122 === errors;errors = _errs121;if(vErrors !== null){if(_errs121){vErrors.length = _errs121;}else {vErrors = null;}}if(_valid9){const _errs139 = errors;const _errs141 = errors;let valid31 = true;const _errs142 = errors;if(errors === _errs142){if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.entityType !== undefined){let data37 = data29.entityType;const _errs144 = errors;if(errors === _errs144){if(Array.isArray(data37)){if(data37.length > 2){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {if(data37.length < 2){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}else {const len16 = data37.length;if(len16 > 0){const _errs146 = errors;if("xsd:date" !== data37[0]){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}var valid33 = _errs146 === errors;}if(valid33){if(len16 > 1){const _errs147 = errors;if("crm:E52_Time-Span" !== data37[1]){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}var valid33 = _errs147 === errors;}}}}}else {const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}}else {const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}var _valid11 = _errs142 === errors;errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}let ifClause0;if(_valid11){const _errs148 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.value !== undefined){let data40 = data29.value;if(typeof data40 === "string"){if(!pattern0.test(data40)){const err145 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}else {const err146 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}var _valid11 = _errs148 === errors;valid31 = _valid11;ifClause0 = "then";}else {const _errs152 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.value !== undefined){if(typeof data29.value !== "string"){const err148 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var _valid11 = _errs152 === errors;valid31 = _valid11;ifClause0 = "else";}if(!valid31){const err150 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.type === undefined){const err151 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data29.value === undefined){const err152 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(data29.type !== undefined){let data42 = data29.type;if(typeof data42 !== "string"){const err153 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if("TextualBody" !== data42){const err154 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}else {const err155 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var _valid9 = _errs139 === errors;valid25 = _valid9;}if(!valid25){const err156 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}var _valid8 = _errs120 === errors;valid24 = valid24 || _valid8;if(!valid24){const err157 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.id === undefined){const err158 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data29.entityType === undefined){const err159 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}for(const key1 in data29){if(!(func2.call(schema35.properties, key1))){const err160 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data29.id !== undefined){let data43 = data29.id;if(typeof data43 === "string"){if(!(formats0(data43))){const err161 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}else {const err162 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data29.type !== undefined){let data44 = data29.type;if(typeof data44 !== "string"){const err163 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if("TextualBody" !== data44){const err164 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data29.entityType !== undefined){let data45 = data29.entityType;const _errs164 = errors;let valid38 = false;let passing8 = null;const _errs165 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err165 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data45.length < 2){const err166 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}const len17 = data45.length;if(len17 > 0){let data46 = data45[0];if(typeof data46 !== "string"){const err167 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if("Person" !== data46){const err168 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/const",keyword:"const",params:{allowedValue: "Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(len17 > 1){let data47 = data45[1];const _errs170 = errors;let valid40 = false;let passing9 = null;const _errs171 = errors;if(typeof data47 !== "string"){const err169 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if("crm:E21_Person" !== data47){const err170 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}var _valid13 = _errs171 === errors;if(_valid13){valid40 = true;passing9 = 0;}const _errs173 = errors;if(typeof data47 !== "string"){const err171 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if("crm:E89_Propositional_Object" !== data47){const err172 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}var _valid13 = _errs173 === errors;if(_valid13 && valid40){valid40 = false;passing9 = [passing9, 1];}else {if(_valid13){valid40 = true;passing9 = 1;}}if(!valid40){const err173 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}else {errors = _errs170;if(vErrors !== null){if(_errs170){vErrors.length = _errs170;}else {vErrors = null;}}}}}else {const err174 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}var _valid12 = _errs165 === errors;if(_valid12){valid38 = true;passing8 = 0;}const _errs175 = errors;const _errs176 = errors;let valid41 = false;let passing10 = null;const _errs177 = errors;if(typeof data45 !== "string"){const err175 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}if("cwrc:place" !== data45){const err176 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}var _valid14 = _errs177 === errors;if(_valid14){valid41 = true;passing10 = 0;}const _errs179 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err177 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(data45.length < 2){const err178 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}const len18 = data45.length;if(len18 > 0){let data48 = data45[0];if(typeof data48 !== "string"){const err179 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if("cwrc:place" !== data48){const err180 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(len18 > 1){let data49 = data45[1];if(typeof data49 !== "string"){const err181 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if("crm:E89_Propositional_Object" !== data49){const err182 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}var _valid14 = _errs179 === errors;if(_valid14 && valid41){valid41 = false;passing10 = [passing10, 1];}else {if(_valid14){valid41 = true;passing10 = 1;}}if(!valid41){const err184 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing10},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}else {errors = _errs176;if(vErrors !== null){if(_errs176){vErrors.length = _errs176;}else {vErrors = null;}}}var _valid12 = _errs175 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 1];}else {if(_valid12){valid38 = true;passing8 = 1;}const _errs185 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err185 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data45.length < 2){const err186 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}const len19 = data45.length;if(len19 > 0){let data50 = data45[0];if(typeof data50 !== "string"){const err187 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if("foaf:Organization" !== data50){const err188 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(len19 > 1){let data51 = data45[1];const _errs190 = errors;let valid44 = false;let passing11 = null;const _errs191 = errors;if(typeof data51 !== "string"){const err189 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if("crm:E74_Group" !== data51){const err190 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}var _valid15 = _errs191 === errors;if(_valid15){valid44 = true;passing11 = 0;}const _errs193 = errors;if(typeof data51 !== "string"){const err191 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if("crm:E89_Propositional_Object" !== data51){const err192 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}var _valid15 = _errs193 === errors;if(_valid15 && valid44){valid44 = false;passing11 = [passing11, 1];}else {if(_valid15){valid44 = true;passing11 = 1;}}if(!valid44){const err193 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}else {errors = _errs190;if(vErrors !== null){if(_errs190){vErrors.length = _errs190;}else {vErrors = null;}}}}}else {const err194 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}var _valid12 = _errs185 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 2];}else {if(_valid12){valid38 = true;passing8 = 2;}const _errs195 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err195 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(data45.length < 2){const err196 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}const len20 = data45.length;if(len20 > 0){let data52 = data45[0];if(typeof data52 !== "string"){const err197 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if("crm:E89_Propositional_Object" !== data52){const err198 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(len20 > 1){let data53 = data45[1];const _errs200 = errors;let valid46 = false;let passing12 = null;const _errs201 = errors;if(typeof data53 !== "string"){const err199 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if("frbroo:F1" !== data53){const err200 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}var _valid16 = _errs201 === errors;if(_valid16){valid46 = true;passing12 = 0;}const _errs203 = errors;if(typeof data53 !== "string"){const err201 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}if("wikidata:Q15306849" !== data53){const err202 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}var _valid16 = _errs203 === errors;if(_valid16 && valid46){valid46 = false;passing12 = [passing12, 1];}else {if(_valid16){valid46 = true;passing12 = 1;}}if(!valid46){const err203 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}else {errors = _errs200;if(vErrors !== null){if(_errs200){vErrors.length = _errs200;}else {vErrors = null;}}}}}else {const err204 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}var _valid12 = _errs195 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 3];}else {if(_valid12){valid38 = true;passing8 = 3;}const _errs205 = errors;const _errs206 = errors;let valid47 = false;let passing13 = null;const _errs207 = errors;if(typeof data45 !== "string"){const err205 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if("crm:E18_Physical_Thing" !== data45){const err206 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}var _valid17 = _errs207 === errors;if(_valid17){valid47 = true;passing13 = 0;}const _errs209 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err207 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(data45.length < 2){const err208 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}const len21 = data45.length;if(len21 > 0){let data54 = data45[0];if(typeof data54 !== "string"){const err209 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if("crm:E18_Physical_Thing" !== data54){const err210 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(len21 > 1){let data55 = data45[1];if(typeof data55 !== "string"){const err211 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if("wikidata:Q15831596" !== data55){const err212 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}}else {const err213 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}var _valid17 = _errs209 === errors;if(_valid17 && valid47){valid47 = false;passing13 = [passing13, 1];}else {if(_valid17){valid47 = true;passing13 = 1;}}if(!valid47){const err214 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing13},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}else {errors = _errs206;if(vErrors !== null){if(_errs206){vErrors.length = _errs206;}else {vErrors = null;}}}var _valid12 = _errs205 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 4];}else {if(_valid12){valid38 = true;passing8 = 4;}const _errs215 = errors;const _errs216 = errors;let valid49 = false;let passing14 = null;const _errs217 = errors;if(typeof data45 !== "string"){const err215 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if("crm:E28_Conceptual_Object" !== data45){const err216 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}var _valid18 = _errs217 === errors;if(_valid18){valid49 = true;passing14 = 0;}const _errs219 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err217 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}if(data45.length < 2){const err218 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}const len22 = data45.length;if(len22 > 0){let data56 = data45[0];if(typeof data56 !== "string"){const err219 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}if("crm:E28_Conceptual_Object" !== data56){const err220 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(len22 > 1){let data57 = data45[1];if(typeof data57 !== "string"){const err221 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}if("wikidata:Q15831596" !== data57){const err222 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}else {const err223 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}var _valid18 = _errs219 === errors;if(_valid18 && valid49){valid49 = false;passing14 = [passing14, 1];}else {if(_valid18){valid49 = true;passing14 = 1;}}if(!valid49){const err224 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing14},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {errors = _errs216;if(vErrors !== null){if(_errs216){vErrors.length = _errs216;}else {vErrors = null;}}}var _valid12 = _errs215 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 5];}else {if(_valid12){valid38 = true;passing8 = 5;}const _errs225 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err225 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}if(data45.length < 2){const err226 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}const len23 = data45.length;if(len23 > 0){let data58 = data45[0];if(typeof data58 !== "string"){const err227 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}if("cito:Citation" !== data58){const err228 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(len23 > 1){let data59 = data45[1];if(typeof data59 !== "string"){const err229 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}if("crm:E73_Information_Object" !== data59){const err230 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}else {const err231 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var _valid12 = _errs225 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 6];}else {if(_valid12){valid38 = true;passing8 = 6;}const _errs231 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err232 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}if(data45.length < 2){const err233 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}const len24 = data45.length;if(len24 > 0){let data60 = data45[0];if(typeof data60 !== "string"){const err234 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}if("xsd:date" !== data60){const err235 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}if(len24 > 1){let data61 = data45[1];if(typeof data61 !== "string"){const err236 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}if("crm:E52_Time-Span" !== data61){const err237 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}}else {const err238 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}var _valid12 = _errs231 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 7];}else {if(_valid12){valid38 = true;passing8 = 7;}const _errs237 = errors;if(typeof data45 !== "string"){const err239 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if("crm:E33_Linguistic_Object" !== data45){const err240 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var _valid12 = _errs237 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 8];}else {if(_valid12){valid38 = true;passing8 = 8;}const _errs239 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err241 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if(data45.length < 2){const err242 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}const len25 = data45.length;if(len25 > 0){let data62 = data45[0];if(typeof data62 !== "string"){const err243 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}if("fabio:Correction" !== data62){const err244 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}if(len25 > 1){let data63 = data45[1];if(typeof data63 !== "string"){const err245 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if("crm:E33_Linguistic_Object" !== data63){const err246 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}}else {const err247 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}var _valid12 = _errs239 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 9];}else {if(_valid12){valid38 = true;passing8 = 9;}const _errs245 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err248 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data45.length < 2){const err249 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}const len26 = data45.length;if(len26 > 0){let data64 = data45[0];if(typeof data64 !== "string"){const err250 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}if("crm:E55_Type" !== data64){const err251 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}if(len26 > 1){let data65 = data45[1];if(typeof data65 !== "string"){const err252 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}if("crmdig:D1_Digital_Object" !== data65){const err253 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}}else {const err254 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}var _valid12 = _errs245 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 10];}else {if(_valid12){valid38 = true;passing8 = 10;}const _errs251 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err255 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if(data45.length < 2){const err256 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}const len27 = data45.length;if(len27 > 0){let data66 = data45[0];if(typeof data66 !== "string"){const err257 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}if("crm:E55_Type" !== data66){const err258 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}if(len27 > 1){let data67 = data45[1];if(typeof data67 !== "string"){const err259 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}if("crm:E33_Linguistic_Object" !== data67){const err260 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}}else {const err261 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}var _valid12 = _errs251 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 11];}else {if(_valid12){valid38 = true;passing8 = 11;}const _errs257 = errors;if(typeof data45 !== "string"){const err262 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if("crmdig:D1_Digital_Object" !== data45){const err263 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}var _valid12 = _errs257 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 12];}else {if(_valid12){valid38 = true;passing8 = 12;}const _errs259 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err264 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}if(data45.length < 2){const err265 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}const len28 = data45.length;if(len28 > 0){let data68 = data45[0];if(typeof data68 !== "string"){const err266 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if("YET TO BE DEFINED EVENT CLASS" !== data68){const err267 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/0/const",keyword:"const",params:{allowedValue: "YET TO BE DEFINED EVENT CLASS"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}if(len28 > 1){let data69 = data45[1];const _errs264 = errors;let valid57 = false;let passing15 = null;const _errs265 = errors;if(typeof data69 !== "string"){const err268 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}if("crm:E5_Event" !== data69){const err269 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}var _valid19 = _errs265 === errors;if(_valid19){valid57 = true;passing15 = 0;}const _errs267 = errors;if(typeof data69 !== "string"){const err270 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}if("crm:E89_Propositional_Object" !== data69){const err271 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}var _valid19 = _errs267 === errors;if(_valid19 && valid57){valid57 = false;passing15 = [passing15, 1];}else {if(_valid19){valid57 = true;passing15 = 1;}}if(!valid57){const err272 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing15},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}else {errors = _errs264;if(vErrors !== null){if(_errs264){vErrors.length = _errs264;}else {vErrors = null;}}}}}else {const err273 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}var _valid12 = _errs259 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 13];}else {if(_valid12){valid38 = true;passing8 = 13;}}}}}}}}}}}}}}if(!valid38){const err274 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing8},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}}if(data29.additionalType !== undefined){let data70 = data29.additionalType;const _errs270 = errors;let valid58 = false;const _errs271 = errors;if(typeof data70 !== "string"){const err275 = {instancePath:instancePath+"/items/" + i0+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}var _valid20 = _errs271 === errors;valid58 = valid58 || _valid20;if(!valid58){const _errs273 = errors;if(Array.isArray(data70)){const len29 = data70.length;for(let i1=0; i1<len29; i1++){if(typeof data70[i1] !== "string"){const err276 = {instancePath:instancePath+"/items/" + i0+"/additionalType/" + i1,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}}else {const err277 = {instancePath:instancePath+"/items/" + i0+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}var _valid20 = _errs273 === errors;valid58 = valid58 || _valid20;}if(!valid58){const err278 = {instancePath:instancePath+"/items/" + i0+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}else {errors = _errs270;if(vErrors !== null){if(_errs270){vErrors.length = _errs270;}else {vErrors = null;}}}}if(data29.value !== undefined){if(typeof data29.value !== "string"){const err279 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}if(data29.certainty !== undefined){let data73 = data29.certainty;if(typeof data73 !== "string"){const err280 = {instancePath:instancePath+"/items/" + i0+"/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}if(!((((data73 === "edit:qualityLow") || (data73 === "edit:qualityMedium")) || (data73 === "edit:qualityHigh")) || (data73 === "edit:qualityUnknown"))){const err281 = {instancePath:instancePath+"/items/" + i0+"/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/enum",keyword:"enum",params:{allowedValues: schema35.properties.certainty.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}if(data29.precision !== undefined){let data74 = data29.precision;if(typeof data74 !== "string"){const err282 = {instancePath:instancePath+"/items/" + i0+"/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}if(!((((data74 === "edit:qualityLow") || (data74 === "edit:qualityMedium")) || (data74 === "edit:qualityHigh")) || (data74 === "edit:qualityUnknown"))){const err283 = {instancePath:instancePath+"/items/" + i0+"/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/enum",keyword:"enum",params:{allowedValues: schema35.properties.precision.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}if(data29.label !== undefined){let data75 = data29.label;if(typeof data75 === "string"){if(func3(data75) < 1){const err284 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}}else {const err285 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}}if(data29.description !== undefined){if(typeof data29.description !== "string"){const err286 = {instancePath:instancePath+"/items/" + i0+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}}else {const err287 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}}else {const err288 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}}}else {const err289 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}validate14.errors = vErrors;return errors === 0;}function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://wa.lincsproject.ca/v1/schema.jsonld" */;let vErrors = null;let errors = 0;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(errors === _errs3){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data0 = data.body;const _errs5 = errors;if(errors === _errs5){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.entityType !== undefined){let data1 = data0.entityType;const _errs8 = errors;let valid4 = false;let passing0 = null;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data1)){if(data1.length > 2){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data1.length < 2){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs11 = errors;if(typeof data2 !== "string"){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("Person" !== data2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid5 = _errs11 === errors;}if(valid5){if(len0 > 1){let data3 = data1[1];const _errs13 = errors;const _errs14 = errors;let valid6 = false;let passing1 = null;const _errs15 = errors;if(typeof data3 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("crm:E21_Person" !== data3){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid2 = _errs15 === errors;if(_valid2){valid6 = true;passing1 = 0;}const _errs17 = errors;if(typeof data3 !== "string"){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("crm:E89_Propositional_Object" !== data3){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs17 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 1];}else {if(_valid2){valid6 = true;passing1 = 1;}}if(!valid6){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}var valid5 = _errs13 === errors;}}}}}else {const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var _valid1 = _errs9 === errors;if(_valid1){valid4 = true;passing0 = 0;}const _errs19 = errors;const _errs20 = errors;let valid7 = false;let passing2 = null;const _errs21 = errors;if(typeof data1 !== "string"){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("cwrc:place" !== data1){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid3 = _errs21 === errors;if(_valid3){valid7 = true;passing2 = 0;}const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data1)){if(data1.length > 2){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {if(data1.length < 2){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {const len1 = data1.length;if(len1 > 0){let data4 = data1[0];const _errs25 = errors;if(typeof data4 !== "string"){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if("cwrc:place" !== data4){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid8 = _errs25 === errors;}if(valid8){if(len1 > 1){let data5 = data1[1];const _errs27 = errors;if(typeof data5 !== "string"){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("crm:E89_Propositional_Object" !== data5){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid8 = _errs27 === errors;}}}}}else {const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid3 = _errs23 === errors;if(_valid3 && valid7){valid7 = false;passing2 = [passing2, 1];}else {if(_valid3){valid7 = true;passing2 = 1;}}if(!valid7){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var _valid1 = _errs19 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 1];}else {if(_valid1){valid4 = true;passing0 = 1;}const _errs29 = errors;if(errors === _errs29){if(Array.isArray(data1)){if(data1.length > 2){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data1.length < 2){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {const len2 = data1.length;if(len2 > 0){let data6 = data1[0];const _errs31 = errors;if(typeof data6 !== "string"){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("foaf:Organization" !== data6){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid9 = _errs31 === errors;}if(valid9){if(len2 > 1){let data7 = data1[1];const _errs33 = errors;const _errs34 = errors;let valid10 = false;let passing3 = null;const _errs35 = errors;if(typeof data7 !== "string"){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("crm:E74_Group" !== data7){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid4 = _errs35 === errors;if(_valid4){valid10 = true;passing3 = 0;}const _errs37 = errors;if(typeof data7 !== "string"){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("crm:E89_Propositional_Object" !== data7){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid4 = _errs37 === errors;if(_valid4 && valid10){valid10 = false;passing3 = [passing3, 1];}else {if(_valid4){valid10 = true;passing3 = 1;}}if(!valid10){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}}var valid9 = _errs33 === errors;}}}}}else {const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}var _valid1 = _errs29 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 2];}else {if(_valid1){valid4 = true;passing0 = 2;}const _errs39 = errors;if(errors === _errs39){if(Array.isArray(data1)){if(data1.length > 2){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {if(data1.length < 2){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {const len3 = data1.length;if(len3 > 0){let data8 = data1[0];const _errs41 = errors;if(typeof data8 !== "string"){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("crm:E89_Propositional_Object" !== data8){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid11 = _errs41 === errors;}if(valid11){if(len3 > 1){let data9 = data1[1];const _errs43 = errors;const _errs44 = errors;let valid12 = false;let passing4 = null;const _errs45 = errors;if(typeof data9 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("frbroo:F1" !== data9){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var _valid5 = _errs45 === errors;if(_valid5){valid12 = true;passing4 = 0;}const _errs47 = errors;if(typeof data9 !== "string"){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("wikidata:Q15306849" !== data9){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var _valid5 = _errs47 === errors;if(_valid5 && valid12){valid12 = false;passing4 = [passing4, 1];}else {if(_valid5){valid12 = true;passing4 = 1;}}if(!valid12){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}var valid11 = _errs43 === errors;}}}}}else {const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}var _valid1 = _errs39 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 3];}else {if(_valid1){valid4 = true;passing0 = 3;}const _errs49 = errors;const _errs50 = errors;let valid13 = false;let passing5 = null;const _errs51 = errors;if(typeof data1 !== "string"){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("crm:E18_Physical_Thing" !== data1){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid6 = _errs51 === errors;if(_valid6){valid13 = true;passing5 = 0;}const _errs53 = errors;if(errors === _errs53){if(Array.isArray(data1)){if(data1.length > 2){const err42 = {};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data1.length < 2){const err43 = {};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {const len4 = data1.length;if(len4 > 0){let data10 = data1[0];const _errs55 = errors;if(typeof data10 !== "string"){const err44 = {};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if("crm:E18_Physical_Thing" !== data10){const err45 = {};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid14 = _errs55 === errors;}if(valid14){if(len4 > 1){let data11 = data1[1];const _errs57 = errors;if(typeof data11 !== "string"){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("wikidata:Q15831596" !== data11){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid14 = _errs57 === errors;}}}}}else {const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}var _valid6 = _errs53 === errors;if(_valid6 && valid13){valid13 = false;passing5 = [passing5, 1];}else {if(_valid6){valid13 = true;passing5 = 1;}}if(!valid13){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}var _valid1 = _errs49 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 4];}else {if(_valid1){valid4 = true;passing0 = 4;}const _errs59 = errors;const _errs60 = errors;let valid15 = false;let passing6 = null;const _errs61 = errors;if(typeof data1 !== "string"){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("crm:E28_Conceptual_Object" !== data1){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var _valid7 = _errs61 === errors;if(_valid7){valid15 = true;passing6 = 0;}const _errs63 = errors;if(errors === _errs63){if(Array.isArray(data1)){if(data1.length > 2){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data1.length < 2){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {const len5 = data1.length;if(len5 > 0){let data12 = data1[0];const _errs65 = errors;if(typeof data12 !== "string"){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("crm:E28_Conceptual_Object" !== data12){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid16 = _errs65 === errors;}if(valid16){if(len5 > 1){let data13 = data1[1];const _errs67 = errors;if(typeof data13 !== "string"){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if("wikidata:Q15831596" !== data13){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid16 = _errs67 === errors;}}}}}else {const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var _valid7 = _errs63 === errors;if(_valid7 && valid15){valid15 = false;passing6 = [passing6, 1];}else {if(_valid7){valid15 = true;passing6 = 1;}}if(!valid15){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}else {errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}}var _valid1 = _errs59 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 5];}else {if(_valid1){valid4 = true;passing0 = 5;}const _errs69 = errors;if(errors === _errs69){if(Array.isArray(data1)){if(data1.length > 2){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data1.length < 2){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {const len6 = data1.length;if(len6 > 0){let data14 = data1[0];const _errs71 = errors;if(typeof data14 !== "string"){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if("xsd:date" !== data14){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var valid17 = _errs71 === errors;}if(valid17){if(len6 > 1){let data15 = data1[1];const _errs73 = errors;if(typeof data15 !== "string"){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if("crm:E52_Time-Span" !== data15){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var valid17 = _errs73 === errors;}}}}}else {const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}var _valid1 = _errs69 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 6];}else {if(_valid1){valid4 = true;passing0 = 6;}const _errs75 = errors;if(errors === _errs75){if(Array.isArray(data1)){if(data1.length > 2){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}else {if(data1.length < 2){const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {const len7 = data1.length;if(len7 > 0){let data16 = data1[0];const _errs77 = errors;if(typeof data16 !== "string"){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if("YET TO BE DEFINED EVENT CLASS" !== data16){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var valid18 = _errs77 === errors;}if(valid18){if(len7 > 1){let data17 = data1[1];const _errs79 = errors;const _errs80 = errors;let valid19 = false;let passing7 = null;const _errs81 = errors;if(typeof data17 !== "string"){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("crm:E5_Event" !== data17){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}var _valid8 = _errs81 === errors;if(_valid8){valid19 = true;passing7 = 0;}const _errs83 = errors;if(typeof data17 !== "string"){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("crm:E89_Propositional_Object" !== data17){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var _valid8 = _errs83 === errors;if(_valid8 && valid19){valid19 = false;passing7 = [passing7, 1];}else {if(_valid8){valid19 = true;passing7 = 1;}}if(!valid19){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}else {errors = _errs80;if(vErrors !== null){if(_errs80){vErrors.length = _errs80;}else {vErrors = null;}}}var valid18 = _errs79 === errors;}}}}}else {const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}var _valid1 = _errs75 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 7];}else {if(_valid1){valid4 = true;passing0 = 7;}}}}}}}}if(!valid4){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}}}else {const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}}else {const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs85 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data18 = data.motivation;if(Array.isArray(data18)){if(data18.length > 2){const err80 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data18.length < 2){const err81 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}const len8 = data18.length;if(len8 > 0){let data19 = data18[0];if(typeof data19 !== "string"){const err82 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if("identifying" !== data19){const err83 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(len8 > 1){let data20 = data18[1];if(typeof data20 !== "string"){const err84 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if("crm:E55_Type" !== data20){const err85 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}else {const err87 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}var _valid0 = _errs85 === errors;valid1 = _valid0;ifClause0 = "then";}else {const _errs93 = errors;const _errs94 = errors;let valid22 = true;const _errs95 = errors;if(errors === _errs95){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data21 = data.body;const _errs97 = errors;if(errors === _errs97){if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.entityType !== undefined){let data22 = data21.entityType;if(typeof data22 !== "string"){const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if("crm:E33_Linguistic_Object" !== data22){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}}else {const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}var _valid9 = _errs95 === errors;errors = _errs94;if(vErrors !== null){if(_errs94){vErrors.length = _errs94;}else {vErrors = null;}}let ifClause1;if(_valid9){const _errs101 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data23 = data.motivation;if(Array.isArray(data23)){if(data23.length > 2){const err92 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data23.length < 2){const err93 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}const len9 = data23.length;if(len9 > 0){let data24 = data23[0];if(typeof data24 !== "string"){const err94 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if("describing" !== data24){const err95 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(len9 > 1){let data25 = data23[1];if(typeof data25 !== "string"){const err96 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if("crm:E55_Type" !== data25){const err97 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}else {const err98 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}else {const err99 = {instancePath,schemaPath:"#/allOf/0/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}var _valid9 = _errs101 === errors;valid22 = _valid9;ifClause1 = "then";}else {const _errs109 = errors;const _errs110 = errors;let valid27 = true;const _errs111 = errors;if(errors === _errs111){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data26 = data.body;const _errs113 = errors;if(errors === _errs113){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.entityType !== undefined){let data27 = data26.entityType;const _errs115 = errors;if(errors === _errs115){if(Array.isArray(data27)){if(data27.length > 2){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {if(data27.length < 2){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {const len10 = data27.length;if(len10 > 0){let data28 = data27[0];const _errs117 = errors;if(typeof data28 !== "string"){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if("fabio:Correction" !== data28){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}var valid30 = _errs117 === errors;}if(valid30){if(len10 > 1){let data29 = data27[1];const _errs119 = errors;if(typeof data29 !== "string"){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if("crm:E33_Linguistic_Object" !== data29){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var valid30 = _errs119 === errors;}}}}}else {const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}}else {const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}}else {const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}var _valid10 = _errs111 === errors;errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}let ifClause2;if(_valid10){const _errs121 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data30 = data.motivation;if(Array.isArray(data30)){if(data30.length > 2){const err109 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(data30.length < 2){const err110 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const len11 = data30.length;if(len11 > 0){let data31 = data30[0];if(typeof data31 !== "string"){const err111 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if("correcting" !== data31){const err112 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(len11 > 1){let data32 = data30[1];if(typeof data32 !== "string"){const err113 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if("crm:E55_Type" !== data32){const err114 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}}else {const err115 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}else {const err116 = {instancePath,schemaPath:"#/allOf/0/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}var _valid10 = _errs121 === errors;valid27 = _valid10;ifClause2 = "then";}else {const _errs129 = errors;const _errs130 = errors;let valid33 = true;const _errs131 = errors;if(errors === _errs131){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data33 = data.body;const _errs133 = errors;if(errors === _errs133){if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.entityType !== undefined){let data34 = data33.entityType;const _errs135 = errors;if(errors === _errs135){if(Array.isArray(data34)){if(data34.length > 2){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {if(data34.length < 2){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {const len12 = data34.length;if(len12 > 0){let data35 = data34[0];const _errs137 = errors;if(typeof data35 !== "string"){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if("crm:E55_Type" !== data35){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var valid36 = _errs137 === errors;}if(valid36){if(len12 > 1){let data36 = data34[1];const _errs139 = errors;if(typeof data36 !== "string"){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if("crm:E33_Linguistic_Object" !== data36){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}var valid36 = _errs139 === errors;}}}}}else {const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}}else {const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}}else {const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}var _valid11 = _errs131 === errors;errors = _errs130;if(vErrors !== null){if(_errs130){vErrors.length = _errs130;}else {vErrors = null;}}let ifClause3;if(_valid11){const _errs141 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data37 = data.motivation;if(Array.isArray(data37)){if(data37.length > 2){const err126 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(data37.length < 2){const err127 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}const len13 = data37.length;if(len13 > 0){let data38 = data37[0];if(typeof data38 !== "string"){const err128 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if("tagging" !== data38){const err129 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(len13 > 1){let data39 = data37[1];if(typeof data39 !== "string"){const err130 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if("crm:E55_Type" !== data39){const err131 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}}else {const err132 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}}else {const err133 = {instancePath,schemaPath:"#/allOf/0/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}var _valid11 = _errs141 === errors;valid33 = _valid11;ifClause3 = "then";}else {const _errs149 = errors;const _errs150 = errors;let valid39 = true;const _errs151 = errors;if(errors === _errs151){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data40 = data.body;const _errs153 = errors;if(errors === _errs153){if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.entityType !== undefined){let data41 = data40.entityType;const _errs155 = errors;if(errors === _errs155){if(Array.isArray(data41)){if(data41.length > 2){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {if(data41.length < 2){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {const len14 = data41.length;if(len14 > 0){let data42 = data41[0];const _errs157 = errors;if(typeof data42 !== "string"){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if("crm:E55_Type" !== data42){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}var valid42 = _errs157 === errors;}if(valid42){if(len14 > 1){let data43 = data41[1];const _errs159 = errors;if(typeof data43 !== "string"){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if("crmdig:D1_Digital_Object" !== data43){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}var valid42 = _errs159 === errors;}}}}}else {const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}}}else {const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}}}else {const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var _valid12 = _errs151 === errors;errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}let ifClause4;if(_valid12){const _errs161 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data44 = data.motivation;if(Array.isArray(data44)){if(data44.length > 2){const err143 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(data44.length < 2){const err144 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const len15 = data44.length;if(len15 > 0){let data45 = data44[0];if(typeof data45 !== "string"){const err145 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if("classifying" !== data45){const err146 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "classifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(len15 > 1){let data46 = data44[1];if(typeof data46 !== "string"){const err147 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if("crm:E55_Type" !== data46){const err148 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}else {const err150 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}var _valid12 = _errs161 === errors;valid39 = _valid12;ifClause4 = "then";}else {const _errs169 = errors;const _errs170 = errors;let valid45 = true;const _errs171 = errors;if(errors === _errs171){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data47 = data.body;const _errs173 = errors;if(errors === _errs173){if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.entityType !== undefined){let data48 = data47.entityType;if(typeof data48 !== "string"){const err151 = {};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if("crmdig:D1_Digital_Object" !== data48){const err152 = {};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}}else {const err153 = {};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}}else {const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var _valid13 = _errs171 === errors;errors = _errs170;if(vErrors !== null){if(_errs170){vErrors.length = _errs170;}else {vErrors = null;}}let ifClause5;if(_valid13){const _errs177 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data49 = data.motivation;if(Array.isArray(data49)){if(data49.length > 2){const err155 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(data49.length < 2){const err156 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}const len16 = data49.length;if(len16 > 0){let data50 = data49[0];if(typeof data50 !== "string"){const err157 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if("linking" !== data50){const err158 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}if(len16 > 1){let data51 = data49[1];if(typeof data51 !== "string"){const err159 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if("crm:E55_Type" !== data51){const err160 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}else {const err161 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}}else {const err162 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}var _valid13 = _errs177 === errors;valid45 = _valid13;ifClause5 = "then";}else {const _errs185 = errors;const _errs186 = errors;let valid50 = true;const _errs187 = errors;if(errors === _errs187){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data52 = data.body;const _errs189 = errors;if(errors === _errs189){if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.entityType !== undefined){let data53 = data52.entityType;const _errs191 = errors;if(errors === _errs191){if(Array.isArray(data53)){if(data53.length > 2){const err163 = {};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {if(data53.length < 2){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}else {const len17 = data53.length;if(len17 > 0){let data54 = data53[0];const _errs193 = errors;if(typeof data54 !== "string"){const err165 = {};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if("cito:Citation" !== data54){const err166 = {};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}var valid53 = _errs193 === errors;}if(valid53){if(len17 > 1){let data55 = data53[1];const _errs195 = errors;if(typeof data55 !== "string"){const err167 = {};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if("crm:E73_Information_Object" !== data55){const err168 = {};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var valid53 = _errs195 === errors;}}}}}else {const err169 = {};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}}}else {const err170 = {};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}}else {const err171 = {};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}var _valid14 = _errs187 === errors;errors = _errs186;if(vErrors !== null){if(_errs186){vErrors.length = _errs186;}else {vErrors = null;}}if(_valid14){const _errs197 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data56 = data.motivation;if(Array.isArray(data56)){if(data56.length > 2){const err172 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if(data56.length < 2){const err173 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}const len18 = data56.length;if(len18 > 0){let data57 = data56[0];if(typeof data57 !== "string"){const err174 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if("citing" !== data57){const err175 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(len18 > 1){let data58 = data56[1];if(typeof data58 !== "string"){const err176 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if("crm:E55_Type" !== data58){const err177 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}}else {const err178 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}else {const err179 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}var _valid14 = _errs197 === errors;valid50 = _valid14;}if(!valid50){const err180 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}var _valid13 = _errs185 === errors;valid45 = _valid13;ifClause5 = "else";}if(!valid45){const err181 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}var _valid12 = _errs169 === errors;valid39 = _valid12;ifClause4 = "else";}if(!valid39){const err182 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}var _valid11 = _errs149 === errors;valid33 = _valid11;ifClause3 = "else";}if(!valid33){const err183 = {instancePath,schemaPath:"#/allOf/0/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}var _valid10 = _errs129 === errors;valid27 = _valid10;ifClause2 = "else";}if(!valid27){const err184 = {instancePath,schemaPath:"#/allOf/0/else/else/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}var _valid9 = _errs109 === errors;valid22 = _valid9;ifClause1 = "else";}if(!valid22){const err185 = {instancePath,schemaPath:"#/allOf/0/else/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}var _valid0 = _errs93 === errors;valid1 = _valid0;ifClause0 = "else";}if(!valid1){const err186 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data["@context"] === undefined){const err187 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "@context"},message:"must have required property '"+"@context"+"'"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(data.id === undefined){const err188 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if(data.type === undefined){const err189 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if(data.motivation === undefined){const err190 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "motivation"},message:"must have required property '"+"motivation"+"'"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data.created === undefined){const err191 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "created"},message:"must have required property '"+"created"+"'"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if(data.generator === undefined){const err192 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "generator"},message:"must have required property '"+"generator"+"'"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}if(data.target === undefined){const err193 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}if(data.body === undefined){const err194 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "body"},message:"must have required property '"+"body"+"'"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if(data.status === undefined){const err195 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "status"},message:"must have required property '"+"status"+"'"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}for(const key0 in data){if(!(func2.call(schema11.properties, key0))){const err196 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}if(data["@context"] !== undefined){let data59 = data["@context"];if(Array.isArray(data59)){if(data59.length > 2){const err197 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(data59.length < 2){const err198 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}const len19 = data59.length;if(len19 > 0){let data60 = data59[0];if(typeof data60 !== "string"){const err199 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if("http://www.w3.org/ns/anno.jsonld" !== data60){const err200 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/const",keyword:"const",params:{allowedValue: "http://www.w3.org/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(len19 > 1){let data61 = data59[1];if(typeof data61 !== "string"){const err201 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}if("https://wa.lincsproject.ca/v1/ns/anno.jsonld" !== data61){const err202 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/const",keyword:"const",params:{allowedValue: "https://wa.lincsproject.ca/v1/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}}else {const err203 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(data.id !== undefined){let data62 = data.id;if(typeof data62 === "string"){if(!(formats0(data62))){const err204 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}else {const err205 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(data.type !== undefined){let data63 = data.type;if(Array.isArray(data63)){if(data63.length > 2){const err206 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}if(data63.length < 2){const err207 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}const len20 = data63.length;if(len20 > 0){let data64 = data63[0];if(typeof data64 !== "string"){const err208 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}if("Annotation" !== data64){const err209 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Annotation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}if(len20 > 1){let data65 = data63[1];if(typeof data65 !== "string"){const err210 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}if("crm:E33_Linguistic_Object" !== data65){const err211 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}}else {const err212 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data.motivation !== undefined){let data66 = data.motivation;if(Array.isArray(data66)){if(data66.length > 2){const err213 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}if(data66.length < 2){const err214 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}const len21 = data66.length;if(len21 > 0){let data67 = data66[0];if(typeof data67 !== "string"){const err215 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if(!(((((((data67 === "identifying") || (data67 === "describing")) || (data67 === "correcting")) || (data67 === "tagging")) || (data67 === "classifying")) || (data67 === "linking")) || (data67 === "citing"))){const err216 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/properties/motivation/items/0/enum",keyword:"enum",params:{allowedValues: schema11.properties.motivation.items[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(len21 > 1){let data68 = data66[1];if(typeof data68 !== "string"){const err217 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}if("crm:E55_Type" !== data68){const err218 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}}else {const err219 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data.created !== undefined){let data69 = data.created;if(typeof data69 === "string"){if(!(formats2.validate(data69))){const err220 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}else {const err221 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}if(data.modified !== undefined){let data70 = data.modified;if(typeof data70 === "string"){if(!(formats2.validate(data70))){const err222 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}else {const err223 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(data.creator !== undefined){let data71 = data.creator;if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.id === undefined){const err224 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}if(data71.type === undefined){const err225 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}if(data71.name === undefined){const err226 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}if(data71.id !== undefined){let data72 = data71.id;if(typeof data72 === "string"){if(!(formats0(data72))){const err227 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}else {const err228 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data71.type !== undefined){let data73 = data71.type;if(typeof data73 !== "string"){const err229 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}if("crm:E21_Person" !== data73){const err230 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}if(data71.name !== undefined){let data74 = data71.name;if(typeof data74 === "string"){if(func3(data74) < 1){const err231 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}else {const err232 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/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+"/creator",schemaPath:"defs.jsonld#/definitions/creator/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}if(data.contributor !== undefined){let data75 = data.contributor;if(Array.isArray(data75)){if(data75.length < 1){const err234 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}const len22 = data75.length;for(let i0=0; i0<len22; i0++){let data76 = data75[i0];if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.id === undefined){const err235 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if(data76.type === undefined){const err236 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}if(data76.name === undefined){const err237 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}if(data76.id !== undefined){let data77 = data76.id;if(typeof data77 === "string"){if(!(formats0(data77))){const err238 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}else {const err239 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}}if(data76.type !== undefined){let data78 = data76.type;if(typeof data78 !== "string"){const err240 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}if("crm:E21_Person" !== data78){const err241 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}}if(data76.name !== undefined){let data79 = data76.name;if(typeof data79 === "string"){if(func3(data79) < 1){const err242 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}else {const err243 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}}else {const err244 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}}else {const err245 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}if(data.generator !== undefined){let data80 = data.generator;if(data80 && typeof data80 == "object" && !Array.isArray(data80)){if(data80.id === undefined){const err246 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}if(data80.type === undefined){const err247 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}if(data80.label === undefined){const err248 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data80.id !== undefined){let data81 = data80.id;if(typeof data81 === "string"){if(!(formats0(data81))){const err249 = {instancePath:instancePath+"/generator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}else {const err250 = {instancePath:instancePath+"/generator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}if(data80.type !== undefined){let data82 = data80.type;if(Array.isArray(data82)){if(data82.length > 2){const err251 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}if(data82.length < 2){const err252 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}const len23 = data82.length;if(len23 > 0){let data83 = data82[0];if(typeof data83 !== "string"){const err253 = {instancePath:instancePath+"/generator/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}if("Software" !== data83){const err254 = {instancePath:instancePath+"/generator/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}if(len23 > 1){let data84 = data82[1];if(typeof data84 !== "string"){const err255 = {instancePath:instancePath+"/generator/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if("crm:P16_used_specific_object" !== data84){const err256 = {instancePath:instancePath+"/generator/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:P16_used_specific_object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}}else {const err257 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}}if(data80.label !== undefined){let data85 = data80.label;if(typeof data85 === "string"){if(func3(data85) < 1){const err258 = {instancePath:instancePath+"/generator/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}else {const err259 = {instancePath:instancePath+"/generator/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}if(data80.softwareVersion !== undefined){if(typeof data80.softwareVersion !== "string"){const err260 = {instancePath:instancePath+"/generator/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}}else {const err261 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}if(data.target !== undefined){if(!(validate12(data.target, {instancePath:instancePath+"/target",parentData:data,parentDataProperty:"target",rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}}if(data.body !== undefined){let data88 = data.body;const _errs267 = errors;let valid69 = false;let passing8 = null;const _errs268 = errors;if(!(validate14(data88, {instancePath:instancePath+"/body",parentData:data,parentDataProperty:"body",rootData}))){vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);errors = vErrors.length;}var _valid15 = _errs268 === errors;if(_valid15){valid69 = true;passing8 = 0;}const _errs269 = errors;const _errs272 = errors;let valid71 = false;const _errs273 = errors;const _errs274 = errors;let valid72 = true;const _errs275 = errors;if(errors === _errs275){if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.entityType !== undefined){let data89 = data88.entityType;const _errs278 = errors;let valid74 = false;const _errs279 = errors;if("crm:E33_Linguistic_Object" !== data89){const err262 = {};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}var _valid18 = _errs279 === errors;valid74 = valid74 || _valid18;if(!valid74){const _errs280 = errors;if(errors === _errs280){if(Array.isArray(data89)){if(data89.length > 2){const err263 = {};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}else {if(data89.length < 2){const err264 = {};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}else {const len24 = data89.length;if(len24 > 0){const _errs282 = errors;if("xsd:date" !== data89[0]){const err265 = {};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}var valid75 = _errs282 === errors;}if(valid75){if(len24 > 1){const _errs283 = errors;if("crm:E52_Time-Span" !== data89[1]){const err266 = {};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}var valid75 = _errs283 === errors;}}}}}else {const err267 = {};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}var _valid18 = _errs280 === errors;valid74 = valid74 || _valid18;if(!valid74){const _errs284 = errors;if(errors === _errs284){if(Array.isArray(data89)){if(data89.length > 2){const err268 = {};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}else {if(data89.length < 2){const err269 = {};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}else {const len25 = data89.length;if(len25 > 0){const _errs286 = errors;if("fabio:Correction" !== data89[0]){const err270 = {};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}var valid76 = _errs286 === errors;}if(valid76){if(len25 > 1){const _errs287 = errors;if("crm:E33_Linguistic_Object" !== data89[1]){const err271 = {};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}var valid76 = _errs287 === errors;}}}}}else {const err272 = {};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}var _valid18 = _errs284 === errors;valid74 = valid74 || _valid18;if(!valid74){const _errs288 = errors;if(errors === _errs288){if(Array.isArray(data89)){if(data89.length > 2){const err273 = {};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}else {if(data89.length < 2){const err274 = {};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}else {const len26 = data89.length;if(len26 > 0){const _errs290 = errors;if("crm:E55_Type" !== data89[0]){const err275 = {};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}var valid77 = _errs290 === errors;}if(valid77){if(len26 > 1){const _errs291 = errors;if("crm:E33_Linguistic_Object" !== data89[1]){const err276 = {};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}var valid77 = _errs291 === errors;}}}}}else {const err277 = {};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}var _valid18 = _errs288 === errors;valid74 = valid74 || _valid18;}}}if(!valid74){const err278 = {};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}else {errors = _errs278;if(vErrors !== null){if(_errs278){vErrors.length = _errs278;}else {vErrors = null;}}}}}else {const err279 = {};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}var _valid17 = _errs275 === errors;errors = _errs274;if(vErrors !== null){if(_errs274){vErrors.length = _errs274;}else {vErrors = null;}}if(_valid17){const _errs292 = errors;const _errs294 = errors;let valid78 = true;const _errs295 = errors;if(errors === _errs295){if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.entityType !== undefined){let data96 = data88.entityType;const _errs297 = errors;if(errors === _errs297){if(Array.isArray(data96)){if(data96.length > 2){const err280 = {};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}else {if(data96.length < 2){const err281 = {};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}else {const len27 = data96.length;if(len27 > 0){const _errs299 = errors;if("xsd:date" !== data96[0]){const err282 = {};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}var valid80 = _errs299 === errors;}if(valid80){if(len27 > 1){const _errs300 = errors;if("crm:E52_Time-Span" !== data96[1]){const err283 = {};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var valid80 = _errs300 === errors;}}}}}else {const err284 = {};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}}}}else {const err285 = {};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}}var _valid19 = _errs295 === errors;errors = _errs294;if(vErrors !== null){if(_errs294){vErrors.length = _errs294;}else {vErrors = null;}}let ifClause6;if(_valid19){const _errs301 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.value !== undefined){let data99 = data88.value;if(typeof data99 === "string"){if(!pattern0.test(data99)){const err286 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}else {const err287 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}}else {const err288 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}var _valid19 = _errs301 === errors;valid78 = _valid19;ifClause6 = "then";}else {const _errs305 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.value !== undefined){if(typeof data88.value !== "string"){const err289 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}}else {const err290 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}var _valid19 = _errs305 === errors;valid78 = _valid19;ifClause6 = "else";}if(!valid78){const err291 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause6},message:"must match \""+ifClause6+"\" schema"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type === undefined){const err292 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}if(data88.value === undefined){const err293 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}if(data88.type !== undefined){let data101 = data88.type;if(typeof data101 !== "string"){const err294 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}if("TextualBody" !== data101){const err295 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}}}else {const err296 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}var _valid17 = _errs292 === errors;valid72 = _valid17;}if(!valid72){const err297 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}var _valid16 = _errs273 === errors;valid71 = valid71 || _valid16;if(!valid71){const err298 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}else {errors = _errs272;if(vErrors !== null){if(_errs272){vErrors.length = _errs272;}else {vErrors = null;}}}if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.id === undefined){const err299 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}if(data88.entityType === undefined){const err300 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}for(const key1 in data88){if(!(func2.call(schema35.properties, key1))){const err301 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}if(data88.id !== undefined){let data102 = data88.id;if(typeof data102 === "string"){if(!(formats0(data102))){const err302 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}else {const err303 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}if(data88.type !== undefined){let data103 = data88.type;if(typeof data103 !== "string"){const err304 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}if("TextualBody" !== data103){const err305 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}}if(data88.entityType !== undefined){let data104 = data88.entityType;const _errs317 = errors;let valid85 = false;let passing9 = null;const _errs318 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err306 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}if(data104.length < 2){const err307 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}const len28 = data104.length;if(len28 > 0){let data105 = data104[0];if(typeof data105 !== "string"){const err308 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}if("Person" !== data105){const err309 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/const",keyword:"const",params:{allowedValue: "Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}if(len28 > 1){let data106 = data104[1];const _errs323 = errors;let valid87 = false;let passing10 = null;const _errs324 = errors;if(typeof data106 !== "string"){const err310 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}if("crm:E21_Person" !== data106){const err311 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}var _valid21 = _errs324 === errors;if(_valid21){valid87 = true;passing10 = 0;}const _errs326 = errors;if(typeof data106 !== "string"){const err312 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}if("crm:E89_Propositional_Object" !== data106){const err313 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}var _valid21 = _errs326 === errors;if(_valid21 && valid87){valid87 = false;passing10 = [passing10, 1];}else {if(_valid21){valid87 = true;passing10 = 1;}}if(!valid87){const err314 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing10},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}else {errors = _errs323;if(vErrors !== null){if(_errs323){vErrors.length = _errs323;}else {vErrors = null;}}}}}else {const err315 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}var _valid20 = _errs318 === errors;if(_valid20){valid85 = true;passing9 = 0;}const _errs328 = errors;const _errs329 = errors;let valid88 = false;let passing11 = null;const _errs330 = errors;if(typeof data104 !== "string"){const err316 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}if("cwrc:place" !== data104){const err317 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}var _valid22 = _errs330 === errors;if(_valid22){valid88 = true;passing11 = 0;}const _errs332 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err318 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}if(data104.length < 2){const err319 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}const len29 = data104.length;if(len29 > 0){let data107 = data104[0];if(typeof data107 !== "string"){const err320 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}if("cwrc:place" !== data107){const err321 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}}if(len29 > 1){let data108 = data104[1];if(typeof data108 !== "string"){const err322 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}if("crm:E89_Propositional_Object" !== data108){const err323 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}}}else {const err324 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}var _valid22 = _errs332 === errors;if(_valid22 && valid88){valid88 = false;passing11 = [passing11, 1];}else {if(_valid22){valid88 = true;passing11 = 1;}}if(!valid88){const err325 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}else {errors = _errs329;if(vErrors !== null){if(_errs329){vErrors.length = _errs329;}else {vErrors = null;}}}var _valid20 = _errs328 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 1];}else {if(_valid20){valid85 = true;passing9 = 1;}const _errs338 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err326 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}if(data104.length < 2){const err327 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}const len30 = data104.length;if(len30 > 0){let data109 = data104[0];if(typeof data109 !== "string"){const err328 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}if("foaf:Organization" !== data109){const err329 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}if(len30 > 1){let data110 = data104[1];const _errs343 = errors;let valid91 = false;let passing12 = null;const _errs344 = errors;if(typeof data110 !== "string"){const err330 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}if("crm:E74_Group" !== data110){const err331 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}var _valid23 = _errs344 === errors;if(_valid23){valid91 = true;passing12 = 0;}const _errs346 = errors;if(typeof data110 !== "string"){const err332 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if("crm:E89_Propositional_Object" !== data110){const err333 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}var _valid23 = _errs346 === errors;if(_valid23 && valid91){valid91 = false;passing12 = [passing12, 1];}else {if(_valid23){valid91 = true;passing12 = 1;}}if(!valid91){const err334 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}else {errors = _errs343;if(vErrors !== null){if(_errs343){vErrors.length = _errs343;}else {vErrors = null;}}}}}else {const err335 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}var _valid20 = _errs338 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 2];}else {if(_valid20){valid85 = true;passing9 = 2;}const _errs348 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err336 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}if(data104.length < 2){const err337 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}const len31 = data104.length;if(len31 > 0){let data111 = data104[0];if(typeof data111 !== "string"){const err338 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}if("crm:E89_Propositional_Object" !== data111){const err339 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}if(len31 > 1){let data112 = data104[1];const _errs353 = errors;let valid93 = false;let passing13 = null;const _errs354 = errors;if(typeof data112 !== "string"){const err340 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}if("frbroo:F1" !== data112){const err341 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}var _valid24 = _errs354 === errors;if(_valid24){valid93 = true;passing13 = 0;}const _errs356 = errors;if(typeof data112 !== "string"){const err342 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}if("wikidata:Q15306849" !== data112){const err343 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}var _valid24 = _errs356 === errors;if(_valid24 && valid93){valid93 = false;passing13 = [passing13, 1];}else {if(_valid24){valid93 = true;passing13 = 1;}}if(!valid93){const err344 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing13},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}else {errors = _errs353;if(vErrors !== null){if(_errs353){vErrors.length = _errs353;}else {vErrors = null;}}}}}else {const err345 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}var _valid20 = _errs348 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 3];}else {if(_valid20){valid85 = true;passing9 = 3;}const _errs358 = errors;const _errs359 = errors;let valid94 = false;let passing14 = null;const _errs360 = errors;if(typeof data104 !== "string"){const err346 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}if("crm:E18_Physical_Thing" !== data104){const err347 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}var _valid25 = _errs360 === errors;if(_valid25){valid94 = true;passing14 = 0;}const _errs362 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err348 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}if(data104.length < 2){const err349 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}const len32 = data104.length;if(len32 > 0){let data113 = data104[0];if(typeof data113 !== "string"){const err350 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}if("crm:E18_Physical_Thing" !== data113){const err351 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}}if(len32 > 1){let data114 = data104[1];if(typeof data114 !== "string"){const err352 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}if("wikidata:Q15831596" !== data114){const err353 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}}}else {const err354 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}var _valid25 = _errs362 === errors;if(_valid25 && valid94){valid94 = false;passing14 = [passing14, 1];}else {if(_valid25){valid94 = true;passing14 = 1;}}if(!valid94){const err355 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing14},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}else {errors = _errs359;if(vErrors !== null){if(_errs359){vErrors.length = _errs359;}else {vErrors = null;}}}var _valid20 = _errs358 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 4];}else {if(_valid20){valid85 = true;passing9 = 4;}const _errs368 = errors;const _errs369 = errors;let valid96 = false;let passing15 = null;const _errs370 = errors;if(typeof data104 !== "string"){const err356 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}if("crm:E28_Conceptual_Object" !== data104){const err357 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}var _valid26 = _errs370 === errors;if(_valid26){valid96 = true;passing15 = 0;}const _errs372 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err358 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}if(data104.length < 2){const err359 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}const len33 = data104.length;if(len33 > 0){let data115 = data104[0];if(typeof data115 !== "string"){const err360 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}if("crm:E28_Conceptual_Object" !== data115){const err361 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}if(len33 > 1){let data116 = data104[1];if(typeof data116 !== "string"){const err362 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}if("wikidata:Q15831596" !== data116){const err363 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}}}else {const err364 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}var _valid26 = _errs372 === errors;if(_valid26 && valid96){valid96 = false;passing15 = [passing15, 1];}else {if(_valid26){valid96 = true;passing15 = 1;}}if(!valid96){const err365 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing15},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}else {errors = _errs369;if(vErrors !== null){if(_errs369){vErrors.length = _errs369;}else {vErrors = null;}}}var _valid20 = _errs368 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 5];}else {if(_valid20){valid85 = true;passing9 = 5;}const _errs378 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err366 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}if(data104.length < 2){const err367 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}const len34 = data104.length;if(len34 > 0){let data117 = data104[0];if(typeof data117 !== "string"){const err368 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if("cito:Citation" !== data117){const err369 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}}if(len34 > 1){let data118 = data104[1];if(typeof data118 !== "string"){const err370 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}if("crm:E73_Information_Object" !== data118){const err371 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}}else {const err372 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}var _valid20 = _errs378 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 6];}else {if(_valid20){valid85 = true;passing9 = 6;}const _errs384 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err373 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}if(data104.length < 2){const err374 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}const len35 = data104.length;if(len35 > 0){let data119 = data104[0];if(typeof data119 !== "string"){const err375 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}if("xsd:date" !== data119){const err376 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}}if(len35 > 1){let data120 = data104[1];if(typeof data120 !== "string"){const err377 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}if("crm:E52_Time-Span" !== data120){const err378 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}}}else {const err379 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}var _valid20 = _errs384 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 7];}else {if(_valid20){valid85 = true;passing9 = 7;}const _errs390 = errors;if(typeof data104 !== "string"){const err380 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}if("crm:E33_Linguistic_Object" !== data104){const err381 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}var _valid20 = _errs390 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 8];}else {if(_valid20){valid85 = true;passing9 = 8;}const _errs392 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err382 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}if(data104.length < 2){const err383 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}const len36 = data104.length;if(len36 > 0){let data121 = data104[0];if(typeof data121 !== "string"){const err384 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}if("fabio:Correction" !== data121){const err385 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}}if(len36 > 1){let data122 = data104[1];if(typeof data122 !== "string"){const err386 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}if("crm:E33_Linguistic_Object" !== data122){const err387 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}}}else {const err388 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}var _valid20 = _errs392 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 9];}else {if(_valid20){valid85 = true;passing9 = 9;}const _errs398 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err389 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}if(data104.length < 2){const err390 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}const len37 = data104.length;if(len37 > 0){let data123 = data104[0];if(typeof data123 !== "string"){const err391 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}if("crm:E55_Type" !== data123){const err392 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}}if(len37 > 1){let data124 = data104[1];if(typeof data124 !== "string"){const err393 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}if("crmdig:D1_Digital_Object" !== data124){const err394 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}}}else {const err395 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}var _valid20 = _errs398 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 10];}else {if(_valid20){valid85 = true;passing9 = 10;}const _errs404 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err396 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}if(data104.length < 2){const err397 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}const len38 = data104.length;if(len38 > 0){let data125 = data104[0];if(typeof data125 !== "string"){const err398 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}if("crm:E55_Type" !== data125){const err399 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}}if(len38 > 1){let data126 = data104[1];if(typeof data126 !== "string"){const err400 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}if("crm:E33_Linguistic_Object" !== data126){const err401 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}}}else {const err402 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}var _valid20 = _errs404 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 11];}else {if(_valid20){valid85 = true;passing9 = 11;}const _errs410 = errors;if(typeof data104 !== "string"){const err403 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}if("crmdig:D1_Digital_Object" !== data104){const err404 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}var _valid20 = _errs410 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 12];}else {if(_valid20){valid85 = true;passing9 = 12;}const _errs412 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err405 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}if(data104.length < 2){const err406 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}const len39 = data104.length;if(len39 > 0){let data127 = data104[0];if(typeof data127 !== "string"){const err407 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}if("YET TO BE DEFINED EVENT CLASS" !== data127){const err408 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/0/const",keyword:"const",params:{allowedValue: "YET TO BE DEFINED EVENT CLASS"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}if(len39 > 1){let data128 = data104[1];const _errs417 = errors;let valid104 = false;let passing16 = null;const _errs418 = errors;if(typeof data128 !== "string"){const err409 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}if("crm:E5_Event" !== data128){const err410 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}var _valid27 = _errs418 === errors;if(_valid27){valid104 = true;passing16 = 0;}const _errs420 = errors;if(typeof data128 !== "string"){const err411 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}if("crm:E89_Propositional_Object" !== data128){const err412 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}var _valid27 = _errs420 === errors;if(_valid27 && valid104){valid104 = false;passing16 = [passing16, 1];}else {if(_valid27){valid104 = true;passing16 = 1;}}if(!valid104){const err413 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing16},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}else {errors = _errs417;if(vErrors !== null){if(_errs417){vErrors.length = _errs417;}else {vErrors = null;}}}}}else {const err414 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}var _valid20 = _errs412 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 13];}else {if(_valid20){valid85 = true;passing9 = 13;}}}}}}}}}}}}}}if(!valid85){const err415 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}else {errors = _errs317;if(vErrors !== null){if(_errs317){vErrors.length = _errs317;}else {vErrors = null;}}}}if(data88.additionalType !== undefined){let data129 = data88.additionalType;const _errs423 = errors;let valid105 = false;const _errs424 = errors;if(typeof data129 !== "string"){const err416 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}var _valid28 = _errs424 === errors;valid105 = valid105 || _valid28;if(!valid105){const _errs426 = errors;if(Array.isArray(data129)){const len40 = data129.length;for(let i1=0; i1<len40; i1++){if(typeof data129[i1] !== "string"){const err417 = {instancePath:instancePath+"/body/additionalType/" + i1,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}}}else {const err418 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}var _valid28 = _errs426 === errors;valid105 = valid105 || _valid28;}if(!valid105){const err419 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}else {errors = _errs423;if(vErrors !== null){if(_errs423){vErrors.length = _errs423;}else {vErrors = null;}}}}if(data88.value !== undefined){if(typeof data88.value !== "string"){const err420 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}}if(data88.certainty !== undefined){let data132 = data88.certainty;if(typeof data132 !== "string"){const err421 = {instancePath:instancePath+"/body/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}if(!((((data132 === "edit:qualityLow") || (data132 === "edit:qualityMedium")) || (data132 === "edit:qualityHigh")) || (data132 === "edit:qualityUnknown"))){const err422 = {instancePath:instancePath+"/body/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/enum",keyword:"enum",params:{allowedValues: schema35.properties.certainty.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}}if(data88.precision !== undefined){let data133 = data88.precision;if(typeof data133 !== "string"){const err423 = {instancePath:instancePath+"/body/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}if(!((((data133 === "edit:qualityLow") || (data133 === "edit:qualityMedium")) || (data133 === "edit:qualityHigh")) || (data133 === "edit:qualityUnknown"))){const err424 = {instancePath:instancePath+"/body/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/enum",keyword:"enum",params:{allowedValues: schema35.properties.precision.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}}if(data88.label !== undefined){let data134 = data88.label;if(typeof data134 === "string"){if(func3(data134) < 1){const err425 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}}else {const err426 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}}if(data88.description !== undefined){if(typeof data88.description !== "string"){const err427 = {instancePath:instancePath+"/body/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}}}else {const err428 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}var _valid15 = _errs269 === errors;if(_valid15 && valid69){valid69 = false;passing8 = [passing8, 1];}else {if(_valid15){valid69 = true;passing8 = 1;}const _errs440 = errors;if(Array.isArray(data88)){if(data88.length < 1){const err429 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}const len41 = data88.length;for(let i2=0; i2<len41; i2++){let data136 = data88[i2];const _errs445 = errors;let valid111 = false;const _errs446 = errors;const _errs447 = errors;let valid112 = true;const _errs448 = errors;if(errors === _errs448){if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(data136.entityType !== undefined){let data137 = data136.entityType;const _errs451 = errors;let valid114 = false;const _errs452 = errors;if("crm:E33_Linguistic_Object" !== data137){const err430 = {};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}var _valid31 = _errs452 === errors;valid114 = valid114 || _valid31;if(!valid114){const _errs453 = errors;if(errors === _errs453){if(Array.isArray(data137)){if(data137.length > 2){const err431 = {};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}else {if(data137.length < 2){const err432 = {};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}else {const len42 = data137.length;if(len42 > 0){const _errs455 = errors;if("xsd:date" !== data137[0]){const err433 = {};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}var valid115 = _errs455 === errors;}if(valid115){if(len42 > 1){const _errs456 = errors;if("crm:E52_Time-Span" !== data137[1]){const err434 = {};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}var valid115 = _errs456 === errors;}}}}}else {const err435 = {};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}}var _valid31 = _errs453 === errors;valid114 = valid114 || _valid31;if(!valid114){const _errs457 = errors;if(errors === _errs457){if(Array.isArray(data137)){if(data137.length > 2){const err436 = {};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}else {if(data137.length < 2){const err437 = {};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}else {const len43 = data137.length;if(len43 > 0){const _errs459 = errors;if("fabio:Correction" !== data137[0]){const err438 = {};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}var valid116 = _errs459 === errors;}if(valid116){if(len43 > 1){const _errs460 = errors;if("crm:E33_Linguistic_Object" !== data137[1]){const err439 = {};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}var valid116 = _errs460 === errors;}}}}}else {const err440 = {};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}}var _valid31 = _errs457 === errors;valid114 = valid114 || _valid31;if(!valid114){const _errs461 = errors;if(errors === _errs461){if(Array.isArray(data137)){if(data137.length > 2){const err441 = {};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}else {if(data137.length < 2){const err442 = {};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}else {const len44 = data137.length;if(len44 > 0){const _errs463 = errors;if("crm:E55_Type" !== data137[0]){const err443 = {};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}var valid117 = _errs463 === errors;}if(valid117){if(len44 > 1){const _errs464 = errors;if("crm:E33_Linguistic_Object" !== data137[1]){const err444 = {};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}var valid117 = _errs464 === errors;}}}}}else {const err445 = {};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}}var _valid31 = _errs461 === errors;valid114 = valid114 || _valid31;}}}if(!valid114){const err446 = {};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}else {errors = _errs451;if(vErrors !== null){if(_errs451){vErrors.length = _errs451;}else {vErrors = null;}}}}}else {const err447 = {};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}}var _valid30 = _errs448 === errors;errors = _errs447;if(vErrors !== null){if(_errs447){vErrors.length = _errs447;}else {vErrors = null;}}if(_valid30){const _errs465 = errors;const _errs467 = errors;let valid118 = true;const _errs468 = errors;if(errors === _errs468){if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(data136.entityType !== undefined){let data144 = data136.entityType;const _errs470 = errors;if(errors === _errs470){if(Array.isArray(data144)){if(data144.length > 2){const err448 = {};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}else {if(data144.length < 2){const err449 = {};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}else {const len45 = data144.length;if(len45 > 0){const _errs472 = errors;if("xsd:date" !== data144[0]){const err450 = {};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}var valid120 = _errs472 === errors;}if(valid120){if(len45 > 1){const _errs473 = errors;if("crm:E52_Time-Span" !== data144[1]){const err451 = {};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}var valid120 = _errs473 === errors;}}}}}else {const err452 = {};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}}}}else {const err453 = {};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}}var _valid32 = _errs468 === errors;errors = _errs467;if(vErrors !== null){if(_errs467){vErrors.length = _errs467;}else {vErrors = null;}}let ifClause7;if(_valid32){const _errs474 = errors;if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(data136.value !== undefined){let data147 = data136.value;if(typeof data147 === "string"){if(!pattern0.test(data147)){const err454 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}}else {const err455 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}}}else {const err456 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}var _valid32 = _errs474 === errors;valid118 = _valid32;ifClause7 = "then";}else {const _errs478 = errors;if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(data136.value !== undefined){if(typeof data136.value !== "string"){const err457 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}}}else {const err458 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}var _valid32 = _errs478 === errors;valid118 = _valid32;ifClause7 = "else";}if(!valid118){const err459 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause7},message:"must match \""+ifClause7+"\" schema"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(data136.type === undefined){const err460 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}if(data136.value === undefined){const err461 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}if(data136.type !== undefined){let data149 = data136.type;if(typeof data149 !== "string"){const err462 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}if("TextualBody" !== data149){const err463 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}}}else {const err464 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}var _valid30 = _errs465 === errors;valid112 = _valid30;}if(!valid112){const err465 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}var _valid29 = _errs446 === errors;valid111 = valid111 || _valid29;if(!valid111){const err466 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}else {errors = _errs445;if(vErrors !== null){if(_errs445){vErrors.length = _errs445;}else {vErrors = null;}}}if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(data136.id === undefined){const err467 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}if(data136.entityType === undefined){const err468 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}for(const key2 in data136){if(!(func2.call(schema35.properties, key2))){const err469 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}}if(data136.id !== undefined){let data150 = data136.id;if(typeof data150 === "string"){if(!(formats0(data150))){const err470 = {instancePath:instancePath+"/body/" + i2+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}}else {const err471 = {instancePath:instancePath+"/body/" + i2+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}}if(data136.type !== undefined){let data151 = data136.type;if(typeof data151 !== "string"){const err472 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}if("TextualBody" !== data151){const err473 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}}if(data136.entityType !== undefined){let data152 = data136.entityType;const _errs490 = errors;let valid125 = false;let passing17 = null;const _errs491 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err474 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}if(data152.length < 2){const err475 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}const len46 = data152.length;if(len46 > 0){let data153 = data152[0];if(typeof data153 !== "string"){const err476 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}if("Person" !== data153){const err477 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/const",keyword:"const",params:{allowedValue: "Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}}if(len46 > 1){let data154 = data152[1];const _errs496 = errors;let valid127 = false;let passing18 = null;const _errs497 = errors;if(typeof data154 !== "string"){const err478 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}if("crm:E21_Person" !== data154){const err479 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}var _valid34 = _errs497 === errors;if(_valid34){valid127 = true;passing18 = 0;}const _errs499 = errors;if(typeof data154 !== "string"){const err480 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}if("crm:E89_Propositional_Object" !== data154){const err481 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}var _valid34 = _errs499 === errors;if(_valid34 && valid127){valid127 = false;passing18 = [passing18, 1];}else {if(_valid34){valid127 = true;passing18 = 1;}}if(!valid127){const err482 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing18},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}else {errors = _errs496;if(vErrors !== null){if(_errs496){vErrors.length = _errs496;}else {vErrors = null;}}}}}else {const err483 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}var _valid33 = _errs491 === errors;if(_valid33){valid125 = true;passing17 = 0;}const _errs501 = errors;const _errs502 = errors;let valid128 = false;let passing19 = null;const _errs503 = errors;if(typeof data152 !== "string"){const err484 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}if("cwrc:place" !== data152){const err485 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}var _valid35 = _errs503 === errors;if(_valid35){valid128 = true;passing19 = 0;}const _errs505 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err486 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}if(data152.length < 2){const err487 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}const len47 = data152.length;if(len47 > 0){let data155 = data152[0];if(typeof data155 !== "string"){const err488 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}if("cwrc:place" !== data155){const err489 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}}if(len47 > 1){let data156 = data152[1];if(typeof data156 !== "string"){const err490 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}if("crm:E89_Propositional_Object" !== data156){const err491 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}}}else {const err492 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}var _valid35 = _errs505 === errors;if(_valid35 && valid128){valid128 = false;passing19 = [passing19, 1];}else {if(_valid35){valid128 = true;passing19 = 1;}}if(!valid128){const err493 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing19},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}else {errors = _errs502;if(vErrors !== null){if(_errs502){vErrors.length = _errs502;}else {vErrors = null;}}}var _valid33 = _errs501 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 1];}else {if(_valid33){valid125 = true;passing17 = 1;}const _errs511 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err494 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}if(data152.length < 2){const err495 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}const len48 = data152.length;if(len48 > 0){let data157 = data152[0];if(typeof data157 !== "string"){const err496 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}if("foaf:Organization" !== data157){const err497 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}}if(len48 > 1){let data158 = data152[1];const _errs516 = errors;let valid131 = false;let passing20 = null;const _errs517 = errors;if(typeof data158 !== "string"){const err498 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}if("crm:E74_Group" !== data158){const err499 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}var _valid36 = _errs517 === errors;if(_valid36){valid131 = true;passing20 = 0;}const _errs519 = errors;if(typeof data158 !== "string"){const err500 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}if("crm:E89_Propositional_Object" !== data158){const err501 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}var _valid36 = _errs519 === errors;if(_valid36 && valid131){valid131 = false;passing20 = [passing20, 1];}else {if(_valid36){valid131 = true;passing20 = 1;}}if(!valid131){const err502 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing20},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}else {errors = _errs516;if(vErrors !== null){if(_errs516){vErrors.length = _errs516;}else {vErrors = null;}}}}}else {const err503 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}var _valid33 = _errs511 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 2];}else {if(_valid33){valid125 = true;passing17 = 2;}const _errs521 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err504 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}if(data152.length < 2){const err505 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}const len49 = data152.length;if(len49 > 0){let data159 = data152[0];if(typeof data159 !== "string"){const err506 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}if("crm:E89_Propositional_Object" !== data159){const err507 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}}if(len49 > 1){let data160 = data152[1];const _errs526 = errors;let valid133 = false;let passing21 = null;const _errs527 = errors;if(typeof data160 !== "string"){const err508 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}if("frbroo:F1" !== data160){const err509 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}var _valid37 = _errs527 === errors;if(_valid37){valid133 = true;passing21 = 0;}const _errs529 = errors;if(typeof data160 !== "string"){const err510 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}if("wikidata:Q15306849" !== data160){const err511 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}var _valid37 = _errs529 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 1];}else {if(_valid37){valid133 = true;passing21 = 1;}}if(!valid133){const err512 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing21},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}else {errors = _errs526;if(vErrors !== null){if(_errs526){vErrors.length = _errs526;}else {vErrors = null;}}}}}else {const err513 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}var _valid33 = _errs521 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 3];}else {if(_valid33){valid125 = true;passing17 = 3;}const _errs531 = errors;const _errs532 = errors;let valid134 = false;let passing22 = null;const _errs533 = errors;if(typeof data152 !== "string"){const err514 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}if("crm:E18_Physical_Thing" !== data152){const err515 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}var _valid38 = _errs533 === errors;if(_valid38){valid134 = true;passing22 = 0;}const _errs535 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err516 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}if(data152.length < 2){const err517 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}const len50 = data152.length;if(len50 > 0){let data161 = data152[0];if(typeof data161 !== "string"){const err518 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}if("crm:E18_Physical_Thing" !== data161){const err519 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}}if(len50 > 1){let data162 = data152[1];if(typeof data162 !== "string"){const err520 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}if("wikidata:Q15831596" !== data162){const err521 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}}}else {const err522 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}var _valid38 = _errs535 === errors;if(_valid38 && valid134){valid134 = false;passing22 = [passing22, 1];}else {if(_valid38){valid134 = true;passing22 = 1;}}if(!valid134){const err523 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing22},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}else {errors = _errs532;if(vErrors !== null){if(_errs532){vErrors.length = _errs532;}else {vErrors = null;}}}var _valid33 = _errs531 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 4];}else {if(_valid33){valid125 = true;passing17 = 4;}const _errs541 = errors;const _errs542 = errors;let valid136 = false;let passing23 = null;const _errs543 = errors;if(typeof data152 !== "string"){const err524 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}if("crm:E28_Conceptual_Object" !== data152){const err525 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}var _valid39 = _errs543 === errors;if(_valid39){valid136 = true;passing23 = 0;}const _errs545 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err526 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}if(data152.length < 2){const err527 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}const len51 = data152.length;if(len51 > 0){let data163 = data152[0];if(typeof data163 !== "string"){const err528 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}if("crm:E28_Conceptual_Object" !== data163){const err529 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}}if(len51 > 1){let data164 = data152[1];if(typeof data164 !== "string"){const err530 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}if("wikidata:Q15831596" !== data164){const err531 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}}}else {const err532 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}var _valid39 = _errs545 === errors;if(_valid39 && valid136){valid136 = false;passing23 = [passing23, 1];}else {if(_valid39){valid136 = true;passing23 = 1;}}if(!valid136){const err533 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing23},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}else {errors = _errs542;if(vErrors !== null){if(_errs542){vErrors.length = _errs542;}else {vErrors = null;}}}var _valid33 = _errs541 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 5];}else {if(_valid33){valid125 = true;passing17 = 5;}const _errs551 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err534 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}if(data152.length < 2){const err535 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}const len52 = data152.length;if(len52 > 0){let data165 = data152[0];if(typeof data165 !== "string"){const err536 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}if("cito:Citation" !== data165){const err537 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}}if(len52 > 1){let data166 = data152[1];if(typeof data166 !== "string"){const err538 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}if("crm:E73_Information_Object" !== data166){const err539 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}}}else {const err540 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}var _valid33 = _errs551 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 6];}else {if(_valid33){valid125 = true;passing17 = 6;}const _errs557 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err541 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}if(data152.length < 2){const err542 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}const len53 = data152.length;if(len53 > 0){let data167 = data152[0];if(typeof data167 !== "string"){const err543 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err543];}else {vErrors.push(err543);}errors++;}if("xsd:date" !== data167){const err544 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}}if(len53 > 1){let data168 = data152[1];if(typeof data168 !== "string"){const err545 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err545];}else {vErrors.push(err545);}errors++;}if("crm:E52_Time-Span" !== data168){const err546 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err546];}else {vErrors.push(err546);}errors++;}}}else {const err547 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err547];}else {vErrors.push(err547);}errors++;}var _valid33 = _errs557 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 7];}else {if(_valid33){valid125 = true;passing17 = 7;}const _errs563 = errors;if(typeof data152 !== "string"){const err548 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err548];}else {vErrors.push(err548);}errors++;}if("crm:E33_Linguistic_Object" !== data152){const err549 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err549];}else {vErrors.push(err549);}errors++;}var _valid33 = _errs563 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 8];}else {if(_valid33){valid125 = true;passing17 = 8;}const _errs565 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err550 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}if(data152.length < 2){const err551 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err551];}else {vErrors.push(err551);}errors++;}const len54 = data152.length;if(len54 > 0){let data169 = data152[0];if(typeof data169 !== "string"){const err552 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err552];}else {vErrors.push(err552);}errors++;}if("fabio:Correction" !== data169){const err553 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err553];}else {vErrors.push(err553);}errors++;}}if(len54 > 1){let data170 = data152[1];if(typeof data170 !== "string"){const err554 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err554];}else {vErrors.push(err554);}errors++;}if("crm:E33_Linguistic_Object" !== data170){const err555 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err555];}else {vErrors.push(err555);}errors++;}}}else {const err556 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err556];}else {vErrors.push(err556);}errors++;}var _valid33 = _errs565 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 9];}else {if(_valid33){valid125 = true;passing17 = 9;}const _errs571 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err557 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err557];}else {vErrors.push(err557);}errors++;}if(data152.length < 2){const err558 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err558];}else {vErrors.push(err558);}errors++;}const len55 = data152.length;if(len55 > 0){let data171 = data152[0];if(typeof data171 !== "string"){const err559 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err559];}else {vErrors.push(err559);}errors++;}if("crm:E55_Type" !== data171){const err560 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}}if(len55 > 1){let data172 = data152[1];if(typeof data172 !== "string"){const err561 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err561];}else {vErrors.push(err561);}errors++;}if("crmdig:D1_Digital_Object" !== data172){const err562 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}}}else {const err563 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err563];}else {vErrors.push(err563);}errors++;}var _valid33 = _errs571 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 10];}else {if(_valid33){valid125 = true;passing17 = 10;}const _errs577 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err564 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err564];}else {vErrors.push(err564);}errors++;}if(data152.length < 2){const err565 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err565];}else {vErrors.push(err565);}errors++;}const len56 = data152.length;if(len56 > 0){let data173 = data152[0];if(typeof data173 !== "string"){const err566 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err566];}else {vErrors.push(err566);}errors++;}if("crm:E55_Type" !== data173){const err567 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}}if(len56 > 1){let data174 = data152[1];if(typeof data174 !== "string"){const err568 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}if("crm:E33_Linguistic_Object" !== data174){const err569 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err569];}else {vErrors.push(err569);}errors++;}}}else {const err570 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err570];}else {vErrors.push(err570);}errors++;}var _valid33 = _errs577 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 11];}else {if(_valid33){valid125 = true;passing17 = 11;}const _errs583 = errors;if(typeof data152 !== "string"){const err571 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err571];}else {vErrors.push(err571);}errors++;}if("crmdig:D1_Digital_Object" !== data152){const err572 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err572];}else {vErrors.push(err572);}errors++;}var _valid33 = _errs583 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 12];}else {if(_valid33){valid125 = true;passing17 = 12;}const _errs585 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err573 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err573];}else {vErrors.push(err573);}errors++;}if(data152.length < 2){const err574 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}const len57 = data152.length;if(len57 > 0){let data175 = data152[0];if(typeof data175 !== "string"){const err575 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err575];}else {vErrors.push(err575);}errors++;}if("YET TO BE DEFINED EVENT CLASS" !== data175){const err576 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/0/const",keyword:"const",params:{allowedValue: "YET TO BE DEFINED EVENT CLASS"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err576];}else {vErrors.push(err576);}errors++;}}if(len57 > 1){let data176 = data152[1];const _errs590 = errors;let valid144 = false;let passing24 = null;const _errs591 = errors;if(typeof data176 !== "string"){const err577 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err577];}else {vErrors.push(err577);}errors++;}if("crm:E5_Event" !== data176){const err578 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err578];}else {vErrors.push(err578);}errors++;}var _valid40 = _errs591 === errors;if(_valid40){valid144 = true;passing24 = 0;}const _errs593 = errors;if(typeof data176 !== "string"){const err579 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err579];}else {vErrors.push(err579);}errors++;}if("crm:E89_Propositional_Object" !== data176){const err580 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err580];}else {vErrors.push(err580);}errors++;}var _valid40 = _errs593 === errors;if(_valid40 && valid144){valid144 = false;passing24 = [passing24, 1];}else {if(_valid40){valid144 = true;passing24 = 1;}}if(!valid144){const err581 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing24},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err581];}else {vErrors.push(err581);}errors++;}else {errors = _errs590;if(vErrors !== null){if(_errs590){vErrors.length = _errs590;}else {vErrors = null;}}}}}else {const err582 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err582];}else {vErrors.push(err582);}errors++;}var _valid33 = _errs585 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 13];}else {if(_valid33){valid125 = true;passing17 = 13;}}}}}}}}}}}}}}if(!valid125){const err583 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing17},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err583];}else {vErrors.push(err583);}errors++;}else {errors = _errs490;if(vErrors !== null){if(_errs490){vErrors.length = _errs490;}else {vErrors = null;}}}}if(data136.additionalType !== undefined){let data177 = data136.additionalType;const _errs596 = errors;let valid145 = false;const _errs597 = errors;if(typeof data177 !== "string"){const err584 = {instancePath:instancePath+"/body/" + i2+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err584];}else {vErrors.push(err584);}errors++;}var _valid41 = _errs597 === errors;valid145 = valid145 || _valid41;if(!valid145){const _errs599 = errors;if(Array.isArray(data177)){const len58 = data177.length;for(let i3=0; i3<len58; i3++){if(typeof data177[i3] !== "string"){const err585 = {instancePath:instancePath+"/body/" + i2+"/additionalType/" + i3,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err585];}else {vErrors.push(err585);}errors++;}}}else {const err586 = {instancePath:instancePath+"/body/" + i2+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err586];}else {vErrors.push(err586);}errors++;}var _valid41 = _errs599 === errors;valid145 = valid145 || _valid41;}if(!valid145){const err587 = {instancePath:instancePath+"/body/" + i2+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err587];}else {vErrors.push(err587);}errors++;}else {errors = _errs596;if(vErrors !== null){if(_errs596){vErrors.length = _errs596;}else {vErrors = null;}}}}if(data136.value !== undefined){if(typeof data136.value !== "string"){const err588 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err588];}else {vErrors.push(err588);}errors++;}}if(data136.certainty !== undefined){let data180 = data136.certainty;if(typeof data180 !== "string"){const err589 = {instancePath:instancePath+"/body/" + i2+"/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err589];}else {vErrors.push(err589);}errors++;}if(!((((data180 === "edit:qualityLow") || (data180 === "edit:qualityMedium")) || (data180 === "edit:qualityHigh")) || (data180 === "edit:qualityUnknown"))){const err590 = {instancePath:instancePath+"/body/" + i2+"/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/enum",keyword:"enum",params:{allowedValues: schema35.properties.certainty.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err590];}else {vErrors.push(err590);}errors++;}}if(data136.precision !== undefined){let data181 = data136.precision;if(typeof data181 !== "string"){const err591 = {instancePath:instancePath+"/body/" + i2+"/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err591];}else {vErrors.push(err591);}errors++;}if(!((((data181 === "edit:qualityLow") || (data181 === "edit:qualityMedium")) || (data181 === "edit:qualityHigh")) || (data181 === "edit:qualityUnknown"))){const err592 = {instancePath:instancePath+"/body/" + i2+"/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/enum",keyword:"enum",params:{allowedValues: schema35.properties.precision.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err592];}else {vErrors.push(err592);}errors++;}}if(data136.label !== undefined){let data182 = data136.label;if(typeof data182 === "string"){if(func3(data182) < 1){const err593 = {instancePath:instancePath+"/body/" + i2+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err593];}else {vErrors.push(err593);}errors++;}}else {const err594 = {instancePath:instancePath+"/body/" + i2+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err594];}else {vErrors.push(err594);}errors++;}}if(data136.description !== undefined){if(typeof data136.description !== "string"){const err595 = {instancePath:instancePath+"/body/" + i2+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err595];}else {vErrors.push(err595);}errors++;}}}else {const err596 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err596];}else {vErrors.push(err596);}errors++;}}}else {const err597 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err597];}else {vErrors.push(err597);}errors++;}var _valid15 = _errs440 === errors;if(_valid15 && valid69){valid69 = false;passing8 = [passing8, 2];}else {if(_valid15){valid69 = true;passing8 = 2;}}}if(!valid69){const err598 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf",keyword:"oneOf",params:{passingSchemas: passing8},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err598];}else {vErrors.push(err598);}errors++;}else {errors = _errs267;if(vErrors !== null){if(_errs267){vErrors.length = _errs267;}else {vErrors = null;}}}}if(data.status !== undefined){let data184 = data.status;if(typeof data184 !== "string"){const err599 = {instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err599];}else {vErrors.push(err599);}errors++;}if(!(((data184 === "draft") || (data184 === "approved")) || (data184 === "published"))){const err600 = {instancePath:instancePath+"/status",schemaPath:"#/properties/status/enum",keyword:"enum",params:{allowedValues: schema11.properties.status.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err600];}else {vErrors.push(err600);}errors++;}}}else {const err601 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err601];}else {vErrors.push(err601);}errors++;}validate10.errors = vErrors;return errors === 0;}
1
+ "use strict";module.exports = validate10;module.exports.default = validate10;const schema11 = {"$id":"https://wa.lincsproject.ca/v1/schema.jsonld","type":"object","description":"Web Annotation","properties":{"@context":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"http://www.w3.org/ns/anno.jsonld"},{"type":"string","const":"https://wa.lincsproject.ca/v1/ns/anno.jsonld"}],"description":"The context that determines the meaning of the JSON as an Annotation. The itens should point to a URI containing the defiintion used in this schema."},"id":{"type":"string","format":"uri","description":"The type of the Annotation."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Annotation"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The type of the Annotation."},"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","enum":["identifying","describing","correcting","tagging","classifying","linking","citing"]},{"type":"string","const":"crm:E55_Type"}],"description":"The relationship between an Annotation and a Motivation."},"created":{"type":"string","format":"date-time","description":"The time at which the resource was created."},"modified":{"type":"string","format":"date-time","description":"The time at which the resource was modified, after creation."},"creator":{"$ref":"defs.jsonld#/definitions/creator"},"contributor":{"type":"array","items":{"$ref":"defs.jsonld#/definitions/creator"},"minItems":1},"generator":{"$ref":"defs.jsonld#/definitions/software"},"target":{"$ref":"defs.jsonld#/definitions/target"},"body":{"oneOf":[{"$ref":"defs.jsonld#/definitions/bodyChoice"},{"$ref":"defs.jsonld#/definitions/body"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"},"minItems":1}]},"status":{"type":"string","enum":["draft","approved","published"]}},"required":["@context","id","type","motivation","created","generator","target","body","status"],"allOf":[{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"oneOf":[{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Person"},{"oneOf":[{"type":"string","const":"crm:E21_Person","description":"Real Person"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Person"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Place"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"oneOf":[{"type":"string","const":"crm:E74_Group","description":"Real Organization"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Organization"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E89_Propositional_Object"},{"oneOf":[{"type":"string","const":"frbroo:F1","description":"Real Work"},{"type":"string","const":"wikidata:Q15306849","description":"Fictional Work"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Physical Thing"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Conceptual Object"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"YET TO BE DEFINED EVENT CLASS"},{"oneOf":[{"type":"string","const":"crm:E5_Event","description":"Real Event"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Event"}]}]}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"identifying"},{"type":"string","const":"crm:E55_Type"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"string","const":"crm:E33_Linguistic_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"describing"},{"type":"string","const":"crm:E55_Type"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"correcting"},{"type":"string","const":"crm:E55_Type"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"tagging"},{"type":"string","const":"crm:E55_Type"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"classifying"},{"type":"string","const":"crm:E55_Type"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"string","const":"crmdig:D1_Digital_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"linking"},{"type":"string","const":"crm:E55_Type"}]}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"citing"},{"type":"string","const":"crm:E55_Type"}]}}}}}}}}}}],"additionalProperties":false};const schema13 = {"type":"object","description":"Software Agent","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the agent (Creator or Contributor)."},"type":{"type":"string","const":"crm:E21_Person"},"name":{"type":"string","minLength":1,"description":"The name of the agent."}},"required":["id","type","name"]};const schema15 = {"type":"object","description":"Software Agent","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the agent (software)."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Software"},{"type":"string","const":"crm:P16_used_specific_object"}],"description":"The type of the Agent."},"label":{"type":"string","minLength":1,"description":"The name of the software."},"softwareVersion":{"type":"string","description":"The software version."}},"required":["id","type","label"]};const schema35 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Body resource."},"type":{"type":"string","const":"TextualBody"},"entityType":{"oneOf":[{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Person"},{"oneOf":[{"type":"string","const":"crm:E21_Person","description":"Real Person"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Person"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Place"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"oneOf":[{"type":"string","const":"crm:E74_Group","description":"Real Organization"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Organization"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E89_Propositional_Object"},{"oneOf":[{"type":"string","const":"frbroo:F1","description":"Real Work"},{"type":"string","const":"wikidata:Q15306849","description":"Fictional Work"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Physical Thing"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Conceptual Object"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"string","const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"string","const":"crmdig:D1_Digital_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"YET TO BE DEFINED EVENT CLASS"},{"oneOf":[{"type":"string","const":"crm:E5_Event","description":"Real Event"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Event"}]}]}]},"additionalType":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"value":{"type":"string"},"certainty":{"type":"string","enum":["edit:qualityLow","edit:qualityMedium","edit:qualityHigh","edit:qualityUnknown"],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},"precision":{"type":"string","enum":["edit:qualityLow","edit:qualityMedium","edit:qualityHigh","edit:qualityUnknown"],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."},"label":{"type":"string","minLength":1,"description":"The title or name of a linked resource or named entity."},"description":{"type":"string","description":"Short description of the linked resources or named entity."}},"required":["id","entityType"],"anyOf":[{"if":{"type":"object","properties":{"entityType":{"anyOf":[{"const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"xsd:date"},{"const":"crm:E52_Time-Span"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"fabio:Correction"},{"const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"crm:E55_Type"},{"const":"crm:E33_Linguistic_Object"}]}]}}},"then":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","const":"TextualBody"}},"if":{"type":"object","properties":{"entityType":{"type":"array","minItems":2,"maxItems":2,"items":[{"const":"xsd:date"},{"const":"crm:E52_Time-Span"}]}}},"then":{"type":"object","properties":{"value":{"type":"string","pattern":"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"}}},"else":{"type":"object","properties":{"value":{"type":"string"}}}}}],"additionalProperties":false};const func2 = Object.prototype.hasOwnProperty;const func3 = require("ajv/dist/runtime/ucs2length").default;const formats0 = require("ajv-formats/dist/formats").fullFormats.uri;const formats2 = require("ajv-formats/dist/formats").fullFormats["date-time"];const schema16 = {"type":"object","description":"Web Annotation Target","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Target resource."},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"SpecificResource"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Specific Resource."},"source":{"type":"object","description":"Web Annotation Target's source","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Target source."},"format":{"type":["string","array"],"nullable":true,"anyOf":[{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},{"type":"array","minItems":1,"items":{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},"description":"The formats of the Web Resource's content. The value of the property should and array of media-types of the format, following the [rfc6838] specification."}]},"language":{"type":["string","array"],"nullable":true,"anyOf":[{"type":"string","description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.","minLength":2,"maxLength":3},{"type":"array","minItems":1,"items":{"type":"string","description":"The language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification.","minLength":2,"maxLength":3},"description":"The languages of the Web Resource's content. The value of the property should be an array of language code following the [bcp47] specification."}]},"title":{"type":"string","minLength":1,"nullable":true,"description":"The title of the document being annotated."}},"required":["id"]},"renderedVia":{"$ref":"defs.jsonld#/definitions/software","description":"The relationship between the Specific Resource that represents the Target in the annotation, and the piece of software or other system that was used to render the Target when the annotation was created."},"selector":{"anyOf":[{"type":"object","oneOf":[{"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","exact","prefix","suffix"]},{"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","start","end"]},{"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"Range Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"startSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"},"endSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"}},"required":["id","type","startSelector","endSelector"]}],"required":[]},{"type":"array","items":{"type":"object","oneOf":[{"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","exact","prefix","suffix"]},{"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."},"refinedBy":{"type":"object","oneOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","start","end"]},{"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"},"refinedBy":{"type":"object","anyOf":[{"$ref":"defs.jsonld#/definitions/textPositionSelector"},{"$ref":"defs.jsonld#/definitions/textQuoteSelector"}],"required":[]}},"required":["id","type","value"]},{"type":"object","description":"Range Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"startSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"},"endSelector":{"$ref":"defs.jsonld#/definitions/xpathSelector"}},"required":["id","type","startSelector","endSelector"]}],"required":[]},"minItems":1}]}},"required":["id","type","source","selector"],"allOf":[{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["id","type","exact","prefix","suffix"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"RangeSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","startSelector","endSelector"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","value"]}}}},{"if":{"type":"object","properties":{"selector":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}]}}}}},"then":{"type":"object","properties":{"selector":{"type":"object","required":["type","start","end"]}}}}]};const schema18 = {"type":"object","description":"TextPosition Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextPositionSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector."},"start":{"type":"number","minimum":0,"description":"The starting position of the segment. The first byte is character position 0."},"end":{"type":"number","minimum":0,"description":"The end position of the segment. The last character is not included within the segment."}},"required":["id","type","start","end"]};const schema19 = {"type":"object","description":"Quote Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextQuoteSelector"},{"type":"string","const":"crm:E33_Linguistic_Object"}],"description":"The class of the Selector"},"exact":{"type":"string","description":"A copy of the text which is being selected, after normalization."},"prefix":{"type":"string","description":"The snippet of text that occurs immediately before the text which is being selected."},"suffix":{"type":"string","description":"The snippet of text that occurs immediately after the text which is being selected."}},"required":["id","type","exact","prefix","suffix"]};const schema24 = {"type":"object","description":"Xpath Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"XPathSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select Xpath"}},"required":["id","type","value"]};function validate12(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(errors === _errs3){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data0 = data.selector;const _errs5 = errors;if(errors === _errs5){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.type !== undefined){let data1 = data0.type;const _errs7 = errors;if(errors === _errs7){if(Array.isArray(data1)){if(data1.length > 2){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data1.length < 2){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs9 = errors;if(typeof data2 !== "string"){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("TextQuoteSelector" !== data2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid4 = _errs9 === errors;}if(valid4){if(len0 > 1){let data3 = data1[1];const _errs11 = errors;if(typeof data3 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("crm:E33_Linguistic_Object" !== data3){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid4 = _errs11 === errors;}}}}}else {const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}}}else {const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}}}else {const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}if(_valid0){const _errs13 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data4 = data.selector;if(data4 && typeof data4 == "object" && !Array.isArray(data4)){if(data4.id === undefined){const err9 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data4.type === undefined){const err10 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if(data4.exact === undefined){const err11 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data4.prefix === undefined){const err12 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if(data4.suffix === undefined){const err13 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}}else {const err14 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/0/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}}else {const err15 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var _valid0 = _errs13 === errors;valid1 = _valid0;}if(!valid1){const err16 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}const _errs18 = errors;let valid6 = true;const _errs19 = errors;if(errors === _errs19){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data5 = data.selector;const _errs21 = errors;if(errors === _errs21){if(data5 && typeof data5 == "object" && !Array.isArray(data5)){if(data5.type !== undefined){let data6 = data5.type;const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data6)){if(data6.length > 2){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {if(data6.length < 2){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {const len1 = data6.length;if(len1 > 0){let data7 = data6[0];const _errs25 = errors;if(typeof data7 !== "string"){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("RangeSelector" !== data7){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid9 = _errs25 === errors;}if(valid9){if(len1 > 1){let data8 = data6[1];const _errs27 = errors;if(typeof data8 !== "string"){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("crm:E73_Information_Object" !== data8){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid9 = _errs27 === errors;}}}}}else {const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}}}else {const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}}}else {const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}}var _valid1 = _errs19 === errors;errors = _errs18;if(vErrors !== null){if(_errs18){vErrors.length = _errs18;}else {vErrors = null;}}if(_valid1){const _errs29 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data9 = data.selector;if(data9 && typeof data9 == "object" && !Array.isArray(data9)){if(data9.type === undefined){const err26 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if(data9.startSelector === undefined){const err27 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}if(data9.endSelector === undefined){const err28 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}else {const err29 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/1/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}}else {const err30 = {instancePath,schemaPath:"#/allOf/1/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid1 = _errs29 === errors;valid6 = _valid1;}if(!valid6){const err31 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}const _errs34 = errors;let valid11 = true;const _errs35 = errors;if(errors === _errs35){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data10 = data.selector;const _errs37 = errors;if(errors === _errs37){if(data10 && typeof data10 == "object" && !Array.isArray(data10)){if(data10.type !== undefined){let data11 = data10.type;const _errs39 = errors;if(errors === _errs39){if(Array.isArray(data11)){if(data11.length > 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data11.length < 2){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const len2 = data11.length;if(len2 > 0){let data12 = data11[0];const _errs41 = errors;if(typeof data12 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("XPathSelector" !== data12){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid14 = _errs41 === errors;}if(valid14){if(len2 > 1){let data13 = data11[1];const _errs43 = errors;if(typeof data13 !== "string"){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("crm:E73_Information_Object" !== data13){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var valid14 = _errs43 === errors;}}}}}else {const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}}}else {const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}}}else {const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}}var _valid2 = _errs35 === errors;errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}if(_valid2){const _errs45 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data14 = data.selector;if(data14 && typeof data14 == "object" && !Array.isArray(data14)){if(data14.type === undefined){const err41 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data14.value === undefined){const err42 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}else {const err43 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/2/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}}else {const err44 = {instancePath,schemaPath:"#/allOf/2/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var _valid2 = _errs45 === errors;valid11 = _valid2;}if(!valid11){const err45 = {instancePath,schemaPath:"#/allOf/2/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}const _errs50 = errors;let valid16 = true;const _errs51 = errors;if(errors === _errs51){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data15 = data.selector;const _errs53 = errors;if(errors === _errs53){if(data15 && typeof data15 == "object" && !Array.isArray(data15)){if(data15.type !== undefined){let data16 = data15.type;const _errs55 = errors;if(errors === _errs55){if(Array.isArray(data16)){if(data16.length > 2){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}else {if(data16.length < 2){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {const len3 = data16.length;if(len3 > 0){let data17 = data16[0];const _errs57 = errors;if(typeof data17 !== "string"){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("TextPositionSelector" !== data17){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid19 = _errs57 === errors;}if(valid19){if(len3 > 1){let data18 = data16[1];const _errs59 = errors;if(typeof data18 !== "string"){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("crm:E73_Information_Object" !== data18){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid19 = _errs59 === errors;}}}}}else {const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}}}}else {const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}}}}else {const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}var _valid3 = _errs51 === errors;errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}if(_valid3){const _errs61 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data19 = data.selector;if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.type === undefined){const err55 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data19.start === undefined){const err56 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data19.end === undefined){const err57 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}else {const err58 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}}else {const err59 = {instancePath,schemaPath:"#/allOf/3/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var _valid3 = _errs61 === errors;valid16 = _valid3;}if(!valid16){const err60 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err61 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(data.type === undefined){const err62 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if(data.source === undefined){const err63 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if(data.selector === undefined){const err64 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "selector"},message:"must have required property '"+"selector"+"'"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if(data.id !== undefined){let data20 = data.id;if(typeof data20 === "string"){if(!(formats0(data20))){const err65 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}}else {const err66 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}if(data.type !== undefined){let data21 = data.type;if(Array.isArray(data21)){if(data21.length > 2){const err67 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if(data21.length < 2){const err68 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}const len4 = data21.length;if(len4 > 0){let data22 = data21[0];if(typeof data22 !== "string"){const err69 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if("SpecificResource" !== data22){const err70 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "SpecificResource"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}}if(len4 > 1){let data23 = data21[1];if(typeof data23 !== "string"){const err71 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("crm:E73_Information_Object" !== data23){const err72 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}else {const err73 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}if(data.source !== undefined){let data24 = data.source;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(data24.id === undefined){const err74 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(data24.id !== undefined){let data25 = data24.id;if(typeof data25 === "string"){if(!(formats0(data25))){const err75 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}else {const err76 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}if(data24.format !== undefined){let data26 = data24.format;if(((typeof data26 !== "string") && (!(Array.isArray(data26)))) && (data26 !== null)){const err77 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/type",keyword:"type",params:{type: schema16.properties.source.properties.format.type},message:"must be string,array,null"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}const _errs80 = errors;let valid24 = false;const _errs81 = errors;if(typeof data26 === "string"){if(func3(data26) < 1){const err78 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/0/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}else {const err79 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}var _valid4 = _errs81 === errors;valid24 = valid24 || _valid4;if(!valid24){const _errs83 = errors;if(Array.isArray(data26)){if(data26.length < 1){const err80 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}const len5 = data26.length;for(let i0=0; i0<len5; i0++){let data27 = data26[i0];if(typeof data27 === "string"){if(func3(data27) < 1){const err81 = {instancePath:instancePath+"/source/format/" + i0,schemaPath:"#/properties/source/properties/format/anyOf/1/items/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}else {const err82 = {instancePath:instancePath+"/source/format/" + i0,schemaPath:"#/properties/source/properties/format/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}}}else {const err83 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var _valid4 = _errs83 === errors;valid24 = valid24 || _valid4;}if(!valid24){const err84 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}else {errors = _errs80;if(vErrors !== null){if(_errs80){vErrors.length = _errs80;}else {vErrors = null;}}}}if(data24.language !== undefined){let data28 = data24.language;if(((typeof data28 !== "string") && (!(Array.isArray(data28)))) && (data28 !== null)){const err85 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/type",keyword:"type",params:{type: schema16.properties.source.properties.language.type},message:"must be string,array,null"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}const _errs90 = errors;let valid27 = false;const _errs91 = errors;if(typeof data28 === "string"){if(func3(data28) > 3){const err86 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/maxLength",keyword:"maxLength",params:{limit: 3},message:"must NOT have more than 3 characters"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if(func3(data28) < 2){const err87 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}else {const err88 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var _valid5 = _errs91 === errors;valid27 = valid27 || _valid5;if(!valid27){const _errs93 = errors;if(Array.isArray(data28)){if(data28.length < 1){const err89 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}const len6 = data28.length;for(let i1=0; i1<len6; i1++){let data29 = data28[i1];if(typeof data29 === "string"){if(func3(data29) > 3){const err90 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/maxLength",keyword:"maxLength",params:{limit: 3},message:"must NOT have more than 3 characters"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}if(func3(data29) < 2){const err91 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/minLength",keyword:"minLength",params:{limit: 2},message:"must NOT have fewer than 2 characters"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}else {const err92 = {instancePath:instancePath+"/source/language/" + i1,schemaPath:"#/properties/source/properties/language/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}}}else {const err93 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}var _valid5 = _errs93 === errors;valid27 = valid27 || _valid5;}if(!valid27){const err94 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}else {errors = _errs90;if(vErrors !== null){if(_errs90){vErrors.length = _errs90;}else {vErrors = null;}}}}if(data24.title !== undefined){let data30 = data24.title;if((typeof data30 !== "string") && (data30 !== null)){const err95 = {instancePath:instancePath+"/source/title",schemaPath:"#/properties/source/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}if(typeof data30 === "string"){if(func3(data30) < 1){const err96 = {instancePath:instancePath+"/source/title",schemaPath:"#/properties/source/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}}else {const err97 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}if(data.renderedVia !== undefined){let data31 = data.renderedVia;if(data31 && typeof data31 == "object" && !Array.isArray(data31)){if(data31.id === undefined){const err98 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if(data31.type === undefined){const err99 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data31.label === undefined){const err100 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}if(data31.id !== undefined){let data32 = data31.id;if(typeof data32 === "string"){if(!(formats0(data32))){const err101 = {instancePath:instancePath+"/renderedVia/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}}else {const err102 = {instancePath:instancePath+"/renderedVia/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(data31.type !== undefined){let data33 = data31.type;if(Array.isArray(data33)){if(data33.length > 2){const err103 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data33.length < 2){const err104 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}const len7 = data33.length;if(len7 > 0){let data34 = data33[0];if(typeof data34 !== "string"){const err105 = {instancePath:instancePath+"/renderedVia/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if("Software" !== data34){const err106 = {instancePath:instancePath+"/renderedVia/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}if(len7 > 1){let data35 = data33[1];if(typeof data35 !== "string"){const err107 = {instancePath:instancePath+"/renderedVia/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}if("crm:P16_used_specific_object" !== data35){const err108 = {instancePath:instancePath+"/renderedVia/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:P16_used_specific_object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}else {const err109 = {instancePath:instancePath+"/renderedVia/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data31.label !== undefined){let data36 = data31.label;if(typeof data36 === "string"){if(func3(data36) < 1){const err110 = {instancePath:instancePath+"/renderedVia/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}else {const err111 = {instancePath:instancePath+"/renderedVia/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}if(data31.softwareVersion !== undefined){if(typeof data31.softwareVersion !== "string"){const err112 = {instancePath:instancePath+"/renderedVia/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}else {const err113 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}}if(data.selector !== undefined){let data38 = data.selector;const _errs116 = errors;let valid33 = false;const _errs117 = errors;const _errs119 = errors;let valid34 = false;let passing0 = null;const _errs120 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.id === undefined){const err114 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(data38.type === undefined){const err115 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}if(data38.exact === undefined){const err116 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}if(data38.prefix === undefined){const err117 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}if(data38.suffix === undefined){const err118 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if(data38.id !== undefined){let data39 = data38.id;if(typeof data39 === "string"){if(!(formats0(data39))){const err119 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data38.type !== undefined){let data40 = data38.type;if(Array.isArray(data40)){if(data40.length > 2){const err121 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if(data40.length < 2){const err122 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}const len8 = data40.length;if(len8 > 0){let data41 = data40[0];if(typeof data41 !== "string"){const err123 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if("TextQuoteSelector" !== data41){const err124 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}if(len8 > 1){let data42 = data40[1];if(typeof data42 !== "string"){const err125 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if("crm:E33_Linguistic_Object" !== data42){const err126 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}}else {const err127 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}if(data38.exact !== undefined){if(typeof data38.exact !== "string"){const err128 = {instancePath:instancePath+"/selector/exact",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}if(data38.prefix !== undefined){if(typeof data38.prefix !== "string"){const err129 = {instancePath:instancePath+"/selector/prefix",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(data38.suffix !== undefined){if(typeof data38.suffix !== "string"){const err130 = {instancePath:instancePath+"/selector/suffix",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}}if(data38.refinedBy !== undefined){let data46 = data38.refinedBy;const _errs138 = errors;let valid37 = false;let passing1 = null;const _errs139 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.id === undefined){const err131 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}if(data46.type === undefined){const err132 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}if(data46.start === undefined){const err133 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}if(data46.end === undefined){const err134 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}if(data46.id !== undefined){let data47 = data46.id;if(typeof data47 === "string"){if(!(formats0(data47))){const err135 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}else {const err136 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}if(data46.type !== undefined){let data48 = data46.type;if(Array.isArray(data48)){if(data48.length > 2){const err137 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if(data48.length < 2){const err138 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}const len9 = data48.length;if(len9 > 0){let data49 = data48[0];if(typeof data49 !== "string"){const err139 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if("TextPositionSelector" !== data49){const err140 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}if(len9 > 1){let data50 = data48[1];if(typeof data50 !== "string"){const err141 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if("crm:E73_Information_Object" !== data50){const err142 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}}else {const err143 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}if(data46.start !== undefined){let data51 = data46.start;if((typeof data51 == "number") && (isFinite(data51))){if(data51 < 0 || isNaN(data51)){const err144 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}else {const err145 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}if(data46.end !== undefined){let data52 = data46.end;if((typeof data52 == "number") && (isFinite(data52))){if(data52 < 0 || isNaN(data52)){const err146 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}else {const err147 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}}else {const err148 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}var _valid8 = _errs139 === errors;if(_valid8){valid37 = true;passing1 = 0;}const _errs154 = errors;if(data46 && typeof data46 == "object" && !Array.isArray(data46)){if(data46.id === undefined){const err149 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}if(data46.type === undefined){const err150 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data46.exact === undefined){const err151 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data46.prefix === undefined){const err152 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(data46.suffix === undefined){const err153 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(data46.id !== undefined){let data53 = data46.id;if(typeof data53 === "string"){if(!(formats0(data53))){const err154 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}else {const err155 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}if(data46.type !== undefined){let data54 = data46.type;if(Array.isArray(data54)){if(data54.length > 2){const err156 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(data54.length < 2){const err157 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}const len10 = data54.length;if(len10 > 0){let data55 = data54[0];if(typeof data55 !== "string"){const err158 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if("TextQuoteSelector" !== data55){const err159 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}}if(len10 > 1){let data56 = data54[1];if(typeof data56 !== "string"){const err160 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}if("crm:E33_Linguistic_Object" !== data56){const err161 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}}else {const err162 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data46.exact !== undefined){if(typeof data46.exact !== "string"){const err163 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}}if(data46.prefix !== undefined){if(typeof data46.prefix !== "string"){const err164 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data46.suffix !== undefined){if(typeof data46.suffix !== "string"){const err165 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}}}else {const err166 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}var _valid8 = _errs154 === errors;if(_valid8 && valid37){valid37 = false;passing1 = [passing1, 1];}else {if(_valid8){valid37 = true;passing1 = 1;}}if(!valid37){const err167 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}else {errors = _errs138;if(vErrors !== null){if(_errs138){vErrors.length = _errs138;}else {vErrors = null;}}}if(!(data46 && typeof data46 == "object" && !Array.isArray(data46))){const err168 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}}else {const err169 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}var _valid7 = _errs120 === errors;if(_valid7){valid34 = true;passing0 = 0;}const _errs171 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.id === undefined){const err170 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if(data38.type === undefined){const err171 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if(data38.start === undefined){const err172 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if(data38.end === undefined){const err173 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(data38.id !== undefined){let data60 = data38.id;if(typeof data60 === "string"){if(!(formats0(data60))){const err174 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}}else {const err175 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(data38.type !== undefined){let data61 = data38.type;if(Array.isArray(data61)){if(data61.length > 2){const err176 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if(data61.length < 2){const err177 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}const len11 = data61.length;if(len11 > 0){let data62 = data61[0];if(typeof data62 !== "string"){const err178 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}if("TextPositionSelector" !== data62){const err179 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}}if(len11 > 1){let data63 = data61[1];if(typeof data63 !== "string"){const err180 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}if("crm:E73_Information_Object" !== data63){const err181 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}}else {const err182 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data38.start !== undefined){let data64 = data38.start;if((typeof data64 == "number") && (isFinite(data64))){if(data64 < 0 || isNaN(data64)){const err183 = {instancePath:instancePath+"/selector/start",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}else {const err184 = {instancePath:instancePath+"/selector/start",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}if(data38.end !== undefined){let data65 = data38.end;if((typeof data65 == "number") && (isFinite(data65))){if(data65 < 0 || isNaN(data65)){const err185 = {instancePath:instancePath+"/selector/end",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}else {const err186 = {instancePath:instancePath+"/selector/end",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}}if(data38.refinedBy !== undefined){let data66 = data38.refinedBy;const _errs187 = errors;let valid46 = false;let passing2 = null;const _errs188 = errors;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.id === undefined){const err187 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(data66.type === undefined){const err188 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if(data66.start === undefined){const err189 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if(data66.end === undefined){const err190 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data66.id !== undefined){let data67 = data66.id;if(typeof data67 === "string"){if(!(formats0(data67))){const err191 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}else {const err192 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}if(data66.type !== undefined){let data68 = data66.type;if(Array.isArray(data68)){if(data68.length > 2){const err193 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}if(data68.length < 2){const err194 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}const len12 = data68.length;if(len12 > 0){let data69 = data68[0];if(typeof data69 !== "string"){const err195 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if("TextPositionSelector" !== data69){const err196 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}if(len12 > 1){let data70 = data68[1];if(typeof data70 !== "string"){const err197 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if("crm:E73_Information_Object" !== data70){const err198 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}}else {const err199 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}if(data66.start !== undefined){let data71 = data66.start;if((typeof data71 == "number") && (isFinite(data71))){if(data71 < 0 || isNaN(data71)){const err200 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}else {const err201 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data66.end !== undefined){let data72 = data66.end;if((typeof data72 == "number") && (isFinite(data72))){if(data72 < 0 || isNaN(data72)){const err202 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}else {const err203 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}}else {const err204 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}var _valid9 = _errs188 === errors;if(_valid9){valid46 = true;passing2 = 0;}const _errs203 = errors;if(data66 && typeof data66 == "object" && !Array.isArray(data66)){if(data66.id === undefined){const err205 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if(data66.type === undefined){const err206 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}if(data66.exact === undefined){const err207 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(data66.prefix === undefined){const err208 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}if(data66.suffix === undefined){const err209 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if(data66.id !== undefined){let data73 = data66.id;if(typeof data73 === "string"){if(!(formats0(data73))){const err210 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}else {const err211 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}if(data66.type !== undefined){let data74 = data66.type;if(Array.isArray(data74)){if(data74.length > 2){const err212 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}if(data74.length < 2){const err213 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}const len13 = data74.length;if(len13 > 0){let data75 = data74[0];if(typeof data75 !== "string"){const err214 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}if("TextQuoteSelector" !== data75){const err215 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}if(len13 > 1){let data76 = data74[1];if(typeof data76 !== "string"){const err216 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}if("crm:E33_Linguistic_Object" !== data76){const err217 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}}}else {const err218 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}if(data66.exact !== undefined){if(typeof data66.exact !== "string"){const err219 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data66.prefix !== undefined){if(typeof data66.prefix !== "string"){const err220 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data66.suffix !== undefined){if(typeof data66.suffix !== "string"){const err221 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}}else {const err222 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}var _valid9 = _errs203 === errors;if(_valid9 && valid46){valid46 = false;passing2 = [passing2, 1];}else {if(_valid9){valid46 = true;passing2 = 1;}}if(!valid46){const err223 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}else {errors = _errs187;if(vErrors !== null){if(_errs187){vErrors.length = _errs187;}else {vErrors = null;}}}if(!(data66 && typeof data66 == "object" && !Array.isArray(data66))){const err224 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}}}else {const err225 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}var _valid7 = _errs171 === errors;if(_valid7 && valid34){valid34 = false;passing0 = [passing0, 1];}else {if(_valid7){valid34 = true;passing0 = 1;}const _errs220 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.id === undefined){const err226 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}if(data38.type === undefined){const err227 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}if(data38.value === undefined){const err228 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}if(data38.id !== undefined){let data80 = data38.id;if(typeof data80 === "string"){if(!(formats0(data80))){const err229 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}else {const err230 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}if(data38.type !== undefined){let data81 = data38.type;if(Array.isArray(data81)){if(data81.length > 2){const err231 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}if(data81.length < 2){const err232 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}const len14 = data81.length;if(len14 > 0){let data82 = data81[0];if(typeof data82 !== "string"){const err233 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}if("XPathSelector" !== data82){const err234 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}}if(len14 > 1){let data83 = data81[1];if(typeof data83 !== "string"){const err235 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if("crm:E73_Information_Object" !== data83){const err236 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}}}else {const err237 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}if(data38.value !== undefined){if(typeof data38.value !== "string"){const err238 = {instancePath:instancePath+"/selector/value",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}if(data38.refinedBy !== undefined){let data85 = data38.refinedBy;const _errs234 = errors;let valid55 = false;const _errs235 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.id === undefined){const err239 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if(data85.type === undefined){const err240 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}if(data85.start === undefined){const err241 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if(data85.end === undefined){const err242 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}if(data85.id !== undefined){let data86 = data85.id;if(typeof data86 === "string"){if(!(formats0(data86))){const err243 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}else {const err244 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}if(data85.type !== undefined){let data87 = data85.type;if(Array.isArray(data87)){if(data87.length > 2){const err245 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if(data87.length < 2){const err246 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}const len15 = data87.length;if(len15 > 0){let data88 = data87[0];if(typeof data88 !== "string"){const err247 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}if("TextPositionSelector" !== data88){const err248 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}if(len15 > 1){let data89 = data87[1];if(typeof data89 !== "string"){const err249 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}if("crm:E73_Information_Object" !== data89){const err250 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}}else {const err251 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}if(data85.start !== undefined){let data90 = data85.start;if((typeof data90 == "number") && (isFinite(data90))){if(data90 < 0 || isNaN(data90)){const err252 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}}else {const err253 = {instancePath:instancePath+"/selector/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}if(data85.end !== undefined){let data91 = data85.end;if((typeof data91 == "number") && (isFinite(data91))){if(data91 < 0 || isNaN(data91)){const err254 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}else {const err255 = {instancePath:instancePath+"/selector/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}}}else {const err256 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}var _valid10 = _errs235 === errors;valid55 = valid55 || _valid10;if(!valid55){const _errs250 = errors;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.id === undefined){const err257 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}if(data85.type === undefined){const err258 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}if(data85.exact === undefined){const err259 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}if(data85.prefix === undefined){const err260 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}if(data85.suffix === undefined){const err261 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}if(data85.id !== undefined){let data92 = data85.id;if(typeof data92 === "string"){if(!(formats0(data92))){const err262 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}}else {const err263 = {instancePath:instancePath+"/selector/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}}if(data85.type !== undefined){let data93 = data85.type;if(Array.isArray(data93)){if(data93.length > 2){const err264 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}if(data93.length < 2){const err265 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}const len16 = data93.length;if(len16 > 0){let data94 = data93[0];if(typeof data94 !== "string"){const err266 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if("TextQuoteSelector" !== data94){const err267 = {instancePath:instancePath+"/selector/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}if(len16 > 1){let data95 = data93[1];if(typeof data95 !== "string"){const err268 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}if("crm:E33_Linguistic_Object" !== data95){const err269 = {instancePath:instancePath+"/selector/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}}}else {const err270 = {instancePath:instancePath+"/selector/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}}if(data85.exact !== undefined){if(typeof data85.exact !== "string"){const err271 = {instancePath:instancePath+"/selector/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}}if(data85.prefix !== undefined){if(typeof data85.prefix !== "string"){const err272 = {instancePath:instancePath+"/selector/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}if(data85.suffix !== undefined){if(typeof data85.suffix !== "string"){const err273 = {instancePath:instancePath+"/selector/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}}}else {const err274 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}var _valid10 = _errs250 === errors;valid55 = valid55 || _valid10;}if(!valid55){const err275 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}else {errors = _errs234;if(vErrors !== null){if(_errs234){vErrors.length = _errs234;}else {vErrors = null;}}}if(!(data85 && typeof data85 == "object" && !Array.isArray(data85))){const err276 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}}else {const err277 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}var _valid7 = _errs220 === errors;if(_valid7 && valid34){valid34 = false;passing0 = [passing0, 2];}else {if(_valid7){valid34 = true;passing0 = 2;}const _errs267 = errors;if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.id === undefined){const err278 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}if(data38.type === undefined){const err279 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}if(data38.startSelector === undefined){const err280 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}if(data38.endSelector === undefined){const err281 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}if(data38.id !== undefined){let data99 = data38.id;if(typeof data99 === "string"){if(!(formats0(data99))){const err282 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}else {const err283 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}if(data38.type !== undefined){let data100 = data38.type;if(Array.isArray(data100)){if(data100.length > 2){const err284 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if(data100.length < 2){const err285 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}const len17 = data100.length;if(len17 > 0){let data101 = data100[0];if(typeof data101 !== "string"){const err286 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if("RangeSelector" !== data101){const err287 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}if(len17 > 1){let data102 = data100[1];if(typeof data102 !== "string"){const err288 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}if("crm:E73_Information_Object" !== data102){const err289 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}}else {const err290 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}if(data38.startSelector !== undefined){let data103 = data38.startSelector;if(data103 && typeof data103 == "object" && !Array.isArray(data103)){if(data103.id === undefined){const err291 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}if(data103.type === undefined){const err292 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}if(data103.value === undefined){const err293 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}if(data103.id !== undefined){let data104 = data103.id;if(typeof data104 === "string"){if(!(formats0(data104))){const err294 = {instancePath:instancePath+"/selector/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}}else {const err295 = {instancePath:instancePath+"/selector/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}}if(data103.type !== undefined){let data105 = data103.type;if(Array.isArray(data105)){if(data105.length > 2){const err296 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}if(data105.length < 2){const err297 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}const len18 = data105.length;if(len18 > 0){let data106 = data105[0];if(typeof data106 !== "string"){const err298 = {instancePath:instancePath+"/selector/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}if("XPathSelector" !== data106){const err299 = {instancePath:instancePath+"/selector/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}}if(len18 > 1){let data107 = data105[1];if(typeof data107 !== "string"){const err300 = {instancePath:instancePath+"/selector/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}if("crm:E73_Information_Object" !== data107){const err301 = {instancePath:instancePath+"/selector/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}}else {const err302 = {instancePath:instancePath+"/selector/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}if(data103.value !== undefined){if(typeof data103.value !== "string"){const err303 = {instancePath:instancePath+"/selector/startSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}}else {const err304 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}}if(data38.endSelector !== undefined){let data109 = data38.endSelector;if(data109 && typeof data109 == "object" && !Array.isArray(data109)){if(data109.id === undefined){const err305 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}if(data109.type === undefined){const err306 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}if(data109.value === undefined){const err307 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if(data109.id !== undefined){let data110 = data109.id;if(typeof data110 === "string"){if(!(formats0(data110))){const err308 = {instancePath:instancePath+"/selector/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}else {const err309 = {instancePath:instancePath+"/selector/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}if(data109.type !== undefined){let data111 = data109.type;if(Array.isArray(data111)){if(data111.length > 2){const err310 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}if(data111.length < 2){const err311 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}const len19 = data111.length;if(len19 > 0){let data112 = data111[0];if(typeof data112 !== "string"){const err312 = {instancePath:instancePath+"/selector/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}if("XPathSelector" !== data112){const err313 = {instancePath:instancePath+"/selector/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}}if(len19 > 1){let data113 = data111[1];if(typeof data113 !== "string"){const err314 = {instancePath:instancePath+"/selector/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}if("crm:E73_Information_Object" !== data113){const err315 = {instancePath:instancePath+"/selector/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}}}else {const err316 = {instancePath:instancePath+"/selector/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}}if(data109.value !== undefined){if(typeof data109.value !== "string"){const err317 = {instancePath:instancePath+"/selector/endSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}}else {const err318 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}}}else {const err319 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}var _valid7 = _errs267 === errors;if(_valid7 && valid34){valid34 = false;passing0 = [passing0, 3];}else {if(_valid7){valid34 = true;passing0 = 3;}}}}if(!valid34){const err320 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}if(!(data38 && typeof data38 == "object" && !Array.isArray(data38))){const err321 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}var _valid6 = _errs117 === errors;valid33 = valid33 || _valid6;if(!valid33){const _errs303 = errors;if(Array.isArray(data38)){if(data38.length < 1){const err322 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}const len20 = data38.length;for(let i2=0; i2<len20; i2++){let data115 = data38[i2];const _errs307 = errors;let valid72 = false;let passing3 = null;const _errs308 = errors;if(data115 && typeof data115 == "object" && !Array.isArray(data115)){if(data115.id === undefined){const err323 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}if(data115.type === undefined){const err324 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}if(data115.exact === undefined){const err325 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}if(data115.prefix === undefined){const err326 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}if(data115.suffix === undefined){const err327 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}if(data115.id !== undefined){let data116 = data115.id;if(typeof data116 === "string"){if(!(formats0(data116))){const err328 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}}else {const err329 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}if(data115.type !== undefined){let data117 = data115.type;if(Array.isArray(data117)){if(data117.length > 2){const err330 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}if(data117.length < 2){const err331 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}const len21 = data117.length;if(len21 > 0){let data118 = data117[0];if(typeof data118 !== "string"){const err332 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if("TextQuoteSelector" !== data118){const err333 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}}if(len21 > 1){let data119 = data117[1];if(typeof data119 !== "string"){const err334 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}if("crm:E33_Linguistic_Object" !== data119){const err335 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}}}else {const err336 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}}if(data115.exact !== undefined){if(typeof data115.exact !== "string"){const err337 = {instancePath:instancePath+"/selector/" + i2+"/exact",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}}if(data115.prefix !== undefined){if(typeof data115.prefix !== "string"){const err338 = {instancePath:instancePath+"/selector/" + i2+"/prefix",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}}if(data115.suffix !== undefined){if(typeof data115.suffix !== "string"){const err339 = {instancePath:instancePath+"/selector/" + i2+"/suffix",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}if(data115.refinedBy !== undefined){let data123 = data115.refinedBy;const _errs326 = errors;let valid75 = false;let passing4 = null;const _errs327 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){if(data123.id === undefined){const err340 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}if(data123.type === undefined){const err341 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}if(data123.start === undefined){const err342 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}if(data123.end === undefined){const err343 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}if(data123.id !== undefined){let data124 = data123.id;if(typeof data124 === "string"){if(!(formats0(data124))){const err344 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}}else {const err345 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}}if(data123.type !== undefined){let data125 = data123.type;if(Array.isArray(data125)){if(data125.length > 2){const err346 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}if(data125.length < 2){const err347 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}const len22 = data125.length;if(len22 > 0){let data126 = data125[0];if(typeof data126 !== "string"){const err348 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}if("TextPositionSelector" !== data126){const err349 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}}if(len22 > 1){let data127 = data125[1];if(typeof data127 !== "string"){const err350 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}if("crm:E73_Information_Object" !== data127){const err351 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}}}else {const err352 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}}if(data123.start !== undefined){let data128 = data123.start;if((typeof data128 == "number") && (isFinite(data128))){if(data128 < 0 || isNaN(data128)){const err353 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}}else {const err354 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}}if(data123.end !== undefined){let data129 = data123.end;if((typeof data129 == "number") && (isFinite(data129))){if(data129 < 0 || isNaN(data129)){const err355 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}}else {const err356 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}}}else {const err357 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}var _valid12 = _errs327 === errors;if(_valid12){valid75 = true;passing4 = 0;}const _errs342 = errors;if(data123 && typeof data123 == "object" && !Array.isArray(data123)){if(data123.id === undefined){const err358 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}if(data123.type === undefined){const err359 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}if(data123.exact === undefined){const err360 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}if(data123.prefix === undefined){const err361 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}if(data123.suffix === undefined){const err362 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}if(data123.id !== undefined){let data130 = data123.id;if(typeof data130 === "string"){if(!(formats0(data130))){const err363 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}}else {const err364 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}}if(data123.type !== undefined){let data131 = data123.type;if(Array.isArray(data131)){if(data131.length > 2){const err365 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}if(data131.length < 2){const err366 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}const len23 = data131.length;if(len23 > 0){let data132 = data131[0];if(typeof data132 !== "string"){const err367 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if("TextQuoteSelector" !== data132){const err368 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}}if(len23 > 1){let data133 = data131[1];if(typeof data133 !== "string"){const err369 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}if("crm:E33_Linguistic_Object" !== data133){const err370 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}}}else {const err371 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}if(data123.exact !== undefined){if(typeof data123.exact !== "string"){const err372 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}}if(data123.prefix !== undefined){if(typeof data123.prefix !== "string"){const err373 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}}if(data123.suffix !== undefined){if(typeof data123.suffix !== "string"){const err374 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}}}else {const err375 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}var _valid12 = _errs342 === errors;if(_valid12 && valid75){valid75 = false;passing4 = [passing4, 1];}else {if(_valid12){valid75 = true;passing4 = 1;}}if(!valid75){const err376 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}else {errors = _errs326;if(vErrors !== null){if(_errs326){vErrors.length = _errs326;}else {vErrors = null;}}}if(!(data123 && typeof data123 == "object" && !Array.isArray(data123))){const err377 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}}}else {const err378 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}var _valid11 = _errs308 === errors;if(_valid11){valid72 = true;passing3 = 0;}const _errs359 = errors;if(data115 && typeof data115 == "object" && !Array.isArray(data115)){if(data115.id === undefined){const err379 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}if(data115.type === undefined){const err380 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}if(data115.start === undefined){const err381 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}if(data115.end === undefined){const err382 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}if(data115.id !== undefined){let data137 = data115.id;if(typeof data137 === "string"){if(!(formats0(data137))){const err383 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}else {const err384 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}}if(data115.type !== undefined){let data138 = data115.type;if(Array.isArray(data138)){if(data138.length > 2){const err385 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}if(data138.length < 2){const err386 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}const len24 = data138.length;if(len24 > 0){let data139 = data138[0];if(typeof data139 !== "string"){const err387 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}if("TextPositionSelector" !== data139){const err388 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}}if(len24 > 1){let data140 = data138[1];if(typeof data140 !== "string"){const err389 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}if("crm:E73_Information_Object" !== data140){const err390 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}}}else {const err391 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}}if(data115.start !== undefined){let data141 = data115.start;if((typeof data141 == "number") && (isFinite(data141))){if(data141 < 0 || isNaN(data141)){const err392 = {instancePath:instancePath+"/selector/" + i2+"/start",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}}else {const err393 = {instancePath:instancePath+"/selector/" + i2+"/start",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}}if(data115.end !== undefined){let data142 = data115.end;if((typeof data142 == "number") && (isFinite(data142))){if(data142 < 0 || isNaN(data142)){const err394 = {instancePath:instancePath+"/selector/" + i2+"/end",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}}else {const err395 = {instancePath:instancePath+"/selector/" + i2+"/end",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}}if(data115.refinedBy !== undefined){let data143 = data115.refinedBy;const _errs375 = errors;let valid84 = false;let passing5 = null;const _errs376 = errors;if(data143 && typeof data143 == "object" && !Array.isArray(data143)){if(data143.id === undefined){const err396 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}if(data143.type === undefined){const err397 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}if(data143.start === undefined){const err398 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}if(data143.end === undefined){const err399 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}if(data143.id !== undefined){let data144 = data143.id;if(typeof data144 === "string"){if(!(formats0(data144))){const err400 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}}else {const err401 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}}if(data143.type !== undefined){let data145 = data143.type;if(Array.isArray(data145)){if(data145.length > 2){const err402 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}if(data145.length < 2){const err403 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}const len25 = data145.length;if(len25 > 0){let data146 = data145[0];if(typeof data146 !== "string"){const err404 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}if("TextPositionSelector" !== data146){const err405 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}}if(len25 > 1){let data147 = data145[1];if(typeof data147 !== "string"){const err406 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}if("crm:E73_Information_Object" !== data147){const err407 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}}}else {const err408 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}if(data143.start !== undefined){let data148 = data143.start;if((typeof data148 == "number") && (isFinite(data148))){if(data148 < 0 || isNaN(data148)){const err409 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}}else {const err410 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}}if(data143.end !== undefined){let data149 = data143.end;if((typeof data149 == "number") && (isFinite(data149))){if(data149 < 0 || isNaN(data149)){const err411 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}}else {const err412 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}}}else {const err413 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}var _valid13 = _errs376 === errors;if(_valid13){valid84 = true;passing5 = 0;}const _errs391 = errors;if(data143 && typeof data143 == "object" && !Array.isArray(data143)){if(data143.id === undefined){const err414 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}if(data143.type === undefined){const err415 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}if(data143.exact === undefined){const err416 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}if(data143.prefix === undefined){const err417 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}if(data143.suffix === undefined){const err418 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}if(data143.id !== undefined){let data150 = data143.id;if(typeof data150 === "string"){if(!(formats0(data150))){const err419 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}}else {const err420 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}}if(data143.type !== undefined){let data151 = data143.type;if(Array.isArray(data151)){if(data151.length > 2){const err421 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}if(data151.length < 2){const err422 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}const len26 = data151.length;if(len26 > 0){let data152 = data151[0];if(typeof data152 !== "string"){const err423 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}if("TextQuoteSelector" !== data152){const err424 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}}if(len26 > 1){let data153 = data151[1];if(typeof data153 !== "string"){const err425 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}if("crm:E33_Linguistic_Object" !== data153){const err426 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}}}else {const err427 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}}if(data143.exact !== undefined){if(typeof data143.exact !== "string"){const err428 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}}if(data143.prefix !== undefined){if(typeof data143.prefix !== "string"){const err429 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}}if(data143.suffix !== undefined){if(typeof data143.suffix !== "string"){const err430 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}}}else {const err431 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}var _valid13 = _errs391 === errors;if(_valid13 && valid84){valid84 = false;passing5 = [passing5, 1];}else {if(_valid13){valid84 = true;passing5 = 1;}}if(!valid84){const err432 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/refinedBy/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}else {errors = _errs375;if(vErrors !== null){if(_errs375){vErrors.length = _errs375;}else {vErrors = null;}}}if(!(data143 && typeof data143 == "object" && !Array.isArray(data143))){const err433 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}}}else {const err434 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}var _valid11 = _errs359 === errors;if(_valid11 && valid72){valid72 = false;passing3 = [passing3, 1];}else {if(_valid11){valid72 = true;passing3 = 1;}const _errs408 = errors;if(data115 && typeof data115 == "object" && !Array.isArray(data115)){if(data115.id === undefined){const err435 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}if(data115.type === undefined){const err436 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}if(data115.value === undefined){const err437 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}if(data115.id !== undefined){let data157 = data115.id;if(typeof data157 === "string"){if(!(formats0(data157))){const err438 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}}else {const err439 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}}if(data115.type !== undefined){let data158 = data115.type;if(Array.isArray(data158)){if(data158.length > 2){const err440 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}if(data158.length < 2){const err441 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}const len27 = data158.length;if(len27 > 0){let data159 = data158[0];if(typeof data159 !== "string"){const err442 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}if("XPathSelector" !== data159){const err443 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}}if(len27 > 1){let data160 = data158[1];if(typeof data160 !== "string"){const err444 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}if("crm:E73_Information_Object" !== data160){const err445 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}}}else {const err446 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}}if(data115.value !== undefined){if(typeof data115.value !== "string"){const err447 = {instancePath:instancePath+"/selector/" + i2+"/value",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}}if(data115.refinedBy !== undefined){let data162 = data115.refinedBy;const _errs422 = errors;let valid93 = false;const _errs423 = errors;if(data162 && typeof data162 == "object" && !Array.isArray(data162)){if(data162.id === undefined){const err448 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}if(data162.type === undefined){const err449 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}if(data162.start === undefined){const err450 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}if(data162.end === undefined){const err451 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}if(data162.id !== undefined){let data163 = data162.id;if(typeof data163 === "string"){if(!(formats0(data163))){const err452 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}}else {const err453 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}}if(data162.type !== undefined){let data164 = data162.type;if(Array.isArray(data164)){if(data164.length > 2){const err454 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}if(data164.length < 2){const err455 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}const len28 = data164.length;if(len28 > 0){let data165 = data164[0];if(typeof data165 !== "string"){const err456 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}if("TextPositionSelector" !== data165){const err457 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextPositionSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}}if(len28 > 1){let data166 = data164[1];if(typeof data166 !== "string"){const err458 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}if("crm:E73_Information_Object" !== data166){const err459 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}}}else {const err460 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}}if(data162.start !== undefined){let data167 = data162.start;if((typeof data167 == "number") && (isFinite(data167))){if(data167 < 0 || isNaN(data167)){const err461 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}}else {const err462 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/start",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/start/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}if(data162.end !== undefined){let data168 = data162.end;if((typeof data168 == "number") && (isFinite(data168))){if(data168 < 0 || isNaN(data168)){const err463 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/minimum",keyword:"minimum",params:{comparison: ">=", limit: 0},message:"must be >= 0"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}}else {const err464 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/end",schemaPath:"defs.jsonld#/definitions/textPositionSelector/properties/end/type",keyword:"type",params:{type: "number"},message:"must be number"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}}}else {const err465 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}var _valid14 = _errs423 === errors;valid93 = valid93 || _valid14;if(!valid93){const _errs438 = errors;if(data162 && typeof data162 == "object" && !Array.isArray(data162)){if(data162.id === undefined){const err466 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}if(data162.type === undefined){const err467 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}if(data162.exact === undefined){const err468 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "exact"},message:"must have required property '"+"exact"+"'"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}if(data162.prefix === undefined){const err469 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "prefix"},message:"must have required property '"+"prefix"+"'"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}if(data162.suffix === undefined){const err470 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/required",keyword:"required",params:{missingProperty: "suffix"},message:"must have required property '"+"suffix"+"'"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}if(data162.id !== undefined){let data169 = data162.id;if(typeof data169 === "string"){if(!(formats0(data169))){const err471 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}}else {const err472 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/id",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}if(data162.type !== undefined){let data170 = data162.type;if(Array.isArray(data170)){if(data170.length > 2){const err473 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}if(data170.length < 2){const err474 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}const len29 = data170.length;if(len29 > 0){let data171 = data170[0];if(typeof data171 !== "string"){const err475 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}if("TextQuoteSelector" !== data171){const err476 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/0",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "TextQuoteSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}}if(len29 > 1){let data172 = data170[1];if(typeof data172 !== "string"){const err477 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}if("crm:E33_Linguistic_Object" !== data172){const err478 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type/1",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}}}else {const err479 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/type",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}}if(data162.exact !== undefined){if(typeof data162.exact !== "string"){const err480 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/exact",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/exact/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}if(data162.prefix !== undefined){if(typeof data162.prefix !== "string"){const err481 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/prefix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/prefix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}}if(data162.suffix !== undefined){if(typeof data162.suffix !== "string"){const err482 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy/suffix",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/properties/suffix/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}}}else {const err483 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}var _valid14 = _errs438 === errors;valid93 = valid93 || _valid14;}if(!valid93){const err484 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}else {errors = _errs422;if(vErrors !== null){if(_errs422){vErrors.length = _errs422;}else {vErrors = null;}}}if(!(data162 && typeof data162 == "object" && !Array.isArray(data162))){const err485 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}}}else {const err486 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}var _valid11 = _errs408 === errors;if(_valid11 && valid72){valid72 = false;passing3 = [passing3, 2];}else {if(_valid11){valid72 = true;passing3 = 2;}const _errs455 = errors;if(data115 && typeof data115 == "object" && !Array.isArray(data115)){if(data115.id === undefined){const err487 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}if(data115.type === undefined){const err488 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}if(data115.startSelector === undefined){const err489 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}if(data115.endSelector === undefined){const err490 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}if(data115.id !== undefined){let data176 = data115.id;if(typeof data176 === "string"){if(!(formats0(data176))){const err491 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}}else {const err492 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}}if(data115.type !== undefined){let data177 = data115.type;if(Array.isArray(data177)){if(data177.length > 2){const err493 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}if(data177.length < 2){const err494 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}const len30 = data177.length;if(len30 > 0){let data178 = data177[0];if(typeof data178 !== "string"){const err495 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}if("RangeSelector" !== data178){const err496 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}}if(len30 > 1){let data179 = data177[1];if(typeof data179 !== "string"){const err497 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}if("crm:E73_Information_Object" !== data179){const err498 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}}}else {const err499 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}}if(data115.startSelector !== undefined){let data180 = data115.startSelector;if(data180 && typeof data180 == "object" && !Array.isArray(data180)){if(data180.id === undefined){const err500 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}if(data180.type === undefined){const err501 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}if(data180.value === undefined){const err502 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}if(data180.id !== undefined){let data181 = data180.id;if(typeof data181 === "string"){if(!(formats0(data181))){const err503 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}}else {const err504 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}}if(data180.type !== undefined){let data182 = data180.type;if(Array.isArray(data182)){if(data182.length > 2){const err505 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}if(data182.length < 2){const err506 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}const len31 = data182.length;if(len31 > 0){let data183 = data182[0];if(typeof data183 !== "string"){const err507 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}if("XPathSelector" !== data183){const err508 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}if(len31 > 1){let data184 = data182[1];if(typeof data184 !== "string"){const err509 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}if("crm:E73_Information_Object" !== data184){const err510 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}}}else {const err511 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}}if(data180.value !== undefined){if(typeof data180.value !== "string"){const err512 = {instancePath:instancePath+"/selector/" + i2+"/startSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}}}else {const err513 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}}if(data115.endSelector !== undefined){let data186 = data115.endSelector;if(data186 && typeof data186 == "object" && !Array.isArray(data186)){if(data186.id === undefined){const err514 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}if(data186.type === undefined){const err515 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}if(data186.value === undefined){const err516 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}if(data186.id !== undefined){let data187 = data186.id;if(typeof data187 === "string"){if(!(formats0(data187))){const err517 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}}else {const err518 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/id",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}}if(data186.type !== undefined){let data188 = data186.type;if(Array.isArray(data188)){if(data188.length > 2){const err519 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}if(data188.length < 2){const err520 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}const len32 = data188.length;if(len32 > 0){let data189 = data188[0];if(typeof data189 !== "string"){const err521 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}if("XPathSelector" !== data189){const err522 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/0",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/0/const",keyword:"const",params:{allowedValue: "XPathSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}}if(len32 > 1){let data190 = data188[1];if(typeof data190 !== "string"){const err523 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}if("crm:E73_Information_Object" !== data190){const err524 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type/1",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}}}else {const err525 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/type",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}}if(data186.value !== undefined){if(typeof data186.value !== "string"){const err526 = {instancePath:instancePath+"/selector/" + i2+"/endSelector/value",schemaPath:"defs.jsonld#/definitions/xpathSelector/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}}}else {const err527 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}}}else {const err528 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}var _valid11 = _errs455 === errors;if(_valid11 && valid72){valid72 = false;passing3 = [passing3, 3];}else {if(_valid11){valid72 = true;passing3 = 3;}}}}if(!valid72){const err529 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}else {errors = _errs307;if(vErrors !== null){if(_errs307){vErrors.length = _errs307;}else {vErrors = null;}}}if(!(data115 && typeof data115 == "object" && !Array.isArray(data115))){const err530 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}}}else {const err531 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}var _valid6 = _errs303 === errors;valid33 = valid33 || _valid6;}if(!valid33){const err532 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}}}else {const err533 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}validate12.errors = vErrors;return errors === 0;}const schema34 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Body resource."},"type":{"type":"string","const":"Choice"},"entityType":{"oneOf":[{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Person"},{"oneOf":[{"type":"string","const":"crm:E21_Person","description":"Real Person"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Person"}]}]},{"oneOf":[{"type":"string","const":"cwrc:place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cwrc:place"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Place"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"oneOf":[{"type":"string","const":"crm:E74_Group","description":"Real Organization"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Organization"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E89_Propositional_Object"},{"oneOf":[{"type":"string","const":"frbroo:F1","description":"Real Work"},{"type":"string","const":"wikidata:Q15306849","description":"Fictional Work"}]}]},{"oneOf":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E18_Physical_Thing"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Physical Thing"}]}]},{"oneOf":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"string","const":"wikidata:Q15831596","description":"Fictional Conceptual Object"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"string","const":"crm:E33_Linguistic_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crmdig:D1_Digital_Object"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"string","const":"crmdig:D1_Digital_Object"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"YET TO BE DEFINED EVENT CLASS"},{"oneOf":[{"type":"string","const":"crm:E5_Event","description":"Real Event"},{"type":"string","const":"crm:E89_Propositional_Object","description":"Fictional Event"}]}]}]},"label":{"type":"string","minLength":1,"description":"The title or name of a linked resource or named entity."},"items":{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"}}},"required":["id","type","entityType","items"],"additionalProperties":false};const pattern0 = new RegExp("^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$", "u");function validate14(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){let vErrors = null;let errors = 0;if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err0 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if(data.type === undefined){const err1 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}if(data.entityType === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if(data.items === undefined){const err3 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}for(const key0 in data){if(!(((((key0 === "id") || (key0 === "type")) || (key0 === "entityType")) || (key0 === "label")) || (key0 === "items"))){const err4 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!(formats0(data0))){const err5 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}else {const err6 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}}if(data.type !== undefined){let data1 = data.type;if(typeof data1 !== "string"){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}if("Choice" !== data1){const err8 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "Choice"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}if(data.entityType !== undefined){let data2 = data.entityType;const _errs7 = errors;let valid1 = false;let passing0 = null;const _errs8 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err9 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if(data2.length < 2){const err10 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}const len0 = data2.length;if(len0 > 0){let data3 = data2[0];if(typeof data3 !== "string"){const err11 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/0/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if("Person" !== data3){const err12 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/0/items/0/const",keyword:"const",params:{allowedValue: "Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}}if(len0 > 1){let data4 = data2[1];const _errs13 = errors;let valid3 = false;let passing1 = null;const _errs14 = errors;if(typeof data4 !== "string"){const err13 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("crm:E21_Person" !== data4){const err14 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}var _valid1 = _errs14 === errors;if(_valid1){valid3 = true;passing1 = 0;}const _errs16 = errors;if(typeof data4 !== "string"){const err15 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}if("crm:E89_Propositional_Object" !== data4){const err16 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}var _valid1 = _errs16 === errors;if(_valid1 && valid3){valid3 = false;passing1 = [passing1, 1];}else {if(_valid1){valid3 = true;passing1 = 1;}}if(!valid3){const err17 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}else {errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}}}}else {const err18 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var _valid0 = _errs8 === errors;if(_valid0){valid1 = true;passing0 = 0;}const _errs18 = errors;const _errs19 = errors;let valid4 = false;let passing2 = null;const _errs20 = errors;if(typeof data2 !== "string"){const err19 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("cwrc:place" !== data2){const err20 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var _valid2 = _errs20 === errors;if(_valid2){valid4 = true;passing2 = 0;}const _errs22 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err21 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if(data2.length < 2){const err22 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}const len1 = data2.length;if(len1 > 0){let data5 = data2[0];if(typeof data5 !== "string"){const err23 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}if("cwrc:place" !== data5){const err24 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}}if(len1 > 1){let data6 = data2[1];if(typeof data6 !== "string"){const err25 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}if("crm:E89_Propositional_Object" !== data6){const err26 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}}}else {const err27 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid2 = _errs22 === errors;if(_valid2 && valid4){valid4 = false;passing2 = [passing2, 1];}else {if(_valid2){valid4 = true;passing2 = 1;}}if(!valid4){const err28 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {errors = _errs19;if(vErrors !== null){if(_errs19){vErrors.length = _errs19;}else {vErrors = null;}}}var _valid0 = _errs18 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 1];}else {if(_valid0){valid1 = true;passing0 = 1;}const _errs28 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err29 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if(data2.length < 2){const err30 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}const len2 = data2.length;if(len2 > 0){let data7 = data2[0];if(typeof data7 !== "string"){const err31 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/2/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if("foaf:Organization" !== data7){const err32 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/2/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}if(len2 > 1){let data8 = data2[1];const _errs33 = errors;let valid7 = false;let passing3 = null;const _errs34 = errors;if(typeof data8 !== "string"){const err33 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if("crm:E74_Group" !== data8){const err34 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}var _valid3 = _errs34 === errors;if(_valid3){valid7 = true;passing3 = 0;}const _errs36 = errors;if(typeof data8 !== "string"){const err35 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("crm:E89_Propositional_Object" !== data8){const err36 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var _valid3 = _errs36 === errors;if(_valid3 && valid7){valid7 = false;passing3 = [passing3, 1];}else {if(_valid3){valid7 = true;passing3 = 1;}}if(!valid7){const err37 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}else {errors = _errs33;if(vErrors !== null){if(_errs33){vErrors.length = _errs33;}else {vErrors = null;}}}}}else {const err38 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var _valid0 = _errs28 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 2];}else {if(_valid0){valid1 = true;passing0 = 2;}const _errs38 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err39 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if(data2.length < 2){const err40 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}const len3 = data2.length;if(len3 > 0){let data9 = data2[0];if(typeof data9 !== "string"){const err41 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/3/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if("crm:E89_Propositional_Object" !== data9){const err42 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/3/items/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}}if(len3 > 1){let data10 = data2[1];const _errs43 = errors;let valid9 = false;let passing4 = null;const _errs44 = errors;if(typeof data10 !== "string"){const err43 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("frbroo:F1" !== data10){const err44 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}var _valid4 = _errs44 === errors;if(_valid4){valid9 = true;passing4 = 0;}const _errs46 = errors;if(typeof data10 !== "string"){const err45 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}if("wikidata:Q15306849" !== data10){const err46 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}var _valid4 = _errs46 === errors;if(_valid4 && valid9){valid9 = false;passing4 = [passing4, 1];}else {if(_valid4){valid9 = true;passing4 = 1;}}if(!valid9){const err47 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}else {errors = _errs43;if(vErrors !== null){if(_errs43){vErrors.length = _errs43;}else {vErrors = null;}}}}}else {const err48 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}var _valid0 = _errs38 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 3];}else {if(_valid0){valid1 = true;passing0 = 3;}const _errs48 = errors;const _errs49 = errors;let valid10 = false;let passing5 = null;const _errs50 = errors;if(typeof data2 !== "string"){const err49 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}if("crm:E18_Physical_Thing" !== data2){const err50 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}var _valid5 = _errs50 === errors;if(_valid5){valid10 = true;passing5 = 0;}const _errs52 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err51 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}if(data2.length < 2){const err52 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}const len4 = data2.length;if(len4 > 0){let data11 = data2[0];if(typeof data11 !== "string"){const err53 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}if("crm:E18_Physical_Thing" !== data11){const err54 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}}if(len4 > 1){let data12 = data2[1];if(typeof data12 !== "string"){const err55 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if("wikidata:Q15831596" !== data12){const err56 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}}else {const err57 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var _valid5 = _errs52 === errors;if(_valid5 && valid10){valid10 = false;passing5 = [passing5, 1];}else {if(_valid5){valid10 = true;passing5 = 1;}}if(!valid10){const err58 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}else {errors = _errs49;if(vErrors !== null){if(_errs49){vErrors.length = _errs49;}else {vErrors = null;}}}var _valid0 = _errs48 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 4];}else {if(_valid0){valid1 = true;passing0 = 4;}const _errs58 = errors;const _errs59 = errors;let valid12 = false;let passing6 = null;const _errs60 = errors;if(typeof data2 !== "string"){const err59 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}if("crm:E28_Conceptual_Object" !== data2){const err60 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}var _valid6 = _errs60 === errors;if(_valid6){valid12 = true;passing6 = 0;}const _errs62 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err61 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(data2.length < 2){const err62 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}const len5 = data2.length;if(len5 > 0){let data13 = data2[0];if(typeof data13 !== "string"){const err63 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}if("crm:E28_Conceptual_Object" !== data13){const err64 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}}if(len5 > 1){let data14 = data2[1];if(typeof data14 !== "string"){const err65 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("wikidata:Q15831596" !== data14){const err66 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}else {const err67 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}var _valid6 = _errs62 === errors;if(_valid6 && valid12){valid12 = false;passing6 = [passing6, 1];}else {if(_valid6){valid12 = true;passing6 = 1;}}if(!valid12){const err68 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {errors = _errs59;if(vErrors !== null){if(_errs59){vErrors.length = _errs59;}else {vErrors = null;}}}var _valid0 = _errs58 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 5];}else {if(_valid0){valid1 = true;passing0 = 5;}const _errs68 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err69 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data2.length < 2){const err70 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}const len6 = data2.length;if(len6 > 0){let data15 = data2[0];if(typeof data15 !== "string"){const err71 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("cito:Citation" !== data15){const err72 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}if(len6 > 1){let data16 = data2[1];if(typeof data16 !== "string"){const err73 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("crm:E73_Information_Object" !== data16){const err74 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}}}else {const err75 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}var _valid0 = _errs68 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 6];}else {if(_valid0){valid1 = true;passing0 = 6;}const _errs74 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err76 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data2.length < 2){const err77 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}const len7 = data2.length;if(len7 > 0){let data17 = data2[0];if(typeof data17 !== "string"){const err78 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if("xsd:date" !== data17){const err79 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(len7 > 1){let data18 = data2[1];if(typeof data18 !== "string"){const err80 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if("crm:E52_Time-Span" !== data18){const err81 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}else {const err82 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var _valid0 = _errs74 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 7];}else {if(_valid0){valid1 = true;passing0 = 7;}const _errs80 = errors;if(typeof data2 !== "string"){const err83 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("crm:E33_Linguistic_Object" !== data2){const err84 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}var _valid0 = _errs80 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 8];}else {if(_valid0){valid1 = true;passing0 = 8;}const _errs82 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err85 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}if(data2.length < 2){const err86 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}const len8 = data2.length;if(len8 > 0){let data19 = data2[0];if(typeof data19 !== "string"){const err87 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("fabio:Correction" !== data19){const err88 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}if(len8 > 1){let data20 = data2[1];if(typeof data20 !== "string"){const err89 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if("crm:E33_Linguistic_Object" !== data20){const err90 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}else {const err91 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}var _valid0 = _errs82 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 9];}else {if(_valid0){valid1 = true;passing0 = 9;}const _errs88 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err92 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data2.length < 2){const err93 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}const len9 = data2.length;if(len9 > 0){let data21 = data2[0];if(typeof data21 !== "string"){const err94 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if("crm:E55_Type" !== data21){const err95 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(len9 > 1){let data22 = data2[1];if(typeof data22 !== "string"){const err96 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if("crmdig:D1_Digital_Object" !== data22){const err97 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}else {const err98 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}var _valid0 = _errs88 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 10];}else {if(_valid0){valid1 = true;passing0 = 10;}const _errs94 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err99 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if(data2.length < 2){const err100 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}const len10 = data2.length;if(len10 > 0){let data23 = data2[0];if(typeof data23 !== "string"){const err101 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}if("crm:E55_Type" !== data23){const err102 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}}if(len10 > 1){let data24 = data2[1];if(typeof data24 !== "string"){const err103 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if("crm:E33_Linguistic_Object" !== data24){const err104 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}}}else {const err105 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var _valid0 = _errs94 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 11];}else {if(_valid0){valid1 = true;passing0 = 11;}const _errs100 = errors;if(typeof data2 !== "string"){const err106 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if("crmdig:D1_Digital_Object" !== data2){const err107 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}var _valid0 = _errs100 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 12];}else {if(_valid0){valid1 = true;passing0 = 12;}const _errs102 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err108 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if(data2.length < 2){const err109 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}const len11 = data2.length;if(len11 > 0){let data25 = data2[0];if(typeof data25 !== "string"){const err110 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/13/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if("YET TO BE DEFINED EVENT CLASS" !== data25){const err111 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/13/items/0/const",keyword:"const",params:{allowedValue: "YET TO BE DEFINED EVENT CLASS"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}if(len11 > 1){let data26 = data2[1];const _errs107 = errors;let valid20 = false;let passing7 = null;const _errs108 = errors;if(typeof data26 !== "string"){const err112 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if("crm:E5_Event" !== data26){const err113 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}var _valid7 = _errs108 === errors;if(_valid7){valid20 = true;passing7 = 0;}const _errs110 = errors;if(typeof data26 !== "string"){const err114 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if("crm:E89_Propositional_Object" !== data26){const err115 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}var _valid7 = _errs110 === errors;if(_valid7 && valid20){valid20 = false;passing7 = [passing7, 1];}else {if(_valid7){valid20 = true;passing7 = 1;}}if(!valid20){const err116 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing7},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}else {errors = _errs107;if(vErrors !== null){if(_errs107){vErrors.length = _errs107;}else {vErrors = null;}}}}}else {const err117 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}var _valid0 = _errs102 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 13];}else {if(_valid0){valid1 = true;passing0 = 13;}}}}}}}}}}}}}}if(!valid1){const err118 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {errors = _errs7;if(vErrors !== null){if(_errs7){vErrors.length = _errs7;}else {vErrors = null;}}}}if(data.label !== undefined){let data27 = data.label;if(typeof data27 === "string"){if(func3(data27) < 1){const err119 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}else {const err120 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}if(data.items !== undefined){let data28 = data.items;if(Array.isArray(data28)){const len12 = data28.length;for(let i0=0; i0<len12; i0++){let data29 = data28[i0];const _errs119 = errors;let valid24 = false;const _errs120 = errors;const _errs121 = errors;let valid25 = true;const _errs122 = errors;if(errors === _errs122){if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.entityType !== undefined){let data30 = data29.entityType;const _errs125 = errors;let valid27 = false;const _errs126 = errors;if("crm:E33_Linguistic_Object" !== data30){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var _valid10 = _errs126 === errors;valid27 = valid27 || _valid10;if(!valid27){const _errs127 = errors;if(errors === _errs127){if(Array.isArray(data30)){if(data30.length > 2){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {if(data30.length < 2){const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}else {const len13 = data30.length;if(len13 > 0){const _errs129 = errors;if("xsd:date" !== data30[0]){const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}var valid28 = _errs129 === errors;}if(valid28){if(len13 > 1){const _errs130 = errors;if("crm:E52_Time-Span" !== data30[1]){const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var valid28 = _errs130 === errors;}}}}}else {const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}}var _valid10 = _errs127 === errors;valid27 = valid27 || _valid10;if(!valid27){const _errs131 = errors;if(errors === _errs131){if(Array.isArray(data30)){if(data30.length > 2){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}else {if(data30.length < 2){const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}else {const len14 = data30.length;if(len14 > 0){const _errs133 = errors;if("fabio:Correction" !== data30[0]){const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}var valid29 = _errs133 === errors;}if(valid29){if(len14 > 1){const _errs134 = errors;if("crm:E33_Linguistic_Object" !== data30[1]){const err130 = {};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}var valid29 = _errs134 === errors;}}}}}else {const err131 = {};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}var _valid10 = _errs131 === errors;valid27 = valid27 || _valid10;if(!valid27){const _errs135 = errors;if(errors === _errs135){if(Array.isArray(data30)){if(data30.length > 2){const err132 = {};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {if(data30.length < 2){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {const len15 = data30.length;if(len15 > 0){const _errs137 = errors;if("crm:E55_Type" !== data30[0]){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}var valid30 = _errs137 === errors;}if(valid30){if(len15 > 1){const _errs138 = errors;if("crm:E33_Linguistic_Object" !== data30[1]){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}var valid30 = _errs138 === errors;}}}}}else {const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}var _valid10 = _errs135 === errors;valid27 = valid27 || _valid10;}}}if(!valid27){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {errors = _errs125;if(vErrors !== null){if(_errs125){vErrors.length = _errs125;}else {vErrors = null;}}}}}else {const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}var _valid9 = _errs122 === errors;errors = _errs121;if(vErrors !== null){if(_errs121){vErrors.length = _errs121;}else {vErrors = null;}}if(_valid9){const _errs139 = errors;const _errs141 = errors;let valid31 = true;const _errs142 = errors;if(errors === _errs142){if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.entityType !== undefined){let data37 = data29.entityType;const _errs144 = errors;if(errors === _errs144){if(Array.isArray(data37)){if(data37.length > 2){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}else {if(data37.length < 2){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}else {const len16 = data37.length;if(len16 > 0){const _errs146 = errors;if("xsd:date" !== data37[0]){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}var valid33 = _errs146 === errors;}if(valid33){if(len16 > 1){const _errs147 = errors;if("crm:E52_Time-Span" !== data37[1]){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}var valid33 = _errs147 === errors;}}}}}else {const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}}else {const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}var _valid11 = _errs142 === errors;errors = _errs141;if(vErrors !== null){if(_errs141){vErrors.length = _errs141;}else {vErrors = null;}}let ifClause0;if(_valid11){const _errs148 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.value !== undefined){let data40 = data29.value;if(typeof data40 === "string"){if(!pattern0.test(data40)){const err145 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}else {const err146 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}else {const err147 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}var _valid11 = _errs148 === errors;valid31 = _valid11;ifClause0 = "then";}else {const _errs152 = errors;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.value !== undefined){if(typeof data29.value !== "string"){const err148 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var _valid11 = _errs152 === errors;valid31 = _valid11;ifClause0 = "else";}if(!valid31){const err150 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.type === undefined){const err151 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data29.value === undefined){const err152 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(data29.type !== undefined){let data42 = data29.type;if(typeof data42 !== "string"){const err153 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if("TextualBody" !== data42){const err154 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}}else {const err155 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var _valid9 = _errs139 === errors;valid25 = _valid9;}if(!valid25){const err156 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}var _valid8 = _errs120 === errors;valid24 = valid24 || _valid8;if(!valid24){const err157 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}else {errors = _errs119;if(vErrors !== null){if(_errs119){vErrors.length = _errs119;}else {vErrors = null;}}}if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.id === undefined){const err158 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data29.entityType === undefined){const err159 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}for(const key1 in data29){if(!(func2.call(schema35.properties, key1))){const err160 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data29.id !== undefined){let data43 = data29.id;if(typeof data43 === "string"){if(!(formats0(data43))){const err161 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}else {const err162 = {instancePath:instancePath+"/items/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(data29.type !== undefined){let data44 = data29.type;if(typeof data44 !== "string"){const err163 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if("TextualBody" !== data44){const err164 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}if(data29.entityType !== undefined){let data45 = data29.entityType;const _errs164 = errors;let valid38 = false;let passing8 = null;const _errs165 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err165 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if(data45.length < 2){const err166 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}const len17 = data45.length;if(len17 > 0){let data46 = data45[0];if(typeof data46 !== "string"){const err167 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if("Person" !== data46){const err168 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/const",keyword:"const",params:{allowedValue: "Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}if(len17 > 1){let data47 = data45[1];const _errs170 = errors;let valid40 = false;let passing9 = null;const _errs171 = errors;if(typeof data47 !== "string"){const err169 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if("crm:E21_Person" !== data47){const err170 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}var _valid13 = _errs171 === errors;if(_valid13){valid40 = true;passing9 = 0;}const _errs173 = errors;if(typeof data47 !== "string"){const err171 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if("crm:E89_Propositional_Object" !== data47){const err172 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}var _valid13 = _errs173 === errors;if(_valid13 && valid40){valid40 = false;passing9 = [passing9, 1];}else {if(_valid13){valid40 = true;passing9 = 1;}}if(!valid40){const err173 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}else {errors = _errs170;if(vErrors !== null){if(_errs170){vErrors.length = _errs170;}else {vErrors = null;}}}}}else {const err174 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}var _valid12 = _errs165 === errors;if(_valid12){valid38 = true;passing8 = 0;}const _errs175 = errors;const _errs176 = errors;let valid41 = false;let passing10 = null;const _errs177 = errors;if(typeof data45 !== "string"){const err175 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}if("cwrc:place" !== data45){const err176 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}var _valid14 = _errs177 === errors;if(_valid14){valid41 = true;passing10 = 0;}const _errs179 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err177 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if(data45.length < 2){const err178 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}const len18 = data45.length;if(len18 > 0){let data48 = data45[0];if(typeof data48 !== "string"){const err179 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if("cwrc:place" !== data48){const err180 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(len18 > 1){let data49 = data45[1];if(typeof data49 !== "string"){const err181 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if("crm:E89_Propositional_Object" !== data49){const err182 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}}else {const err183 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}var _valid14 = _errs179 === errors;if(_valid14 && valid41){valid41 = false;passing10 = [passing10, 1];}else {if(_valid14){valid41 = true;passing10 = 1;}}if(!valid41){const err184 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing10},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}else {errors = _errs176;if(vErrors !== null){if(_errs176){vErrors.length = _errs176;}else {vErrors = null;}}}var _valid12 = _errs175 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 1];}else {if(_valid12){valid38 = true;passing8 = 1;}const _errs185 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err185 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data45.length < 2){const err186 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}const len19 = data45.length;if(len19 > 0){let data50 = data45[0];if(typeof data50 !== "string"){const err187 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if("foaf:Organization" !== data50){const err188 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}if(len19 > 1){let data51 = data45[1];const _errs190 = errors;let valid44 = false;let passing11 = null;const _errs191 = errors;if(typeof data51 !== "string"){const err189 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if("crm:E74_Group" !== data51){const err190 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}var _valid15 = _errs191 === errors;if(_valid15){valid44 = true;passing11 = 0;}const _errs193 = errors;if(typeof data51 !== "string"){const err191 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if("crm:E89_Propositional_Object" !== data51){const err192 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}var _valid15 = _errs193 === errors;if(_valid15 && valid44){valid44 = false;passing11 = [passing11, 1];}else {if(_valid15){valid44 = true;passing11 = 1;}}if(!valid44){const err193 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}else {errors = _errs190;if(vErrors !== null){if(_errs190){vErrors.length = _errs190;}else {vErrors = null;}}}}}else {const err194 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}var _valid12 = _errs185 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 2];}else {if(_valid12){valid38 = true;passing8 = 2;}const _errs195 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err195 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(data45.length < 2){const err196 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}const len20 = data45.length;if(len20 > 0){let data52 = data45[0];if(typeof data52 !== "string"){const err197 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if("crm:E89_Propositional_Object" !== data52){const err198 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}if(len20 > 1){let data53 = data45[1];const _errs200 = errors;let valid46 = false;let passing12 = null;const _errs201 = errors;if(typeof data53 !== "string"){const err199 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if("frbroo:F1" !== data53){const err200 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}var _valid16 = _errs201 === errors;if(_valid16){valid46 = true;passing12 = 0;}const _errs203 = errors;if(typeof data53 !== "string"){const err201 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}if("wikidata:Q15306849" !== data53){const err202 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}var _valid16 = _errs203 === errors;if(_valid16 && valid46){valid46 = false;passing12 = [passing12, 1];}else {if(_valid16){valid46 = true;passing12 = 1;}}if(!valid46){const err203 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}else {errors = _errs200;if(vErrors !== null){if(_errs200){vErrors.length = _errs200;}else {vErrors = null;}}}}}else {const err204 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}var _valid12 = _errs195 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 3];}else {if(_valid12){valid38 = true;passing8 = 3;}const _errs205 = errors;const _errs206 = errors;let valid47 = false;let passing13 = null;const _errs207 = errors;if(typeof data45 !== "string"){const err205 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if("crm:E18_Physical_Thing" !== data45){const err206 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}var _valid17 = _errs207 === errors;if(_valid17){valid47 = true;passing13 = 0;}const _errs209 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err207 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(data45.length < 2){const err208 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}const len21 = data45.length;if(len21 > 0){let data54 = data45[0];if(typeof data54 !== "string"){const err209 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if("crm:E18_Physical_Thing" !== data54){const err210 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}if(len21 > 1){let data55 = data45[1];if(typeof data55 !== "string"){const err211 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}if("wikidata:Q15831596" !== data55){const err212 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}}else {const err213 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}var _valid17 = _errs209 === errors;if(_valid17 && valid47){valid47 = false;passing13 = [passing13, 1];}else {if(_valid17){valid47 = true;passing13 = 1;}}if(!valid47){const err214 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing13},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}else {errors = _errs206;if(vErrors !== null){if(_errs206){vErrors.length = _errs206;}else {vErrors = null;}}}var _valid12 = _errs205 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 4];}else {if(_valid12){valid38 = true;passing8 = 4;}const _errs215 = errors;const _errs216 = errors;let valid49 = false;let passing14 = null;const _errs217 = errors;if(typeof data45 !== "string"){const err215 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if("crm:E28_Conceptual_Object" !== data45){const err216 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}var _valid18 = _errs217 === errors;if(_valid18){valid49 = true;passing14 = 0;}const _errs219 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err217 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}if(data45.length < 2){const err218 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}const len22 = data45.length;if(len22 > 0){let data56 = data45[0];if(typeof data56 !== "string"){const err219 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}if("crm:E28_Conceptual_Object" !== data56){const err220 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(len22 > 1){let data57 = data45[1];if(typeof data57 !== "string"){const err221 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}if("wikidata:Q15831596" !== data57){const err222 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}}else {const err223 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}var _valid18 = _errs219 === errors;if(_valid18 && valid49){valid49 = false;passing14 = [passing14, 1];}else {if(_valid18){valid49 = true;passing14 = 1;}}if(!valid49){const err224 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing14},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}else {errors = _errs216;if(vErrors !== null){if(_errs216){vErrors.length = _errs216;}else {vErrors = null;}}}var _valid12 = _errs215 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 5];}else {if(_valid12){valid38 = true;passing8 = 5;}const _errs225 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err225 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}if(data45.length < 2){const err226 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}const len23 = data45.length;if(len23 > 0){let data58 = data45[0];if(typeof data58 !== "string"){const err227 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}if("cito:Citation" !== data58){const err228 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(len23 > 1){let data59 = data45[1];if(typeof data59 !== "string"){const err229 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}if("crm:E73_Information_Object" !== data59){const err230 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}}else {const err231 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var _valid12 = _errs225 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 6];}else {if(_valid12){valid38 = true;passing8 = 6;}const _errs231 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err232 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}if(data45.length < 2){const err233 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}const len24 = data45.length;if(len24 > 0){let data60 = data45[0];if(typeof data60 !== "string"){const err234 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}if("xsd:date" !== data60){const err235 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}}if(len24 > 1){let data61 = data45[1];if(typeof data61 !== "string"){const err236 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}if("crm:E52_Time-Span" !== data61){const err237 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}}}else {const err238 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}var _valid12 = _errs231 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 7];}else {if(_valid12){valid38 = true;passing8 = 7;}const _errs237 = errors;if(typeof data45 !== "string"){const err239 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if("crm:E33_Linguistic_Object" !== data45){const err240 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var _valid12 = _errs237 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 8];}else {if(_valid12){valid38 = true;passing8 = 8;}const _errs239 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err241 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if(data45.length < 2){const err242 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}const len25 = data45.length;if(len25 > 0){let data62 = data45[0];if(typeof data62 !== "string"){const err243 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}if("fabio:Correction" !== data62){const err244 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}if(len25 > 1){let data63 = data45[1];if(typeof data63 !== "string"){const err245 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if("crm:E33_Linguistic_Object" !== data63){const err246 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}}else {const err247 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}var _valid12 = _errs239 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 9];}else {if(_valid12){valid38 = true;passing8 = 9;}const _errs245 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err248 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data45.length < 2){const err249 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}const len26 = data45.length;if(len26 > 0){let data64 = data45[0];if(typeof data64 !== "string"){const err250 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}if("crm:E55_Type" !== data64){const err251 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}if(len26 > 1){let data65 = data45[1];if(typeof data65 !== "string"){const err252 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}if("crmdig:D1_Digital_Object" !== data65){const err253 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}}}else {const err254 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}var _valid12 = _errs245 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 10];}else {if(_valid12){valid38 = true;passing8 = 10;}const _errs251 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err255 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if(data45.length < 2){const err256 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}const len27 = data45.length;if(len27 > 0){let data66 = data45[0];if(typeof data66 !== "string"){const err257 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}if("crm:E55_Type" !== data66){const err258 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}if(len27 > 1){let data67 = data45[1];if(typeof data67 !== "string"){const err259 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}if("crm:E33_Linguistic_Object" !== data67){const err260 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}}else {const err261 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}var _valid12 = _errs251 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 11];}else {if(_valid12){valid38 = true;passing8 = 11;}const _errs257 = errors;if(typeof data45 !== "string"){const err262 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}if("crmdig:D1_Digital_Object" !== data45){const err263 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}var _valid12 = _errs257 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 12];}else {if(_valid12){valid38 = true;passing8 = 12;}const _errs259 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err264 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}if(data45.length < 2){const err265 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}const len28 = data45.length;if(len28 > 0){let data68 = data45[0];if(typeof data68 !== "string"){const err266 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if("YET TO BE DEFINED EVENT CLASS" !== data68){const err267 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/0/const",keyword:"const",params:{allowedValue: "YET TO BE DEFINED EVENT CLASS"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}if(len28 > 1){let data69 = data45[1];const _errs264 = errors;let valid57 = false;let passing15 = null;const _errs265 = errors;if(typeof data69 !== "string"){const err268 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}if("crm:E5_Event" !== data69){const err269 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}var _valid19 = _errs265 === errors;if(_valid19){valid57 = true;passing15 = 0;}const _errs267 = errors;if(typeof data69 !== "string"){const err270 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}if("crm:E89_Propositional_Object" !== data69){const err271 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}var _valid19 = _errs267 === errors;if(_valid19 && valid57){valid57 = false;passing15 = [passing15, 1];}else {if(_valid19){valid57 = true;passing15 = 1;}}if(!valid57){const err272 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing15},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}else {errors = _errs264;if(vErrors !== null){if(_errs264){vErrors.length = _errs264;}else {vErrors = null;}}}}}else {const err273 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}var _valid12 = _errs259 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 13];}else {if(_valid12){valid38 = true;passing8 = 13;}}}}}}}}}}}}}}if(!valid38){const err274 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing8},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}else {errors = _errs164;if(vErrors !== null){if(_errs164){vErrors.length = _errs164;}else {vErrors = null;}}}}if(data29.additionalType !== undefined){let data70 = data29.additionalType;const _errs270 = errors;let valid58 = false;const _errs271 = errors;if(typeof data70 !== "string"){const err275 = {instancePath:instancePath+"/items/" + i0+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}var _valid20 = _errs271 === errors;valid58 = valid58 || _valid20;if(!valid58){const _errs273 = errors;if(Array.isArray(data70)){const len29 = data70.length;for(let i1=0; i1<len29; i1++){if(typeof data70[i1] !== "string"){const err276 = {instancePath:instancePath+"/items/" + i0+"/additionalType/" + i1,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}}}else {const err277 = {instancePath:instancePath+"/items/" + i0+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}var _valid20 = _errs273 === errors;valid58 = valid58 || _valid20;}if(!valid58){const err278 = {instancePath:instancePath+"/items/" + i0+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}else {errors = _errs270;if(vErrors !== null){if(_errs270){vErrors.length = _errs270;}else {vErrors = null;}}}}if(data29.value !== undefined){if(typeof data29.value !== "string"){const err279 = {instancePath:instancePath+"/items/" + i0+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}if(data29.certainty !== undefined){let data73 = data29.certainty;if(typeof data73 !== "string"){const err280 = {instancePath:instancePath+"/items/" + i0+"/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}if(!((((data73 === "edit:qualityLow") || (data73 === "edit:qualityMedium")) || (data73 === "edit:qualityHigh")) || (data73 === "edit:qualityUnknown"))){const err281 = {instancePath:instancePath+"/items/" + i0+"/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/enum",keyword:"enum",params:{allowedValues: schema35.properties.certainty.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}}if(data29.precision !== undefined){let data74 = data29.precision;if(typeof data74 !== "string"){const err282 = {instancePath:instancePath+"/items/" + i0+"/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}if(!((((data74 === "edit:qualityLow") || (data74 === "edit:qualityMedium")) || (data74 === "edit:qualityHigh")) || (data74 === "edit:qualityUnknown"))){const err283 = {instancePath:instancePath+"/items/" + i0+"/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/enum",keyword:"enum",params:{allowedValues: schema35.properties.precision.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}}if(data29.label !== undefined){let data75 = data29.label;if(typeof data75 === "string"){if(func3(data75) < 1){const err284 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}}else {const err285 = {instancePath:instancePath+"/items/" + i0+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}}if(data29.description !== undefined){if(typeof data29.description !== "string"){const err286 = {instancePath:instancePath+"/items/" + i0+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}}else {const err287 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}}else {const err288 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}}}else {const err289 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}validate14.errors = vErrors;return errors === 0;}function validate10(data, {instancePath="", parentData, parentDataProperty, rootData=data}={}){/*# sourceURL="https://wa.lincsproject.ca/v1/schema.jsonld" */;let vErrors = null;let errors = 0;const _errs2 = errors;let valid1 = true;const _errs3 = errors;if(errors === _errs3){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data0 = data.body;const _errs5 = errors;if(errors === _errs5){if(data0 && typeof data0 == "object" && !Array.isArray(data0)){if(data0.entityType !== undefined){let data1 = data0.entityType;const _errs8 = errors;let valid4 = false;let passing0 = null;const _errs9 = errors;if(errors === _errs9){if(Array.isArray(data1)){if(data1.length > 2){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}else {if(data1.length < 2){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs11 = errors;if(typeof data2 !== "string"){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}if("Person" !== data2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}var valid5 = _errs11 === errors;}if(valid5){if(len0 > 1){let data3 = data1[1];const _errs13 = errors;const _errs14 = errors;let valid6 = false;let passing1 = null;const _errs15 = errors;if(typeof data3 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("crm:E21_Person" !== data3){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var _valid2 = _errs15 === errors;if(_valid2){valid6 = true;passing1 = 0;}const _errs17 = errors;if(typeof data3 !== "string"){const err6 = {};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("crm:E89_Propositional_Object" !== data3){const err7 = {};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}var _valid2 = _errs17 === errors;if(_valid2 && valid6){valid6 = false;passing1 = [passing1, 1];}else {if(_valid2){valid6 = true;passing1 = 1;}}if(!valid6){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {errors = _errs14;if(vErrors !== null){if(_errs14){vErrors.length = _errs14;}else {vErrors = null;}}}var valid5 = _errs13 === errors;}}}}}else {const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}}var _valid1 = _errs9 === errors;if(_valid1){valid4 = true;passing0 = 0;}const _errs19 = errors;const _errs20 = errors;let valid7 = false;let passing2 = null;const _errs21 = errors;if(typeof data1 !== "string"){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("cwrc:place" !== data1){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var _valid3 = _errs21 === errors;if(_valid3){valid7 = true;passing2 = 0;}const _errs23 = errors;if(errors === _errs23){if(Array.isArray(data1)){if(data1.length > 2){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}else {if(data1.length < 2){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}else {const len1 = data1.length;if(len1 > 0){let data4 = data1[0];const _errs25 = errors;if(typeof data4 !== "string"){const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}if("cwrc:place" !== data4){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}var valid8 = _errs25 === errors;}if(valid8){if(len1 > 1){let data5 = data1[1];const _errs27 = errors;if(typeof data5 !== "string"){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}if("crm:E89_Propositional_Object" !== data5){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var valid8 = _errs27 === errors;}}}}}else {const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}}var _valid3 = _errs23 === errors;if(_valid3 && valid7){valid7 = false;passing2 = [passing2, 1];}else {if(_valid3){valid7 = true;passing2 = 1;}}if(!valid7){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}else {errors = _errs20;if(vErrors !== null){if(_errs20){vErrors.length = _errs20;}else {vErrors = null;}}}var _valid1 = _errs19 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 1];}else {if(_valid1){valid4 = true;passing0 = 1;}const _errs29 = errors;if(errors === _errs29){if(Array.isArray(data1)){if(data1.length > 2){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}else {if(data1.length < 2){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}else {const len2 = data1.length;if(len2 > 0){let data6 = data1[0];const _errs31 = errors;if(typeof data6 !== "string"){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}if("foaf:Organization" !== data6){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}var valid9 = _errs31 === errors;}if(valid9){if(len2 > 1){let data7 = data1[1];const _errs33 = errors;const _errs34 = errors;let valid10 = false;let passing3 = null;const _errs35 = errors;if(typeof data7 !== "string"){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("crm:E74_Group" !== data7){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var _valid4 = _errs35 === errors;if(_valid4){valid10 = true;passing3 = 0;}const _errs37 = errors;if(typeof data7 !== "string"){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("crm:E89_Propositional_Object" !== data7){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var _valid4 = _errs37 === errors;if(_valid4 && valid10){valid10 = false;passing3 = [passing3, 1];}else {if(_valid4){valid10 = true;passing3 = 1;}}if(!valid10){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}else {errors = _errs34;if(vErrors !== null){if(_errs34){vErrors.length = _errs34;}else {vErrors = null;}}}var valid9 = _errs33 === errors;}}}}}else {const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}}var _valid1 = _errs29 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 2];}else {if(_valid1){valid4 = true;passing0 = 2;}const _errs39 = errors;if(errors === _errs39){if(Array.isArray(data1)){if(data1.length > 2){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}else {if(data1.length < 2){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}else {const len3 = data1.length;if(len3 > 0){let data8 = data1[0];const _errs41 = errors;if(typeof data8 !== "string"){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}if("crm:E89_Propositional_Object" !== data8){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}var valid11 = _errs41 === errors;}if(valid11){if(len3 > 1){let data9 = data1[1];const _errs43 = errors;const _errs44 = errors;let valid12 = false;let passing4 = null;const _errs45 = errors;if(typeof data9 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("frbroo:F1" !== data9){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var _valid5 = _errs45 === errors;if(_valid5){valid12 = true;passing4 = 0;}const _errs47 = errors;if(typeof data9 !== "string"){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}if("wikidata:Q15306849" !== data9){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var _valid5 = _errs47 === errors;if(_valid5 && valid12){valid12 = false;passing4 = [passing4, 1];}else {if(_valid5){valid12 = true;passing4 = 1;}}if(!valid12){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs44;if(vErrors !== null){if(_errs44){vErrors.length = _errs44;}else {vErrors = null;}}}var valid11 = _errs43 === errors;}}}}}else {const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}}var _valid1 = _errs39 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 3];}else {if(_valid1){valid4 = true;passing0 = 3;}const _errs49 = errors;const _errs50 = errors;let valid13 = false;let passing5 = null;const _errs51 = errors;if(typeof data1 !== "string"){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}if("crm:E18_Physical_Thing" !== data1){const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}var _valid6 = _errs51 === errors;if(_valid6){valid13 = true;passing5 = 0;}const _errs53 = errors;if(errors === _errs53){if(Array.isArray(data1)){if(data1.length > 2){const err42 = {};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {if(data1.length < 2){const err43 = {};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}else {const len4 = data1.length;if(len4 > 0){let data10 = data1[0];const _errs55 = errors;if(typeof data10 !== "string"){const err44 = {};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}if("crm:E18_Physical_Thing" !== data10){const err45 = {};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}var valid14 = _errs55 === errors;}if(valid14){if(len4 > 1){let data11 = data1[1];const _errs57 = errors;if(typeof data11 !== "string"){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("wikidata:Q15831596" !== data11){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid14 = _errs57 === errors;}}}}}else {const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}}var _valid6 = _errs53 === errors;if(_valid6 && valid13){valid13 = false;passing5 = [passing5, 1];}else {if(_valid6){valid13 = true;passing5 = 1;}}if(!valid13){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}else {errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}}var _valid1 = _errs49 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 4];}else {if(_valid1){valid4 = true;passing0 = 4;}const _errs59 = errors;const _errs60 = errors;let valid15 = false;let passing6 = null;const _errs61 = errors;if(typeof data1 !== "string"){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("crm:E28_Conceptual_Object" !== data1){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var _valid7 = _errs61 === errors;if(_valid7){valid15 = true;passing6 = 0;}const _errs63 = errors;if(errors === _errs63){if(Array.isArray(data1)){if(data1.length > 2){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data1.length < 2){const err53 = {};if(vErrors === null){vErrors = [err53];}else {vErrors.push(err53);}errors++;}else {const len5 = data1.length;if(len5 > 0){let data12 = data1[0];const _errs65 = errors;if(typeof data12 !== "string"){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("crm:E28_Conceptual_Object" !== data12){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid16 = _errs65 === errors;}if(valid16){if(len5 > 1){let data13 = data1[1];const _errs67 = errors;if(typeof data13 !== "string"){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if("wikidata:Q15831596" !== data13){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid16 = _errs67 === errors;}}}}}else {const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}}var _valid7 = _errs63 === errors;if(_valid7 && valid15){valid15 = false;passing6 = [passing6, 1];}else {if(_valid7){valid15 = true;passing6 = 1;}}if(!valid15){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}else {errors = _errs60;if(vErrors !== null){if(_errs60){vErrors.length = _errs60;}else {vErrors = null;}}}var _valid1 = _errs59 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 5];}else {if(_valid1){valid4 = true;passing0 = 5;}const _errs69 = errors;if(errors === _errs69){if(Array.isArray(data1)){if(data1.length > 2){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data1.length < 2){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {const len6 = data1.length;if(len6 > 0){let data14 = data1[0];const _errs71 = errors;if(typeof data14 !== "string"){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if("xsd:date" !== data14){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var valid17 = _errs71 === errors;}if(valid17){if(len6 > 1){let data15 = data1[1];const _errs73 = errors;if(typeof data15 !== "string"){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if("crm:E52_Time-Span" !== data15){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var valid17 = _errs73 === errors;}}}}}else {const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}var _valid1 = _errs69 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 6];}else {if(_valid1){valid4 = true;passing0 = 6;}const _errs75 = errors;if(errors === _errs75){if(Array.isArray(data1)){if(data1.length > 2){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}else {if(data1.length < 2){const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}else {const len7 = data1.length;if(len7 > 0){let data16 = data1[0];const _errs77 = errors;if(typeof data16 !== "string"){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if("YET TO BE DEFINED EVENT CLASS" !== data16){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}var valid18 = _errs77 === errors;}if(valid18){if(len7 > 1){let data17 = data1[1];const _errs79 = errors;const _errs80 = errors;let valid19 = false;let passing7 = null;const _errs81 = errors;if(typeof data17 !== "string"){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("crm:E5_Event" !== data17){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}var _valid8 = _errs81 === errors;if(_valid8){valid19 = true;passing7 = 0;}const _errs83 = errors;if(typeof data17 !== "string"){const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}if("crm:E89_Propositional_Object" !== data17){const err74 = {};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}var _valid8 = _errs83 === errors;if(_valid8 && valid19){valid19 = false;passing7 = [passing7, 1];}else {if(_valid8){valid19 = true;passing7 = 1;}}if(!valid19){const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}else {errors = _errs80;if(vErrors !== null){if(_errs80){vErrors.length = _errs80;}else {vErrors = null;}}}var valid18 = _errs79 === errors;}}}}}else {const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}}var _valid1 = _errs75 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 7];}else {if(_valid1){valid4 = true;passing0 = 7;}}}}}}}}if(!valid4){const err77 = {};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}}}else {const err78 = {};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}}}else {const err79 = {};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs85 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data18 = data.motivation;if(Array.isArray(data18)){if(data18.length > 2){const err80 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if(data18.length < 2){const err81 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}const len8 = data18.length;if(len8 > 0){let data19 = data18[0];if(typeof data19 !== "string"){const err82 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if("identifying" !== data19){const err83 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}}if(len8 > 1){let data20 = data18[1];if(typeof data20 !== "string"){const err84 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if("crm:E55_Type" !== data20){const err85 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}}else {const err87 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}var _valid0 = _errs85 === errors;valid1 = _valid0;ifClause0 = "then";}else {const _errs93 = errors;const _errs94 = errors;let valid22 = true;const _errs95 = errors;if(errors === _errs95){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data21 = data.body;const _errs97 = errors;if(errors === _errs97){if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.entityType !== undefined){let data22 = data21.entityType;if(typeof data22 !== "string"){const err88 = {};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if("crm:E33_Linguistic_Object" !== data22){const err89 = {};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}}}else {const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}var _valid9 = _errs95 === errors;errors = _errs94;if(vErrors !== null){if(_errs94){vErrors.length = _errs94;}else {vErrors = null;}}let ifClause1;if(_valid9){const _errs101 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data23 = data.motivation;if(Array.isArray(data23)){if(data23.length > 2){const err92 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if(data23.length < 2){const err93 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}const len9 = data23.length;if(len9 > 0){let data24 = data23[0];if(typeof data24 !== "string"){const err94 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if("describing" !== data24){const err95 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}}if(len9 > 1){let data25 = data23[1];if(typeof data25 !== "string"){const err96 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if("crm:E55_Type" !== data25){const err97 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}else {const err98 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}else {const err99 = {instancePath,schemaPath:"#/allOf/0/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}var _valid9 = _errs101 === errors;valid22 = _valid9;ifClause1 = "then";}else {const _errs109 = errors;const _errs110 = errors;let valid27 = true;const _errs111 = errors;if(errors === _errs111){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data26 = data.body;const _errs113 = errors;if(errors === _errs113){if(data26 && typeof data26 == "object" && !Array.isArray(data26)){if(data26.entityType !== undefined){let data27 = data26.entityType;const _errs115 = errors;if(errors === _errs115){if(Array.isArray(data27)){if(data27.length > 2){const err100 = {};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {if(data27.length < 2){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {const len10 = data27.length;if(len10 > 0){let data28 = data27[0];const _errs117 = errors;if(typeof data28 !== "string"){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if("fabio:Correction" !== data28){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}var valid30 = _errs117 === errors;}if(valid30){if(len10 > 1){let data29 = data27[1];const _errs119 = errors;if(typeof data29 !== "string"){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if("crm:E33_Linguistic_Object" !== data29){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var valid30 = _errs119 === errors;}}}}}else {const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}}}else {const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}}}else {const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}var _valid10 = _errs111 === errors;errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}let ifClause2;if(_valid10){const _errs121 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data30 = data.motivation;if(Array.isArray(data30)){if(data30.length > 2){const err109 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}if(data30.length < 2){const err110 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}const len11 = data30.length;if(len11 > 0){let data31 = data30[0];if(typeof data31 !== "string"){const err111 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if("correcting" !== data31){const err112 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}if(len11 > 1){let data32 = data30[1];if(typeof data32 !== "string"){const err113 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}if("crm:E55_Type" !== data32){const err114 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}}}else {const err115 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}}}else {const err116 = {instancePath,schemaPath:"#/allOf/0/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}var _valid10 = _errs121 === errors;valid27 = _valid10;ifClause2 = "then";}else {const _errs129 = errors;const _errs130 = errors;let valid33 = true;const _errs131 = errors;if(errors === _errs131){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data33 = data.body;const _errs133 = errors;if(errors === _errs133){if(data33 && typeof data33 == "object" && !Array.isArray(data33)){if(data33.entityType !== undefined){let data34 = data33.entityType;const _errs135 = errors;if(errors === _errs135){if(Array.isArray(data34)){if(data34.length > 2){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {if(data34.length < 2){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}else {const len12 = data34.length;if(len12 > 0){let data35 = data34[0];const _errs137 = errors;if(typeof data35 !== "string"){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}if("crm:E55_Type" !== data35){const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var valid36 = _errs137 === errors;}if(valid36){if(len12 > 1){let data36 = data34[1];const _errs139 = errors;if(typeof data36 !== "string"){const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if("crm:E33_Linguistic_Object" !== data36){const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}var valid36 = _errs139 === errors;}}}}}else {const err123 = {};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}}}else {const err124 = {};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}}else {const err125 = {};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}}var _valid11 = _errs131 === errors;errors = _errs130;if(vErrors !== null){if(_errs130){vErrors.length = _errs130;}else {vErrors = null;}}let ifClause3;if(_valid11){const _errs141 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data37 = data.motivation;if(Array.isArray(data37)){if(data37.length > 2){const err126 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(data37.length < 2){const err127 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}const len13 = data37.length;if(len13 > 0){let data38 = data37[0];if(typeof data38 !== "string"){const err128 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if("tagging" !== data38){const err129 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(len13 > 1){let data39 = data37[1];if(typeof data39 !== "string"){const err130 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if("crm:E55_Type" !== data39){const err131 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}}else {const err132 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}}}else {const err133 = {instancePath,schemaPath:"#/allOf/0/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}var _valid11 = _errs141 === errors;valid33 = _valid11;ifClause3 = "then";}else {const _errs149 = errors;const _errs150 = errors;let valid39 = true;const _errs151 = errors;if(errors === _errs151){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data40 = data.body;const _errs153 = errors;if(errors === _errs153){if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.entityType !== undefined){let data41 = data40.entityType;const _errs155 = errors;if(errors === _errs155){if(Array.isArray(data41)){if(data41.length > 2){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {if(data41.length < 2){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}else {const len14 = data41.length;if(len14 > 0){let data42 = data41[0];const _errs157 = errors;if(typeof data42 !== "string"){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if("crm:E55_Type" !== data42){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}var valid42 = _errs157 === errors;}if(valid42){if(len14 > 1){let data43 = data41[1];const _errs159 = errors;if(typeof data43 !== "string"){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if("crmdig:D1_Digital_Object" !== data43){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}var valid42 = _errs159 === errors;}}}}}else {const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}}}else {const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}}}else {const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}}var _valid12 = _errs151 === errors;errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}let ifClause4;if(_valid12){const _errs161 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data44 = data.motivation;if(Array.isArray(data44)){if(data44.length > 2){const err143 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if(data44.length < 2){const err144 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}const len15 = data44.length;if(len15 > 0){let data45 = data44[0];if(typeof data45 !== "string"){const err145 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if("classifying" !== data45){const err146 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "classifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(len15 > 1){let data46 = data44[1];if(typeof data46 !== "string"){const err147 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if("crm:E55_Type" !== data46){const err148 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}}else {const err150 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}var _valid12 = _errs161 === errors;valid39 = _valid12;ifClause4 = "then";}else {const _errs169 = errors;const _errs170 = errors;let valid45 = true;const _errs171 = errors;if(errors === _errs171){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data47 = data.body;const _errs173 = errors;if(errors === _errs173){if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.entityType !== undefined){let data48 = data47.entityType;if(typeof data48 !== "string"){const err151 = {};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if("crmdig:D1_Digital_Object" !== data48){const err152 = {};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}}}else {const err153 = {};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}}}else {const err154 = {};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}}var _valid13 = _errs171 === errors;errors = _errs170;if(vErrors !== null){if(_errs170){vErrors.length = _errs170;}else {vErrors = null;}}let ifClause5;if(_valid13){const _errs177 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data49 = data.motivation;if(Array.isArray(data49)){if(data49.length > 2){const err155 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(data49.length < 2){const err156 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}const len16 = data49.length;if(len16 > 0){let data50 = data49[0];if(typeof data50 !== "string"){const err157 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if("linking" !== data50){const err158 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}}if(len16 > 1){let data51 = data49[1];if(typeof data51 !== "string"){const err159 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if("crm:E55_Type" !== data51){const err160 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}}else {const err161 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}}}else {const err162 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}var _valid13 = _errs177 === errors;valid45 = _valid13;ifClause5 = "then";}else {const _errs185 = errors;const _errs186 = errors;let valid50 = true;const _errs187 = errors;if(errors === _errs187){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data52 = data.body;const _errs189 = errors;if(errors === _errs189){if(data52 && typeof data52 == "object" && !Array.isArray(data52)){if(data52.entityType !== undefined){let data53 = data52.entityType;const _errs191 = errors;if(errors === _errs191){if(Array.isArray(data53)){if(data53.length > 2){const err163 = {};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}else {if(data53.length < 2){const err164 = {};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}else {const len17 = data53.length;if(len17 > 0){let data54 = data53[0];const _errs193 = errors;if(typeof data54 !== "string"){const err165 = {};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if("cito:Citation" !== data54){const err166 = {};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}var valid53 = _errs193 === errors;}if(valid53){if(len17 > 1){let data55 = data53[1];const _errs195 = errors;if(typeof data55 !== "string"){const err167 = {};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if("crm:E73_Information_Object" !== data55){const err168 = {};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var valid53 = _errs195 === errors;}}}}}else {const err169 = {};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}}}else {const err170 = {};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}}}else {const err171 = {};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}var _valid14 = _errs187 === errors;errors = _errs186;if(vErrors !== null){if(_errs186){vErrors.length = _errs186;}else {vErrors = null;}}if(_valid14){const _errs197 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data56 = data.motivation;if(Array.isArray(data56)){if(data56.length > 2){const err172 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}if(data56.length < 2){const err173 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}const len18 = data56.length;if(len18 > 0){let data57 = data56[0];if(typeof data57 !== "string"){const err174 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if("citing" !== data57){const err175 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/items/0/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}}if(len18 > 1){let data58 = data56[1];if(typeof data58 !== "string"){const err176 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if("crm:E55_Type" !== data58){const err177 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}}}else {const err178 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}}else {const err179 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}var _valid14 = _errs197 === errors;valid50 = _valid14;}if(!valid50){const err180 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}var _valid13 = _errs185 === errors;valid45 = _valid13;ifClause5 = "else";}if(!valid45){const err181 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}var _valid12 = _errs169 === errors;valid39 = _valid12;ifClause4 = "else";}if(!valid39){const err182 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}var _valid11 = _errs149 === errors;valid33 = _valid11;ifClause3 = "else";}if(!valid33){const err183 = {instancePath,schemaPath:"#/allOf/0/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}var _valid10 = _errs129 === errors;valid27 = _valid10;ifClause2 = "else";}if(!valid27){const err184 = {instancePath,schemaPath:"#/allOf/0/else/else/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}var _valid9 = _errs109 === errors;valid22 = _valid9;ifClause1 = "else";}if(!valid22){const err185 = {instancePath,schemaPath:"#/allOf/0/else/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}var _valid0 = _errs93 === errors;valid1 = _valid0;ifClause0 = "else";}if(!valid1){const err186 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data["@context"] === undefined){const err187 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "@context"},message:"must have required property '"+"@context"+"'"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(data.id === undefined){const err188 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if(data.type === undefined){const err189 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if(data.motivation === undefined){const err190 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "motivation"},message:"must have required property '"+"motivation"+"'"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if(data.created === undefined){const err191 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "created"},message:"must have required property '"+"created"+"'"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}if(data.generator === undefined){const err192 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "generator"},message:"must have required property '"+"generator"+"'"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}if(data.target === undefined){const err193 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}if(data.body === undefined){const err194 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "body"},message:"must have required property '"+"body"+"'"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if(data.status === undefined){const err195 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "status"},message:"must have required property '"+"status"+"'"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}for(const key0 in data){if(!(func2.call(schema11.properties, key0))){const err196 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}}if(data["@context"] !== undefined){let data59 = data["@context"];if(Array.isArray(data59)){if(data59.length > 2){const err197 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(data59.length < 2){const err198 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}const len19 = data59.length;if(len19 > 0){let data60 = data59[0];if(typeof data60 !== "string"){const err199 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if("http://www.w3.org/ns/anno.jsonld" !== data60){const err200 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/const",keyword:"const",params:{allowedValue: "http://www.w3.org/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(len19 > 1){let data61 = data59[1];if(typeof data61 !== "string"){const err201 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}if("https://wa.lincsproject.ca/v1/ns/anno.jsonld" !== data61){const err202 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/const",keyword:"const",params:{allowedValue: "https://wa.lincsproject.ca/v1/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}}else {const err203 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}if(data.id !== undefined){let data62 = data.id;if(typeof data62 === "string"){if(!(formats0(data62))){const err204 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}}else {const err205 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}}if(data.type !== undefined){let data63 = data.type;if(Array.isArray(data63)){if(data63.length > 2){const err206 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}if(data63.length < 2){const err207 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}const len20 = data63.length;if(len20 > 0){let data64 = data63[0];if(typeof data64 !== "string"){const err208 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}if("Annotation" !== data64){const err209 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Annotation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}if(len20 > 1){let data65 = data63[1];if(typeof data65 !== "string"){const err210 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}if("crm:E33_Linguistic_Object" !== data65){const err211 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}}else {const err212 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}}if(data.motivation !== undefined){let data66 = data.motivation;if(Array.isArray(data66)){if(data66.length > 2){const err213 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}if(data66.length < 2){const err214 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}const len21 = data66.length;if(len21 > 0){let data67 = data66[0];if(typeof data67 !== "string"){const err215 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/properties/motivation/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if(!(((((((data67 === "identifying") || (data67 === "describing")) || (data67 === "correcting")) || (data67 === "tagging")) || (data67 === "classifying")) || (data67 === "linking")) || (data67 === "citing"))){const err216 = {instancePath:instancePath+"/motivation/0",schemaPath:"#/properties/motivation/items/0/enum",keyword:"enum",params:{allowedValues: schema11.properties.motivation.items[0].enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(len21 > 1){let data68 = data66[1];if(typeof data68 !== "string"){const err217 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/properties/motivation/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}if("crm:E55_Type" !== data68){const err218 = {instancePath:instancePath+"/motivation/1",schemaPath:"#/properties/motivation/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}}else {const err219 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}if(data.created !== undefined){let data69 = data.created;if(typeof data69 === "string"){if(!(formats2.validate(data69))){const err220 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}else {const err221 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}if(data.modified !== undefined){let data70 = data.modified;if(typeof data70 === "string"){if(!(formats2.validate(data70))){const err222 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}}else {const err223 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(data.creator !== undefined){let data71 = data.creator;if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.id === undefined){const err224 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}if(data71.type === undefined){const err225 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}if(data71.name === undefined){const err226 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}if(data71.id !== undefined){let data72 = data71.id;if(typeof data72 === "string"){if(!(formats0(data72))){const err227 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}}else {const err228 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}if(data71.type !== undefined){let data73 = data71.type;if(typeof data73 !== "string"){const err229 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}if("crm:E21_Person" !== data73){const err230 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}}if(data71.name !== undefined){let data74 = data71.name;if(typeof data74 === "string"){if(func3(data74) < 1){const err231 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}else {const err232 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/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+"/creator",schemaPath:"defs.jsonld#/definitions/creator/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}if(data.contributor !== undefined){let data75 = data.contributor;if(Array.isArray(data75)){if(data75.length < 1){const err234 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}const len22 = data75.length;for(let i0=0; i0<len22; i0++){let data76 = data75[i0];if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.id === undefined){const err235 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if(data76.type === undefined){const err236 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}if(data76.name === undefined){const err237 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}if(data76.id !== undefined){let data77 = data76.id;if(typeof data77 === "string"){if(!(formats0(data77))){const err238 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}}else {const err239 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/creator/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}}if(data76.type !== undefined){let data78 = data76.type;if(typeof data78 !== "string"){const err240 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}if("crm:E21_Person" !== data78){const err241 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/creator/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}}if(data76.name !== undefined){let data79 = data76.name;if(typeof data79 === "string"){if(func3(data79) < 1){const err242 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}}else {const err243 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/creator/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}}}else {const err244 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/creator/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}}}else {const err245 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}}if(data.generator !== undefined){let data80 = data.generator;if(data80 && typeof data80 == "object" && !Array.isArray(data80)){if(data80.id === undefined){const err246 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}if(data80.type === undefined){const err247 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}if(data80.label === undefined){const err248 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "label"},message:"must have required property '"+"label"+"'"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}if(data80.id !== undefined){let data81 = data80.id;if(typeof data81 === "string"){if(!(formats0(data81))){const err249 = {instancePath:instancePath+"/generator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}else {const err250 = {instancePath:instancePath+"/generator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}if(data80.type !== undefined){let data82 = data80.type;if(Array.isArray(data82)){if(data82.length > 2){const err251 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}if(data82.length < 2){const err252 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}const len23 = data82.length;if(len23 > 0){let data83 = data82[0];if(typeof data83 !== "string"){const err253 = {instancePath:instancePath+"/generator/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}if("Software" !== data83){const err254 = {instancePath:instancePath+"/generator/type/0",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/0/const",keyword:"const",params:{allowedValue: "Software"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}if(len23 > 1){let data84 = data82[1];if(typeof data84 !== "string"){const err255 = {instancePath:instancePath+"/generator/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if("crm:P16_used_specific_object" !== data84){const err256 = {instancePath:instancePath+"/generator/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:P16_used_specific_object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}}else {const err257 = {instancePath:instancePath+"/generator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}}if(data80.label !== undefined){let data85 = data80.label;if(typeof data85 === "string"){if(func3(data85) < 1){const err258 = {instancePath:instancePath+"/generator/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}else {const err259 = {instancePath:instancePath+"/generator/label",schemaPath:"defs.jsonld#/definitions/software/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}if(data80.softwareVersion !== undefined){if(typeof data80.softwareVersion !== "string"){const err260 = {instancePath:instancePath+"/generator/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}}else {const err261 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}if(data.target !== undefined){if(!(validate12(data.target, {instancePath:instancePath+"/target",parentData:data,parentDataProperty:"target",rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}}if(data.body !== undefined){let data88 = data.body;const _errs267 = errors;let valid69 = false;let passing8 = null;const _errs268 = errors;if(!(validate14(data88, {instancePath:instancePath+"/body",parentData:data,parentDataProperty:"body",rootData}))){vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);errors = vErrors.length;}var _valid15 = _errs268 === errors;if(_valid15){valid69 = true;passing8 = 0;}const _errs269 = errors;const _errs272 = errors;let valid71 = false;const _errs273 = errors;const _errs274 = errors;let valid72 = true;const _errs275 = errors;if(errors === _errs275){if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.entityType !== undefined){let data89 = data88.entityType;const _errs278 = errors;let valid74 = false;const _errs279 = errors;if("crm:E33_Linguistic_Object" !== data89){const err262 = {};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}var _valid18 = _errs279 === errors;valid74 = valid74 || _valid18;if(!valid74){const _errs280 = errors;if(errors === _errs280){if(Array.isArray(data89)){if(data89.length > 2){const err263 = {};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}else {if(data89.length < 2){const err264 = {};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}else {const len24 = data89.length;if(len24 > 0){const _errs282 = errors;if("xsd:date" !== data89[0]){const err265 = {};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}var valid75 = _errs282 === errors;}if(valid75){if(len24 > 1){const _errs283 = errors;if("crm:E52_Time-Span" !== data89[1]){const err266 = {};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}var valid75 = _errs283 === errors;}}}}}else {const err267 = {};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}}var _valid18 = _errs280 === errors;valid74 = valid74 || _valid18;if(!valid74){const _errs284 = errors;if(errors === _errs284){if(Array.isArray(data89)){if(data89.length > 2){const err268 = {};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}else {if(data89.length < 2){const err269 = {};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}else {const len25 = data89.length;if(len25 > 0){const _errs286 = errors;if("fabio:Correction" !== data89[0]){const err270 = {};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}var valid76 = _errs286 === errors;}if(valid76){if(len25 > 1){const _errs287 = errors;if("crm:E33_Linguistic_Object" !== data89[1]){const err271 = {};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}var valid76 = _errs287 === errors;}}}}}else {const err272 = {};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}}var _valid18 = _errs284 === errors;valid74 = valid74 || _valid18;if(!valid74){const _errs288 = errors;if(errors === _errs288){if(Array.isArray(data89)){if(data89.length > 2){const err273 = {};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}else {if(data89.length < 2){const err274 = {};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}else {const len26 = data89.length;if(len26 > 0){const _errs290 = errors;if("crm:E55_Type" !== data89[0]){const err275 = {};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}var valid77 = _errs290 === errors;}if(valid77){if(len26 > 1){const _errs291 = errors;if("crm:E33_Linguistic_Object" !== data89[1]){const err276 = {};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}var valid77 = _errs291 === errors;}}}}}else {const err277 = {};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}var _valid18 = _errs288 === errors;valid74 = valid74 || _valid18;}}}if(!valid74){const err278 = {};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}else {errors = _errs278;if(vErrors !== null){if(_errs278){vErrors.length = _errs278;}else {vErrors = null;}}}}}else {const err279 = {};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}var _valid17 = _errs275 === errors;errors = _errs274;if(vErrors !== null){if(_errs274){vErrors.length = _errs274;}else {vErrors = null;}}if(_valid17){const _errs292 = errors;const _errs294 = errors;let valid78 = true;const _errs295 = errors;if(errors === _errs295){if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.entityType !== undefined){let data96 = data88.entityType;const _errs297 = errors;if(errors === _errs297){if(Array.isArray(data96)){if(data96.length > 2){const err280 = {};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}else {if(data96.length < 2){const err281 = {};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}else {const len27 = data96.length;if(len27 > 0){const _errs299 = errors;if("xsd:date" !== data96[0]){const err282 = {};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}var valid80 = _errs299 === errors;}if(valid80){if(len27 > 1){const _errs300 = errors;if("crm:E52_Time-Span" !== data96[1]){const err283 = {};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var valid80 = _errs300 === errors;}}}}}else {const err284 = {};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}}}}else {const err285 = {};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}}var _valid19 = _errs295 === errors;errors = _errs294;if(vErrors !== null){if(_errs294){vErrors.length = _errs294;}else {vErrors = null;}}let ifClause6;if(_valid19){const _errs301 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.value !== undefined){let data99 = data88.value;if(typeof data99 === "string"){if(!pattern0.test(data99)){const err286 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}else {const err287 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}}else {const err288 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}var _valid19 = _errs301 === errors;valid78 = _valid19;ifClause6 = "then";}else {const _errs305 = errors;if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.value !== undefined){if(typeof data88.value !== "string"){const err289 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}}}else {const err290 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}var _valid19 = _errs305 === errors;valid78 = _valid19;ifClause6 = "else";}if(!valid78){const err291 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause6},message:"must match \""+ifClause6+"\" schema"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.type === undefined){const err292 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}if(data88.value === undefined){const err293 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}if(data88.type !== undefined){let data101 = data88.type;if(typeof data101 !== "string"){const err294 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}if("TextualBody" !== data101){const err295 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}}}else {const err296 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}var _valid17 = _errs292 === errors;valid72 = _valid17;}if(!valid72){const err297 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}var _valid16 = _errs273 === errors;valid71 = valid71 || _valid16;if(!valid71){const err298 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}else {errors = _errs272;if(vErrors !== null){if(_errs272){vErrors.length = _errs272;}else {vErrors = null;}}}if(data88 && typeof data88 == "object" && !Array.isArray(data88)){if(data88.id === undefined){const err299 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}if(data88.entityType === undefined){const err300 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}for(const key1 in data88){if(!(func2.call(schema35.properties, key1))){const err301 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}if(data88.id !== undefined){let data102 = data88.id;if(typeof data102 === "string"){if(!(formats0(data102))){const err302 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}}else {const err303 = {instancePath:instancePath+"/body/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}if(data88.type !== undefined){let data103 = data88.type;if(typeof data103 !== "string"){const err304 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}if("TextualBody" !== data103){const err305 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}}if(data88.entityType !== undefined){let data104 = data88.entityType;const _errs317 = errors;let valid85 = false;let passing9 = null;const _errs318 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err306 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}if(data104.length < 2){const err307 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}const len28 = data104.length;if(len28 > 0){let data105 = data104[0];if(typeof data105 !== "string"){const err308 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}if("Person" !== data105){const err309 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/const",keyword:"const",params:{allowedValue: "Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}if(len28 > 1){let data106 = data104[1];const _errs323 = errors;let valid87 = false;let passing10 = null;const _errs324 = errors;if(typeof data106 !== "string"){const err310 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}if("crm:E21_Person" !== data106){const err311 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}var _valid21 = _errs324 === errors;if(_valid21){valid87 = true;passing10 = 0;}const _errs326 = errors;if(typeof data106 !== "string"){const err312 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}if("crm:E89_Propositional_Object" !== data106){const err313 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}var _valid21 = _errs326 === errors;if(_valid21 && valid87){valid87 = false;passing10 = [passing10, 1];}else {if(_valid21){valid87 = true;passing10 = 1;}}if(!valid87){const err314 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing10},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}else {errors = _errs323;if(vErrors !== null){if(_errs323){vErrors.length = _errs323;}else {vErrors = null;}}}}}else {const err315 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err315];}else {vErrors.push(err315);}errors++;}var _valid20 = _errs318 === errors;if(_valid20){valid85 = true;passing9 = 0;}const _errs328 = errors;const _errs329 = errors;let valid88 = false;let passing11 = null;const _errs330 = errors;if(typeof data104 !== "string"){const err316 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err316];}else {vErrors.push(err316);}errors++;}if("cwrc:place" !== data104){const err317 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}var _valid22 = _errs330 === errors;if(_valid22){valid88 = true;passing11 = 0;}const _errs332 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err318 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}if(data104.length < 2){const err319 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}const len29 = data104.length;if(len29 > 0){let data107 = data104[0];if(typeof data107 !== "string"){const err320 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}if("cwrc:place" !== data107){const err321 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}}if(len29 > 1){let data108 = data104[1];if(typeof data108 !== "string"){const err322 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}if("crm:E89_Propositional_Object" !== data108){const err323 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}}}else {const err324 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}var _valid22 = _errs332 === errors;if(_valid22 && valid88){valid88 = false;passing11 = [passing11, 1];}else {if(_valid22){valid88 = true;passing11 = 1;}}if(!valid88){const err325 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}else {errors = _errs329;if(vErrors !== null){if(_errs329){vErrors.length = _errs329;}else {vErrors = null;}}}var _valid20 = _errs328 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 1];}else {if(_valid20){valid85 = true;passing9 = 1;}const _errs338 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err326 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}if(data104.length < 2){const err327 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}const len30 = data104.length;if(len30 > 0){let data109 = data104[0];if(typeof data109 !== "string"){const err328 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}if("foaf:Organization" !== data109){const err329 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}}if(len30 > 1){let data110 = data104[1];const _errs343 = errors;let valid91 = false;let passing12 = null;const _errs344 = errors;if(typeof data110 !== "string"){const err330 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}if("crm:E74_Group" !== data110){const err331 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}var _valid23 = _errs344 === errors;if(_valid23){valid91 = true;passing12 = 0;}const _errs346 = errors;if(typeof data110 !== "string"){const err332 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if("crm:E89_Propositional_Object" !== data110){const err333 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}var _valid23 = _errs346 === errors;if(_valid23 && valid91){valid91 = false;passing12 = [passing12, 1];}else {if(_valid23){valid91 = true;passing12 = 1;}}if(!valid91){const err334 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}else {errors = _errs343;if(vErrors !== null){if(_errs343){vErrors.length = _errs343;}else {vErrors = null;}}}}}else {const err335 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}var _valid20 = _errs338 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 2];}else {if(_valid20){valid85 = true;passing9 = 2;}const _errs348 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err336 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}if(data104.length < 2){const err337 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}const len31 = data104.length;if(len31 > 0){let data111 = data104[0];if(typeof data111 !== "string"){const err338 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}if("crm:E89_Propositional_Object" !== data111){const err339 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}}if(len31 > 1){let data112 = data104[1];const _errs353 = errors;let valid93 = false;let passing13 = null;const _errs354 = errors;if(typeof data112 !== "string"){const err340 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}if("frbroo:F1" !== data112){const err341 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}var _valid24 = _errs354 === errors;if(_valid24){valid93 = true;passing13 = 0;}const _errs356 = errors;if(typeof data112 !== "string"){const err342 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}if("wikidata:Q15306849" !== data112){const err343 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}var _valid24 = _errs356 === errors;if(_valid24 && valid93){valid93 = false;passing13 = [passing13, 1];}else {if(_valid24){valid93 = true;passing13 = 1;}}if(!valid93){const err344 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing13},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}else {errors = _errs353;if(vErrors !== null){if(_errs353){vErrors.length = _errs353;}else {vErrors = null;}}}}}else {const err345 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}var _valid20 = _errs348 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 3];}else {if(_valid20){valid85 = true;passing9 = 3;}const _errs358 = errors;const _errs359 = errors;let valid94 = false;let passing14 = null;const _errs360 = errors;if(typeof data104 !== "string"){const err346 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}if("crm:E18_Physical_Thing" !== data104){const err347 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}var _valid25 = _errs360 === errors;if(_valid25){valid94 = true;passing14 = 0;}const _errs362 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err348 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}if(data104.length < 2){const err349 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}const len32 = data104.length;if(len32 > 0){let data113 = data104[0];if(typeof data113 !== "string"){const err350 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}if("crm:E18_Physical_Thing" !== data113){const err351 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}}if(len32 > 1){let data114 = data104[1];if(typeof data114 !== "string"){const err352 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}if("wikidata:Q15831596" !== data114){const err353 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}}}else {const err354 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}var _valid25 = _errs362 === errors;if(_valid25 && valid94){valid94 = false;passing14 = [passing14, 1];}else {if(_valid25){valid94 = true;passing14 = 1;}}if(!valid94){const err355 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing14},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}else {errors = _errs359;if(vErrors !== null){if(_errs359){vErrors.length = _errs359;}else {vErrors = null;}}}var _valid20 = _errs358 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 4];}else {if(_valid20){valid85 = true;passing9 = 4;}const _errs368 = errors;const _errs369 = errors;let valid96 = false;let passing15 = null;const _errs370 = errors;if(typeof data104 !== "string"){const err356 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}if("crm:E28_Conceptual_Object" !== data104){const err357 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}var _valid26 = _errs370 === errors;if(_valid26){valid96 = true;passing15 = 0;}const _errs372 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err358 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}if(data104.length < 2){const err359 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}const len33 = data104.length;if(len33 > 0){let data115 = data104[0];if(typeof data115 !== "string"){const err360 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}if("crm:E28_Conceptual_Object" !== data115){const err361 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}if(len33 > 1){let data116 = data104[1];if(typeof data116 !== "string"){const err362 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}if("wikidata:Q15831596" !== data116){const err363 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}}}else {const err364 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}var _valid26 = _errs372 === errors;if(_valid26 && valid96){valid96 = false;passing15 = [passing15, 1];}else {if(_valid26){valid96 = true;passing15 = 1;}}if(!valid96){const err365 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing15},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}else {errors = _errs369;if(vErrors !== null){if(_errs369){vErrors.length = _errs369;}else {vErrors = null;}}}var _valid20 = _errs368 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 5];}else {if(_valid20){valid85 = true;passing9 = 5;}const _errs378 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err366 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}if(data104.length < 2){const err367 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}const len34 = data104.length;if(len34 > 0){let data117 = data104[0];if(typeof data117 !== "string"){const err368 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if("cito:Citation" !== data117){const err369 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}}if(len34 > 1){let data118 = data104[1];if(typeof data118 !== "string"){const err370 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}if("crm:E73_Information_Object" !== data118){const err371 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}}}else {const err372 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}var _valid20 = _errs378 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 6];}else {if(_valid20){valid85 = true;passing9 = 6;}const _errs384 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err373 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}if(data104.length < 2){const err374 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}const len35 = data104.length;if(len35 > 0){let data119 = data104[0];if(typeof data119 !== "string"){const err375 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}if("xsd:date" !== data119){const err376 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}}if(len35 > 1){let data120 = data104[1];if(typeof data120 !== "string"){const err377 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err377];}else {vErrors.push(err377);}errors++;}if("crm:E52_Time-Span" !== data120){const err378 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err378];}else {vErrors.push(err378);}errors++;}}}else {const err379 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}var _valid20 = _errs384 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 7];}else {if(_valid20){valid85 = true;passing9 = 7;}const _errs390 = errors;if(typeof data104 !== "string"){const err380 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}if("crm:E33_Linguistic_Object" !== data104){const err381 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}var _valid20 = _errs390 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 8];}else {if(_valid20){valid85 = true;passing9 = 8;}const _errs392 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err382 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err382];}else {vErrors.push(err382);}errors++;}if(data104.length < 2){const err383 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}const len36 = data104.length;if(len36 > 0){let data121 = data104[0];if(typeof data121 !== "string"){const err384 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}if("fabio:Correction" !== data121){const err385 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err385];}else {vErrors.push(err385);}errors++;}}if(len36 > 1){let data122 = data104[1];if(typeof data122 !== "string"){const err386 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}if("crm:E33_Linguistic_Object" !== data122){const err387 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}}}else {const err388 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}var _valid20 = _errs392 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 9];}else {if(_valid20){valid85 = true;passing9 = 9;}const _errs398 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err389 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}if(data104.length < 2){const err390 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err390];}else {vErrors.push(err390);}errors++;}const len37 = data104.length;if(len37 > 0){let data123 = data104[0];if(typeof data123 !== "string"){const err391 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err391];}else {vErrors.push(err391);}errors++;}if("crm:E55_Type" !== data123){const err392 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}}if(len37 > 1){let data124 = data104[1];if(typeof data124 !== "string"){const err393 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}if("crmdig:D1_Digital_Object" !== data124){const err394 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}}}else {const err395 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}var _valid20 = _errs398 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 10];}else {if(_valid20){valid85 = true;passing9 = 10;}const _errs404 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err396 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}if(data104.length < 2){const err397 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}const len38 = data104.length;if(len38 > 0){let data125 = data104[0];if(typeof data125 !== "string"){const err398 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}if("crm:E55_Type" !== data125){const err399 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}}if(len38 > 1){let data126 = data104[1];if(typeof data126 !== "string"){const err400 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}if("crm:E33_Linguistic_Object" !== data126){const err401 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}}}else {const err402 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}var _valid20 = _errs404 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 11];}else {if(_valid20){valid85 = true;passing9 = 11;}const _errs410 = errors;if(typeof data104 !== "string"){const err403 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}if("crmdig:D1_Digital_Object" !== data104){const err404 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}var _valid20 = _errs410 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 12];}else {if(_valid20){valid85 = true;passing9 = 12;}const _errs412 = errors;if(Array.isArray(data104)){if(data104.length > 2){const err405 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}if(data104.length < 2){const err406 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}const len39 = data104.length;if(len39 > 0){let data127 = data104[0];if(typeof data127 !== "string"){const err407 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}if("YET TO BE DEFINED EVENT CLASS" !== data127){const err408 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/0/const",keyword:"const",params:{allowedValue: "YET TO BE DEFINED EVENT CLASS"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}}if(len39 > 1){let data128 = data104[1];const _errs417 = errors;let valid104 = false;let passing16 = null;const _errs418 = errors;if(typeof data128 !== "string"){const err409 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err409];}else {vErrors.push(err409);}errors++;}if("crm:E5_Event" !== data128){const err410 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}var _valid27 = _errs418 === errors;if(_valid27){valid104 = true;passing16 = 0;}const _errs420 = errors;if(typeof data128 !== "string"){const err411 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}if("crm:E89_Propositional_Object" !== data128){const err412 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}var _valid27 = _errs420 === errors;if(_valid27 && valid104){valid104 = false;passing16 = [passing16, 1];}else {if(_valid27){valid104 = true;passing16 = 1;}}if(!valid104){const err413 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing16},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}else {errors = _errs417;if(vErrors !== null){if(_errs417){vErrors.length = _errs417;}else {vErrors = null;}}}}}else {const err414 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}var _valid20 = _errs412 === errors;if(_valid20 && valid85){valid85 = false;passing9 = [passing9, 13];}else {if(_valid20){valid85 = true;passing9 = 13;}}}}}}}}}}}}}}if(!valid85){const err415 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}else {errors = _errs317;if(vErrors !== null){if(_errs317){vErrors.length = _errs317;}else {vErrors = null;}}}}if(data88.additionalType !== undefined){let data129 = data88.additionalType;const _errs423 = errors;let valid105 = false;const _errs424 = errors;if(typeof data129 !== "string"){const err416 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}var _valid28 = _errs424 === errors;valid105 = valid105 || _valid28;if(!valid105){const _errs426 = errors;if(Array.isArray(data129)){const len40 = data129.length;for(let i1=0; i1<len40; i1++){if(typeof data129[i1] !== "string"){const err417 = {instancePath:instancePath+"/body/additionalType/" + i1,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}}}else {const err418 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}var _valid28 = _errs426 === errors;valid105 = valid105 || _valid28;}if(!valid105){const err419 = {instancePath:instancePath+"/body/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}else {errors = _errs423;if(vErrors !== null){if(_errs423){vErrors.length = _errs423;}else {vErrors = null;}}}}if(data88.value !== undefined){if(typeof data88.value !== "string"){const err420 = {instancePath:instancePath+"/body/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}}if(data88.certainty !== undefined){let data132 = data88.certainty;if(typeof data132 !== "string"){const err421 = {instancePath:instancePath+"/body/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}if(!((((data132 === "edit:qualityLow") || (data132 === "edit:qualityMedium")) || (data132 === "edit:qualityHigh")) || (data132 === "edit:qualityUnknown"))){const err422 = {instancePath:instancePath+"/body/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/enum",keyword:"enum",params:{allowedValues: schema35.properties.certainty.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}}if(data88.precision !== undefined){let data133 = data88.precision;if(typeof data133 !== "string"){const err423 = {instancePath:instancePath+"/body/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}if(!((((data133 === "edit:qualityLow") || (data133 === "edit:qualityMedium")) || (data133 === "edit:qualityHigh")) || (data133 === "edit:qualityUnknown"))){const err424 = {instancePath:instancePath+"/body/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/enum",keyword:"enum",params:{allowedValues: schema35.properties.precision.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}}if(data88.label !== undefined){let data134 = data88.label;if(typeof data134 === "string"){if(func3(data134) < 1){const err425 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}}else {const err426 = {instancePath:instancePath+"/body/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}}if(data88.description !== undefined){if(typeof data88.description !== "string"){const err427 = {instancePath:instancePath+"/body/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}}}else {const err428 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}var _valid15 = _errs269 === errors;if(_valid15 && valid69){valid69 = false;passing8 = [passing8, 1];}else {if(_valid15){valid69 = true;passing8 = 1;}const _errs440 = errors;if(Array.isArray(data88)){if(data88.length < 1){const err429 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}const len41 = data88.length;for(let i2=0; i2<len41; i2++){let data136 = data88[i2];const _errs445 = errors;let valid111 = false;const _errs446 = errors;const _errs447 = errors;let valid112 = true;const _errs448 = errors;if(errors === _errs448){if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(data136.entityType !== undefined){let data137 = data136.entityType;const _errs451 = errors;let valid114 = false;const _errs452 = errors;if("crm:E33_Linguistic_Object" !== data137){const err430 = {};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}var _valid31 = _errs452 === errors;valid114 = valid114 || _valid31;if(!valid114){const _errs453 = errors;if(errors === _errs453){if(Array.isArray(data137)){if(data137.length > 2){const err431 = {};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}else {if(data137.length < 2){const err432 = {};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}else {const len42 = data137.length;if(len42 > 0){const _errs455 = errors;if("xsd:date" !== data137[0]){const err433 = {};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}var valid115 = _errs455 === errors;}if(valid115){if(len42 > 1){const _errs456 = errors;if("crm:E52_Time-Span" !== data137[1]){const err434 = {};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}var valid115 = _errs456 === errors;}}}}}else {const err435 = {};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}}var _valid31 = _errs453 === errors;valid114 = valid114 || _valid31;if(!valid114){const _errs457 = errors;if(errors === _errs457){if(Array.isArray(data137)){if(data137.length > 2){const err436 = {};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}else {if(data137.length < 2){const err437 = {};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}else {const len43 = data137.length;if(len43 > 0){const _errs459 = errors;if("fabio:Correction" !== data137[0]){const err438 = {};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}var valid116 = _errs459 === errors;}if(valid116){if(len43 > 1){const _errs460 = errors;if("crm:E33_Linguistic_Object" !== data137[1]){const err439 = {};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}var valid116 = _errs460 === errors;}}}}}else {const err440 = {};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}}var _valid31 = _errs457 === errors;valid114 = valid114 || _valid31;if(!valid114){const _errs461 = errors;if(errors === _errs461){if(Array.isArray(data137)){if(data137.length > 2){const err441 = {};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}else {if(data137.length < 2){const err442 = {};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}else {const len44 = data137.length;if(len44 > 0){const _errs463 = errors;if("crm:E55_Type" !== data137[0]){const err443 = {};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}var valid117 = _errs463 === errors;}if(valid117){if(len44 > 1){const _errs464 = errors;if("crm:E33_Linguistic_Object" !== data137[1]){const err444 = {};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}var valid117 = _errs464 === errors;}}}}}else {const err445 = {};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}}var _valid31 = _errs461 === errors;valid114 = valid114 || _valid31;}}}if(!valid114){const err446 = {};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}else {errors = _errs451;if(vErrors !== null){if(_errs451){vErrors.length = _errs451;}else {vErrors = null;}}}}}else {const err447 = {};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}}var _valid30 = _errs448 === errors;errors = _errs447;if(vErrors !== null){if(_errs447){vErrors.length = _errs447;}else {vErrors = null;}}if(_valid30){const _errs465 = errors;const _errs467 = errors;let valid118 = true;const _errs468 = errors;if(errors === _errs468){if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(data136.entityType !== undefined){let data144 = data136.entityType;const _errs470 = errors;if(errors === _errs470){if(Array.isArray(data144)){if(data144.length > 2){const err448 = {};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}else {if(data144.length < 2){const err449 = {};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}else {const len45 = data144.length;if(len45 > 0){const _errs472 = errors;if("xsd:date" !== data144[0]){const err450 = {};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}var valid120 = _errs472 === errors;}if(valid120){if(len45 > 1){const _errs473 = errors;if("crm:E52_Time-Span" !== data144[1]){const err451 = {};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}var valid120 = _errs473 === errors;}}}}}else {const err452 = {};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}}}}else {const err453 = {};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}}var _valid32 = _errs468 === errors;errors = _errs467;if(vErrors !== null){if(_errs467){vErrors.length = _errs467;}else {vErrors = null;}}let ifClause7;if(_valid32){const _errs474 = errors;if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(data136.value !== undefined){let data147 = data136.value;if(typeof data147 === "string"){if(!pattern0.test(data147)){const err454 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/pattern",keyword:"pattern",params:{pattern: "^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"},message:"must match pattern \""+"^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)\\/(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2}(?:.\\d*)?)((-(\\d{2}):(\\d{2})|Z)?)$"+"\""};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}}else {const err455 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}}}else {const err456 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}var _valid32 = _errs474 === errors;valid118 = _valid32;ifClause7 = "then";}else {const _errs478 = errors;if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(data136.value !== undefined){if(typeof data136.value !== "string"){const err457 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}}}else {const err458 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}var _valid32 = _errs478 === errors;valid118 = _valid32;ifClause7 = "else";}if(!valid118){const err459 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause7},message:"must match \""+ifClause7+"\" schema"};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(data136.type === undefined){const err460 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}if(data136.value === undefined){const err461 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}if(data136.type !== undefined){let data149 = data136.type;if(typeof data149 !== "string"){const err462 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}if("TextualBody" !== data149){const err463 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}}}else {const err464 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}var _valid30 = _errs465 === errors;valid112 = _valid30;}if(!valid112){const err465 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}var _valid29 = _errs446 === errors;valid111 = valid111 || _valid29;if(!valid111){const err466 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}else {errors = _errs445;if(vErrors !== null){if(_errs445){vErrors.length = _errs445;}else {vErrors = null;}}}if(data136 && typeof data136 == "object" && !Array.isArray(data136)){if(data136.id === undefined){const err467 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}if(data136.entityType === undefined){const err468 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}for(const key2 in data136){if(!(func2.call(schema35.properties, key2))){const err469 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}}if(data136.id !== undefined){let data150 = data136.id;if(typeof data150 === "string"){if(!(formats0(data150))){const err470 = {instancePath:instancePath+"/body/" + i2+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}}else {const err471 = {instancePath:instancePath+"/body/" + i2+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}}if(data136.type !== undefined){let data151 = data136.type;if(typeof data151 !== "string"){const err472 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}if("TextualBody" !== data151){const err473 = {instancePath:instancePath+"/body/" + i2+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}}if(data136.entityType !== undefined){let data152 = data136.entityType;const _errs490 = errors;let valid125 = false;let passing17 = null;const _errs491 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err474 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}if(data152.length < 2){const err475 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}const len46 = data152.length;if(len46 > 0){let data153 = data152[0];if(typeof data153 !== "string"){const err476 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}if("Person" !== data153){const err477 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/0/const",keyword:"const",params:{allowedValue: "Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}}if(len46 > 1){let data154 = data152[1];const _errs496 = errors;let valid127 = false;let passing18 = null;const _errs497 = errors;if(typeof data154 !== "string"){const err478 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}if("crm:E21_Person" !== data154){const err479 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}var _valid34 = _errs497 === errors;if(_valid34){valid127 = true;passing18 = 0;}const _errs499 = errors;if(typeof data154 !== "string"){const err480 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}if("crm:E89_Propositional_Object" !== data154){const err481 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}var _valid34 = _errs499 === errors;if(_valid34 && valid127){valid127 = false;passing18 = [passing18, 1];}else {if(_valid34){valid127 = true;passing18 = 1;}}if(!valid127){const err482 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing18},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}else {errors = _errs496;if(vErrors !== null){if(_errs496){vErrors.length = _errs496;}else {vErrors = null;}}}}}else {const err483 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}var _valid33 = _errs491 === errors;if(_valid33){valid125 = true;passing17 = 0;}const _errs501 = errors;const _errs502 = errors;let valid128 = false;let passing19 = null;const _errs503 = errors;if(typeof data152 !== "string"){const err484 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}if("cwrc:place" !== data152){const err485 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}var _valid35 = _errs503 === errors;if(_valid35){valid128 = true;passing19 = 0;}const _errs505 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err486 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}if(data152.length < 2){const err487 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}const len47 = data152.length;if(len47 > 0){let data155 = data152[0];if(typeof data155 !== "string"){const err488 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}if("cwrc:place" !== data155){const err489 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "cwrc:place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}}if(len47 > 1){let data156 = data152[1];if(typeof data156 !== "string"){const err490 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}if("crm:E89_Propositional_Object" !== data156){const err491 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}}}else {const err492 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}var _valid35 = _errs505 === errors;if(_valid35 && valid128){valid128 = false;passing19 = [passing19, 1];}else {if(_valid35){valid128 = true;passing19 = 1;}}if(!valid128){const err493 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing19},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}else {errors = _errs502;if(vErrors !== null){if(_errs502){vErrors.length = _errs502;}else {vErrors = null;}}}var _valid33 = _errs501 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 1];}else {if(_valid33){valid125 = true;passing17 = 1;}const _errs511 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err494 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}if(data152.length < 2){const err495 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}const len48 = data152.length;if(len48 > 0){let data157 = data152[0];if(typeof data157 !== "string"){const err496 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}if("foaf:Organization" !== data157){const err497 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}}if(len48 > 1){let data158 = data152[1];const _errs516 = errors;let valid131 = false;let passing20 = null;const _errs517 = errors;if(typeof data158 !== "string"){const err498 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}if("crm:E74_Group" !== data158){const err499 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}var _valid36 = _errs517 === errors;if(_valid36){valid131 = true;passing20 = 0;}const _errs519 = errors;if(typeof data158 !== "string"){const err500 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}if("crm:E89_Propositional_Object" !== data158){const err501 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}var _valid36 = _errs519 === errors;if(_valid36 && valid131){valid131 = false;passing20 = [passing20, 1];}else {if(_valid36){valid131 = true;passing20 = 1;}}if(!valid131){const err502 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing20},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}else {errors = _errs516;if(vErrors !== null){if(_errs516){vErrors.length = _errs516;}else {vErrors = null;}}}}}else {const err503 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}var _valid33 = _errs511 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 2];}else {if(_valid33){valid125 = true;passing17 = 2;}const _errs521 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err504 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}if(data152.length < 2){const err505 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}const len49 = data152.length;if(len49 > 0){let data159 = data152[0];if(typeof data159 !== "string"){const err506 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}if("crm:E89_Propositional_Object" !== data159){const err507 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/0/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}}if(len49 > 1){let data160 = data152[1];const _errs526 = errors;let valid133 = false;let passing21 = null;const _errs527 = errors;if(typeof data160 !== "string"){const err508 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}if("frbroo:F1" !== data160){const err509 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}var _valid37 = _errs527 === errors;if(_valid37){valid133 = true;passing21 = 0;}const _errs529 = errors;if(typeof data160 !== "string"){const err510 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}if("wikidata:Q15306849" !== data160){const err511 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}var _valid37 = _errs529 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 1];}else {if(_valid37){valid133 = true;passing21 = 1;}}if(!valid133){const err512 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing21},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}else {errors = _errs526;if(vErrors !== null){if(_errs526){vErrors.length = _errs526;}else {vErrors = null;}}}}}else {const err513 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}var _valid33 = _errs521 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 3];}else {if(_valid33){valid125 = true;passing17 = 3;}const _errs531 = errors;const _errs532 = errors;let valid134 = false;let passing22 = null;const _errs533 = errors;if(typeof data152 !== "string"){const err514 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}if("crm:E18_Physical_Thing" !== data152){const err515 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}var _valid38 = _errs533 === errors;if(_valid38){valid134 = true;passing22 = 0;}const _errs535 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err516 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}if(data152.length < 2){const err517 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}const len50 = data152.length;if(len50 > 0){let data161 = data152[0];if(typeof data161 !== "string"){const err518 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}if("crm:E18_Physical_Thing" !== data161){const err519 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}}if(len50 > 1){let data162 = data152[1];if(typeof data162 !== "string"){const err520 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}if("wikidata:Q15831596" !== data162){const err521 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}}}else {const err522 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}var _valid38 = _errs535 === errors;if(_valid38 && valid134){valid134 = false;passing22 = [passing22, 1];}else {if(_valid38){valid134 = true;passing22 = 1;}}if(!valid134){const err523 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing22},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}else {errors = _errs532;if(vErrors !== null){if(_errs532){vErrors.length = _errs532;}else {vErrors = null;}}}var _valid33 = _errs531 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 4];}else {if(_valid33){valid125 = true;passing17 = 4;}const _errs541 = errors;const _errs542 = errors;let valid136 = false;let passing23 = null;const _errs543 = errors;if(typeof data152 !== "string"){const err524 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}if("crm:E28_Conceptual_Object" !== data152){const err525 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}var _valid39 = _errs543 === errors;if(_valid39){valid136 = true;passing23 = 0;}const _errs545 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err526 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}if(data152.length < 2){const err527 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}const len51 = data152.length;if(len51 > 0){let data163 = data152[0];if(typeof data163 !== "string"){const err528 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}if("crm:E28_Conceptual_Object" !== data163){const err529 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}}if(len51 > 1){let data164 = data152[1];if(typeof data164 !== "string"){const err530 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}if("wikidata:Q15831596" !== data164){const err531 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}}}else {const err532 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}var _valid39 = _errs545 === errors;if(_valid39 && valid136){valid136 = false;passing23 = [passing23, 1];}else {if(_valid39){valid136 = true;passing23 = 1;}}if(!valid136){const err533 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing23},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}else {errors = _errs542;if(vErrors !== null){if(_errs542){vErrors.length = _errs542;}else {vErrors = null;}}}var _valid33 = _errs541 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 5];}else {if(_valid33){valid125 = true;passing17 = 5;}const _errs551 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err534 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}if(data152.length < 2){const err535 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}const len52 = data152.length;if(len52 > 0){let data165 = data152[0];if(typeof data165 !== "string"){const err536 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}if("cito:Citation" !== data165){const err537 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}}if(len52 > 1){let data166 = data152[1];if(typeof data166 !== "string"){const err538 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}if("crm:E73_Information_Object" !== data166){const err539 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}}}else {const err540 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}var _valid33 = _errs551 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 6];}else {if(_valid33){valid125 = true;passing17 = 6;}const _errs557 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err541 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}if(data152.length < 2){const err542 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}const len53 = data152.length;if(len53 > 0){let data167 = data152[0];if(typeof data167 !== "string"){const err543 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err543];}else {vErrors.push(err543);}errors++;}if("xsd:date" !== data167){const err544 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}}if(len53 > 1){let data168 = data152[1];if(typeof data168 !== "string"){const err545 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err545];}else {vErrors.push(err545);}errors++;}if("crm:E52_Time-Span" !== data168){const err546 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err546];}else {vErrors.push(err546);}errors++;}}}else {const err547 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err547];}else {vErrors.push(err547);}errors++;}var _valid33 = _errs557 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 7];}else {if(_valid33){valid125 = true;passing17 = 7;}const _errs563 = errors;if(typeof data152 !== "string"){const err548 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err548];}else {vErrors.push(err548);}errors++;}if("crm:E33_Linguistic_Object" !== data152){const err549 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err549];}else {vErrors.push(err549);}errors++;}var _valid33 = _errs563 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 8];}else {if(_valid33){valid125 = true;passing17 = 8;}const _errs565 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err550 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}if(data152.length < 2){const err551 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err551];}else {vErrors.push(err551);}errors++;}const len54 = data152.length;if(len54 > 0){let data169 = data152[0];if(typeof data169 !== "string"){const err552 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err552];}else {vErrors.push(err552);}errors++;}if("fabio:Correction" !== data169){const err553 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err553];}else {vErrors.push(err553);}errors++;}}if(len54 > 1){let data170 = data152[1];if(typeof data170 !== "string"){const err554 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err554];}else {vErrors.push(err554);}errors++;}if("crm:E33_Linguistic_Object" !== data170){const err555 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err555];}else {vErrors.push(err555);}errors++;}}}else {const err556 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err556];}else {vErrors.push(err556);}errors++;}var _valid33 = _errs565 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 9];}else {if(_valid33){valid125 = true;passing17 = 9;}const _errs571 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err557 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err557];}else {vErrors.push(err557);}errors++;}if(data152.length < 2){const err558 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err558];}else {vErrors.push(err558);}errors++;}const len55 = data152.length;if(len55 > 0){let data171 = data152[0];if(typeof data171 !== "string"){const err559 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err559];}else {vErrors.push(err559);}errors++;}if("crm:E55_Type" !== data171){const err560 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}}if(len55 > 1){let data172 = data152[1];if(typeof data172 !== "string"){const err561 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err561];}else {vErrors.push(err561);}errors++;}if("crmdig:D1_Digital_Object" !== data172){const err562 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}}}else {const err563 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err563];}else {vErrors.push(err563);}errors++;}var _valid33 = _errs571 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 10];}else {if(_valid33){valid125 = true;passing17 = 10;}const _errs577 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err564 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err564];}else {vErrors.push(err564);}errors++;}if(data152.length < 2){const err565 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err565];}else {vErrors.push(err565);}errors++;}const len56 = data152.length;if(len56 > 0){let data173 = data152[0];if(typeof data173 !== "string"){const err566 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err566];}else {vErrors.push(err566);}errors++;}if("crm:E55_Type" !== data173){const err567 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}}if(len56 > 1){let data174 = data152[1];if(typeof data174 !== "string"){const err568 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}if("crm:E33_Linguistic_Object" !== data174){const err569 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err569];}else {vErrors.push(err569);}errors++;}}}else {const err570 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err570];}else {vErrors.push(err570);}errors++;}var _valid33 = _errs577 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 11];}else {if(_valid33){valid125 = true;passing17 = 11;}const _errs583 = errors;if(typeof data152 !== "string"){const err571 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err571];}else {vErrors.push(err571);}errors++;}if("crmdig:D1_Digital_Object" !== data152){const err572 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err572];}else {vErrors.push(err572);}errors++;}var _valid33 = _errs583 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 12];}else {if(_valid33){valid125 = true;passing17 = 12;}const _errs585 = errors;if(Array.isArray(data152)){if(data152.length > 2){const err573 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err573];}else {vErrors.push(err573);}errors++;}if(data152.length < 2){const err574 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}const len57 = data152.length;if(len57 > 0){let data175 = data152[0];if(typeof data175 !== "string"){const err575 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err575];}else {vErrors.push(err575);}errors++;}if("YET TO BE DEFINED EVENT CLASS" !== data175){const err576 = {instancePath:instancePath+"/body/" + i2+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/0/const",keyword:"const",params:{allowedValue: "YET TO BE DEFINED EVENT CLASS"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err576];}else {vErrors.push(err576);}errors++;}}if(len57 > 1){let data176 = data152[1];const _errs590 = errors;let valid144 = false;let passing24 = null;const _errs591 = errors;if(typeof data176 !== "string"){const err577 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err577];}else {vErrors.push(err577);}errors++;}if("crm:E5_Event" !== data176){const err578 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err578];}else {vErrors.push(err578);}errors++;}var _valid40 = _errs591 === errors;if(_valid40){valid144 = true;passing24 = 0;}const _errs593 = errors;if(typeof data176 !== "string"){const err579 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err579];}else {vErrors.push(err579);}errors++;}if("crm:E89_Propositional_Object" !== data176){const err580 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err580];}else {vErrors.push(err580);}errors++;}var _valid40 = _errs593 === errors;if(_valid40 && valid144){valid144 = false;passing24 = [passing24, 1];}else {if(_valid40){valid144 = true;passing24 = 1;}}if(!valid144){const err581 = {instancePath:instancePath+"/body/" + i2+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/items/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing24},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err581];}else {vErrors.push(err581);}errors++;}else {errors = _errs590;if(vErrors !== null){if(_errs590){vErrors.length = _errs590;}else {vErrors = null;}}}}}else {const err582 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err582];}else {vErrors.push(err582);}errors++;}var _valid33 = _errs585 === errors;if(_valid33 && valid125){valid125 = false;passing17 = [passing17, 13];}else {if(_valid33){valid125 = true;passing17 = 13;}}}}}}}}}}}}}}if(!valid125){const err583 = {instancePath:instancePath+"/body/" + i2+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing17},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err583];}else {vErrors.push(err583);}errors++;}else {errors = _errs490;if(vErrors !== null){if(_errs490){vErrors.length = _errs490;}else {vErrors = null;}}}}if(data136.additionalType !== undefined){let data177 = data136.additionalType;const _errs596 = errors;let valid145 = false;const _errs597 = errors;if(typeof data177 !== "string"){const err584 = {instancePath:instancePath+"/body/" + i2+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err584];}else {vErrors.push(err584);}errors++;}var _valid41 = _errs597 === errors;valid145 = valid145 || _valid41;if(!valid145){const _errs599 = errors;if(Array.isArray(data177)){const len58 = data177.length;for(let i3=0; i3<len58; i3++){if(typeof data177[i3] !== "string"){const err585 = {instancePath:instancePath+"/body/" + i2+"/additionalType/" + i3,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err585];}else {vErrors.push(err585);}errors++;}}}else {const err586 = {instancePath:instancePath+"/body/" + i2+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err586];}else {vErrors.push(err586);}errors++;}var _valid41 = _errs599 === errors;valid145 = valid145 || _valid41;}if(!valid145){const err587 = {instancePath:instancePath+"/body/" + i2+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err587];}else {vErrors.push(err587);}errors++;}else {errors = _errs596;if(vErrors !== null){if(_errs596){vErrors.length = _errs596;}else {vErrors = null;}}}}if(data136.value !== undefined){if(typeof data136.value !== "string"){const err588 = {instancePath:instancePath+"/body/" + i2+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err588];}else {vErrors.push(err588);}errors++;}}if(data136.certainty !== undefined){let data180 = data136.certainty;if(typeof data180 !== "string"){const err589 = {instancePath:instancePath+"/body/" + i2+"/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err589];}else {vErrors.push(err589);}errors++;}if(!((((data180 === "edit:qualityLow") || (data180 === "edit:qualityMedium")) || (data180 === "edit:qualityHigh")) || (data180 === "edit:qualityUnknown"))){const err590 = {instancePath:instancePath+"/body/" + i2+"/certainty",schemaPath:"defs.jsonld#/definitions/body/properties/certainty/enum",keyword:"enum",params:{allowedValues: schema35.properties.certainty.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err590];}else {vErrors.push(err590);}errors++;}}if(data136.precision !== undefined){let data181 = data136.precision;if(typeof data181 !== "string"){const err591 = {instancePath:instancePath+"/body/" + i2+"/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err591];}else {vErrors.push(err591);}errors++;}if(!((((data181 === "edit:qualityLow") || (data181 === "edit:qualityMedium")) || (data181 === "edit:qualityHigh")) || (data181 === "edit:qualityUnknown"))){const err592 = {instancePath:instancePath+"/body/" + i2+"/precision",schemaPath:"defs.jsonld#/definitions/body/properties/precision/enum",keyword:"enum",params:{allowedValues: schema35.properties.precision.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err592];}else {vErrors.push(err592);}errors++;}}if(data136.label !== undefined){let data182 = data136.label;if(typeof data182 === "string"){if(func3(data182) < 1){const err593 = {instancePath:instancePath+"/body/" + i2+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err593];}else {vErrors.push(err593);}errors++;}}else {const err594 = {instancePath:instancePath+"/body/" + i2+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err594];}else {vErrors.push(err594);}errors++;}}if(data136.description !== undefined){if(typeof data136.description !== "string"){const err595 = {instancePath:instancePath+"/body/" + i2+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err595];}else {vErrors.push(err595);}errors++;}}}else {const err596 = {instancePath:instancePath+"/body/" + i2,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err596];}else {vErrors.push(err596);}errors++;}}}else {const err597 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err597];}else {vErrors.push(err597);}errors++;}var _valid15 = _errs440 === errors;if(_valid15 && valid69){valid69 = false;passing8 = [passing8, 2];}else {if(_valid15){valid69 = true;passing8 = 2;}}}if(!valid69){const err598 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf",keyword:"oneOf",params:{passingSchemas: passing8},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err598];}else {vErrors.push(err598);}errors++;}else {errors = _errs267;if(vErrors !== null){if(_errs267){vErrors.length = _errs267;}else {vErrors = null;}}}}if(data.status !== undefined){let data184 = data.status;if(typeof data184 !== "string"){const err599 = {instancePath:instancePath+"/status",schemaPath:"#/properties/status/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err599];}else {vErrors.push(err599);}errors++;}if(!(((data184 === "draft") || (data184 === "approved")) || (data184 === "published"))){const err600 = {instancePath:instancePath+"/status",schemaPath:"#/properties/status/enum",keyword:"enum",params:{allowedValues: schema11.properties.status.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err600];}else {vErrors.push(err600);}errors++;}}}else {const err601 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err601];}else {vErrors.push(err601);}errors++;}validate10.errors = vErrors;return errors === 0;}