@lincs.project/webannotation-schema 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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":3,"maxItems":3,"items":[{"type":"string","const":"http://www.w3.org/ns/anno.jsonld"},{"type":"string","const":"https://www.cidoc-crm.org/cidoc-crm/json-ld_context.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":"string","enum":["oa:identifying","oa:describing","correcting","oa:tagging","oa:classifying","oa:linking","citing"],"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":{"oneOf":[{"$ref":"defs.jsonld#/definitions/user"},{"$ref":"defs.jsonld#/definitions/group"},{"$ref":"defs.jsonld#/definitions/software"}]},"contributor":{"type":"array","items":{"oneOf":[{"$ref":"defs.jsonld#/definitions/user"},{"$ref":"defs.jsonld#/definitions/group"},{"$ref":"defs.jsonld#/definitions/software"}]},"minItems":1},"generator":{"$ref":"defs.jsonld#/definitions/software"},"target":{"oneOf":[{"$ref":"defs.jsonld#/definitions/target"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/target"},"minItems":1}]},"body":{"oneOf":[{"$ref":"defs.jsonld#/definitions/bodyChoice"},{"$ref":"defs.jsonld#/definitions/body"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"},"minItems":1}]},"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"},"P2_has_type":{"oneOf":[{"type":"string","minLength":3},{"type":"array","minItems":1,"items":{"type":"string","minLength":3},"uniqueItems":true}]}},"required":["@context","id","type","motivation","created","generator","target","body"],"additionalProperties":false,"allOf":[{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"oneOf":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E53_Place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"biography:fictionalPlace"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"frbroo:F1"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"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"}]}]},{"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"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E5_Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:identifying"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"string","const":"crm:E33_Linguistic_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:describing"}}},"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":"string","const":"correcting"}}},"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":"string","const":"oa:tagging"}}},"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":"string","const":"oa:classifying"}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"entityType":{"type":"string","const":"crmdig:D1_Digital_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:linking"}}},"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":"string","const":"citing"}}}}}}}}}}]};const schema13 = {"type":"object","description":"User Agent","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E21_Person"},"name":{"type":"string","minLength":1,"description":"The person's name."}},"required":["id","type","name"]};const schema14 = {"type":"object","description":"Group Agent","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E74_Group"},"name":{"type":"string","minLength":1,"description":"The group's name."}},"required":["id","type","name"]};const schema15 = {"type":"object","description":"Software Agent","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Software"},{"type":"string","const":"crm:E73_Information_Object"}]},"P16_used_specific_object":{"type":"string","format":"uri","nullable":true},"name":{"type":"string","minLength":1,"description":"The software's name."},"softwareVersion":{"type":"string","nullable":true,"description":"The software version."}},"required":["id","type","name"]};const schema43 = {"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":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E53_Place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"biography:fictionalPlace"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"frbroo:F1"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"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"}]}]},{"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"}]}]},{"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"},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E5_Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]}]},"additionalType":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]},"value":{"type":"string"},"label":{"type":"string","minLength":1,"description":"The title or name of a linked resource or named entity."},"modeExistence":{"oneOf":[{"type":"string","const":"edit:modeReal","description":"An indication that an entity or thing, such as a person, place or text, is understood to be part of lived or historical existence."},{"type":"string","const":"edit:modeFictional","description":"An indication that an entity or a thing, such as a person, place or text, is invented or imagined."},{"type":"string","const":"edit:modeIdentifiable","description":"An indication that an entity or a thing is understood as both existing and imagined, for instance a character in a work of literature that corresponds to a historical person or a place represented under another name that can be identified as a real place."}],"description":"An indication of the state of being of an entity or thing (OED)."},"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 schema20 = {"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."},"type":{"type":"string","const":"crm:D1_Digital_Object"},"format":{"type":["string","array"],"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."}]},"P1_is_identified_by":{"type":"object","description":"indentifyBy","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E33_E41_Linguistic_Appellation"},"title":{"type":"string","minLength":1,"description":"The title of the document being annotated."}},"required":["id","type","title"],"nullable":true},"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."}]}},"required":["id","type","format"]},"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":"CSS Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"CssSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select CSS"},"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":"CSS Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"CssSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select CSS"},"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"],"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":"CssSelector"},{"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 schema22 = {"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 schema23 = {"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 schema30 = {"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("CssSelector" !== 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.value === undefined){const err56 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}else {const err57 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}else {const err58 = {instancePath,schemaPath:"#/allOf/3/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var _valid3 = _errs61 === errors;valid16 = _valid3;}if(!valid16){const err59 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}const _errs66 = errors;let valid21 = true;const _errs67 = errors;if(errors === _errs67){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data20 = data.selector;const _errs69 = errors;if(errors === _errs69){if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(data20.type !== undefined){let data21 = data20.type;const _errs71 = errors;if(errors === _errs71){if(Array.isArray(data21)){if(data21.length > 2){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data21.length < 2){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {const len4 = data21.length;if(len4 > 0){let data22 = data21[0];const _errs73 = errors;if(typeof data22 !== "string"){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if("TextPositionSelector" !== data22){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var valid24 = _errs73 === errors;}if(valid24){if(len4 > 1){let data23 = data21[1];const _errs75 = errors;if(typeof data23 !== "string"){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if("crm:E73_Information_Object" !== data23){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var valid24 = _errs75 === errors;}}}}}else {const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}}else {const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}else {const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}var _valid4 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid4){const _errs77 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data24 = data.selector;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(data24.type === undefined){const err69 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data24.start === undefined){const err70 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if(data24.end === undefined){const err71 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}else {const err72 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}else {const err73 = {instancePath,schemaPath:"#/allOf/4/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var _valid4 = _errs77 === errors;valid21 = _valid4;}if(!valid21){const err74 = {instancePath,schemaPath:"#/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err75 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(data.type === undefined){const err76 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data.source === undefined){const err77 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(data.id !== undefined){let data25 = data.id;if(typeof data25 === "string"){if(!(formats0(data25))){const err78 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}else {const err79 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data.type !== undefined){let data26 = data.type;if(Array.isArray(data26)){if(data26.length > 2){const err80 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/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(data26.length < 2){const err81 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/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 len5 = data26.length;if(len5 > 0){let data27 = data26[0];if(typeof data27 !== "string"){const err82 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if("SpecificResource" !== data27){const err83 = {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 = [err83];}else {vErrors.push(err83);}errors++;}}if(len5 > 1){let data28 = data26[1];if(typeof data28 !== "string"){const err84 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if("crm:E73_Information_Object" !== data28){const err85 = {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 = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data.source !== undefined){let data29 = data.source;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.id === undefined){const err87 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data29.type === undefined){const err88 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data29.format === undefined){const err89 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(data29.id !== undefined){let data30 = data29.id;if(typeof data30 === "string"){if(!(formats0(data30))){const err90 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data29.type !== undefined){let data31 = data29.type;if(typeof data31 !== "string"){const err92 = {instancePath:instancePath+"/source/type",schemaPath:"#/properties/source/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if("crm:D1_Digital_Object" !== data31){const err93 = {instancePath:instancePath+"/source/type",schemaPath:"#/properties/source/properties/type/const",keyword:"const",params:{allowedValue: "crm:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}if(data29.format !== undefined){let data32 = data29.format;if((typeof data32 !== "string") && (!(Array.isArray(data32)))){const err94 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/type",keyword:"type",params:{type: schema20.properties.source.properties.format.type},message:"must be string,array"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const _errs97 = errors;let valid29 = false;const _errs98 = errors;if(typeof data32 === "string"){if(func3(data32) < 1){const err95 = {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 = [err95];}else {vErrors.push(err95);}errors++;}}else {const err96 = {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 = [err96];}else {vErrors.push(err96);}errors++;}var _valid5 = _errs98 === errors;valid29 = valid29 || _valid5;if(!valid29){const _errs100 = errors;if(Array.isArray(data32)){if(data32.length < 1){const err97 = {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 = [err97];}else {vErrors.push(err97);}errors++;}const len6 = data32.length;for(let i0=0; i0<len6; i0++){let data33 = data32[i0];if(typeof data33 === "string"){if(func3(data33) < 1){const err98 = {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 = [err98];}else {vErrors.push(err98);}errors++;}}else {const err99 = {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 = [err99];}else {vErrors.push(err99);}errors++;}}}else {const err100 = {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 = [err100];}else {vErrors.push(err100);}errors++;}var _valid5 = _errs100 === errors;valid29 = valid29 || _valid5;}if(!valid29){const err101 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {errors = _errs97;if(vErrors !== null){if(_errs97){vErrors.length = _errs97;}else {vErrors = null;}}}}if(data29.P1_is_identified_by !== undefined){let data34 = data29.P1_is_identified_by;if((!(data34 && typeof data34 == "object" && !Array.isArray(data34))) && (data34 !== null)){const err102 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.id === undefined){const err103 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data34.type === undefined){const err104 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data34.title === undefined){const err105 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data34.id !== undefined){let data35 = data34.id;if(typeof data35 === "string"){if(!(formats0(data35))){const err106 = {instancePath:instancePath+"/source/P1_is_identified_by/id",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}else {const err107 = {instancePath:instancePath+"/source/P1_is_identified_by/id",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data34.type !== undefined){let data36 = data34.type;if(typeof data36 !== "string"){const err108 = {instancePath:instancePath+"/source/P1_is_identified_by/type",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if("crm:E33_E41_Linguistic_Appellation" !== data36){const err109 = {instancePath:instancePath+"/source/P1_is_identified_by/type",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/type/const",keyword:"const",params:{allowedValue: "crm:E33_E41_Linguistic_Appellation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data34.title !== undefined){let data37 = data34.title;if(typeof data37 === "string"){if(func3(data37) < 1){const err110 = {instancePath:instancePath+"/source/P1_is_identified_by/title",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/title/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+"/source/P1_is_identified_by/title",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}}}if(data29.language !== undefined){let data38 = data29.language;if(((typeof data38 !== "string") && (!(Array.isArray(data38)))) && (data38 !== null)){const err112 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/type",keyword:"type",params:{type: schema20.properties.source.properties.language.type},message:"must be string,array,null"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}const _errs116 = errors;let valid33 = false;const _errs117 = errors;if(typeof data38 === "string"){if(func3(data38) > 3){const err113 = {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 = [err113];}else {vErrors.push(err113);}errors++;}if(func3(data38) < 2){const err114 = {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 = [err114];}else {vErrors.push(err114);}errors++;}}else {const err115 = {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 = [err115];}else {vErrors.push(err115);}errors++;}var _valid6 = _errs117 === errors;valid33 = valid33 || _valid6;if(!valid33){const _errs119 = errors;if(Array.isArray(data38)){if(data38.length < 1){const err116 = {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 = [err116];}else {vErrors.push(err116);}errors++;}const len7 = data38.length;for(let i1=0; i1<len7; i1++){let data39 = data38[i1];if(typeof data39 === "string"){if(func3(data39) > 3){const err117 = {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 = [err117];}else {vErrors.push(err117);}errors++;}if(func3(data39) < 2){const err118 = {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 = [err118];}else {vErrors.push(err118);}errors++;}}else {const err119 = {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 = [err119];}else {vErrors.push(err119);}errors++;}}}else {const err120 = {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 = [err120];}else {vErrors.push(err120);}errors++;}var _valid6 = _errs119 === errors;valid33 = valid33 || _valid6;}if(!valid33){const err121 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}}}else {const err122 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data.renderedVia !== undefined){let data40 = data.renderedVia;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.id === undefined){const err123 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(data40.type === undefined){const err124 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data40.name === undefined){const err125 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data40.id !== undefined){let data41 = data40.id;if(typeof data41 === "string"){if(!(formats0(data41))){const err126 = {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 = [err126];}else {vErrors.push(err126);}errors++;}}else {const err127 = {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 = [err127];}else {vErrors.push(err127);}errors++;}}if(data40.type !== undefined){let data42 = data40.type;if(Array.isArray(data42)){if(data42.length > 2){const err128 = {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 = [err128];}else {vErrors.push(err128);}errors++;}if(data42.length < 2){const err129 = {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 = [err129];}else {vErrors.push(err129);}errors++;}const len8 = data42.length;if(len8 > 0){let data43 = data42[0];if(typeof data43 !== "string"){const err130 = {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 = [err130];}else {vErrors.push(err130);}errors++;}if("Software" !== data43){const err131 = {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 = [err131];}else {vErrors.push(err131);}errors++;}}if(len8 > 1){let data44 = data42[1];if(typeof data44 !== "string"){const err132 = {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 = [err132];}else {vErrors.push(err132);}errors++;}if("crm:E73_Information_Object" !== data44){const err133 = {instancePath:instancePath+"/renderedVia/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}}else {const err134 = {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 = [err134];}else {vErrors.push(err134);}errors++;}}if(data40.P16_used_specific_object !== undefined){let data45 = data40.P16_used_specific_object;if((typeof data45 !== "string") && (data45 !== null)){const err135 = {instancePath:instancePath+"/renderedVia/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(typeof data45 === "string"){if(!(formats0(data45))){const err136 = {instancePath:instancePath+"/renderedVia/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}}if(data40.name !== undefined){let data46 = data40.name;if(typeof data46 === "string"){if(func3(data46) < 1){const err137 = {instancePath:instancePath+"/renderedVia/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}else {const err138 = {instancePath:instancePath+"/renderedVia/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data40.softwareVersion !== undefined){let data47 = data40.softwareVersion;if((typeof data47 !== "string") && (data47 !== null)){const err139 = {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 = [err139];}else {vErrors.push(err139);}errors++;}}}else {const err140 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}if(data.selector !== undefined){let data48 = data.selector;const _errs143 = errors;let valid39 = false;const _errs144 = errors;const _errs146 = errors;let valid40 = false;let passing0 = null;const _errs147 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err141 = {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 = [err141];}else {vErrors.push(err141);}errors++;}if(data48.type === undefined){const err142 = {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 = [err142];}else {vErrors.push(err142);}errors++;}if(data48.exact === undefined){const err143 = {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 = [err143];}else {vErrors.push(err143);}errors++;}if(data48.prefix === undefined){const err144 = {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 = [err144];}else {vErrors.push(err144);}errors++;}if(data48.suffix === undefined){const err145 = {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 = [err145];}else {vErrors.push(err145);}errors++;}if(data48.id !== undefined){let data49 = data48.id;if(typeof data49 === "string"){if(!(formats0(data49))){const err146 = {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 = [err146];}else {vErrors.push(err146);}errors++;}}else {const err147 = {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 = [err147];}else {vErrors.push(err147);}errors++;}}if(data48.type !== undefined){let data50 = data48.type;if(Array.isArray(data50)){if(data50.length > 2){const err148 = {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 = [err148];}else {vErrors.push(err148);}errors++;}if(data50.length < 2){const err149 = {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 = [err149];}else {vErrors.push(err149);}errors++;}const len9 = data50.length;if(len9 > 0){let data51 = data50[0];if(typeof data51 !== "string"){const err150 = {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 = [err150];}else {vErrors.push(err150);}errors++;}if("TextQuoteSelector" !== data51){const err151 = {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 = [err151];}else {vErrors.push(err151);}errors++;}}if(len9 > 1){let data52 = data50[1];if(typeof data52 !== "string"){const err152 = {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 = [err152];}else {vErrors.push(err152);}errors++;}if("crm:E33_Linguistic_Object" !== data52){const err153 = {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 = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {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 = [err154];}else {vErrors.push(err154);}errors++;}}if(data48.exact !== undefined){if(typeof data48.exact !== "string"){const err155 = {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 = [err155];}else {vErrors.push(err155);}errors++;}}if(data48.prefix !== undefined){if(typeof data48.prefix !== "string"){const err156 = {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 = [err156];}else {vErrors.push(err156);}errors++;}}if(data48.suffix !== undefined){if(typeof data48.suffix !== "string"){const err157 = {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 = [err157];}else {vErrors.push(err157);}errors++;}}if(data48.refinedBy !== undefined){let data56 = data48.refinedBy;const _errs165 = errors;let valid43 = false;let passing1 = null;const _errs166 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.id === undefined){const err158 = {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 = [err158];}else {vErrors.push(err158);}errors++;}if(data56.type === undefined){const err159 = {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 = [err159];}else {vErrors.push(err159);}errors++;}if(data56.start === undefined){const err160 = {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 = [err160];}else {vErrors.push(err160);}errors++;}if(data56.end === undefined){const err161 = {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 = [err161];}else {vErrors.push(err161);}errors++;}if(data56.id !== undefined){let data57 = data56.id;if(typeof data57 === "string"){if(!(formats0(data57))){const err162 = {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 = [err162];}else {vErrors.push(err162);}errors++;}}else {const err163 = {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 = [err163];}else {vErrors.push(err163);}errors++;}}if(data56.type !== undefined){let data58 = data56.type;if(Array.isArray(data58)){if(data58.length > 2){const err164 = {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 = [err164];}else {vErrors.push(err164);}errors++;}if(data58.length < 2){const err165 = {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 = [err165];}else {vErrors.push(err165);}errors++;}const len10 = data58.length;if(len10 > 0){let data59 = data58[0];if(typeof data59 !== "string"){const err166 = {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 = [err166];}else {vErrors.push(err166);}errors++;}if("TextPositionSelector" !== data59){const err167 = {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 = [err167];}else {vErrors.push(err167);}errors++;}}if(len10 > 1){let data60 = data58[1];if(typeof data60 !== "string"){const err168 = {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 = [err168];}else {vErrors.push(err168);}errors++;}if("crm:E73_Information_Object" !== data60){const err169 = {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 = [err169];}else {vErrors.push(err169);}errors++;}}}else {const err170 = {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 = [err170];}else {vErrors.push(err170);}errors++;}}if(data56.start !== undefined){let data61 = data56.start;if((typeof data61 == "number") && (isFinite(data61))){if(data61 < 0 || isNaN(data61)){const err171 = {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 = [err171];}else {vErrors.push(err171);}errors++;}}else {const err172 = {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 = [err172];}else {vErrors.push(err172);}errors++;}}if(data56.end !== undefined){let data62 = data56.end;if((typeof data62 == "number") && (isFinite(data62))){if(data62 < 0 || isNaN(data62)){const err173 = {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 = [err173];}else {vErrors.push(err173);}errors++;}}else {const err174 = {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 = [err174];}else {vErrors.push(err174);}errors++;}}}else {const err175 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}var _valid9 = _errs166 === errors;if(_valid9){valid43 = true;passing1 = 0;}const _errs181 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.id === undefined){const err176 = {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 = [err176];}else {vErrors.push(err176);}errors++;}if(data56.type === undefined){const err177 = {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 = [err177];}else {vErrors.push(err177);}errors++;}if(data56.exact === undefined){const err178 = {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 = [err178];}else {vErrors.push(err178);}errors++;}if(data56.prefix === undefined){const err179 = {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 = [err179];}else {vErrors.push(err179);}errors++;}if(data56.suffix === undefined){const err180 = {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 = [err180];}else {vErrors.push(err180);}errors++;}if(data56.id !== undefined){let data63 = data56.id;if(typeof data63 === "string"){if(!(formats0(data63))){const err181 = {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 = [err181];}else {vErrors.push(err181);}errors++;}}else {const err182 = {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 = [err182];}else {vErrors.push(err182);}errors++;}}if(data56.type !== undefined){let data64 = data56.type;if(Array.isArray(data64)){if(data64.length > 2){const err183 = {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 = [err183];}else {vErrors.push(err183);}errors++;}if(data64.length < 2){const err184 = {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 = [err184];}else {vErrors.push(err184);}errors++;}const len11 = data64.length;if(len11 > 0){let data65 = data64[0];if(typeof data65 !== "string"){const err185 = {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 = [err185];}else {vErrors.push(err185);}errors++;}if("TextQuoteSelector" !== data65){const err186 = {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 = [err186];}else {vErrors.push(err186);}errors++;}}if(len11 > 1){let data66 = data64[1];if(typeof data66 !== "string"){const err187 = {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 = [err187];}else {vErrors.push(err187);}errors++;}if("crm:E33_Linguistic_Object" !== data66){const err188 = {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 = [err188];}else {vErrors.push(err188);}errors++;}}}else {const err189 = {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 = [err189];}else {vErrors.push(err189);}errors++;}}if(data56.exact !== undefined){if(typeof data56.exact !== "string"){const err190 = {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 = [err190];}else {vErrors.push(err190);}errors++;}}if(data56.prefix !== undefined){if(typeof data56.prefix !== "string"){const err191 = {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 = [err191];}else {vErrors.push(err191);}errors++;}}if(data56.suffix !== undefined){if(typeof data56.suffix !== "string"){const err192 = {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 = [err192];}else {vErrors.push(err192);}errors++;}}}else {const err193 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var _valid9 = _errs181 === errors;if(_valid9 && valid43){valid43 = false;passing1 = [passing1, 1];}else {if(_valid9){valid43 = true;passing1 = 1;}}if(!valid43){const err194 = {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 = [err194];}else {vErrors.push(err194);}errors++;}else {errors = _errs165;if(vErrors !== null){if(_errs165){vErrors.length = _errs165;}else {vErrors = null;}}}if(!(data56 && typeof data56 == "object" && !Array.isArray(data56))){const err195 = {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 = [err195];}else {vErrors.push(err195);}errors++;}}}else {const err196 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}var _valid8 = _errs147 === errors;if(_valid8){valid40 = true;passing0 = 0;}const _errs198 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err197 = {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 = [err197];}else {vErrors.push(err197);}errors++;}if(data48.type === undefined){const err198 = {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 = [err198];}else {vErrors.push(err198);}errors++;}if(data48.start === undefined){const err199 = {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 = [err199];}else {vErrors.push(err199);}errors++;}if(data48.end === undefined){const err200 = {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 = [err200];}else {vErrors.push(err200);}errors++;}if(data48.id !== undefined){let data70 = data48.id;if(typeof data70 === "string"){if(!(formats0(data70))){const err201 = {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 = [err201];}else {vErrors.push(err201);}errors++;}}else {const err202 = {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 = [err202];}else {vErrors.push(err202);}errors++;}}if(data48.type !== undefined){let data71 = data48.type;if(Array.isArray(data71)){if(data71.length > 2){const err203 = {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 = [err203];}else {vErrors.push(err203);}errors++;}if(data71.length < 2){const err204 = {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 = [err204];}else {vErrors.push(err204);}errors++;}const len12 = data71.length;if(len12 > 0){let data72 = data71[0];if(typeof data72 !== "string"){const err205 = {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 = [err205];}else {vErrors.push(err205);}errors++;}if("TextPositionSelector" !== data72){const err206 = {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 = [err206];}else {vErrors.push(err206);}errors++;}}if(len12 > 1){let data73 = data71[1];if(typeof data73 !== "string"){const err207 = {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 = [err207];}else {vErrors.push(err207);}errors++;}if("crm:E73_Information_Object" !== data73){const err208 = {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 = [err208];}else {vErrors.push(err208);}errors++;}}}else {const err209 = {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 = [err209];}else {vErrors.push(err209);}errors++;}}if(data48.start !== undefined){let data74 = data48.start;if((typeof data74 == "number") && (isFinite(data74))){if(data74 < 0 || isNaN(data74)){const err210 = {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 = [err210];}else {vErrors.push(err210);}errors++;}}else {const err211 = {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 = [err211];}else {vErrors.push(err211);}errors++;}}if(data48.end !== undefined){let data75 = data48.end;if((typeof data75 == "number") && (isFinite(data75))){if(data75 < 0 || isNaN(data75)){const err212 = {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 = [err212];}else {vErrors.push(err212);}errors++;}}else {const err213 = {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 = [err213];}else {vErrors.push(err213);}errors++;}}if(data48.refinedBy !== undefined){let data76 = data48.refinedBy;const _errs214 = errors;let valid52 = false;let passing2 = null;const _errs215 = errors;if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.id === undefined){const err214 = {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 = [err214];}else {vErrors.push(err214);}errors++;}if(data76.type === undefined){const err215 = {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 = [err215];}else {vErrors.push(err215);}errors++;}if(data76.start === undefined){const err216 = {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 = [err216];}else {vErrors.push(err216);}errors++;}if(data76.end === undefined){const err217 = {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 = [err217];}else {vErrors.push(err217);}errors++;}if(data76.id !== undefined){let data77 = data76.id;if(typeof data77 === "string"){if(!(formats0(data77))){const err218 = {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 = [err218];}else {vErrors.push(err218);}errors++;}}else {const err219 = {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 = [err219];}else {vErrors.push(err219);}errors++;}}if(data76.type !== undefined){let data78 = data76.type;if(Array.isArray(data78)){if(data78.length > 2){const err220 = {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 = [err220];}else {vErrors.push(err220);}errors++;}if(data78.length < 2){const err221 = {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 = [err221];}else {vErrors.push(err221);}errors++;}const len13 = data78.length;if(len13 > 0){let data79 = data78[0];if(typeof data79 !== "string"){const err222 = {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 = [err222];}else {vErrors.push(err222);}errors++;}if("TextPositionSelector" !== data79){const err223 = {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 = [err223];}else {vErrors.push(err223);}errors++;}}if(len13 > 1){let data80 = data78[1];if(typeof data80 !== "string"){const err224 = {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 = [err224];}else {vErrors.push(err224);}errors++;}if("crm:E73_Information_Object" !== data80){const err225 = {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 = [err225];}else {vErrors.push(err225);}errors++;}}}else {const err226 = {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 = [err226];}else {vErrors.push(err226);}errors++;}}if(data76.start !== undefined){let data81 = data76.start;if((typeof data81 == "number") && (isFinite(data81))){if(data81 < 0 || isNaN(data81)){const err227 = {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 = [err227];}else {vErrors.push(err227);}errors++;}}else {const err228 = {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 = [err228];}else {vErrors.push(err228);}errors++;}}if(data76.end !== undefined){let data82 = data76.end;if((typeof data82 == "number") && (isFinite(data82))){if(data82 < 0 || isNaN(data82)){const err229 = {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 = [err229];}else {vErrors.push(err229);}errors++;}}else {const err230 = {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 = [err230];}else {vErrors.push(err230);}errors++;}}}else {const err231 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var _valid10 = _errs215 === errors;if(_valid10){valid52 = true;passing2 = 0;}const _errs230 = errors;if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.id === undefined){const err232 = {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 = [err232];}else {vErrors.push(err232);}errors++;}if(data76.type === undefined){const err233 = {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 = [err233];}else {vErrors.push(err233);}errors++;}if(data76.exact === undefined){const err234 = {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 = [err234];}else {vErrors.push(err234);}errors++;}if(data76.prefix === undefined){const err235 = {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 = [err235];}else {vErrors.push(err235);}errors++;}if(data76.suffix === undefined){const err236 = {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 = [err236];}else {vErrors.push(err236);}errors++;}if(data76.id !== undefined){let data83 = data76.id;if(typeof data83 === "string"){if(!(formats0(data83))){const err237 = {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 = [err237];}else {vErrors.push(err237);}errors++;}}else {const err238 = {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 = [err238];}else {vErrors.push(err238);}errors++;}}if(data76.type !== undefined){let data84 = data76.type;if(Array.isArray(data84)){if(data84.length > 2){const err239 = {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 = [err239];}else {vErrors.push(err239);}errors++;}if(data84.length < 2){const err240 = {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 = [err240];}else {vErrors.push(err240);}errors++;}const len14 = data84.length;if(len14 > 0){let data85 = data84[0];if(typeof data85 !== "string"){const err241 = {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 = [err241];}else {vErrors.push(err241);}errors++;}if("TextQuoteSelector" !== data85){const err242 = {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 = [err242];}else {vErrors.push(err242);}errors++;}}if(len14 > 1){let data86 = data84[1];if(typeof data86 !== "string"){const err243 = {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 = [err243];}else {vErrors.push(err243);}errors++;}if("crm:E33_Linguistic_Object" !== data86){const err244 = {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 = [err244];}else {vErrors.push(err244);}errors++;}}}else {const err245 = {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 = [err245];}else {vErrors.push(err245);}errors++;}}if(data76.exact !== undefined){if(typeof data76.exact !== "string"){const err246 = {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 = [err246];}else {vErrors.push(err246);}errors++;}}if(data76.prefix !== undefined){if(typeof data76.prefix !== "string"){const err247 = {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 = [err247];}else {vErrors.push(err247);}errors++;}}if(data76.suffix !== undefined){if(typeof data76.suffix !== "string"){const err248 = {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 = [err248];}else {vErrors.push(err248);}errors++;}}}else {const err249 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}var _valid10 = _errs230 === errors;if(_valid10 && valid52){valid52 = false;passing2 = [passing2, 1];}else {if(_valid10){valid52 = true;passing2 = 1;}}if(!valid52){const err250 = {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 = [err250];}else {vErrors.push(err250);}errors++;}else {errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}}if(!(data76 && typeof data76 == "object" && !Array.isArray(data76))){const err251 = {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 = [err251];}else {vErrors.push(err251);}errors++;}}}else {const err252 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}var _valid8 = _errs198 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 1];}else {if(_valid8){valid40 = true;passing0 = 1;}const _errs247 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err253 = {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 = [err253];}else {vErrors.push(err253);}errors++;}if(data48.type === undefined){const err254 = {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 = [err254];}else {vErrors.push(err254);}errors++;}if(data48.value === undefined){const err255 = {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 = [err255];}else {vErrors.push(err255);}errors++;}if(data48.id !== undefined){let data90 = data48.id;if(typeof data90 === "string"){if(!(formats0(data90))){const err256 = {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 = [err256];}else {vErrors.push(err256);}errors++;}}else {const err257 = {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 = [err257];}else {vErrors.push(err257);}errors++;}}if(data48.type !== undefined){let data91 = data48.type;if(Array.isArray(data91)){if(data91.length > 2){const err258 = {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 = [err258];}else {vErrors.push(err258);}errors++;}if(data91.length < 2){const err259 = {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 = [err259];}else {vErrors.push(err259);}errors++;}const len15 = data91.length;if(len15 > 0){let data92 = data91[0];if(typeof data92 !== "string"){const err260 = {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 = [err260];}else {vErrors.push(err260);}errors++;}if("XPathSelector" !== data92){const err261 = {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 = [err261];}else {vErrors.push(err261);}errors++;}}if(len15 > 1){let data93 = data91[1];if(typeof data93 !== "string"){const err262 = {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 = [err262];}else {vErrors.push(err262);}errors++;}if("crm:E73_Information_Object" !== data93){const err263 = {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 = [err263];}else {vErrors.push(err263);}errors++;}}}else {const err264 = {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 = [err264];}else {vErrors.push(err264);}errors++;}}if(data48.value !== undefined){if(typeof data48.value !== "string"){const err265 = {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 = [err265];}else {vErrors.push(err265);}errors++;}}if(data48.refinedBy !== undefined){let data95 = data48.refinedBy;const _errs261 = errors;let valid61 = false;const _errs262 = errors;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.id === undefined){const err266 = {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 = [err266];}else {vErrors.push(err266);}errors++;}if(data95.type === undefined){const err267 = {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 = [err267];}else {vErrors.push(err267);}errors++;}if(data95.start === undefined){const err268 = {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 = [err268];}else {vErrors.push(err268);}errors++;}if(data95.end === undefined){const err269 = {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 = [err269];}else {vErrors.push(err269);}errors++;}if(data95.id !== undefined){let data96 = data95.id;if(typeof data96 === "string"){if(!(formats0(data96))){const err270 = {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 = [err270];}else {vErrors.push(err270);}errors++;}}else {const err271 = {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 = [err271];}else {vErrors.push(err271);}errors++;}}if(data95.type !== undefined){let data97 = data95.type;if(Array.isArray(data97)){if(data97.length > 2){const err272 = {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 = [err272];}else {vErrors.push(err272);}errors++;}if(data97.length < 2){const err273 = {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 = [err273];}else {vErrors.push(err273);}errors++;}const len16 = data97.length;if(len16 > 0){let data98 = data97[0];if(typeof data98 !== "string"){const err274 = {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 = [err274];}else {vErrors.push(err274);}errors++;}if("TextPositionSelector" !== data98){const err275 = {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 = [err275];}else {vErrors.push(err275);}errors++;}}if(len16 > 1){let data99 = data97[1];if(typeof data99 !== "string"){const err276 = {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 = [err276];}else {vErrors.push(err276);}errors++;}if("crm:E73_Information_Object" !== data99){const err277 = {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 = [err277];}else {vErrors.push(err277);}errors++;}}}else {const err278 = {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 = [err278];}else {vErrors.push(err278);}errors++;}}if(data95.start !== undefined){let data100 = data95.start;if((typeof data100 == "number") && (isFinite(data100))){if(data100 < 0 || isNaN(data100)){const err279 = {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 = [err279];}else {vErrors.push(err279);}errors++;}}else {const err280 = {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 = [err280];}else {vErrors.push(err280);}errors++;}}if(data95.end !== undefined){let data101 = data95.end;if((typeof data101 == "number") && (isFinite(data101))){if(data101 < 0 || isNaN(data101)){const err281 = {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 = [err281];}else {vErrors.push(err281);}errors++;}}else {const err282 = {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 = [err282];}else {vErrors.push(err282);}errors++;}}}else {const err283 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var _valid11 = _errs262 === errors;valid61 = valid61 || _valid11;if(!valid61){const _errs277 = errors;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.id === undefined){const err284 = {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 = [err284];}else {vErrors.push(err284);}errors++;}if(data95.type === undefined){const err285 = {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 = [err285];}else {vErrors.push(err285);}errors++;}if(data95.exact === undefined){const err286 = {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 = [err286];}else {vErrors.push(err286);}errors++;}if(data95.prefix === undefined){const err287 = {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 = [err287];}else {vErrors.push(err287);}errors++;}if(data95.suffix === undefined){const err288 = {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 = [err288];}else {vErrors.push(err288);}errors++;}if(data95.id !== undefined){let data102 = data95.id;if(typeof data102 === "string"){if(!(formats0(data102))){const err289 = {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 = [err289];}else {vErrors.push(err289);}errors++;}}else {const err290 = {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 = [err290];}else {vErrors.push(err290);}errors++;}}if(data95.type !== undefined){let data103 = data95.type;if(Array.isArray(data103)){if(data103.length > 2){const err291 = {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 = [err291];}else {vErrors.push(err291);}errors++;}if(data103.length < 2){const err292 = {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 = [err292];}else {vErrors.push(err292);}errors++;}const len17 = data103.length;if(len17 > 0){let data104 = data103[0];if(typeof data104 !== "string"){const err293 = {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 = [err293];}else {vErrors.push(err293);}errors++;}if("TextQuoteSelector" !== data104){const err294 = {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 = [err294];}else {vErrors.push(err294);}errors++;}}if(len17 > 1){let data105 = data103[1];if(typeof data105 !== "string"){const err295 = {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 = [err295];}else {vErrors.push(err295);}errors++;}if("crm:E33_Linguistic_Object" !== data105){const err296 = {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 = [err296];}else {vErrors.push(err296);}errors++;}}}else {const err297 = {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 = [err297];}else {vErrors.push(err297);}errors++;}}if(data95.exact !== undefined){if(typeof data95.exact !== "string"){const err298 = {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 = [err298];}else {vErrors.push(err298);}errors++;}}if(data95.prefix !== undefined){if(typeof data95.prefix !== "string"){const err299 = {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 = [err299];}else {vErrors.push(err299);}errors++;}}if(data95.suffix !== undefined){if(typeof data95.suffix !== "string"){const err300 = {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 = [err300];}else {vErrors.push(err300);}errors++;}}}else {const err301 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}var _valid11 = _errs277 === errors;valid61 = valid61 || _valid11;}if(!valid61){const err302 = {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 = [err302];}else {vErrors.push(err302);}errors++;}else {errors = _errs261;if(vErrors !== null){if(_errs261){vErrors.length = _errs261;}else {vErrors = null;}}}if(!(data95 && typeof data95 == "object" && !Array.isArray(data95))){const err303 = {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 = [err303];}else {vErrors.push(err303);}errors++;}}}else {const err304 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}var _valid8 = _errs247 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 2];}else {if(_valid8){valid40 = true;passing0 = 2;}const _errs294 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err305 = {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 = [err305];}else {vErrors.push(err305);}errors++;}if(data48.type === undefined){const err306 = {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 = [err306];}else {vErrors.push(err306);}errors++;}if(data48.value === undefined){const err307 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if(data48.id !== undefined){let data109 = data48.id;if(typeof data109 === "string"){if(!(formats0(data109))){const err308 = {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 = [err308];}else {vErrors.push(err308);}errors++;}}else {const err309 = {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 = [err309];}else {vErrors.push(err309);}errors++;}}if(data48.type !== undefined){let data110 = data48.type;if(Array.isArray(data110)){if(data110.length > 2){const err310 = {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 = [err310];}else {vErrors.push(err310);}errors++;}if(data110.length < 2){const err311 = {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 = [err311];}else {vErrors.push(err311);}errors++;}const len18 = data110.length;if(len18 > 0){let data111 = data110[0];if(typeof data111 !== "string"){const err312 = {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 = [err312];}else {vErrors.push(err312);}errors++;}if("CssSelector" !== data111){const err313 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "CssSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}}if(len18 > 1){let data112 = data110[1];if(typeof data112 !== "string"){const err314 = {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 = [err314];}else {vErrors.push(err314);}errors++;}if("crm:E73_Information_Object" !== data112){const err315 = {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 = [err315];}else {vErrors.push(err315);}errors++;}}}else {const err316 = {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 = [err316];}else {vErrors.push(err316);}errors++;}}if(data48.value !== undefined){if(typeof data48.value !== "string"){const err317 = {instancePath:instancePath+"/selector/value",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}if(data48.refinedBy !== undefined){let data114 = data48.refinedBy;const _errs308 = errors;let valid70 = false;const _errs309 = errors;if(data114 && typeof data114 == "object" && !Array.isArray(data114)){if(data114.id === undefined){const err318 = {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 = [err318];}else {vErrors.push(err318);}errors++;}if(data114.type === undefined){const err319 = {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 = [err319];}else {vErrors.push(err319);}errors++;}if(data114.start === undefined){const err320 = {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 = [err320];}else {vErrors.push(err320);}errors++;}if(data114.end === undefined){const err321 = {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 = [err321];}else {vErrors.push(err321);}errors++;}if(data114.id !== undefined){let data115 = data114.id;if(typeof data115 === "string"){if(!(formats0(data115))){const err322 = {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 = [err322];}else {vErrors.push(err322);}errors++;}}else {const err323 = {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 = [err323];}else {vErrors.push(err323);}errors++;}}if(data114.type !== undefined){let data116 = data114.type;if(Array.isArray(data116)){if(data116.length > 2){const err324 = {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 = [err324];}else {vErrors.push(err324);}errors++;}if(data116.length < 2){const err325 = {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 = [err325];}else {vErrors.push(err325);}errors++;}const len19 = data116.length;if(len19 > 0){let data117 = data116[0];if(typeof data117 !== "string"){const err326 = {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 = [err326];}else {vErrors.push(err326);}errors++;}if("TextPositionSelector" !== data117){const err327 = {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 = [err327];}else {vErrors.push(err327);}errors++;}}if(len19 > 1){let data118 = data116[1];if(typeof data118 !== "string"){const err328 = {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 = [err328];}else {vErrors.push(err328);}errors++;}if("crm:E73_Information_Object" !== data118){const err329 = {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 = [err329];}else {vErrors.push(err329);}errors++;}}}else {const err330 = {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 = [err330];}else {vErrors.push(err330);}errors++;}}if(data114.start !== undefined){let data119 = data114.start;if((typeof data119 == "number") && (isFinite(data119))){if(data119 < 0 || isNaN(data119)){const err331 = {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 = [err331];}else {vErrors.push(err331);}errors++;}}else {const err332 = {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 = [err332];}else {vErrors.push(err332);}errors++;}}if(data114.end !== undefined){let data120 = data114.end;if((typeof data120 == "number") && (isFinite(data120))){if(data120 < 0 || isNaN(data120)){const err333 = {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 = [err333];}else {vErrors.push(err333);}errors++;}}else {const err334 = {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 = [err334];}else {vErrors.push(err334);}errors++;}}}else {const err335 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}var _valid12 = _errs309 === errors;valid70 = valid70 || _valid12;if(!valid70){const _errs324 = errors;if(data114 && typeof data114 == "object" && !Array.isArray(data114)){if(data114.id === undefined){const err336 = {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 = [err336];}else {vErrors.push(err336);}errors++;}if(data114.type === undefined){const err337 = {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 = [err337];}else {vErrors.push(err337);}errors++;}if(data114.exact === undefined){const err338 = {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 = [err338];}else {vErrors.push(err338);}errors++;}if(data114.prefix === undefined){const err339 = {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 = [err339];}else {vErrors.push(err339);}errors++;}if(data114.suffix === undefined){const err340 = {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 = [err340];}else {vErrors.push(err340);}errors++;}if(data114.id !== undefined){let data121 = data114.id;if(typeof data121 === "string"){if(!(formats0(data121))){const err341 = {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 = [err341];}else {vErrors.push(err341);}errors++;}}else {const err342 = {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 = [err342];}else {vErrors.push(err342);}errors++;}}if(data114.type !== undefined){let data122 = data114.type;if(Array.isArray(data122)){if(data122.length > 2){const err343 = {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 = [err343];}else {vErrors.push(err343);}errors++;}if(data122.length < 2){const err344 = {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 = [err344];}else {vErrors.push(err344);}errors++;}const len20 = data122.length;if(len20 > 0){let data123 = data122[0];if(typeof data123 !== "string"){const err345 = {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 = [err345];}else {vErrors.push(err345);}errors++;}if("TextQuoteSelector" !== data123){const err346 = {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 = [err346];}else {vErrors.push(err346);}errors++;}}if(len20 > 1){let data124 = data122[1];if(typeof data124 !== "string"){const err347 = {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 = [err347];}else {vErrors.push(err347);}errors++;}if("crm:E33_Linguistic_Object" !== data124){const err348 = {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 = [err348];}else {vErrors.push(err348);}errors++;}}}else {const err349 = {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 = [err349];}else {vErrors.push(err349);}errors++;}}if(data114.exact !== undefined){if(typeof data114.exact !== "string"){const err350 = {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 = [err350];}else {vErrors.push(err350);}errors++;}}if(data114.prefix !== undefined){if(typeof data114.prefix !== "string"){const err351 = {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 = [err351];}else {vErrors.push(err351);}errors++;}}if(data114.suffix !== undefined){if(typeof data114.suffix !== "string"){const err352 = {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 = [err352];}else {vErrors.push(err352);}errors++;}}}else {const err353 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}var _valid12 = _errs324 === errors;valid70 = valid70 || _valid12;}if(!valid70){const err354 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}else {errors = _errs308;if(vErrors !== null){if(_errs308){vErrors.length = _errs308;}else {vErrors = null;}}}if(!(data114 && typeof data114 == "object" && !Array.isArray(data114))){const err355 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}}}else {const err356 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}var _valid8 = _errs294 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 3];}else {if(_valid8){valid40 = true;passing0 = 3;}const _errs341 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err357 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}if(data48.type === undefined){const err358 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}if(data48.startSelector === undefined){const err359 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}if(data48.endSelector === undefined){const err360 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}if(data48.id !== undefined){let data128 = data48.id;if(typeof data128 === "string"){if(!(formats0(data128))){const err361 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}else {const err362 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}}if(data48.type !== undefined){let data129 = data48.type;if(Array.isArray(data129)){if(data129.length > 2){const err363 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}if(data129.length < 2){const err364 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}const len21 = data129.length;if(len21 > 0){let data130 = data129[0];if(typeof data130 !== "string"){const err365 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}if("RangeSelector" !== data130){const err366 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}}if(len21 > 1){let data131 = data129[1];if(typeof data131 !== "string"){const err367 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if("crm:E73_Information_Object" !== data131){const err368 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}}}else {const err369 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}}if(data48.startSelector !== undefined){let data132 = data48.startSelector;if(data132 && typeof data132 == "object" && !Array.isArray(data132)){if(data132.id === undefined){const err370 = {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 = [err370];}else {vErrors.push(err370);}errors++;}if(data132.type === undefined){const err371 = {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 = [err371];}else {vErrors.push(err371);}errors++;}if(data132.value === undefined){const err372 = {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 = [err372];}else {vErrors.push(err372);}errors++;}if(data132.id !== undefined){let data133 = data132.id;if(typeof data133 === "string"){if(!(formats0(data133))){const err373 = {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 = [err373];}else {vErrors.push(err373);}errors++;}}else {const err374 = {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 = [err374];}else {vErrors.push(err374);}errors++;}}if(data132.type !== undefined){let data134 = data132.type;if(Array.isArray(data134)){if(data134.length > 2){const err375 = {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 = [err375];}else {vErrors.push(err375);}errors++;}if(data134.length < 2){const err376 = {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 = [err376];}else {vErrors.push(err376);}errors++;}const len22 = data134.length;if(len22 > 0){let data135 = data134[0];if(typeof data135 !== "string"){const err377 = {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 = [err377];}else {vErrors.push(err377);}errors++;}if("XPathSelector" !== data135){const err378 = {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 = [err378];}else {vErrors.push(err378);}errors++;}}if(len22 > 1){let data136 = data134[1];if(typeof data136 !== "string"){const err379 = {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 = [err379];}else {vErrors.push(err379);}errors++;}if("crm:E73_Information_Object" !== data136){const err380 = {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 = [err380];}else {vErrors.push(err380);}errors++;}}}else {const err381 = {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 = [err381];}else {vErrors.push(err381);}errors++;}}if(data132.value !== undefined){if(typeof data132.value !== "string"){const err382 = {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 = [err382];}else {vErrors.push(err382);}errors++;}}}else {const err383 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}if(data48.endSelector !== undefined){let data138 = data48.endSelector;if(data138 && typeof data138 == "object" && !Array.isArray(data138)){if(data138.id === undefined){const err384 = {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 = [err384];}else {vErrors.push(err384);}errors++;}if(data138.type === undefined){const err385 = {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 = [err385];}else {vErrors.push(err385);}errors++;}if(data138.value === undefined){const err386 = {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 = [err386];}else {vErrors.push(err386);}errors++;}if(data138.id !== undefined){let data139 = data138.id;if(typeof data139 === "string"){if(!(formats0(data139))){const err387 = {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 = [err387];}else {vErrors.push(err387);}errors++;}}else {const err388 = {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 = [err388];}else {vErrors.push(err388);}errors++;}}if(data138.type !== undefined){let data140 = data138.type;if(Array.isArray(data140)){if(data140.length > 2){const err389 = {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 = [err389];}else {vErrors.push(err389);}errors++;}if(data140.length < 2){const err390 = {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 = [err390];}else {vErrors.push(err390);}errors++;}const len23 = data140.length;if(len23 > 0){let data141 = data140[0];if(typeof data141 !== "string"){const err391 = {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 = [err391];}else {vErrors.push(err391);}errors++;}if("XPathSelector" !== data141){const err392 = {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 = [err392];}else {vErrors.push(err392);}errors++;}}if(len23 > 1){let data142 = data140[1];if(typeof data142 !== "string"){const err393 = {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 = [err393];}else {vErrors.push(err393);}errors++;}if("crm:E73_Information_Object" !== data142){const err394 = {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 = [err394];}else {vErrors.push(err394);}errors++;}}}else {const err395 = {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 = [err395];}else {vErrors.push(err395);}errors++;}}if(data138.value !== undefined){if(typeof data138.value !== "string"){const err396 = {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 = [err396];}else {vErrors.push(err396);}errors++;}}}else {const err397 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}}}else {const err398 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}var _valid8 = _errs341 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 4];}else {if(_valid8){valid40 = true;passing0 = 4;}}}}}if(!valid40){const err399 = {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 = [err399];}else {vErrors.push(err399);}errors++;}else {errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}}if(!(data48 && typeof data48 == "object" && !Array.isArray(data48))){const err400 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}var _valid7 = _errs144 === errors;valid39 = valid39 || _valid7;if(!valid39){const _errs377 = errors;if(Array.isArray(data48)){if(data48.length < 1){const err401 = {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 = [err401];}else {vErrors.push(err401);}errors++;}const len24 = data48.length;for(let i2=0; i2<len24; i2++){let data144 = data48[i2];const _errs381 = errors;let valid87 = false;let passing3 = null;const _errs382 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err402 = {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 = [err402];}else {vErrors.push(err402);}errors++;}if(data144.type === undefined){const err403 = {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 = [err403];}else {vErrors.push(err403);}errors++;}if(data144.exact === undefined){const err404 = {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 = [err404];}else {vErrors.push(err404);}errors++;}if(data144.prefix === undefined){const err405 = {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 = [err405];}else {vErrors.push(err405);}errors++;}if(data144.suffix === undefined){const err406 = {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 = [err406];}else {vErrors.push(err406);}errors++;}if(data144.id !== undefined){let data145 = data144.id;if(typeof data145 === "string"){if(!(formats0(data145))){const err407 = {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 = [err407];}else {vErrors.push(err407);}errors++;}}else {const err408 = {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 = [err408];}else {vErrors.push(err408);}errors++;}}if(data144.type !== undefined){let data146 = data144.type;if(Array.isArray(data146)){if(data146.length > 2){const err409 = {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 = [err409];}else {vErrors.push(err409);}errors++;}if(data146.length < 2){const err410 = {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 = [err410];}else {vErrors.push(err410);}errors++;}const len25 = data146.length;if(len25 > 0){let data147 = data146[0];if(typeof data147 !== "string"){const err411 = {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 = [err411];}else {vErrors.push(err411);}errors++;}if("TextQuoteSelector" !== data147){const err412 = {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 = [err412];}else {vErrors.push(err412);}errors++;}}if(len25 > 1){let data148 = data146[1];if(typeof data148 !== "string"){const err413 = {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 = [err413];}else {vErrors.push(err413);}errors++;}if("crm:E33_Linguistic_Object" !== data148){const err414 = {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 = [err414];}else {vErrors.push(err414);}errors++;}}}else {const err415 = {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 = [err415];}else {vErrors.push(err415);}errors++;}}if(data144.exact !== undefined){if(typeof data144.exact !== "string"){const err416 = {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 = [err416];}else {vErrors.push(err416);}errors++;}}if(data144.prefix !== undefined){if(typeof data144.prefix !== "string"){const err417 = {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 = [err417];}else {vErrors.push(err417);}errors++;}}if(data144.suffix !== undefined){if(typeof data144.suffix !== "string"){const err418 = {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 = [err418];}else {vErrors.push(err418);}errors++;}}if(data144.refinedBy !== undefined){let data152 = data144.refinedBy;const _errs400 = errors;let valid90 = false;let passing4 = null;const _errs401 = errors;if(data152 && typeof data152 == "object" && !Array.isArray(data152)){if(data152.id === undefined){const err419 = {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 = [err419];}else {vErrors.push(err419);}errors++;}if(data152.type === undefined){const err420 = {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 = [err420];}else {vErrors.push(err420);}errors++;}if(data152.start === undefined){const err421 = {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 = [err421];}else {vErrors.push(err421);}errors++;}if(data152.end === undefined){const err422 = {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 = [err422];}else {vErrors.push(err422);}errors++;}if(data152.id !== undefined){let data153 = data152.id;if(typeof data153 === "string"){if(!(formats0(data153))){const err423 = {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 = [err423];}else {vErrors.push(err423);}errors++;}}else {const err424 = {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 = [err424];}else {vErrors.push(err424);}errors++;}}if(data152.type !== undefined){let data154 = data152.type;if(Array.isArray(data154)){if(data154.length > 2){const err425 = {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 = [err425];}else {vErrors.push(err425);}errors++;}if(data154.length < 2){const err426 = {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 = [err426];}else {vErrors.push(err426);}errors++;}const len26 = data154.length;if(len26 > 0){let data155 = data154[0];if(typeof data155 !== "string"){const err427 = {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 = [err427];}else {vErrors.push(err427);}errors++;}if("TextPositionSelector" !== data155){const err428 = {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 = [err428];}else {vErrors.push(err428);}errors++;}}if(len26 > 1){let data156 = data154[1];if(typeof data156 !== "string"){const err429 = {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 = [err429];}else {vErrors.push(err429);}errors++;}if("crm:E73_Information_Object" !== data156){const err430 = {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 = [err430];}else {vErrors.push(err430);}errors++;}}}else {const err431 = {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 = [err431];}else {vErrors.push(err431);}errors++;}}if(data152.start !== undefined){let data157 = data152.start;if((typeof data157 == "number") && (isFinite(data157))){if(data157 < 0 || isNaN(data157)){const err432 = {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 = [err432];}else {vErrors.push(err432);}errors++;}}else {const err433 = {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 = [err433];}else {vErrors.push(err433);}errors++;}}if(data152.end !== undefined){let data158 = data152.end;if((typeof data158 == "number") && (isFinite(data158))){if(data158 < 0 || isNaN(data158)){const err434 = {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 = [err434];}else {vErrors.push(err434);}errors++;}}else {const err435 = {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 = [err435];}else {vErrors.push(err435);}errors++;}}}else {const err436 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}var _valid14 = _errs401 === errors;if(_valid14){valid90 = true;passing4 = 0;}const _errs416 = errors;if(data152 && typeof data152 == "object" && !Array.isArray(data152)){if(data152.id === undefined){const err437 = {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 = [err437];}else {vErrors.push(err437);}errors++;}if(data152.type === undefined){const err438 = {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 = [err438];}else {vErrors.push(err438);}errors++;}if(data152.exact === undefined){const err439 = {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 = [err439];}else {vErrors.push(err439);}errors++;}if(data152.prefix === undefined){const err440 = {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 = [err440];}else {vErrors.push(err440);}errors++;}if(data152.suffix === undefined){const err441 = {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 = [err441];}else {vErrors.push(err441);}errors++;}if(data152.id !== undefined){let data159 = data152.id;if(typeof data159 === "string"){if(!(formats0(data159))){const err442 = {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 = [err442];}else {vErrors.push(err442);}errors++;}}else {const err443 = {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 = [err443];}else {vErrors.push(err443);}errors++;}}if(data152.type !== undefined){let data160 = data152.type;if(Array.isArray(data160)){if(data160.length > 2){const err444 = {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 = [err444];}else {vErrors.push(err444);}errors++;}if(data160.length < 2){const err445 = {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 = [err445];}else {vErrors.push(err445);}errors++;}const len27 = data160.length;if(len27 > 0){let data161 = data160[0];if(typeof data161 !== "string"){const err446 = {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 = [err446];}else {vErrors.push(err446);}errors++;}if("TextQuoteSelector" !== data161){const err447 = {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 = [err447];}else {vErrors.push(err447);}errors++;}}if(len27 > 1){let data162 = data160[1];if(typeof data162 !== "string"){const err448 = {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 = [err448];}else {vErrors.push(err448);}errors++;}if("crm:E33_Linguistic_Object" !== data162){const err449 = {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 = [err449];}else {vErrors.push(err449);}errors++;}}}else {const err450 = {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 = [err450];}else {vErrors.push(err450);}errors++;}}if(data152.exact !== undefined){if(typeof data152.exact !== "string"){const err451 = {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 = [err451];}else {vErrors.push(err451);}errors++;}}if(data152.prefix !== undefined){if(typeof data152.prefix !== "string"){const err452 = {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 = [err452];}else {vErrors.push(err452);}errors++;}}if(data152.suffix !== undefined){if(typeof data152.suffix !== "string"){const err453 = {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 = [err453];}else {vErrors.push(err453);}errors++;}}}else {const err454 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}var _valid14 = _errs416 === errors;if(_valid14 && valid90){valid90 = false;passing4 = [passing4, 1];}else {if(_valid14){valid90 = true;passing4 = 1;}}if(!valid90){const err455 = {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 = [err455];}else {vErrors.push(err455);}errors++;}else {errors = _errs400;if(vErrors !== null){if(_errs400){vErrors.length = _errs400;}else {vErrors = null;}}}if(!(data152 && typeof data152 == "object" && !Array.isArray(data152))){const err456 = {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 = [err456];}else {vErrors.push(err456);}errors++;}}}else {const err457 = {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 = [err457];}else {vErrors.push(err457);}errors++;}var _valid13 = _errs382 === errors;if(_valid13){valid87 = true;passing3 = 0;}const _errs433 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err458 = {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 = [err458];}else {vErrors.push(err458);}errors++;}if(data144.type === undefined){const err459 = {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 = [err459];}else {vErrors.push(err459);}errors++;}if(data144.start === undefined){const err460 = {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 = [err460];}else {vErrors.push(err460);}errors++;}if(data144.end === undefined){const err461 = {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 = [err461];}else {vErrors.push(err461);}errors++;}if(data144.id !== undefined){let data166 = data144.id;if(typeof data166 === "string"){if(!(formats0(data166))){const err462 = {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 = [err462];}else {vErrors.push(err462);}errors++;}}else {const err463 = {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 = [err463];}else {vErrors.push(err463);}errors++;}}if(data144.type !== undefined){let data167 = data144.type;if(Array.isArray(data167)){if(data167.length > 2){const err464 = {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 = [err464];}else {vErrors.push(err464);}errors++;}if(data167.length < 2){const err465 = {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 = [err465];}else {vErrors.push(err465);}errors++;}const len28 = data167.length;if(len28 > 0){let data168 = data167[0];if(typeof data168 !== "string"){const err466 = {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 = [err466];}else {vErrors.push(err466);}errors++;}if("TextPositionSelector" !== data168){const err467 = {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 = [err467];}else {vErrors.push(err467);}errors++;}}if(len28 > 1){let data169 = data167[1];if(typeof data169 !== "string"){const err468 = {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 = [err468];}else {vErrors.push(err468);}errors++;}if("crm:E73_Information_Object" !== data169){const err469 = {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 = [err469];}else {vErrors.push(err469);}errors++;}}}else {const err470 = {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 = [err470];}else {vErrors.push(err470);}errors++;}}if(data144.start !== undefined){let data170 = data144.start;if((typeof data170 == "number") && (isFinite(data170))){if(data170 < 0 || isNaN(data170)){const err471 = {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 = [err471];}else {vErrors.push(err471);}errors++;}}else {const err472 = {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 = [err472];}else {vErrors.push(err472);}errors++;}}if(data144.end !== undefined){let data171 = data144.end;if((typeof data171 == "number") && (isFinite(data171))){if(data171 < 0 || isNaN(data171)){const err473 = {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 = [err473];}else {vErrors.push(err473);}errors++;}}else {const err474 = {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 = [err474];}else {vErrors.push(err474);}errors++;}}if(data144.refinedBy !== undefined){let data172 = data144.refinedBy;const _errs449 = errors;let valid99 = false;let passing5 = null;const _errs450 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.id === undefined){const err475 = {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 = [err475];}else {vErrors.push(err475);}errors++;}if(data172.type === undefined){const err476 = {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 = [err476];}else {vErrors.push(err476);}errors++;}if(data172.start === undefined){const err477 = {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 = [err477];}else {vErrors.push(err477);}errors++;}if(data172.end === undefined){const err478 = {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 = [err478];}else {vErrors.push(err478);}errors++;}if(data172.id !== undefined){let data173 = data172.id;if(typeof data173 === "string"){if(!(formats0(data173))){const err479 = {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 = [err479];}else {vErrors.push(err479);}errors++;}}else {const err480 = {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 = [err480];}else {vErrors.push(err480);}errors++;}}if(data172.type !== undefined){let data174 = data172.type;if(Array.isArray(data174)){if(data174.length > 2){const err481 = {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 = [err481];}else {vErrors.push(err481);}errors++;}if(data174.length < 2){const err482 = {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 = [err482];}else {vErrors.push(err482);}errors++;}const len29 = data174.length;if(len29 > 0){let data175 = data174[0];if(typeof data175 !== "string"){const err483 = {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 = [err483];}else {vErrors.push(err483);}errors++;}if("TextPositionSelector" !== data175){const err484 = {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 = [err484];}else {vErrors.push(err484);}errors++;}}if(len29 > 1){let data176 = data174[1];if(typeof data176 !== "string"){const err485 = {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 = [err485];}else {vErrors.push(err485);}errors++;}if("crm:E73_Information_Object" !== data176){const err486 = {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 = [err486];}else {vErrors.push(err486);}errors++;}}}else {const err487 = {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 = [err487];}else {vErrors.push(err487);}errors++;}}if(data172.start !== undefined){let data177 = data172.start;if((typeof data177 == "number") && (isFinite(data177))){if(data177 < 0 || isNaN(data177)){const err488 = {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 = [err488];}else {vErrors.push(err488);}errors++;}}else {const err489 = {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 = [err489];}else {vErrors.push(err489);}errors++;}}if(data172.end !== undefined){let data178 = data172.end;if((typeof data178 == "number") && (isFinite(data178))){if(data178 < 0 || isNaN(data178)){const err490 = {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 = [err490];}else {vErrors.push(err490);}errors++;}}else {const err491 = {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 = [err491];}else {vErrors.push(err491);}errors++;}}}else {const err492 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}var _valid15 = _errs450 === errors;if(_valid15){valid99 = true;passing5 = 0;}const _errs465 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.id === undefined){const err493 = {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 = [err493];}else {vErrors.push(err493);}errors++;}if(data172.type === undefined){const err494 = {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 = [err494];}else {vErrors.push(err494);}errors++;}if(data172.exact === undefined){const err495 = {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 = [err495];}else {vErrors.push(err495);}errors++;}if(data172.prefix === undefined){const err496 = {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 = [err496];}else {vErrors.push(err496);}errors++;}if(data172.suffix === undefined){const err497 = {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 = [err497];}else {vErrors.push(err497);}errors++;}if(data172.id !== undefined){let data179 = data172.id;if(typeof data179 === "string"){if(!(formats0(data179))){const err498 = {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 = [err498];}else {vErrors.push(err498);}errors++;}}else {const err499 = {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 = [err499];}else {vErrors.push(err499);}errors++;}}if(data172.type !== undefined){let data180 = data172.type;if(Array.isArray(data180)){if(data180.length > 2){const err500 = {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 = [err500];}else {vErrors.push(err500);}errors++;}if(data180.length < 2){const err501 = {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 = [err501];}else {vErrors.push(err501);}errors++;}const len30 = data180.length;if(len30 > 0){let data181 = data180[0];if(typeof data181 !== "string"){const err502 = {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 = [err502];}else {vErrors.push(err502);}errors++;}if("TextQuoteSelector" !== data181){const err503 = {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 = [err503];}else {vErrors.push(err503);}errors++;}}if(len30 > 1){let data182 = data180[1];if(typeof data182 !== "string"){const err504 = {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 = [err504];}else {vErrors.push(err504);}errors++;}if("crm:E33_Linguistic_Object" !== data182){const err505 = {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 = [err505];}else {vErrors.push(err505);}errors++;}}}else {const err506 = {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 = [err506];}else {vErrors.push(err506);}errors++;}}if(data172.exact !== undefined){if(typeof data172.exact !== "string"){const err507 = {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 = [err507];}else {vErrors.push(err507);}errors++;}}if(data172.prefix !== undefined){if(typeof data172.prefix !== "string"){const err508 = {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 = [err508];}else {vErrors.push(err508);}errors++;}}if(data172.suffix !== undefined){if(typeof data172.suffix !== "string"){const err509 = {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 = [err509];}else {vErrors.push(err509);}errors++;}}}else {const err510 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}var _valid15 = _errs465 === errors;if(_valid15 && valid99){valid99 = false;passing5 = [passing5, 1];}else {if(_valid15){valid99 = true;passing5 = 1;}}if(!valid99){const err511 = {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 = [err511];}else {vErrors.push(err511);}errors++;}else {errors = _errs449;if(vErrors !== null){if(_errs449){vErrors.length = _errs449;}else {vErrors = null;}}}if(!(data172 && typeof data172 == "object" && !Array.isArray(data172))){const err512 = {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 = [err512];}else {vErrors.push(err512);}errors++;}}}else {const err513 = {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 = [err513];}else {vErrors.push(err513);}errors++;}var _valid13 = _errs433 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 1];}else {if(_valid13){valid87 = true;passing3 = 1;}const _errs482 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err514 = {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 = [err514];}else {vErrors.push(err514);}errors++;}if(data144.type === undefined){const err515 = {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 = [err515];}else {vErrors.push(err515);}errors++;}if(data144.value === undefined){const err516 = {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 = [err516];}else {vErrors.push(err516);}errors++;}if(data144.id !== undefined){let data186 = data144.id;if(typeof data186 === "string"){if(!(formats0(data186))){const err517 = {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 = [err517];}else {vErrors.push(err517);}errors++;}}else {const err518 = {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 = [err518];}else {vErrors.push(err518);}errors++;}}if(data144.type !== undefined){let data187 = data144.type;if(Array.isArray(data187)){if(data187.length > 2){const err519 = {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 = [err519];}else {vErrors.push(err519);}errors++;}if(data187.length < 2){const err520 = {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 = [err520];}else {vErrors.push(err520);}errors++;}const len31 = data187.length;if(len31 > 0){let data188 = data187[0];if(typeof data188 !== "string"){const err521 = {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 = [err521];}else {vErrors.push(err521);}errors++;}if("XPathSelector" !== data188){const err522 = {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 = [err522];}else {vErrors.push(err522);}errors++;}}if(len31 > 1){let data189 = data187[1];if(typeof data189 !== "string"){const err523 = {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 = [err523];}else {vErrors.push(err523);}errors++;}if("crm:E73_Information_Object" !== data189){const err524 = {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 = [err524];}else {vErrors.push(err524);}errors++;}}}else {const err525 = {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 = [err525];}else {vErrors.push(err525);}errors++;}}if(data144.value !== undefined){if(typeof data144.value !== "string"){const err526 = {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 = [err526];}else {vErrors.push(err526);}errors++;}}if(data144.refinedBy !== undefined){let data191 = data144.refinedBy;const _errs496 = errors;let valid108 = false;const _errs497 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.id === undefined){const err527 = {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 = [err527];}else {vErrors.push(err527);}errors++;}if(data191.type === undefined){const err528 = {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 = [err528];}else {vErrors.push(err528);}errors++;}if(data191.start === undefined){const err529 = {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 = [err529];}else {vErrors.push(err529);}errors++;}if(data191.end === undefined){const err530 = {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 = [err530];}else {vErrors.push(err530);}errors++;}if(data191.id !== undefined){let data192 = data191.id;if(typeof data192 === "string"){if(!(formats0(data192))){const err531 = {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 = [err531];}else {vErrors.push(err531);}errors++;}}else {const err532 = {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 = [err532];}else {vErrors.push(err532);}errors++;}}if(data191.type !== undefined){let data193 = data191.type;if(Array.isArray(data193)){if(data193.length > 2){const err533 = {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 = [err533];}else {vErrors.push(err533);}errors++;}if(data193.length < 2){const err534 = {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 = [err534];}else {vErrors.push(err534);}errors++;}const len32 = data193.length;if(len32 > 0){let data194 = data193[0];if(typeof data194 !== "string"){const err535 = {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 = [err535];}else {vErrors.push(err535);}errors++;}if("TextPositionSelector" !== data194){const err536 = {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 = [err536];}else {vErrors.push(err536);}errors++;}}if(len32 > 1){let data195 = data193[1];if(typeof data195 !== "string"){const err537 = {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 = [err537];}else {vErrors.push(err537);}errors++;}if("crm:E73_Information_Object" !== data195){const err538 = {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 = [err538];}else {vErrors.push(err538);}errors++;}}}else {const err539 = {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 = [err539];}else {vErrors.push(err539);}errors++;}}if(data191.start !== undefined){let data196 = data191.start;if((typeof data196 == "number") && (isFinite(data196))){if(data196 < 0 || isNaN(data196)){const err540 = {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 = [err540];}else {vErrors.push(err540);}errors++;}}else {const err541 = {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 = [err541];}else {vErrors.push(err541);}errors++;}}if(data191.end !== undefined){let data197 = data191.end;if((typeof data197 == "number") && (isFinite(data197))){if(data197 < 0 || isNaN(data197)){const err542 = {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 = [err542];}else {vErrors.push(err542);}errors++;}}else {const err543 = {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 = [err543];}else {vErrors.push(err543);}errors++;}}}else {const err544 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}var _valid16 = _errs497 === errors;valid108 = valid108 || _valid16;if(!valid108){const _errs512 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.id === undefined){const err545 = {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 = [err545];}else {vErrors.push(err545);}errors++;}if(data191.type === undefined){const err546 = {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 = [err546];}else {vErrors.push(err546);}errors++;}if(data191.exact === undefined){const err547 = {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 = [err547];}else {vErrors.push(err547);}errors++;}if(data191.prefix === undefined){const err548 = {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 = [err548];}else {vErrors.push(err548);}errors++;}if(data191.suffix === undefined){const err549 = {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 = [err549];}else {vErrors.push(err549);}errors++;}if(data191.id !== undefined){let data198 = data191.id;if(typeof data198 === "string"){if(!(formats0(data198))){const err550 = {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 = [err550];}else {vErrors.push(err550);}errors++;}}else {const err551 = {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 = [err551];}else {vErrors.push(err551);}errors++;}}if(data191.type !== undefined){let data199 = data191.type;if(Array.isArray(data199)){if(data199.length > 2){const err552 = {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 = [err552];}else {vErrors.push(err552);}errors++;}if(data199.length < 2){const err553 = {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 = [err553];}else {vErrors.push(err553);}errors++;}const len33 = data199.length;if(len33 > 0){let data200 = data199[0];if(typeof data200 !== "string"){const err554 = {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 = [err554];}else {vErrors.push(err554);}errors++;}if("TextQuoteSelector" !== data200){const err555 = {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 = [err555];}else {vErrors.push(err555);}errors++;}}if(len33 > 1){let data201 = data199[1];if(typeof data201 !== "string"){const err556 = {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 = [err556];}else {vErrors.push(err556);}errors++;}if("crm:E33_Linguistic_Object" !== data201){const err557 = {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 = [err557];}else {vErrors.push(err557);}errors++;}}}else {const err558 = {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 = [err558];}else {vErrors.push(err558);}errors++;}}if(data191.exact !== undefined){if(typeof data191.exact !== "string"){const err559 = {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 = [err559];}else {vErrors.push(err559);}errors++;}}if(data191.prefix !== undefined){if(typeof data191.prefix !== "string"){const err560 = {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 = [err560];}else {vErrors.push(err560);}errors++;}}if(data191.suffix !== undefined){if(typeof data191.suffix !== "string"){const err561 = {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 = [err561];}else {vErrors.push(err561);}errors++;}}}else {const err562 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}var _valid16 = _errs512 === errors;valid108 = valid108 || _valid16;}if(!valid108){const err563 = {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 = [err563];}else {vErrors.push(err563);}errors++;}else {errors = _errs496;if(vErrors !== null){if(_errs496){vErrors.length = _errs496;}else {vErrors = null;}}}if(!(data191 && typeof data191 == "object" && !Array.isArray(data191))){const err564 = {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 = [err564];}else {vErrors.push(err564);}errors++;}}}else {const err565 = {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 = [err565];}else {vErrors.push(err565);}errors++;}var _valid13 = _errs482 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 2];}else {if(_valid13){valid87 = true;passing3 = 2;}const _errs529 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err566 = {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 = [err566];}else {vErrors.push(err566);}errors++;}if(data144.type === undefined){const err567 = {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 = [err567];}else {vErrors.push(err567);}errors++;}if(data144.value === undefined){const err568 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}if(data144.id !== undefined){let data205 = data144.id;if(typeof data205 === "string"){if(!(formats0(data205))){const err569 = {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 = [err569];}else {vErrors.push(err569);}errors++;}}else {const err570 = {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 = [err570];}else {vErrors.push(err570);}errors++;}}if(data144.type !== undefined){let data206 = data144.type;if(Array.isArray(data206)){if(data206.length > 2){const err571 = {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 = [err571];}else {vErrors.push(err571);}errors++;}if(data206.length < 2){const err572 = {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 = [err572];}else {vErrors.push(err572);}errors++;}const len34 = data206.length;if(len34 > 0){let data207 = data206[0];if(typeof data207 !== "string"){const err573 = {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 = [err573];}else {vErrors.push(err573);}errors++;}if("CssSelector" !== data207){const err574 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "CssSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}}if(len34 > 1){let data208 = data206[1];if(typeof data208 !== "string"){const err575 = {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 = [err575];}else {vErrors.push(err575);}errors++;}if("crm:E73_Information_Object" !== data208){const err576 = {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 = [err576];}else {vErrors.push(err576);}errors++;}}}else {const err577 = {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 = [err577];}else {vErrors.push(err577);}errors++;}}if(data144.value !== undefined){if(typeof data144.value !== "string"){const err578 = {instancePath:instancePath+"/selector/" + i2+"/value",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err578];}else {vErrors.push(err578);}errors++;}}if(data144.refinedBy !== undefined){let data210 = data144.refinedBy;const _errs543 = errors;let valid117 = false;const _errs544 = errors;if(data210 && typeof data210 == "object" && !Array.isArray(data210)){if(data210.id === undefined){const err579 = {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 = [err579];}else {vErrors.push(err579);}errors++;}if(data210.type === undefined){const err580 = {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 = [err580];}else {vErrors.push(err580);}errors++;}if(data210.start === undefined){const err581 = {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 = [err581];}else {vErrors.push(err581);}errors++;}if(data210.end === undefined){const err582 = {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 = [err582];}else {vErrors.push(err582);}errors++;}if(data210.id !== undefined){let data211 = data210.id;if(typeof data211 === "string"){if(!(formats0(data211))){const err583 = {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 = [err583];}else {vErrors.push(err583);}errors++;}}else {const err584 = {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 = [err584];}else {vErrors.push(err584);}errors++;}}if(data210.type !== undefined){let data212 = data210.type;if(Array.isArray(data212)){if(data212.length > 2){const err585 = {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 = [err585];}else {vErrors.push(err585);}errors++;}if(data212.length < 2){const err586 = {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 = [err586];}else {vErrors.push(err586);}errors++;}const len35 = data212.length;if(len35 > 0){let data213 = data212[0];if(typeof data213 !== "string"){const err587 = {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 = [err587];}else {vErrors.push(err587);}errors++;}if("TextPositionSelector" !== data213){const err588 = {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 = [err588];}else {vErrors.push(err588);}errors++;}}if(len35 > 1){let data214 = data212[1];if(typeof data214 !== "string"){const err589 = {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 = [err589];}else {vErrors.push(err589);}errors++;}if("crm:E73_Information_Object" !== data214){const err590 = {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 = [err590];}else {vErrors.push(err590);}errors++;}}}else {const err591 = {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 = [err591];}else {vErrors.push(err591);}errors++;}}if(data210.start !== undefined){let data215 = data210.start;if((typeof data215 == "number") && (isFinite(data215))){if(data215 < 0 || isNaN(data215)){const err592 = {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 = [err592];}else {vErrors.push(err592);}errors++;}}else {const err593 = {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 = [err593];}else {vErrors.push(err593);}errors++;}}if(data210.end !== undefined){let data216 = data210.end;if((typeof data216 == "number") && (isFinite(data216))){if(data216 < 0 || isNaN(data216)){const err594 = {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 = [err594];}else {vErrors.push(err594);}errors++;}}else {const err595 = {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 = [err595];}else {vErrors.push(err595);}errors++;}}}else {const err596 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err596];}else {vErrors.push(err596);}errors++;}var _valid17 = _errs544 === errors;valid117 = valid117 || _valid17;if(!valid117){const _errs559 = errors;if(data210 && typeof data210 == "object" && !Array.isArray(data210)){if(data210.id === undefined){const err597 = {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 = [err597];}else {vErrors.push(err597);}errors++;}if(data210.type === undefined){const err598 = {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 = [err598];}else {vErrors.push(err598);}errors++;}if(data210.exact === undefined){const err599 = {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 = [err599];}else {vErrors.push(err599);}errors++;}if(data210.prefix === undefined){const err600 = {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 = [err600];}else {vErrors.push(err600);}errors++;}if(data210.suffix === undefined){const err601 = {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 = [err601];}else {vErrors.push(err601);}errors++;}if(data210.id !== undefined){let data217 = data210.id;if(typeof data217 === "string"){if(!(formats0(data217))){const err602 = {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 = [err602];}else {vErrors.push(err602);}errors++;}}else {const err603 = {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 = [err603];}else {vErrors.push(err603);}errors++;}}if(data210.type !== undefined){let data218 = data210.type;if(Array.isArray(data218)){if(data218.length > 2){const err604 = {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 = [err604];}else {vErrors.push(err604);}errors++;}if(data218.length < 2){const err605 = {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 = [err605];}else {vErrors.push(err605);}errors++;}const len36 = data218.length;if(len36 > 0){let data219 = data218[0];if(typeof data219 !== "string"){const err606 = {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 = [err606];}else {vErrors.push(err606);}errors++;}if("TextQuoteSelector" !== data219){const err607 = {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 = [err607];}else {vErrors.push(err607);}errors++;}}if(len36 > 1){let data220 = data218[1];if(typeof data220 !== "string"){const err608 = {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 = [err608];}else {vErrors.push(err608);}errors++;}if("crm:E33_Linguistic_Object" !== data220){const err609 = {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 = [err609];}else {vErrors.push(err609);}errors++;}}}else {const err610 = {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 = [err610];}else {vErrors.push(err610);}errors++;}}if(data210.exact !== undefined){if(typeof data210.exact !== "string"){const err611 = {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 = [err611];}else {vErrors.push(err611);}errors++;}}if(data210.prefix !== undefined){if(typeof data210.prefix !== "string"){const err612 = {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 = [err612];}else {vErrors.push(err612);}errors++;}}if(data210.suffix !== undefined){if(typeof data210.suffix !== "string"){const err613 = {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 = [err613];}else {vErrors.push(err613);}errors++;}}}else {const err614 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err614];}else {vErrors.push(err614);}errors++;}var _valid17 = _errs559 === errors;valid117 = valid117 || _valid17;}if(!valid117){const err615 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err615];}else {vErrors.push(err615);}errors++;}else {errors = _errs543;if(vErrors !== null){if(_errs543){vErrors.length = _errs543;}else {vErrors = null;}}}if(!(data210 && typeof data210 == "object" && !Array.isArray(data210))){const err616 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err616];}else {vErrors.push(err616);}errors++;}}}else {const err617 = {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 = [err617];}else {vErrors.push(err617);}errors++;}var _valid13 = _errs529 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 3];}else {if(_valid13){valid87 = true;passing3 = 3;}const _errs576 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err618 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err618];}else {vErrors.push(err618);}errors++;}if(data144.type === undefined){const err619 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err619];}else {vErrors.push(err619);}errors++;}if(data144.startSelector === undefined){const err620 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err620];}else {vErrors.push(err620);}errors++;}if(data144.endSelector === undefined){const err621 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err621];}else {vErrors.push(err621);}errors++;}if(data144.id !== undefined){let data224 = data144.id;if(typeof data224 === "string"){if(!(formats0(data224))){const err622 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err622];}else {vErrors.push(err622);}errors++;}}else {const err623 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err623];}else {vErrors.push(err623);}errors++;}}if(data144.type !== undefined){let data225 = data144.type;if(Array.isArray(data225)){if(data225.length > 2){const err624 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err624];}else {vErrors.push(err624);}errors++;}if(data225.length < 2){const err625 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err625];}else {vErrors.push(err625);}errors++;}const len37 = data225.length;if(len37 > 0){let data226 = data225[0];if(typeof data226 !== "string"){const err626 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err626];}else {vErrors.push(err626);}errors++;}if("RangeSelector" !== data226){const err627 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err627];}else {vErrors.push(err627);}errors++;}}if(len37 > 1){let data227 = data225[1];if(typeof data227 !== "string"){const err628 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err628];}else {vErrors.push(err628);}errors++;}if("crm:E73_Information_Object" !== data227){const err629 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err629];}else {vErrors.push(err629);}errors++;}}}else {const err630 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err630];}else {vErrors.push(err630);}errors++;}}if(data144.startSelector !== undefined){let data228 = data144.startSelector;if(data228 && typeof data228 == "object" && !Array.isArray(data228)){if(data228.id === undefined){const err631 = {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 = [err631];}else {vErrors.push(err631);}errors++;}if(data228.type === undefined){const err632 = {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 = [err632];}else {vErrors.push(err632);}errors++;}if(data228.value === undefined){const err633 = {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 = [err633];}else {vErrors.push(err633);}errors++;}if(data228.id !== undefined){let data229 = data228.id;if(typeof data229 === "string"){if(!(formats0(data229))){const err634 = {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 = [err634];}else {vErrors.push(err634);}errors++;}}else {const err635 = {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 = [err635];}else {vErrors.push(err635);}errors++;}}if(data228.type !== undefined){let data230 = data228.type;if(Array.isArray(data230)){if(data230.length > 2){const err636 = {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 = [err636];}else {vErrors.push(err636);}errors++;}if(data230.length < 2){const err637 = {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 = [err637];}else {vErrors.push(err637);}errors++;}const len38 = data230.length;if(len38 > 0){let data231 = data230[0];if(typeof data231 !== "string"){const err638 = {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 = [err638];}else {vErrors.push(err638);}errors++;}if("XPathSelector" !== data231){const err639 = {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 = [err639];}else {vErrors.push(err639);}errors++;}}if(len38 > 1){let data232 = data230[1];if(typeof data232 !== "string"){const err640 = {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 = [err640];}else {vErrors.push(err640);}errors++;}if("crm:E73_Information_Object" !== data232){const err641 = {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 = [err641];}else {vErrors.push(err641);}errors++;}}}else {const err642 = {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 = [err642];}else {vErrors.push(err642);}errors++;}}if(data228.value !== undefined){if(typeof data228.value !== "string"){const err643 = {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 = [err643];}else {vErrors.push(err643);}errors++;}}}else {const err644 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err644];}else {vErrors.push(err644);}errors++;}}if(data144.endSelector !== undefined){let data234 = data144.endSelector;if(data234 && typeof data234 == "object" && !Array.isArray(data234)){if(data234.id === undefined){const err645 = {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 = [err645];}else {vErrors.push(err645);}errors++;}if(data234.type === undefined){const err646 = {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 = [err646];}else {vErrors.push(err646);}errors++;}if(data234.value === undefined){const err647 = {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 = [err647];}else {vErrors.push(err647);}errors++;}if(data234.id !== undefined){let data235 = data234.id;if(typeof data235 === "string"){if(!(formats0(data235))){const err648 = {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 = [err648];}else {vErrors.push(err648);}errors++;}}else {const err649 = {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 = [err649];}else {vErrors.push(err649);}errors++;}}if(data234.type !== undefined){let data236 = data234.type;if(Array.isArray(data236)){if(data236.length > 2){const err650 = {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 = [err650];}else {vErrors.push(err650);}errors++;}if(data236.length < 2){const err651 = {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 = [err651];}else {vErrors.push(err651);}errors++;}const len39 = data236.length;if(len39 > 0){let data237 = data236[0];if(typeof data237 !== "string"){const err652 = {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 = [err652];}else {vErrors.push(err652);}errors++;}if("XPathSelector" !== data237){const err653 = {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 = [err653];}else {vErrors.push(err653);}errors++;}}if(len39 > 1){let data238 = data236[1];if(typeof data238 !== "string"){const err654 = {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 = [err654];}else {vErrors.push(err654);}errors++;}if("crm:E73_Information_Object" !== data238){const err655 = {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 = [err655];}else {vErrors.push(err655);}errors++;}}}else {const err656 = {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 = [err656];}else {vErrors.push(err656);}errors++;}}if(data234.value !== undefined){if(typeof data234.value !== "string"){const err657 = {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 = [err657];}else {vErrors.push(err657);}errors++;}}}else {const err658 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err658];}else {vErrors.push(err658);}errors++;}}}else {const err659 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err659];}else {vErrors.push(err659);}errors++;}var _valid13 = _errs576 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 4];}else {if(_valid13){valid87 = true;passing3 = 4;}}}}}if(!valid87){const err660 = {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 = [err660];}else {vErrors.push(err660);}errors++;}else {errors = _errs381;if(vErrors !== null){if(_errs381){vErrors.length = _errs381;}else {vErrors = null;}}}if(!(data144 && typeof data144 == "object" && !Array.isArray(data144))){const err661 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err661];}else {vErrors.push(err661);}errors++;}}}else {const err662 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err662];}else {vErrors.push(err662);}errors++;}var _valid7 = _errs377 === errors;valid39 = valid39 || _valid7;}if(!valid39){const err663 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err663];}else {vErrors.push(err663);}errors++;}else {errors = _errs143;if(vErrors !== null){if(_errs143){vErrors.length = _errs143;}else {vErrors = null;}}}}}else {const err664 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err664];}else {vErrors.push(err664);}errors++;}validate12.errors = vErrors;return errors === 0;}const schema42 = {"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":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E53_Place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"biography:fictionalPlace"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"frbroo:F1"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"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"}]}]},{"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"}]}]},{"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"},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"crm:E5_Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]}]},"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 validate15(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;const _errs9 = errors;let valid2 = false;let passing1 = null;const _errs10 = errors;if(typeof data2 !== "string"){const err9 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}if("crm:E21_Person" !== data2){const err10 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}var _valid1 = _errs10 === errors;if(_valid1){valid2 = true;passing1 = 0;}const _errs12 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err11 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}if(data2.length < 2){const err12 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}const len0 = data2.length;if(len0 > 0){let data3 = data2[0];if(typeof data3 !== "string"){const err13 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}if("foaf:Person" !== data3){const err14 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}if(len0 > 1){let data4 = data2[1];if(typeof data4 !== "string"){const err15 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/items/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/oneOf/1/items/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++;}}}else {const err17 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}var _valid1 = _errs12 === errors;if(_valid1 && valid2){valid2 = false;passing1 = [passing1, 1];}else {if(_valid1){valid2 = true;passing1 = 1;}}if(!valid2){const err18 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}else {errors = _errs9;if(vErrors !== null){if(_errs9){vErrors.length = _errs9;}else {vErrors = null;}}}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("crm:E53_Place" !== data2){const err20 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_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("biography:fictionalPlace" !== data5){const err24 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},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;const _errs29 = errors;let valid6 = false;let passing3 = null;const _errs30 = errors;if(typeof data2 !== "string"){const err29 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}if("crm:E74_Group" !== data2){const err30 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}var _valid3 = _errs30 === errors;if(_valid3){valid6 = true;passing3 = 0;}const _errs32 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err31 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}if(data2.length < 2){const err32 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}const len2 = data2.length;if(len2 > 0){let data7 = data2[0];if(typeof data7 !== "string"){const err33 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}if("foaf:Organization" !== data7){const err34 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}}if(len2 > 1){let data8 = data2[1];if(typeof data8 !== "string"){const err35 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/items/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/oneOf/1/items/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++;}}}else {const err37 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}var _valid3 = _errs32 === errors;if(_valid3 && valid6){valid6 = false;passing3 = [passing3, 1];}else {if(_valid3){valid6 = true;passing3 = 1;}}if(!valid6){const err38 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}else {errors = _errs29;if(vErrors !== null){if(_errs29){vErrors.length = _errs29;}else {vErrors = null;}}}var _valid0 = _errs28 === errors;if(_valid0 && valid1){valid1 = false;passing0 = [passing0, 2];}else {if(_valid0){valid1 = true;passing0 = 2;}const _errs38 = errors;const _errs39 = errors;let valid8 = false;let passing4 = null;const _errs40 = errors;if(typeof data2 !== "string"){const err39 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("frbroo:F1" !== data2){const err40 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var _valid4 = _errs40 === errors;if(_valid4){valid8 = true;passing4 = 0;}const _errs42 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err41 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}if(data2.length < 2){const err42 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}const len3 = data2.length;if(len3 > 0){let data9 = data2[0];if(typeof data9 !== "string"){const err43 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}if("frbroo:F1" !== data9){const err44 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}}if(len3 > 1){let data10 = data2[1];if(typeof data10 !== "string"){const err45 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/items/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/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}}}else {const err47 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var _valid4 = _errs42 === errors;if(_valid4 && valid8){valid8 = false;passing4 = [passing4, 1];}else {if(_valid4){valid8 = true;passing4 = 1;}}if(!valid8){const err48 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}else {errors = _errs39;if(vErrors !== null){if(_errs39){vErrors.length = _errs39;}else {vErrors = null;}}}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;const _errs103 = errors;let valid19 = false;let passing7 = null;const _errs104 = errors;if(typeof data2 !== "string"){const err108 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if("crm:E5_Event" !== data2){const err109 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}var _valid7 = _errs104 === errors;if(_valid7){valid19 = true;passing7 = 0;}const _errs106 = errors;if(Array.isArray(data2)){if(data2.length > 2){const err110 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if(data2.length < 2){const err111 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}const len11 = data2.length;if(len11 > 0){let data25 = data2[0];if(typeof data25 !== "string"){const err112 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/items/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" !== data25){const err113 = {instancePath:instancePath+"/entityType/0",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/items/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++;}}if(len11 > 1){let data26 = data2[1];if(typeof data26 !== "string"){const err114 = {instancePath:instancePath+"/entityType/1",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/items/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/oneOf/1/items/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++;}}}else {const err116 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}var _valid7 = _errs106 === errors;if(_valid7 && valid19){valid19 = false;passing7 = [passing7, 1];}else {if(_valid7){valid19 = true;passing7 = 1;}}if(!valid19){const err117 = {instancePath:instancePath+"/entityType",schemaPath:"#/properties/entityType/oneOf/13/oneOf",keyword:"oneOf",params:{passingSchemas: passing7},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}else {errors = _errs103;if(vErrors !== null){if(_errs103){vErrors.length = _errs103;}else {vErrors = null;}}}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(!((((((((key1 === "id") || (key1 === "type")) || (key1 === "entityType")) || (key1 === "additionalType")) || (key1 === "value")) || (key1 === "label")) || (key1 === "modeExistence")) || (key1 === "description"))){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;const _errs166 = errors;let valid39 = false;let passing9 = null;const _errs167 = errors;if(typeof data45 !== "string"){const err165 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if("crm:E21_Person" !== data45){const err166 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}var _valid13 = _errs167 === errors;if(_valid13){valid39 = true;passing9 = 0;}const _errs169 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err167 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if(data45.length < 2){const err168 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}const len17 = data45.length;if(len17 > 0){let data46 = data45[0];if(typeof data46 !== "string"){const err169 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}if("foaf:Person" !== data46){const err170 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}if(len17 > 1){let data47 = data45[1];if(typeof data47 !== "string"){const err171 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/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/oneOf/1/items/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++;}}}else {const err173 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}var _valid13 = _errs169 === errors;if(_valid13 && valid39){valid39 = false;passing9 = [passing9, 1];}else {if(_valid13){valid39 = true;passing9 = 1;}}if(!valid39){const err174 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}else {errors = _errs166;if(vErrors !== null){if(_errs166){vErrors.length = _errs166;}else {vErrors = null;}}}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("crm:E53_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: "crm:E53_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("biography:fictionalPlace" !== 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: "biography:fictionalPlace"},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;const _errs186 = errors;let valid43 = false;let passing11 = null;const _errs187 = errors;if(typeof data45 !== "string"){const err185 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if("crm:E74_Group" !== data45){const err186 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}var _valid15 = _errs187 === errors;if(_valid15){valid43 = true;passing11 = 0;}const _errs189 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err187 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(data45.length < 2){const err188 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}const len19 = data45.length;if(len19 > 0){let data50 = data45[0];if(typeof data50 !== "string"){const err189 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}if("foaf:Organization" !== data50){const err190 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}}if(len19 > 1){let data51 = data45[1];if(typeof data51 !== "string"){const err191 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/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/oneOf/1/items/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++;}}}else {const err193 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var _valid15 = _errs189 === errors;if(_valid15 && valid43){valid43 = false;passing11 = [passing11, 1];}else {if(_valid15){valid43 = true;passing11 = 1;}}if(!valid43){const err194 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}else {errors = _errs186;if(vErrors !== null){if(_errs186){vErrors.length = _errs186;}else {vErrors = null;}}}var _valid12 = _errs185 === errors;if(_valid12 && valid38){valid38 = false;passing8 = [passing8, 2];}else {if(_valid12){valid38 = true;passing8 = 2;}const _errs195 = errors;const _errs196 = errors;let valid45 = false;let passing12 = null;const _errs197 = errors;if(typeof data45 !== "string"){const err195 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if("frbroo:F1" !== data45){const err196 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}var _valid16 = _errs197 === errors;if(_valid16){valid45 = true;passing12 = 0;}const _errs199 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err197 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/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(data45.length < 2){const err198 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/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 len20 = data45.length;if(len20 > 0){let data52 = data45[0];if(typeof data52 !== "string"){const err199 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if("frbroo:F1" !== data52){const err200 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}}if(len20 > 1){let data53 = data45[1];if(typeof data53 !== "string"){const err201 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/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/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}}else {const err203 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}var _valid16 = _errs199 === errors;if(_valid16 && valid45){valid45 = false;passing12 = [passing12, 1];}else {if(_valid16){valid45 = true;passing12 = 1;}}if(!valid45){const err204 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}else {errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}}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;const _errs260 = errors;let valid56 = false;let passing15 = null;const _errs261 = errors;if(typeof data45 !== "string"){const err264 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}if("crm:E5_Event" !== data45){const err265 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}var _valid19 = _errs261 === errors;if(_valid19){valid56 = true;passing15 = 0;}const _errs263 = errors;if(Array.isArray(data45)){if(data45.length > 2){const err266 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if(data45.length < 2){const err267 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}const len28 = data45.length;if(len28 > 0){let data68 = data45[0];if(typeof data68 !== "string"){const err268 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/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" !== data68){const err269 = {instancePath:instancePath+"/items/" + i0+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/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++;}}if(len28 > 1){let data69 = data45[1];if(typeof data69 !== "string"){const err270 = {instancePath:instancePath+"/items/" + i0+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/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/oneOf/1/items/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++;}}}else {const err272 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}var _valid19 = _errs263 === errors;if(_valid19 && valid56){valid56 = false;passing15 = [passing15, 1];}else {if(_valid19){valid56 = true;passing15 = 1;}}if(!valid56){const err273 = {instancePath:instancePath+"/items/" + i0+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf",keyword:"oneOf",params:{passingSchemas: passing15},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}else {errors = _errs260;if(vErrors !== null){if(_errs260){vErrors.length = _errs260;}else {vErrors = null;}}}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.label !== undefined){let data73 = data29.label;if(typeof data73 === "string"){if(func3(data73) < 1){const err280 = {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 = [err280];}else {vErrors.push(err280);}errors++;}}else {const err281 = {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 = [err281];}else {vErrors.push(err281);}errors++;}}if(data29.modeExistence !== undefined){let data74 = data29.modeExistence;const _errs282 = errors;let valid61 = false;let passing16 = null;const _errs283 = errors;if(typeof data74 !== "string"){const err282 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}if("edit:modeReal" !== data74){const err283 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:modeReal"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var _valid21 = _errs283 === errors;if(_valid21){valid61 = true;passing16 = 0;}const _errs285 = errors;if(typeof data74 !== "string"){const err284 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if("edit:modeFictional" !== data74){const err285 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:modeFictional"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}var _valid21 = _errs285 === errors;if(_valid21 && valid61){valid61 = false;passing16 = [passing16, 1];}else {if(_valid21){valid61 = true;passing16 = 1;}const _errs287 = errors;if(typeof data74 !== "string"){const err286 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}if("edit:modeIdentifiable" !== data74){const err287 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:modeIdentifiable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}var _valid21 = _errs287 === errors;if(_valid21 && valid61){valid61 = false;passing16 = [passing16, 2];}else {if(_valid21){valid61 = true;passing16 = 2;}}}if(!valid61){const err288 = {instancePath:instancePath+"/items/" + i0+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf",keyword:"oneOf",params:{passingSchemas: passing16},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}else {errors = _errs282;if(vErrors !== null){if(_errs282){vErrors.length = _errs282;}else {vErrors = null;}}}}if(data29.description !== undefined){if(typeof data29.description !== "string"){const err289 = {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 = [err289];}else {vErrors.push(err289);}errors++;}}}else {const err290 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}}else {const err291 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}}else {const err292 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}validate15.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;const _errs10 = errors;let valid5 = false;let passing1 = null;const _errs11 = errors;if(typeof data1 !== "string"){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if("crm:E21_Person" !== data1){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid2 = _errs11 === errors;if(_valid2){valid5 = true;passing1 = 0;}const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data1)){if(data1.length > 2){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {if(data1.length < 2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs15 = errors;if(typeof data2 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("foaf:Person" !== data2){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid6 = _errs15 === errors;}if(valid6){if(len0 > 1){let data3 = data1[1];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 valid6 = _errs17 === errors;}}}}}else {const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid2 = _errs13 === errors;if(_valid2 && valid5){valid5 = false;passing1 = [passing1, 1];}else {if(_valid2){valid5 = true;passing1 = 1;}}if(!valid5){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}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("crm:E53_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("biography:fictionalPlace" !== 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;const _errs30 = errors;let valid9 = false;let passing3 = null;const _errs31 = errors;if(typeof data1 !== "string"){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("crm:E74_Group" !== data1){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid4 = _errs31 === errors;if(_valid4){valid9 = true;passing3 = 0;}const _errs33 = errors;if(errors === _errs33){if(Array.isArray(data1)){if(data1.length > 2){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data1.length < 2){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {const len2 = data1.length;if(len2 > 0){let data6 = data1[0];const _errs35 = errors;if(typeof data6 !== "string"){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("foaf:Organization" !== data6){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid10 = _errs35 === errors;}if(valid10){if(len2 > 1){let data7 = data1[1];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 valid10 = _errs37 === errors;}}}}}else {const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var _valid4 = _errs33 === errors;if(_valid4 && valid9){valid9 = false;passing3 = [passing3, 1];}else {if(_valid4){valid9 = true;passing3 = 1;}}if(!valid9){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}var _valid1 = _errs29 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 2];}else {if(_valid1){valid4 = true;passing0 = 2;}const _errs39 = errors;const _errs40 = errors;let valid11 = false;let passing4 = null;const _errs41 = errors;if(typeof data1 !== "string"){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("frbroo:F1" !== data1){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid5 = _errs41 === errors;if(_valid5){valid11 = true;passing4 = 0;}const _errs43 = errors;if(errors === _errs43){if(Array.isArray(data1)){if(data1.length > 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data1.length < 2){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const len3 = data1.length;if(len3 > 0){let data8 = data1[0];const _errs45 = errors;if(typeof data8 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("frbroo:F1" !== data8){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid12 = _errs45 === errors;}if(valid12){if(len3 > 1){let data9 = data1[1];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 valid12 = _errs47 === errors;}}}}}else {const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var _valid5 = _errs43 === errors;if(_valid5 && valid11){valid11 = false;passing4 = [passing4, 1];}else {if(_valid5){valid11 = true;passing4 = 1;}}if(!valid11){const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs40;if(vErrors !== null){if(_errs40){vErrors.length = _errs40;}else {vErrors = null;}}}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;const _errs76 = errors;let valid18 = false;let passing7 = null;const _errs77 = errors;if(typeof data1 !== "string"){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if("crm:E5_Event" !== data1){const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}var _valid8 = _errs77 === errors;if(_valid8){valid18 = true;passing7 = 0;}const _errs79 = errors;if(errors === _errs79){if(Array.isArray(data1)){if(data1.length > 2){const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}else {if(data1.length < 2){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {const len7 = data1.length;if(len7 > 0){let data16 = data1[0];const _errs81 = errors;if(typeof data16 !== "string"){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}if("crm:E5_Event" !== data16){const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}var valid19 = _errs81 === errors;}if(valid19){if(len7 > 1){let data17 = data1[1];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 valid19 = _errs83 === errors;}}}}}else {const err75 = {};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}var _valid8 = _errs79 === errors;if(_valid8 && valid18){valid18 = false;passing7 = [passing7, 1];}else {if(_valid8){valid18 = true;passing7 = 1;}}if(!valid18){const err76 = {};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}else {errors = _errs76;if(vErrors !== null){if(_errs76){vErrors.length = _errs76;}else {vErrors = null;}}}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(typeof data18 !== "string"){const err80 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if("oa:identifying" !== data18){const err81 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}}}else {const err82 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}var _valid0 = _errs85 === errors;valid1 = _valid0;ifClause0 = "then";}else {const _errs89 = errors;const _errs90 = errors;let valid21 = true;const _errs91 = errors;if(errors === _errs91){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data19 = data.body;const _errs93 = errors;if(errors === _errs93){if(data19 && typeof data19 == "object" && !Array.isArray(data19)){if(data19.entityType !== undefined){let data20 = data19.entityType;if(typeof data20 !== "string"){const err83 = {};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}if("crm:E33_Linguistic_Object" !== data20){const err84 = {};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}}}else {const err85 = {};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}}}}else {const err86 = {};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}var _valid9 = _errs91 === errors;errors = _errs90;if(vErrors !== null){if(_errs90){vErrors.length = _errs90;}else {vErrors = null;}}let ifClause1;if(_valid9){const _errs97 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data21 = data.motivation;if(typeof data21 !== "string"){const err87 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("oa:describing" !== data21){const err88 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}}}else {const err89 = {instancePath,schemaPath:"#/allOf/0/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}var _valid9 = _errs97 === errors;valid21 = _valid9;ifClause1 = "then";}else {const _errs101 = errors;const _errs102 = errors;let valid25 = true;const _errs103 = errors;if(errors === _errs103){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data22 = data.body;const _errs105 = errors;if(errors === _errs105){if(data22 && typeof data22 == "object" && !Array.isArray(data22)){if(data22.entityType !== undefined){let data23 = data22.entityType;const _errs107 = errors;if(errors === _errs107){if(Array.isArray(data23)){if(data23.length > 2){const err90 = {};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}else {if(data23.length < 2){const err91 = {};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {const len8 = data23.length;if(len8 > 0){let data24 = data23[0];const _errs109 = errors;if(typeof data24 !== "string"){const err92 = {};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if("fabio:Correction" !== data24){const err93 = {};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}var valid28 = _errs109 === errors;}if(valid28){if(len8 > 1){let data25 = data23[1];const _errs111 = errors;if(typeof data25 !== "string"){const err94 = {};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if("crm:E33_Linguistic_Object" !== data25){const err95 = {};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}var valid28 = _errs111 === errors;}}}}}else {const err96 = {};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}}}}else {const err97 = {};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}}}else {const err98 = {};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}var _valid10 = _errs103 === errors;errors = _errs102;if(vErrors !== null){if(_errs102){vErrors.length = _errs102;}else {vErrors = null;}}let ifClause2;if(_valid10){const _errs113 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data26 = data.motivation;if(typeof data26 !== "string"){const err99 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}if("correcting" !== data26){const err100 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}}}else {const err101 = {instancePath,schemaPath:"#/allOf/0/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}var _valid10 = _errs113 === errors;valid25 = _valid10;ifClause2 = "then";}else {const _errs117 = errors;const _errs118 = errors;let valid30 = true;const _errs119 = errors;if(errors === _errs119){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data27 = data.body;const _errs121 = errors;if(errors === _errs121){if(data27 && typeof data27 == "object" && !Array.isArray(data27)){if(data27.entityType !== undefined){let data28 = data27.entityType;const _errs123 = errors;if(errors === _errs123){if(Array.isArray(data28)){if(data28.length > 2){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {if(data28.length < 2){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}else {const len9 = data28.length;if(len9 > 0){let data29 = data28[0];const _errs125 = errors;if(typeof data29 !== "string"){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if("crm:E55_Type" !== data29){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}var valid33 = _errs125 === errors;}if(valid33){if(len9 > 1){let data30 = data28[1];const _errs127 = errors;if(typeof data30 !== "string"){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if("crm:E33_Linguistic_Object" !== data30){const err107 = {};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}var valid33 = _errs127 === errors;}}}}}else {const err108 = {};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}}}}else {const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}}else {const err110 = {};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}}var _valid11 = _errs119 === errors;errors = _errs118;if(vErrors !== null){if(_errs118){vErrors.length = _errs118;}else {vErrors = null;}}let ifClause3;if(_valid11){const _errs129 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data31 = data.motivation;if(typeof data31 !== "string"){const err111 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}if("oa:tagging" !== data31){const err112 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}}}else {const err113 = {instancePath,schemaPath:"#/allOf/0/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}var _valid11 = _errs129 === errors;valid30 = _valid11;ifClause3 = "then";}else {const _errs133 = errors;const _errs134 = errors;let valid35 = true;const _errs135 = errors;if(errors === _errs135){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data32 = data.body;const _errs137 = errors;if(errors === _errs137){if(data32 && typeof data32 == "object" && !Array.isArray(data32)){if(data32.entityType !== undefined){let data33 = data32.entityType;const _errs139 = errors;if(errors === _errs139){if(Array.isArray(data33)){if(data33.length > 2){const err114 = {};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}else {if(data33.length < 2){const err115 = {};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}else {const len10 = data33.length;if(len10 > 0){let data34 = data33[0];const _errs141 = errors;if(typeof data34 !== "string"){const err116 = {};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}if("crm:E55_Type" !== data34){const err117 = {};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}var valid38 = _errs141 === errors;}if(valid38){if(len10 > 1){let data35 = data33[1];const _errs143 = errors;if(typeof data35 !== "string"){const err118 = {};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if("crmdig:D1_Digital_Object" !== data35){const err119 = {};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}var valid38 = _errs143 === errors;}}}}}else {const err120 = {};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}}}}else {const err121 = {};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}}}}else {const err122 = {};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}var _valid12 = _errs135 === errors;errors = _errs134;if(vErrors !== null){if(_errs134){vErrors.length = _errs134;}else {vErrors = null;}}let ifClause4;if(_valid12){const _errs145 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data36 = data.motivation;if(typeof data36 !== "string"){const err123 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if("oa:classifying" !== data36){const err124 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:classifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}}}else {const err125 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var _valid12 = _errs145 === errors;valid35 = _valid12;ifClause4 = "then";}else {const _errs149 = errors;const _errs150 = errors;let valid40 = true;const _errs151 = errors;if(errors === _errs151){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data37 = data.body;const _errs153 = errors;if(errors === _errs153){if(data37 && typeof data37 == "object" && !Array.isArray(data37)){if(data37.entityType !== undefined){let data38 = data37.entityType;if(typeof data38 !== "string"){const err126 = {};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if("crmdig:D1_Digital_Object" !== data38){const err127 = {};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}}}else {const err128 = {};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}}}}else {const err129 = {};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}var _valid13 = _errs151 === errors;errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}let ifClause5;if(_valid13){const _errs157 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data39 = data.motivation;if(typeof data39 !== "string"){const err130 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if("oa:linking" !== data39){const err131 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}}else {const err132 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}var _valid13 = _errs157 === errors;valid40 = _valid13;ifClause5 = "then";}else {const _errs161 = errors;const _errs162 = errors;let valid44 = true;const _errs163 = errors;if(errors === _errs163){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data40 = data.body;const _errs165 = errors;if(errors === _errs165){if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.entityType !== undefined){let data41 = data40.entityType;const _errs167 = errors;if(errors === _errs167){if(Array.isArray(data41)){if(data41.length > 2){const err133 = {};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {if(data41.length < 2){const err134 = {};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}else {const len11 = data41.length;if(len11 > 0){let data42 = data41[0];const _errs169 = errors;if(typeof data42 !== "string"){const err135 = {};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if("cito:Citation" !== data42){const err136 = {};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}var valid47 = _errs169 === errors;}if(valid47){if(len11 > 1){let data43 = data41[1];const _errs171 = errors;if(typeof data43 !== "string"){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}if("crm:E73_Information_Object" !== data43){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}var valid47 = _errs171 === errors;}}}}}else {const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}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++;}}var _valid14 = _errs163 === errors;errors = _errs162;if(vErrors !== null){if(_errs162){vErrors.length = _errs162;}else {vErrors = null;}}if(_valid14){const _errs173 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data44 = data.motivation;if(typeof data44 !== "string"){const err142 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}if("citing" !== data44){const err143 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}}}else {const err144 = {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 = [err144];}else {vErrors.push(err144);}errors++;}var _valid14 = _errs173 === errors;valid44 = _valid14;}if(!valid44){const err145 = {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 = [err145];}else {vErrors.push(err145);}errors++;}var _valid13 = _errs161 === errors;valid40 = _valid13;ifClause5 = "else";}if(!valid40){const err146 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}var _valid12 = _errs149 === errors;valid35 = _valid12;ifClause4 = "else";}if(!valid35){const err147 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}var _valid11 = _errs133 === errors;valid30 = _valid11;ifClause3 = "else";}if(!valid30){const err148 = {instancePath,schemaPath:"#/allOf/0/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}var _valid10 = _errs117 === errors;valid25 = _valid10;ifClause2 = "else";}if(!valid25){const err149 = {instancePath,schemaPath:"#/allOf/0/else/else/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var _valid9 = _errs101 === errors;valid21 = _valid9;ifClause1 = "else";}if(!valid21){const err150 = {instancePath,schemaPath:"#/allOf/0/else/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}var _valid0 = _errs89 === errors;valid1 = _valid0;ifClause0 = "else";}if(!valid1){const err151 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data["@context"] === undefined){const err152 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "@context"},message:"must have required property '"+"@context"+"'"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if(data.id === undefined){const err153 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}if(data.type === undefined){const err154 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if(data.motivation === undefined){const err155 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "motivation"},message:"must have required property '"+"motivation"+"'"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}if(data.created === undefined){const err156 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "created"},message:"must have required property '"+"created"+"'"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if(data.generator === undefined){const err157 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "generator"},message:"must have required property '"+"generator"+"'"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if(data.target === undefined){const err158 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if(data.body === undefined){const err159 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "body"},message:"must have required property '"+"body"+"'"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}for(const key0 in data){if(!(func2.call(schema11.properties, key0))){const err160 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(data["@context"] !== undefined){let data45 = data["@context"];if(Array.isArray(data45)){if(data45.length > 3){const err161 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if(data45.length < 3){const err162 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}const len12 = data45.length;if(len12 > 0){let data46 = data45[0];if(typeof data46 !== "string"){const err163 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if("http://www.w3.org/ns/anno.jsonld" !== data46){const err164 = {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 = [err164];}else {vErrors.push(err164);}errors++;}}if(len12 > 1){let data47 = data45[1];if(typeof data47 !== "string"){const err165 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if("https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld" !== data47){const err166 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/const",keyword:"const",params:{allowedValue: "https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}}if(len12 > 2){let data48 = data45[2];if(typeof data48 !== "string"){const err167 = {instancePath:instancePath+"/@context/2",schemaPath:"#/properties/%40context/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if("https://wa.lincsproject.ca/v1/ns/anno.jsonld" !== data48){const err168 = {instancePath:instancePath+"/@context/2",schemaPath:"#/properties/%40context/items/2/const",keyword:"const",params:{allowedValue: "https://wa.lincsproject.ca/v1/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}}}else {const err169 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}if(data.id !== undefined){let data49 = data.id;if(typeof data49 === "string"){if(!(formats0(data49))){const err170 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}}else {const err171 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}if(data.type !== undefined){let data50 = data.type;if(Array.isArray(data50)){if(data50.length > 2){const err172 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/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(data50.length < 2){const err173 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/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 len13 = data50.length;if(len13 > 0){let data51 = data50[0];if(typeof data51 !== "string"){const err174 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}if("Annotation" !== data51){const err175 = {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 = [err175];}else {vErrors.push(err175);}errors++;}}if(len13 > 1){let data52 = data50[1];if(typeof data52 !== "string"){const err176 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}if("crm:E33_Linguistic_Object" !== data52){const err177 = {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 = [err177];}else {vErrors.push(err177);}errors++;}}}else {const err178 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(data.motivation !== undefined){let data53 = data.motivation;if(typeof data53 !== "string"){const err179 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if(!(((((((data53 === "oa:identifying") || (data53 === "oa:describing")) || (data53 === "correcting")) || (data53 === "oa:tagging")) || (data53 === "oa:classifying")) || (data53 === "oa:linking")) || (data53 === "citing"))){const err180 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/enum",keyword:"enum",params:{allowedValues: schema11.properties.motivation.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}if(data.created !== undefined){let data54 = data.created;if(typeof data54 === "string"){if(!(formats2.validate(data54))){const err181 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}}else {const err182 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}}if(data.modified !== undefined){let data55 = data.modified;if(typeof data55 === "string"){if(!(formats2.validate(data55))){const err183 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}else {const err184 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}if(data.creator !== undefined){let data56 = data.creator;const _errs201 = errors;let valid52 = false;let passing8 = null;const _errs202 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.id === undefined){const err185 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}if(data56.type === undefined){const err186 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if(data56.name === undefined){const err187 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}if(data56.id !== undefined){let data57 = data56.id;if(typeof data57 === "string"){if(!(formats0(data57))){const err188 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}else {const err189 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data56.type !== undefined){let data58 = data56.type;if(typeof data58 !== "string"){const err190 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if("crm:E21_Person" !== data58){const err191 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}if(data56.name !== undefined){let data59 = data56.name;if(typeof data59 === "string"){if(func3(data59) < 1){const err192 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}else {const err193 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}}}else {const err194 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}var _valid15 = _errs202 === errors;if(_valid15){valid52 = true;passing8 = 0;}const _errs211 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.id === undefined){const err195 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}if(data56.type === undefined){const err196 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if(data56.name === undefined){const err197 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}if(data56.id !== undefined){let data60 = data56.id;if(typeof data60 === "string"){if(!(formats0(data60))){const err198 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}}else {const err199 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}}if(data56.type !== undefined){let data61 = data56.type;if(typeof data61 !== "string"){const err200 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}if("crm:E74_Group" !== data61){const err201 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}}if(data56.name !== undefined){let data62 = data56.name;if(typeof data62 === "string"){if(func3(data62) < 1){const err202 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}}else {const err203 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}}}else {const err204 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}var _valid15 = _errs211 === errors;if(_valid15 && valid52){valid52 = false;passing8 = [passing8, 1];}else {if(_valid15){valid52 = true;passing8 = 1;}const _errs220 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.id === undefined){const err205 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if(data56.type === undefined){const err206 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}if(data56.name === undefined){const err207 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}if(data56.id !== undefined){let data63 = data56.id;if(typeof data63 === "string"){if(!(formats0(data63))){const err208 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}}else {const err209 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}}if(data56.type !== undefined){let data64 = data56.type;if(Array.isArray(data64)){if(data64.length > 2){const err210 = {instancePath:instancePath+"/creator/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 = [err210];}else {vErrors.push(err210);}errors++;}if(data64.length < 2){const err211 = {instancePath:instancePath+"/creator/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 = [err211];}else {vErrors.push(err211);}errors++;}const len14 = data64.length;if(len14 > 0){let data65 = data64[0];if(typeof data65 !== "string"){const err212 = {instancePath:instancePath+"/creator/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 = [err212];}else {vErrors.push(err212);}errors++;}if("Software" !== data65){const err213 = {instancePath:instancePath+"/creator/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 = [err213];}else {vErrors.push(err213);}errors++;}}if(len14 > 1){let data66 = data64[1];if(typeof data66 !== "string"){const err214 = {instancePath:instancePath+"/creator/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 = [err214];}else {vErrors.push(err214);}errors++;}if("crm:E73_Information_Object" !== data66){const err215 = {instancePath:instancePath+"/creator/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}}}else {const err216 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}}if(data56.P16_used_specific_object !== undefined){let data67 = data56.P16_used_specific_object;if((typeof data67 !== "string") && (data67 !== null)){const err217 = {instancePath:instancePath+"/creator/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}if(typeof data67 === "string"){if(!(formats0(data67))){const err218 = {instancePath:instancePath+"/creator/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}}}if(data56.name !== undefined){let data68 = data56.name;if(typeof data68 === "string"){if(func3(data68) < 1){const err219 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}else {const err220 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}if(data56.softwareVersion !== undefined){let data69 = data56.softwareVersion;if((typeof data69 !== "string") && (data69 !== null)){const err221 = {instancePath:instancePath+"/creator/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/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+"/creator",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}var _valid15 = _errs220 === errors;if(_valid15 && valid52){valid52 = false;passing8 = [passing8, 2];}else {if(_valid15){valid52 = true;passing8 = 2;}}}if(!valid52){const err223 = {instancePath:instancePath+"/creator",schemaPath:"#/properties/creator/oneOf",keyword:"oneOf",params:{passingSchemas: passing8},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}else {errors = _errs201;if(vErrors !== null){if(_errs201){vErrors.length = _errs201;}else {vErrors = null;}}}}if(data.contributor !== undefined){let data70 = data.contributor;if(Array.isArray(data70)){if(data70.length < 1){const err224 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}const len15 = data70.length;for(let i0=0; i0<len15; i0++){let data71 = data70[i0];const _errs242 = errors;let valid62 = false;let passing9 = null;const _errs243 = errors;if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.id === undefined){const err225 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}if(data71.type === undefined){const err226 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}if(data71.name === undefined){const err227 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}if(data71.id !== undefined){let data72 = data71.id;if(typeof data72 === "string"){if(!(formats0(data72))){const err228 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}}else {const err229 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}}if(data71.type !== undefined){let data73 = data71.type;if(typeof data73 !== "string"){const err230 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}if("crm:E21_Person" !== data73){const err231 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}}if(data71.name !== undefined){let data74 = data71.name;if(typeof data74 === "string"){if(func3(data74) < 1){const err232 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}}else {const err233 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}}}else {const err234 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/user/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}var _valid16 = _errs243 === errors;if(_valid16){valid62 = true;passing9 = 0;}const _errs252 = errors;if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.id === undefined){const err235 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if(data71.type === undefined){const err236 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}if(data71.name === undefined){const err237 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}if(data71.id !== undefined){let data75 = data71.id;if(typeof data75 === "string"){if(!(formats0(data75))){const err238 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/group/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/group/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}}if(data71.type !== undefined){let data76 = data71.type;if(typeof data76 !== "string"){const err240 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}if("crm:E74_Group" !== data76){const err241 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}}if(data71.name !== undefined){let data77 = data71.name;if(typeof data77 === "string"){if(func3(data77) < 1){const err242 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/group/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/group/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/group/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}var _valid16 = _errs252 === errors;if(_valid16 && valid62){valid62 = false;passing9 = [passing9, 1];}else {if(_valid16){valid62 = true;passing9 = 1;}const _errs261 = errors;if(data71 && typeof data71 == "object" && !Array.isArray(data71)){if(data71.id === undefined){const err245 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if(data71.type === undefined){const err246 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}if(data71.name === undefined){const err247 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}if(data71.id !== undefined){let data78 = data71.id;if(typeof data78 === "string"){if(!(formats0(data78))){const err248 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}}else {const err249 = {instancePath:instancePath+"/contributor/" + i0+"/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}}if(data71.type !== undefined){let data79 = data71.type;if(Array.isArray(data79)){if(data79.length > 2){const err250 = {instancePath:instancePath+"/contributor/" + i0+"/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 = [err250];}else {vErrors.push(err250);}errors++;}if(data79.length < 2){const err251 = {instancePath:instancePath+"/contributor/" + i0+"/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 = [err251];}else {vErrors.push(err251);}errors++;}const len16 = data79.length;if(len16 > 0){let data80 = data79[0];if(typeof data80 !== "string"){const err252 = {instancePath:instancePath+"/contributor/" + i0+"/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 = [err252];}else {vErrors.push(err252);}errors++;}if("Software" !== data80){const err253 = {instancePath:instancePath+"/contributor/" + i0+"/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 = [err253];}else {vErrors.push(err253);}errors++;}}if(len16 > 1){let data81 = data79[1];if(typeof data81 !== "string"){const err254 = {instancePath:instancePath+"/contributor/" + i0+"/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 = [err254];}else {vErrors.push(err254);}errors++;}if("crm:E73_Information_Object" !== data81){const err255 = {instancePath:instancePath+"/contributor/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}}}else {const err256 = {instancePath:instancePath+"/contributor/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}}if(data71.P16_used_specific_object !== undefined){let data82 = data71.P16_used_specific_object;if((typeof data82 !== "string") && (data82 !== null)){const err257 = {instancePath:instancePath+"/contributor/" + i0+"/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}if(typeof data82 === "string"){if(!(formats0(data82))){const err258 = {instancePath:instancePath+"/contributor/" + i0+"/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}}}if(data71.name !== undefined){let data83 = data71.name;if(typeof data83 === "string"){if(func3(data83) < 1){const err259 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}}else {const err260 = {instancePath:instancePath+"/contributor/" + i0+"/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}}if(data71.softwareVersion !== undefined){let data84 = data71.softwareVersion;if((typeof data84 !== "string") && (data84 !== null)){const err261 = {instancePath:instancePath+"/contributor/" + i0+"/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}}}else {const err262 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}var _valid16 = _errs261 === errors;if(_valid16 && valid62){valid62 = false;passing9 = [passing9, 2];}else {if(_valid16){valid62 = true;passing9 = 2;}}}if(!valid62){const err263 = {instancePath:instancePath+"/contributor/" + i0,schemaPath:"#/properties/contributor/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}else {errors = _errs242;if(vErrors !== null){if(_errs242){vErrors.length = _errs242;}else {vErrors = null;}}}}}else {const err264 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}}if(data.generator !== undefined){let data85 = data.generator;if(data85 && typeof data85 == "object" && !Array.isArray(data85)){if(data85.id === undefined){const err265 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}if(data85.type === undefined){const err266 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if(data85.name === undefined){const err267 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}if(data85.id !== undefined){let data86 = data85.id;if(typeof data86 === "string"){if(!(formats0(data86))){const err268 = {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 = [err268];}else {vErrors.push(err268);}errors++;}}else {const err269 = {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 = [err269];}else {vErrors.push(err269);}errors++;}}if(data85.type !== undefined){let data87 = data85.type;if(Array.isArray(data87)){if(data87.length > 2){const err270 = {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 = [err270];}else {vErrors.push(err270);}errors++;}if(data87.length < 2){const err271 = {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 = [err271];}else {vErrors.push(err271);}errors++;}const len17 = data87.length;if(len17 > 0){let data88 = data87[0];if(typeof data88 !== "string"){const err272 = {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 = [err272];}else {vErrors.push(err272);}errors++;}if("Software" !== data88){const err273 = {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 = [err273];}else {vErrors.push(err273);}errors++;}}if(len17 > 1){let data89 = data87[1];if(typeof data89 !== "string"){const err274 = {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 = [err274];}else {vErrors.push(err274);}errors++;}if("crm:E73_Information_Object" !== data89){const err275 = {instancePath:instancePath+"/generator/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}}}else {const err276 = {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 = [err276];}else {vErrors.push(err276);}errors++;}}if(data85.P16_used_specific_object !== undefined){let data90 = data85.P16_used_specific_object;if((typeof data90 !== "string") && (data90 !== null)){const err277 = {instancePath:instancePath+"/generator/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}if(typeof data90 === "string"){if(!(formats0(data90))){const err278 = {instancePath:instancePath+"/generator/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}}if(data85.name !== undefined){let data91 = data85.name;if(typeof data91 === "string"){if(func3(data91) < 1){const err279 = {instancePath:instancePath+"/generator/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}}else {const err280 = {instancePath:instancePath+"/generator/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}}if(data85.softwareVersion !== undefined){let data92 = data85.softwareVersion;if((typeof data92 !== "string") && (data92 !== null)){const err281 = {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 = [err281];}else {vErrors.push(err281);}errors++;}}}else {const err282 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}}if(data.target !== undefined){let data93 = data.target;const _errs300 = errors;let valid73 = false;let passing10 = null;const _errs301 = errors;if(!(validate12(data93, {instancePath:instancePath+"/target",parentData:data,parentDataProperty:"target",rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}var _valid17 = _errs301 === errors;if(_valid17){valid73 = true;passing10 = 0;}const _errs302 = errors;if(Array.isArray(data93)){if(data93.length < 1){const err283 = {instancePath:instancePath+"/target",schemaPath:"#/properties/target/oneOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}const len18 = data93.length;for(let i1=0; i1<len18; i1++){if(!(validate12(data93[i1], {instancePath:instancePath+"/target/" + i1,parentData:data93,parentDataProperty:i1,rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}}}else {const err284 = {instancePath:instancePath+"/target",schemaPath:"#/properties/target/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}var _valid17 = _errs302 === errors;if(_valid17 && valid73){valid73 = false;passing10 = [passing10, 1];}else {if(_valid17){valid73 = true;passing10 = 1;}}if(!valid73){const err285 = {instancePath:instancePath+"/target",schemaPath:"#/properties/target/oneOf",keyword:"oneOf",params:{passingSchemas: passing10},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}else {errors = _errs300;if(vErrors !== null){if(_errs300){vErrors.length = _errs300;}else {vErrors = null;}}}}if(data.body !== undefined){let data95 = data.body;const _errs306 = errors;let valid76 = false;let passing11 = null;const _errs307 = errors;if(!(validate15(data95, {instancePath:instancePath+"/body",parentData:data,parentDataProperty:"body",rootData}))){vErrors = vErrors === null ? validate15.errors : vErrors.concat(validate15.errors);errors = vErrors.length;}var _valid18 = _errs307 === errors;if(_valid18){valid76 = true;passing11 = 0;}const _errs308 = errors;const _errs311 = errors;let valid78 = false;const _errs312 = errors;const _errs313 = errors;let valid79 = true;const _errs314 = errors;if(errors === _errs314){if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.entityType !== undefined){let data96 = data95.entityType;const _errs317 = errors;let valid81 = false;const _errs318 = errors;if("crm:E33_Linguistic_Object" !== data96){const err286 = {};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}var _valid21 = _errs318 === errors;valid81 = valid81 || _valid21;if(!valid81){const _errs319 = errors;if(errors === _errs319){if(Array.isArray(data96)){if(data96.length > 2){const err287 = {};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}else {if(data96.length < 2){const err288 = {};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}else {const len19 = data96.length;if(len19 > 0){const _errs321 = errors;if("xsd:date" !== data96[0]){const err289 = {};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}var valid82 = _errs321 === errors;}if(valid82){if(len19 > 1){const _errs322 = errors;if("crm:E52_Time-Span" !== data96[1]){const err290 = {};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}var valid82 = _errs322 === errors;}}}}}else {const err291 = {};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}}var _valid21 = _errs319 === errors;valid81 = valid81 || _valid21;if(!valid81){const _errs323 = errors;if(errors === _errs323){if(Array.isArray(data96)){if(data96.length > 2){const err292 = {};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}else {if(data96.length < 2){const err293 = {};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}else {const len20 = data96.length;if(len20 > 0){const _errs325 = errors;if("fabio:Correction" !== data96[0]){const err294 = {};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}var valid83 = _errs325 === errors;}if(valid83){if(len20 > 1){const _errs326 = errors;if("crm:E33_Linguistic_Object" !== data96[1]){const err295 = {};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}var valid83 = _errs326 === errors;}}}}}else {const err296 = {};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}}var _valid21 = _errs323 === errors;valid81 = valid81 || _valid21;if(!valid81){const _errs327 = errors;if(errors === _errs327){if(Array.isArray(data96)){if(data96.length > 2){const err297 = {};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}else {if(data96.length < 2){const err298 = {};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}else {const len21 = data96.length;if(len21 > 0){const _errs329 = errors;if("crm:E55_Type" !== data96[0]){const err299 = {};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}var valid84 = _errs329 === errors;}if(valid84){if(len21 > 1){const _errs330 = errors;if("crm:E33_Linguistic_Object" !== data96[1]){const err300 = {};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}var valid84 = _errs330 === errors;}}}}}else {const err301 = {};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}}var _valid21 = _errs327 === errors;valid81 = valid81 || _valid21;}}}if(!valid81){const err302 = {};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}else {errors = _errs317;if(vErrors !== null){if(_errs317){vErrors.length = _errs317;}else {vErrors = null;}}}}}else {const err303 = {};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}}var _valid20 = _errs314 === errors;errors = _errs313;if(vErrors !== null){if(_errs313){vErrors.length = _errs313;}else {vErrors = null;}}if(_valid20){const _errs331 = errors;const _errs333 = errors;let valid85 = true;const _errs334 = errors;if(errors === _errs334){if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.entityType !== undefined){let data103 = data95.entityType;const _errs336 = errors;if(errors === _errs336){if(Array.isArray(data103)){if(data103.length > 2){const err304 = {};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}else {if(data103.length < 2){const err305 = {};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}else {const len22 = data103.length;if(len22 > 0){const _errs338 = errors;if("xsd:date" !== data103[0]){const err306 = {};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}var valid87 = _errs338 === errors;}if(valid87){if(len22 > 1){const _errs339 = errors;if("crm:E52_Time-Span" !== data103[1]){const err307 = {};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}var valid87 = _errs339 === errors;}}}}}else {const err308 = {};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}}}}else {const err309 = {};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}}var _valid22 = _errs334 === errors;errors = _errs333;if(vErrors !== null){if(_errs333){vErrors.length = _errs333;}else {vErrors = null;}}let ifClause6;if(_valid22){const _errs340 = errors;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.value !== undefined){let data106 = data95.value;if(typeof data106 === "string"){if(!pattern0.test(data106)){const err310 = {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 = [err310];}else {vErrors.push(err310);}errors++;}}else {const err311 = {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 = [err311];}else {vErrors.push(err311);}errors++;}}}else {const err312 = {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 = [err312];}else {vErrors.push(err312);}errors++;}var _valid22 = _errs340 === errors;valid85 = _valid22;ifClause6 = "then";}else {const _errs344 = errors;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.value !== undefined){if(typeof data95.value !== "string"){const err313 = {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 = [err313];}else {vErrors.push(err313);}errors++;}}}else {const err314 = {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 = [err314];}else {vErrors.push(err314);}errors++;}var _valid22 = _errs344 === errors;valid85 = _valid22;ifClause6 = "else";}if(!valid85){const err315 = {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 = [err315];}else {vErrors.push(err315);}errors++;}if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.type === undefined){const err316 = {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 = [err316];}else {vErrors.push(err316);}errors++;}if(data95.value === undefined){const err317 = {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 = [err317];}else {vErrors.push(err317);}errors++;}if(data95.type !== undefined){let data108 = data95.type;if(typeof data108 !== "string"){const err318 = {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 = [err318];}else {vErrors.push(err318);}errors++;}if("TextualBody" !== data108){const err319 = {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 = [err319];}else {vErrors.push(err319);}errors++;}}}else {const err320 = {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 = [err320];}else {vErrors.push(err320);}errors++;}var _valid20 = _errs331 === errors;valid79 = _valid20;}if(!valid79){const err321 = {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 = [err321];}else {vErrors.push(err321);}errors++;}var _valid19 = _errs312 === errors;valid78 = valid78 || _valid19;if(!valid78){const err322 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}else {errors = _errs311;if(vErrors !== null){if(_errs311){vErrors.length = _errs311;}else {vErrors = null;}}}if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.id === undefined){const err323 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}if(data95.entityType === undefined){const err324 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}for(const key1 in data95){if(!((((((((key1 === "id") || (key1 === "type")) || (key1 === "entityType")) || (key1 === "additionalType")) || (key1 === "value")) || (key1 === "label")) || (key1 === "modeExistence")) || (key1 === "description"))){const err325 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}}if(data95.id !== undefined){let data109 = data95.id;if(typeof data109 === "string"){if(!(formats0(data109))){const err326 = {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 = [err326];}else {vErrors.push(err326);}errors++;}}else {const err327 = {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 = [err327];}else {vErrors.push(err327);}errors++;}}if(data95.type !== undefined){let data110 = data95.type;if(typeof data110 !== "string"){const err328 = {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 = [err328];}else {vErrors.push(err328);}errors++;}if("TextualBody" !== data110){const err329 = {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 = [err329];}else {vErrors.push(err329);}errors++;}}if(data95.entityType !== undefined){let data111 = data95.entityType;const _errs356 = errors;let valid92 = false;let passing12 = null;const _errs357 = errors;const _errs358 = errors;let valid93 = false;let passing13 = null;const _errs359 = errors;if(typeof data111 !== "string"){const err330 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}if("crm:E21_Person" !== data111){const err331 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}var _valid24 = _errs359 === errors;if(_valid24){valid93 = true;passing13 = 0;}const _errs361 = errors;if(Array.isArray(data111)){if(data111.length > 2){const err332 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if(data111.length < 2){const err333 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}const len23 = data111.length;if(len23 > 0){let data112 = data111[0];if(typeof data112 !== "string"){const err334 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}if("foaf:Person" !== data112){const err335 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}}if(len23 > 1){let data113 = data111[1];if(typeof data113 !== "string"){const err336 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}if("crm:E89_Propositional_Object" !== data113){const err337 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}}}else {const err338 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}var _valid24 = _errs361 === errors;if(_valid24 && valid93){valid93 = false;passing13 = [passing13, 1];}else {if(_valid24){valid93 = true;passing13 = 1;}}if(!valid93){const err339 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing13},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}else {errors = _errs358;if(vErrors !== null){if(_errs358){vErrors.length = _errs358;}else {vErrors = null;}}}var _valid23 = _errs357 === errors;if(_valid23){valid92 = true;passing12 = 0;}const _errs367 = errors;const _errs368 = errors;let valid95 = false;let passing14 = null;const _errs369 = errors;if(typeof data111 !== "string"){const err340 = {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 = [err340];}else {vErrors.push(err340);}errors++;}if("crm:E53_Place" !== data111){const err341 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}var _valid25 = _errs369 === errors;if(_valid25){valid95 = true;passing14 = 0;}const _errs371 = errors;if(Array.isArray(data111)){if(data111.length > 2){const err342 = {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 = [err342];}else {vErrors.push(err342);}errors++;}if(data111.length < 2){const err343 = {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 = [err343];}else {vErrors.push(err343);}errors++;}const len24 = data111.length;if(len24 > 0){let data114 = data111[0];if(typeof data114 !== "string"){const err344 = {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 = [err344];}else {vErrors.push(err344);}errors++;}if("biography:fictionalPlace" !== data114){const err345 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}}if(len24 > 1){let data115 = data111[1];if(typeof data115 !== "string"){const err346 = {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 = [err346];}else {vErrors.push(err346);}errors++;}if("crm:E89_Propositional_Object" !== data115){const err347 = {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 = [err347];}else {vErrors.push(err347);}errors++;}}}else {const err348 = {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 = [err348];}else {vErrors.push(err348);}errors++;}var _valid25 = _errs371 === errors;if(_valid25 && valid95){valid95 = false;passing14 = [passing14, 1];}else {if(_valid25){valid95 = true;passing14 = 1;}}if(!valid95){const err349 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing14},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}else {errors = _errs368;if(vErrors !== null){if(_errs368){vErrors.length = _errs368;}else {vErrors = null;}}}var _valid23 = _errs367 === errors;if(_valid23 && valid92){valid92 = false;passing12 = [passing12, 1];}else {if(_valid23){valid92 = true;passing12 = 1;}const _errs377 = errors;const _errs378 = errors;let valid97 = false;let passing15 = null;const _errs379 = errors;if(typeof data111 !== "string"){const err350 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}if("crm:E74_Group" !== data111){const err351 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}var _valid26 = _errs379 === errors;if(_valid26){valid97 = true;passing15 = 0;}const _errs381 = errors;if(Array.isArray(data111)){if(data111.length > 2){const err352 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}if(data111.length < 2){const err353 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}const len25 = data111.length;if(len25 > 0){let data116 = data111[0];if(typeof data116 !== "string"){const err354 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}if("foaf:Organization" !== data116){const err355 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}}if(len25 > 1){let data117 = data111[1];if(typeof data117 !== "string"){const err356 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}if("crm:E89_Propositional_Object" !== data117){const err357 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}}}else {const err358 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}var _valid26 = _errs381 === errors;if(_valid26 && valid97){valid97 = false;passing15 = [passing15, 1];}else {if(_valid26){valid97 = true;passing15 = 1;}}if(!valid97){const err359 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing15},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}else {errors = _errs378;if(vErrors !== null){if(_errs378){vErrors.length = _errs378;}else {vErrors = null;}}}var _valid23 = _errs377 === errors;if(_valid23 && valid92){valid92 = false;passing12 = [passing12, 2];}else {if(_valid23){valid92 = true;passing12 = 2;}const _errs387 = errors;const _errs388 = errors;let valid99 = false;let passing16 = null;const _errs389 = errors;if(typeof data111 !== "string"){const err360 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}if("frbroo:F1" !== data111){const err361 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}var _valid27 = _errs389 === errors;if(_valid27){valid99 = true;passing16 = 0;}const _errs391 = errors;if(Array.isArray(data111)){if(data111.length > 2){const err362 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}if(data111.length < 2){const err363 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}const len26 = data111.length;if(len26 > 0){let data118 = data111[0];if(typeof data118 !== "string"){const err364 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}if("frbroo:F1" !== data118){const err365 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}}if(len26 > 1){let data119 = data111[1];if(typeof data119 !== "string"){const err366 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}if("wikidata:Q15306849" !== data119){const err367 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}}}else {const err368 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}var _valid27 = _errs391 === errors;if(_valid27 && valid99){valid99 = false;passing16 = [passing16, 1];}else {if(_valid27){valid99 = true;passing16 = 1;}}if(!valid99){const err369 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing16},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}else {errors = _errs388;if(vErrors !== null){if(_errs388){vErrors.length = _errs388;}else {vErrors = null;}}}var _valid23 = _errs387 === errors;if(_valid23 && valid92){valid92 = false;passing12 = [passing12, 3];}else {if(_valid23){valid92 = true;passing12 = 3;}const _errs397 = errors;const _errs398 = errors;let valid101 = false;let passing17 = null;const _errs399 = errors;if(typeof data111 !== "string"){const err370 = {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 = [err370];}else {vErrors.push(err370);}errors++;}if("crm:E18_Physical_Thing" !== data111){const err371 = {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 = [err371];}else {vErrors.push(err371);}errors++;}var _valid28 = _errs399 === errors;if(_valid28){valid101 = true;passing17 = 0;}const _errs401 = errors;if(Array.isArray(data111)){if(data111.length > 2){const err372 = {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 = [err372];}else {vErrors.push(err372);}errors++;}if(data111.length < 2){const err373 = {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 = [err373];}else {vErrors.push(err373);}errors++;}const len27 = data111.length;if(len27 > 0){let data120 = data111[0];if(typeof data120 !== "string"){const err374 = {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 = [err374];}else {vErrors.push(err374);}errors++;}if("crm:E18_Physical_Thing" !== data120){const err375 = {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 = [err375];}else {vErrors.push(err375);}errors++;}}if(len27 > 1){let data121 = data111[1];if(typeof data121 !== "string"){const err376 = {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 = [err376];}else {vErrors.push(err376);}errors++;}if("wikidata:Q15831596" !== data121){const err377 = {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 = [err377];}else {vErrors.push(err377);}errors++;}}}else {const err378 = {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 = [err378];}else {vErrors.push(err378);}errors++;}var _valid28 = _errs401 === errors;if(_valid28 && valid101){valid101 = false;passing17 = [passing17, 1];}else {if(_valid28){valid101 = true;passing17 = 1;}}if(!valid101){const err379 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing17},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err379];}else {vErrors.push(err379);}errors++;}else {errors = _errs398;if(vErrors !== null){if(_errs398){vErrors.length = _errs398;}else {vErrors = null;}}}var _valid23 = _errs397 === errors;if(_valid23 && valid92){valid92 = false;passing12 = [passing12, 4];}else {if(_valid23){valid92 = true;passing12 = 4;}const _errs407 = errors;const _errs408 = errors;let valid103 = false;let passing18 = null;const _errs409 = errors;if(typeof data111 !== "string"){const err380 = {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 = [err380];}else {vErrors.push(err380);}errors++;}if("crm:E28_Conceptual_Object" !== data111){const err381 = {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 = [err381];}else {vErrors.push(err381);}errors++;}var _valid29 = _errs409 === errors;if(_valid29){valid103 = true;passing18 = 0;}const _errs411 = errors;if(Array.isArray(data111)){if(data111.length > 2){const err382 = {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 = [err382];}else {vErrors.push(err382);}errors++;}if(data111.length < 2){const err383 = {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 = [err383];}else {vErrors.push(err383);}errors++;}const len28 = data111.length;if(len28 > 0){let data122 = data111[0];if(typeof data122 !== "string"){const err384 = {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 = [err384];}else {vErrors.push(err384);}errors++;}if("crm:E28_Conceptual_Object" !== data122){const err385 = {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 = [err385];}else {vErrors.push(err385);}errors++;}}if(len28 > 1){let data123 = data111[1];if(typeof data123 !== "string"){const err386 = {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 = [err386];}else {vErrors.push(err386);}errors++;}if("wikidata:Q15831596" !== data123){const err387 = {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 = [err387];}else {vErrors.push(err387);}errors++;}}}else {const err388 = {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 = [err388];}else {vErrors.push(err388);}errors++;}var _valid29 = _errs411 === errors;if(_valid29 && valid103){valid103 = false;passing18 = [passing18, 1];}else {if(_valid29){valid103 = true;passing18 = 1;}}if(!valid103){const err389 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing18},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}else {errors = _errs408;if(vErrors !== null){if(_errs408){vErrors.length = _errs408;}else {vErrors = null;}}}var _valid23 = _errs407 === errors;if(_valid23 && valid92){valid92 = false;passing12 = [passing12, 5];}else {if(_valid23){valid92 = true;passing12 = 5;}const _errs417 = errors;if(Array.isArray(data111)){if(data111.length > 2){const err390 = {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 = [err390];}else {vErrors.push(err390);}errors++;}if(data111.length < 2){const err391 = {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 = [err391];}else {vErrors.push(err391);}errors++;}const len29 = data111.length;if(len29 > 0){let data124 = data111[0];if(typeof data124 !== "string"){const err392 = {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 = [err392];}else {vErrors.push(err392);}errors++;}if("cito:Citation" !== data124){const err393 = {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 = [err393];}else {vErrors.push(err393);}errors++;}}if(len29 > 1){let data125 = data111[1];if(typeof data125 !== "string"){const err394 = {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 = [err394];}else {vErrors.push(err394);}errors++;}if("crm:E73_Information_Object" !== data125){const err395 = {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 = [err395];}else {vErrors.push(err395);}errors++;}}}else {const err396 = {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 = [err396];}else {vErrors.push(err396);}errors++;}var _valid23 = _errs417 === errors;if(_valid23 && valid92){valid92 = false;passing12 = [passing12, 6];}else {if(_valid23){valid92 = true;passing12 = 6;}const _errs423 = errors;if(Array.isArray(data111)){if(data111.length > 2){const err397 = {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 = [err397];}else {vErrors.push(err397);}errors++;}if(data111.length < 2){const err398 = {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 = [err398];}else {vErrors.push(err398);}errors++;}const len30 = data111.length;if(len30 > 0){let data126 = data111[0];if(typeof data126 !== "string"){const err399 = {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 = [err399];}else {vErrors.push(err399);}errors++;}if("xsd:date" !== data126){const err400 = {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 = [err400];}else {vErrors.push(err400);}errors++;}}if(len30 > 1){let data127 = data111[1];if(typeof data127 !== "string"){const err401 = {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 = [err401];}else {vErrors.push(err401);}errors++;}if("crm:E52_Time-Span" !== data127){const err402 = {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 = [err402];}else {vErrors.push(err402);}errors++;}}}else {const err403 = {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 = [err403];}else {vErrors.push(err403);}errors++;}var _valid23 = _errs423 === errors;if(_valid23 && valid92){valid92 = false;passing12 = [passing12, 7];}else {if(_valid23){valid92 = true;passing12 = 7;}const _errs429 = errors;if(typeof data111 !== "string"){const err404 = {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 = [err404];}else {vErrors.push(err404);}errors++;}if("crm:E33_Linguistic_Object" !== data111){const err405 = {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 = [err405];}else {vErrors.push(err405);}errors++;}var _valid23 = _errs429 === errors;if(_valid23 && valid92){valid92 = false;passing12 = [passing12, 8];}else {if(_valid23){valid92 = true;passing12 = 8;}const _errs431 = errors;if(Array.isArray(data111)){if(data111.length > 2){const err406 = {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 = [err406];}else {vErrors.push(err406);}errors++;}if(data111.length < 2){const err407 = {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 = [err407];}else {vErrors.push(err407);}errors++;}const len31 = data111.length;if(len31 > 0){let data128 = data111[0];if(typeof data128 !== "string"){const err408 = {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 = [err408];}else {vErrors.push(err408);}errors++;}if("fabio:Correction" !== data128){const err409 = {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 = [err409];}else {vErrors.push(err409);}errors++;}}if(len31 > 1){let data129 = data111[1];if(typeof data129 !== "string"){const err410 = {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 = [err410];}else {vErrors.push(err410);}errors++;}if("crm:E33_Linguistic_Object" !== data129){const err411 = {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 = [err411];}else {vErrors.push(err411);}errors++;}}}else {const err412 = {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 = [err412];}else {vErrors.push(err412);}errors++;}var _valid23 = _errs431 === errors;if(_valid23 && valid92){valid92 = false;passing12 = [passing12, 9];}else {if(_valid23){valid92 = true;passing12 = 9;}const _errs437 = errors;if(Array.isArray(data111)){if(data111.length > 2){const err413 = {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 = [err413];}else {vErrors.push(err413);}errors++;}if(data111.length < 2){const err414 = {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 = [err414];}else {vErrors.push(err414);}errors++;}const len32 = data111.length;if(len32 > 0){let data130 = data111[0];if(typeof data130 !== "string"){const err415 = {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 = [err415];}else {vErrors.push(err415);}errors++;}if("crm:E55_Type" !== data130){const err416 = {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 = [err416];}else {vErrors.push(err416);}errors++;}}if(len32 > 1){let data131 = data111[1];if(typeof data131 !== "string"){const err417 = {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 = [err417];}else {vErrors.push(err417);}errors++;}if("crmdig:D1_Digital_Object" !== data131){const err418 = {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 = [err418];}else {vErrors.push(err418);}errors++;}}}else {const err419 = {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 = [err419];}else {vErrors.push(err419);}errors++;}var _valid23 = _errs437 === errors;if(_valid23 && valid92){valid92 = false;passing12 = [passing12, 10];}else {if(_valid23){valid92 = true;passing12 = 10;}const _errs443 = errors;if(Array.isArray(data111)){if(data111.length > 2){const err420 = {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 = [err420];}else {vErrors.push(err420);}errors++;}if(data111.length < 2){const err421 = {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 = [err421];}else {vErrors.push(err421);}errors++;}const len33 = data111.length;if(len33 > 0){let data132 = data111[0];if(typeof data132 !== "string"){const err422 = {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 = [err422];}else {vErrors.push(err422);}errors++;}if("crm:E55_Type" !== data132){const err423 = {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 = [err423];}else {vErrors.push(err423);}errors++;}}if(len33 > 1){let data133 = data111[1];if(typeof data133 !== "string"){const err424 = {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 = [err424];}else {vErrors.push(err424);}errors++;}if("crm:E33_Linguistic_Object" !== data133){const err425 = {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 = [err425];}else {vErrors.push(err425);}errors++;}}}else {const err426 = {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 = [err426];}else {vErrors.push(err426);}errors++;}var _valid23 = _errs443 === errors;if(_valid23 && valid92){valid92 = false;passing12 = [passing12, 11];}else {if(_valid23){valid92 = true;passing12 = 11;}const _errs449 = errors;if(typeof data111 !== "string"){const err427 = {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 = [err427];}else {vErrors.push(err427);}errors++;}if("crmdig:D1_Digital_Object" !== data111){const err428 = {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 = [err428];}else {vErrors.push(err428);}errors++;}var _valid23 = _errs449 === errors;if(_valid23 && valid92){valid92 = false;passing12 = [passing12, 12];}else {if(_valid23){valid92 = true;passing12 = 12;}const _errs451 = errors;const _errs452 = errors;let valid110 = false;let passing19 = null;const _errs453 = errors;if(typeof data111 !== "string"){const err429 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}if("crm:E5_Event" !== data111){const err430 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}var _valid30 = _errs453 === errors;if(_valid30){valid110 = true;passing19 = 0;}const _errs455 = errors;if(Array.isArray(data111)){if(data111.length > 2){const err431 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}if(data111.length < 2){const err432 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}const len34 = data111.length;if(len34 > 0){let data134 = data111[0];if(typeof data134 !== "string"){const err433 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}if("crm:E5_Event" !== data134){const err434 = {instancePath:instancePath+"/body/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}}if(len34 > 1){let data135 = data111[1];if(typeof data135 !== "string"){const err435 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}if("crm:E89_Propositional_Object" !== data135){const err436 = {instancePath:instancePath+"/body/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}}}else {const err437 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}var _valid30 = _errs455 === errors;if(_valid30 && valid110){valid110 = false;passing19 = [passing19, 1];}else {if(_valid30){valid110 = true;passing19 = 1;}}if(!valid110){const err438 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf",keyword:"oneOf",params:{passingSchemas: passing19},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}else {errors = _errs452;if(vErrors !== null){if(_errs452){vErrors.length = _errs452;}else {vErrors = null;}}}var _valid23 = _errs451 === errors;if(_valid23 && valid92){valid92 = false;passing12 = [passing12, 13];}else {if(_valid23){valid92 = true;passing12 = 13;}}}}}}}}}}}}}}if(!valid92){const err439 = {instancePath:instancePath+"/body/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}else {errors = _errs356;if(vErrors !== null){if(_errs356){vErrors.length = _errs356;}else {vErrors = null;}}}}if(data95.additionalType !== undefined){let data136 = data95.additionalType;const _errs462 = errors;let valid112 = false;const _errs463 = errors;if(typeof data136 !== "string"){const err440 = {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 = [err440];}else {vErrors.push(err440);}errors++;}var _valid31 = _errs463 === errors;valid112 = valid112 || _valid31;if(!valid112){const _errs465 = errors;if(Array.isArray(data136)){const len35 = data136.length;for(let i2=0; i2<len35; i2++){if(typeof data136[i2] !== "string"){const err441 = {instancePath:instancePath+"/body/additionalType/" + i2,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}}}else {const err442 = {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 = [err442];}else {vErrors.push(err442);}errors++;}var _valid31 = _errs465 === errors;valid112 = valid112 || _valid31;}if(!valid112){const err443 = {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 = [err443];}else {vErrors.push(err443);}errors++;}else {errors = _errs462;if(vErrors !== null){if(_errs462){vErrors.length = _errs462;}else {vErrors = null;}}}}if(data95.value !== undefined){if(typeof data95.value !== "string"){const err444 = {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 = [err444];}else {vErrors.push(err444);}errors++;}}if(data95.label !== undefined){let data139 = data95.label;if(typeof data139 === "string"){if(func3(data139) < 1){const err445 = {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 = [err445];}else {vErrors.push(err445);}errors++;}}else {const err446 = {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 = [err446];}else {vErrors.push(err446);}errors++;}}if(data95.modeExistence !== undefined){let data140 = data95.modeExistence;const _errs474 = errors;let valid115 = false;let passing20 = null;const _errs475 = errors;if(typeof data140 !== "string"){const err447 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}if("edit:modeReal" !== data140){const err448 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:modeReal"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}var _valid32 = _errs475 === errors;if(_valid32){valid115 = true;passing20 = 0;}const _errs477 = errors;if(typeof data140 !== "string"){const err449 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}if("edit:modeFictional" !== data140){const err450 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:modeFictional"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}var _valid32 = _errs477 === errors;if(_valid32 && valid115){valid115 = false;passing20 = [passing20, 1];}else {if(_valid32){valid115 = true;passing20 = 1;}const _errs479 = errors;if(typeof data140 !== "string"){const err451 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}if("edit:modeIdentifiable" !== data140){const err452 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:modeIdentifiable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}var _valid32 = _errs479 === errors;if(_valid32 && valid115){valid115 = false;passing20 = [passing20, 2];}else {if(_valid32){valid115 = true;passing20 = 2;}}}if(!valid115){const err453 = {instancePath:instancePath+"/body/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf",keyword:"oneOf",params:{passingSchemas: passing20},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}else {errors = _errs474;if(vErrors !== null){if(_errs474){vErrors.length = _errs474;}else {vErrors = null;}}}}if(data95.description !== undefined){if(typeof data95.description !== "string"){const err454 = {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 = [err454];}else {vErrors.push(err454);}errors++;}}}else {const err455 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}var _valid18 = _errs308 === errors;if(_valid18 && valid76){valid76 = false;passing11 = [passing11, 1];}else {if(_valid18){valid76 = true;passing11 = 1;}const _errs483 = errors;if(Array.isArray(data95)){if(data95.length < 1){const err456 = {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 = [err456];}else {vErrors.push(err456);}errors++;}const len36 = data95.length;for(let i3=0; i3<len36; i3++){let data142 = data95[i3];const _errs488 = errors;let valid119 = false;const _errs489 = errors;const _errs490 = errors;let valid120 = true;const _errs491 = errors;if(errors === _errs491){if(data142 && typeof data142 == "object" && !Array.isArray(data142)){if(data142.entityType !== undefined){let data143 = data142.entityType;const _errs494 = errors;let valid122 = false;const _errs495 = errors;if("crm:E33_Linguistic_Object" !== data143){const err457 = {};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}var _valid35 = _errs495 === errors;valid122 = valid122 || _valid35;if(!valid122){const _errs496 = errors;if(errors === _errs496){if(Array.isArray(data143)){if(data143.length > 2){const err458 = {};if(vErrors === null){vErrors = [err458];}else {vErrors.push(err458);}errors++;}else {if(data143.length < 2){const err459 = {};if(vErrors === null){vErrors = [err459];}else {vErrors.push(err459);}errors++;}else {const len37 = data143.length;if(len37 > 0){const _errs498 = errors;if("xsd:date" !== data143[0]){const err460 = {};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}var valid123 = _errs498 === errors;}if(valid123){if(len37 > 1){const _errs499 = errors;if("crm:E52_Time-Span" !== data143[1]){const err461 = {};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}var valid123 = _errs499 === errors;}}}}}else {const err462 = {};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}}var _valid35 = _errs496 === errors;valid122 = valid122 || _valid35;if(!valid122){const _errs500 = errors;if(errors === _errs500){if(Array.isArray(data143)){if(data143.length > 2){const err463 = {};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}else {if(data143.length < 2){const err464 = {};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}else {const len38 = data143.length;if(len38 > 0){const _errs502 = errors;if("fabio:Correction" !== data143[0]){const err465 = {};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}var valid124 = _errs502 === errors;}if(valid124){if(len38 > 1){const _errs503 = errors;if("crm:E33_Linguistic_Object" !== data143[1]){const err466 = {};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}var valid124 = _errs503 === errors;}}}}}else {const err467 = {};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}}var _valid35 = _errs500 === errors;valid122 = valid122 || _valid35;if(!valid122){const _errs504 = errors;if(errors === _errs504){if(Array.isArray(data143)){if(data143.length > 2){const err468 = {};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}else {if(data143.length < 2){const err469 = {};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}else {const len39 = data143.length;if(len39 > 0){const _errs506 = errors;if("crm:E55_Type" !== data143[0]){const err470 = {};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}var valid125 = _errs506 === errors;}if(valid125){if(len39 > 1){const _errs507 = errors;if("crm:E33_Linguistic_Object" !== data143[1]){const err471 = {};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}var valid125 = _errs507 === errors;}}}}}else {const err472 = {};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}}var _valid35 = _errs504 === errors;valid122 = valid122 || _valid35;}}}if(!valid122){const err473 = {};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}else {errors = _errs494;if(vErrors !== null){if(_errs494){vErrors.length = _errs494;}else {vErrors = null;}}}}}else {const err474 = {};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}}var _valid34 = _errs491 === errors;errors = _errs490;if(vErrors !== null){if(_errs490){vErrors.length = _errs490;}else {vErrors = null;}}if(_valid34){const _errs508 = errors;const _errs510 = errors;let valid126 = true;const _errs511 = errors;if(errors === _errs511){if(data142 && typeof data142 == "object" && !Array.isArray(data142)){if(data142.entityType !== undefined){let data150 = data142.entityType;const _errs513 = errors;if(errors === _errs513){if(Array.isArray(data150)){if(data150.length > 2){const err475 = {};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}else {if(data150.length < 2){const err476 = {};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}else {const len40 = data150.length;if(len40 > 0){const _errs515 = errors;if("xsd:date" !== data150[0]){const err477 = {};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}var valid128 = _errs515 === errors;}if(valid128){if(len40 > 1){const _errs516 = errors;if("crm:E52_Time-Span" !== data150[1]){const err478 = {};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}var valid128 = _errs516 === errors;}}}}}else {const err479 = {};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}}}}else {const err480 = {};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}var _valid36 = _errs511 === errors;errors = _errs510;if(vErrors !== null){if(_errs510){vErrors.length = _errs510;}else {vErrors = null;}}let ifClause7;if(_valid36){const _errs517 = errors;if(data142 && typeof data142 == "object" && !Array.isArray(data142)){if(data142.value !== undefined){let data153 = data142.value;if(typeof data153 === "string"){if(!pattern0.test(data153)){const err481 = {instancePath:instancePath+"/body/" + i3+"/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 = [err481];}else {vErrors.push(err481);}errors++;}}else {const err482 = {instancePath:instancePath+"/body/" + i3+"/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 = [err482];}else {vErrors.push(err482);}errors++;}}}else {const err483 = {instancePath:instancePath+"/body/" + i3,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}var _valid36 = _errs517 === errors;valid126 = _valid36;ifClause7 = "then";}else {const _errs521 = errors;if(data142 && typeof data142 == "object" && !Array.isArray(data142)){if(data142.value !== undefined){if(typeof data142.value !== "string"){const err484 = {instancePath:instancePath+"/body/" + i3+"/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 = [err484];}else {vErrors.push(err484);}errors++;}}}else {const err485 = {instancePath:instancePath+"/body/" + i3,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}var _valid36 = _errs521 === errors;valid126 = _valid36;ifClause7 = "else";}if(!valid126){const err486 = {instancePath:instancePath+"/body/" + i3,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: ifClause7},message:"must match \""+ifClause7+"\" schema"};if(vErrors === null){vErrors = [err486];}else {vErrors.push(err486);}errors++;}if(data142 && typeof data142 == "object" && !Array.isArray(data142)){if(data142.type === undefined){const err487 = {instancePath:instancePath+"/body/" + i3,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err487];}else {vErrors.push(err487);}errors++;}if(data142.value === undefined){const err488 = {instancePath:instancePath+"/body/" + i3,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}if(data142.type !== undefined){let data155 = data142.type;if(typeof data155 !== "string"){const err489 = {instancePath:instancePath+"/body/" + i3+"/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 = [err489];}else {vErrors.push(err489);}errors++;}if("TextualBody" !== data155){const err490 = {instancePath:instancePath+"/body/" + i3+"/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 = [err490];}else {vErrors.push(err490);}errors++;}}}else {const err491 = {instancePath:instancePath+"/body/" + i3,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}var _valid34 = _errs508 === errors;valid120 = _valid34;}if(!valid120){const err492 = {instancePath:instancePath+"/body/" + i3,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}var _valid33 = _errs489 === errors;valid119 = valid119 || _valid33;if(!valid119){const err493 = {instancePath:instancePath+"/body/" + i3,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}else {errors = _errs488;if(vErrors !== null){if(_errs488){vErrors.length = _errs488;}else {vErrors = null;}}}if(data142 && typeof data142 == "object" && !Array.isArray(data142)){if(data142.id === undefined){const err494 = {instancePath:instancePath+"/body/" + i3,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}if(data142.entityType === undefined){const err495 = {instancePath:instancePath+"/body/" + i3,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "entityType"},message:"must have required property '"+"entityType"+"'"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}for(const key2 in data142){if(!((((((((key2 === "id") || (key2 === "type")) || (key2 === "entityType")) || (key2 === "additionalType")) || (key2 === "value")) || (key2 === "label")) || (key2 === "modeExistence")) || (key2 === "description"))){const err496 = {instancePath:instancePath+"/body/" + i3,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}}if(data142.id !== undefined){let data156 = data142.id;if(typeof data156 === "string"){if(!(formats0(data156))){const err497 = {instancePath:instancePath+"/body/" + i3+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}}else {const err498 = {instancePath:instancePath+"/body/" + i3+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}}if(data142.type !== undefined){let data157 = data142.type;if(typeof data157 !== "string"){const err499 = {instancePath:instancePath+"/body/" + i3+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}if("TextualBody" !== data157){const err500 = {instancePath:instancePath+"/body/" + i3+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}}if(data142.entityType !== undefined){let data158 = data142.entityType;const _errs533 = errors;let valid133 = false;let passing21 = null;const _errs534 = errors;const _errs535 = errors;let valid134 = false;let passing22 = null;const _errs536 = errors;if(typeof data158 !== "string"){const err501 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}if("crm:E21_Person" !== data158){const err502 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}var _valid38 = _errs536 === errors;if(_valid38){valid134 = true;passing22 = 0;}const _errs538 = errors;if(Array.isArray(data158)){if(data158.length > 2){const err503 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}if(data158.length < 2){const err504 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}const len41 = data158.length;if(len41 > 0){let data159 = data158[0];if(typeof data159 !== "string"){const err505 = {instancePath:instancePath+"/body/" + i3+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err505];}else {vErrors.push(err505);}errors++;}if("foaf:Person" !== data159){const err506 = {instancePath:instancePath+"/body/" + i3+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err506];}else {vErrors.push(err506);}errors++;}}if(len41 > 1){let data160 = data158[1];if(typeof data160 !== "string"){const err507 = {instancePath:instancePath+"/body/" + i3+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err507];}else {vErrors.push(err507);}errors++;}if("crm:E89_Propositional_Object" !== data160){const err508 = {instancePath:instancePath+"/body/" + i3+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}}else {const err509 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}var _valid38 = _errs538 === errors;if(_valid38 && valid134){valid134 = false;passing22 = [passing22, 1];}else {if(_valid38){valid134 = true;passing22 = 1;}}if(!valid134){const err510 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing22},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}else {errors = _errs535;if(vErrors !== null){if(_errs535){vErrors.length = _errs535;}else {vErrors = null;}}}var _valid37 = _errs534 === errors;if(_valid37){valid133 = true;passing21 = 0;}const _errs544 = errors;const _errs545 = errors;let valid136 = false;let passing23 = null;const _errs546 = errors;if(typeof data158 !== "string"){const err511 = {instancePath:instancePath+"/body/" + i3+"/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 = [err511];}else {vErrors.push(err511);}errors++;}if("crm:E53_Place" !== data158){const err512 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}var _valid39 = _errs546 === errors;if(_valid39){valid136 = true;passing23 = 0;}const _errs548 = errors;if(Array.isArray(data158)){if(data158.length > 2){const err513 = {instancePath:instancePath+"/body/" + i3+"/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 = [err513];}else {vErrors.push(err513);}errors++;}if(data158.length < 2){const err514 = {instancePath:instancePath+"/body/" + i3+"/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 = [err514];}else {vErrors.push(err514);}errors++;}const len42 = data158.length;if(len42 > 0){let data161 = data158[0];if(typeof data161 !== "string"){const err515 = {instancePath:instancePath+"/body/" + i3+"/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 = [err515];}else {vErrors.push(err515);}errors++;}if("biography:fictionalPlace" !== data161){const err516 = {instancePath:instancePath+"/body/" + i3+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}}if(len42 > 1){let data162 = data158[1];if(typeof data162 !== "string"){const err517 = {instancePath:instancePath+"/body/" + i3+"/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 = [err517];}else {vErrors.push(err517);}errors++;}if("crm:E89_Propositional_Object" !== data162){const err518 = {instancePath:instancePath+"/body/" + i3+"/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 = [err518];}else {vErrors.push(err518);}errors++;}}}else {const err519 = {instancePath:instancePath+"/body/" + i3+"/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 = [err519];}else {vErrors.push(err519);}errors++;}var _valid39 = _errs548 === errors;if(_valid39 && valid136){valid136 = false;passing23 = [passing23, 1];}else {if(_valid39){valid136 = true;passing23 = 1;}}if(!valid136){const err520 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing23},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}else {errors = _errs545;if(vErrors !== null){if(_errs545){vErrors.length = _errs545;}else {vErrors = null;}}}var _valid37 = _errs544 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 1];}else {if(_valid37){valid133 = true;passing21 = 1;}const _errs554 = errors;const _errs555 = errors;let valid138 = false;let passing24 = null;const _errs556 = errors;if(typeof data158 !== "string"){const err521 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}if("crm:E74_Group" !== data158){const err522 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}var _valid40 = _errs556 === errors;if(_valid40){valid138 = true;passing24 = 0;}const _errs558 = errors;if(Array.isArray(data158)){if(data158.length > 2){const err523 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}if(data158.length < 2){const err524 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}const len43 = data158.length;if(len43 > 0){let data163 = data158[0];if(typeof data163 !== "string"){const err525 = {instancePath:instancePath+"/body/" + i3+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}if("foaf:Organization" !== data163){const err526 = {instancePath:instancePath+"/body/" + i3+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}}if(len43 > 1){let data164 = data158[1];if(typeof data164 !== "string"){const err527 = {instancePath:instancePath+"/body/" + i3+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}if("crm:E89_Propositional_Object" !== data164){const err528 = {instancePath:instancePath+"/body/" + i3+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}}}else {const err529 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}var _valid40 = _errs558 === errors;if(_valid40 && valid138){valid138 = false;passing24 = [passing24, 1];}else {if(_valid40){valid138 = true;passing24 = 1;}}if(!valid138){const err530 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing24},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}else {errors = _errs555;if(vErrors !== null){if(_errs555){vErrors.length = _errs555;}else {vErrors = null;}}}var _valid37 = _errs554 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 2];}else {if(_valid37){valid133 = true;passing21 = 2;}const _errs564 = errors;const _errs565 = errors;let valid140 = false;let passing25 = null;const _errs566 = errors;if(typeof data158 !== "string"){const err531 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}if("frbroo:F1" !== data158){const err532 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}var _valid41 = _errs566 === errors;if(_valid41){valid140 = true;passing25 = 0;}const _errs568 = errors;if(Array.isArray(data158)){if(data158.length > 2){const err533 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}if(data158.length < 2){const err534 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}const len44 = data158.length;if(len44 > 0){let data165 = data158[0];if(typeof data165 !== "string"){const err535 = {instancePath:instancePath+"/body/" + i3+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}if("frbroo:F1" !== data165){const err536 = {instancePath:instancePath+"/body/" + i3+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}}if(len44 > 1){let data166 = data158[1];if(typeof data166 !== "string"){const err537 = {instancePath:instancePath+"/body/" + i3+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}if("wikidata:Q15306849" !== data166){const err538 = {instancePath:instancePath+"/body/" + i3+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}}}else {const err539 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}var _valid41 = _errs568 === errors;if(_valid41 && valid140){valid140 = false;passing25 = [passing25, 1];}else {if(_valid41){valid140 = true;passing25 = 1;}}if(!valid140){const err540 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing25},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}else {errors = _errs565;if(vErrors !== null){if(_errs565){vErrors.length = _errs565;}else {vErrors = null;}}}var _valid37 = _errs564 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 3];}else {if(_valid37){valid133 = true;passing21 = 3;}const _errs574 = errors;const _errs575 = errors;let valid142 = false;let passing26 = null;const _errs576 = errors;if(typeof data158 !== "string"){const err541 = {instancePath:instancePath+"/body/" + i3+"/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 = [err541];}else {vErrors.push(err541);}errors++;}if("crm:E18_Physical_Thing" !== data158){const err542 = {instancePath:instancePath+"/body/" + i3+"/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 = [err542];}else {vErrors.push(err542);}errors++;}var _valid42 = _errs576 === errors;if(_valid42){valid142 = true;passing26 = 0;}const _errs578 = errors;if(Array.isArray(data158)){if(data158.length > 2){const err543 = {instancePath:instancePath+"/body/" + i3+"/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 = [err543];}else {vErrors.push(err543);}errors++;}if(data158.length < 2){const err544 = {instancePath:instancePath+"/body/" + i3+"/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 = [err544];}else {vErrors.push(err544);}errors++;}const len45 = data158.length;if(len45 > 0){let data167 = data158[0];if(typeof data167 !== "string"){const err545 = {instancePath:instancePath+"/body/" + i3+"/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 = [err545];}else {vErrors.push(err545);}errors++;}if("crm:E18_Physical_Thing" !== data167){const err546 = {instancePath:instancePath+"/body/" + i3+"/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 = [err546];}else {vErrors.push(err546);}errors++;}}if(len45 > 1){let data168 = data158[1];if(typeof data168 !== "string"){const err547 = {instancePath:instancePath+"/body/" + i3+"/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 = [err547];}else {vErrors.push(err547);}errors++;}if("wikidata:Q15831596" !== data168){const err548 = {instancePath:instancePath+"/body/" + i3+"/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 = [err548];}else {vErrors.push(err548);}errors++;}}}else {const err549 = {instancePath:instancePath+"/body/" + i3+"/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 = [err549];}else {vErrors.push(err549);}errors++;}var _valid42 = _errs578 === errors;if(_valid42 && valid142){valid142 = false;passing26 = [passing26, 1];}else {if(_valid42){valid142 = true;passing26 = 1;}}if(!valid142){const err550 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing26},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}else {errors = _errs575;if(vErrors !== null){if(_errs575){vErrors.length = _errs575;}else {vErrors = null;}}}var _valid37 = _errs574 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 4];}else {if(_valid37){valid133 = true;passing21 = 4;}const _errs584 = errors;const _errs585 = errors;let valid144 = false;let passing27 = null;const _errs586 = errors;if(typeof data158 !== "string"){const err551 = {instancePath:instancePath+"/body/" + i3+"/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 = [err551];}else {vErrors.push(err551);}errors++;}if("crm:E28_Conceptual_Object" !== data158){const err552 = {instancePath:instancePath+"/body/" + i3+"/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 = [err552];}else {vErrors.push(err552);}errors++;}var _valid43 = _errs586 === errors;if(_valid43){valid144 = true;passing27 = 0;}const _errs588 = errors;if(Array.isArray(data158)){if(data158.length > 2){const err553 = {instancePath:instancePath+"/body/" + i3+"/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 = [err553];}else {vErrors.push(err553);}errors++;}if(data158.length < 2){const err554 = {instancePath:instancePath+"/body/" + i3+"/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 = [err554];}else {vErrors.push(err554);}errors++;}const len46 = data158.length;if(len46 > 0){let data169 = data158[0];if(typeof data169 !== "string"){const err555 = {instancePath:instancePath+"/body/" + i3+"/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 = [err555];}else {vErrors.push(err555);}errors++;}if("crm:E28_Conceptual_Object" !== data169){const err556 = {instancePath:instancePath+"/body/" + i3+"/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 = [err556];}else {vErrors.push(err556);}errors++;}}if(len46 > 1){let data170 = data158[1];if(typeof data170 !== "string"){const err557 = {instancePath:instancePath+"/body/" + i3+"/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 = [err557];}else {vErrors.push(err557);}errors++;}if("wikidata:Q15831596" !== data170){const err558 = {instancePath:instancePath+"/body/" + i3+"/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 = [err558];}else {vErrors.push(err558);}errors++;}}}else {const err559 = {instancePath:instancePath+"/body/" + i3+"/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 = [err559];}else {vErrors.push(err559);}errors++;}var _valid43 = _errs588 === errors;if(_valid43 && valid144){valid144 = false;passing27 = [passing27, 1];}else {if(_valid43){valid144 = true;passing27 = 1;}}if(!valid144){const err560 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/5/oneOf",keyword:"oneOf",params:{passingSchemas: passing27},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}else {errors = _errs585;if(vErrors !== null){if(_errs585){vErrors.length = _errs585;}else {vErrors = null;}}}var _valid37 = _errs584 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 5];}else {if(_valid37){valid133 = true;passing21 = 5;}const _errs594 = errors;if(Array.isArray(data158)){if(data158.length > 2){const err561 = {instancePath:instancePath+"/body/" + i3+"/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 = [err561];}else {vErrors.push(err561);}errors++;}if(data158.length < 2){const err562 = {instancePath:instancePath+"/body/" + i3+"/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 = [err562];}else {vErrors.push(err562);}errors++;}const len47 = data158.length;if(len47 > 0){let data171 = data158[0];if(typeof data171 !== "string"){const err563 = {instancePath:instancePath+"/body/" + i3+"/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 = [err563];}else {vErrors.push(err563);}errors++;}if("cito:Citation" !== data171){const err564 = {instancePath:instancePath+"/body/" + i3+"/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 = [err564];}else {vErrors.push(err564);}errors++;}}if(len47 > 1){let data172 = data158[1];if(typeof data172 !== "string"){const err565 = {instancePath:instancePath+"/body/" + i3+"/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 = [err565];}else {vErrors.push(err565);}errors++;}if("crm:E73_Information_Object" !== data172){const err566 = {instancePath:instancePath+"/body/" + i3+"/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 = [err566];}else {vErrors.push(err566);}errors++;}}}else {const err567 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/6/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}var _valid37 = _errs594 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 6];}else {if(_valid37){valid133 = true;passing21 = 6;}const _errs600 = errors;if(Array.isArray(data158)){if(data158.length > 2){const err568 = {instancePath:instancePath+"/body/" + i3+"/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 = [err568];}else {vErrors.push(err568);}errors++;}if(data158.length < 2){const err569 = {instancePath:instancePath+"/body/" + i3+"/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 = [err569];}else {vErrors.push(err569);}errors++;}const len48 = data158.length;if(len48 > 0){let data173 = data158[0];if(typeof data173 !== "string"){const err570 = {instancePath:instancePath+"/body/" + i3+"/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 = [err570];}else {vErrors.push(err570);}errors++;}if("xsd:date" !== data173){const err571 = {instancePath:instancePath+"/body/" + i3+"/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 = [err571];}else {vErrors.push(err571);}errors++;}}if(len48 > 1){let data174 = data158[1];if(typeof data174 !== "string"){const err572 = {instancePath:instancePath+"/body/" + i3+"/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 = [err572];}else {vErrors.push(err572);}errors++;}if("crm:E52_Time-Span" !== data174){const err573 = {instancePath:instancePath+"/body/" + i3+"/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 = [err573];}else {vErrors.push(err573);}errors++;}}}else {const err574 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}var _valid37 = _errs600 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 7];}else {if(_valid37){valid133 = true;passing21 = 7;}const _errs606 = errors;if(typeof data158 !== "string"){const err575 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/8/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err575];}else {vErrors.push(err575);}errors++;}if("crm:E33_Linguistic_Object" !== data158){const err576 = {instancePath:instancePath+"/body/" + i3+"/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 = [err576];}else {vErrors.push(err576);}errors++;}var _valid37 = _errs606 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 8];}else {if(_valid37){valid133 = true;passing21 = 8;}const _errs608 = errors;if(Array.isArray(data158)){if(data158.length > 2){const err577 = {instancePath:instancePath+"/body/" + i3+"/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 = [err577];}else {vErrors.push(err577);}errors++;}if(data158.length < 2){const err578 = {instancePath:instancePath+"/body/" + i3+"/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 = [err578];}else {vErrors.push(err578);}errors++;}const len49 = data158.length;if(len49 > 0){let data175 = data158[0];if(typeof data175 !== "string"){const err579 = {instancePath:instancePath+"/body/" + i3+"/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 = [err579];}else {vErrors.push(err579);}errors++;}if("fabio:Correction" !== data175){const err580 = {instancePath:instancePath+"/body/" + i3+"/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 = [err580];}else {vErrors.push(err580);}errors++;}}if(len49 > 1){let data176 = data158[1];if(typeof data176 !== "string"){const err581 = {instancePath:instancePath+"/body/" + i3+"/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 = [err581];}else {vErrors.push(err581);}errors++;}if("crm:E33_Linguistic_Object" !== data176){const err582 = {instancePath:instancePath+"/body/" + i3+"/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 = [err582];}else {vErrors.push(err582);}errors++;}}}else {const err583 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err583];}else {vErrors.push(err583);}errors++;}var _valid37 = _errs608 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 9];}else {if(_valid37){valid133 = true;passing21 = 9;}const _errs614 = errors;if(Array.isArray(data158)){if(data158.length > 2){const err584 = {instancePath:instancePath+"/body/" + i3+"/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 = [err584];}else {vErrors.push(err584);}errors++;}if(data158.length < 2){const err585 = {instancePath:instancePath+"/body/" + i3+"/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 = [err585];}else {vErrors.push(err585);}errors++;}const len50 = data158.length;if(len50 > 0){let data177 = data158[0];if(typeof data177 !== "string"){const err586 = {instancePath:instancePath+"/body/" + i3+"/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 = [err586];}else {vErrors.push(err586);}errors++;}if("crm:E55_Type" !== data177){const err587 = {instancePath:instancePath+"/body/" + i3+"/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 = [err587];}else {vErrors.push(err587);}errors++;}}if(len50 > 1){let data178 = data158[1];if(typeof data178 !== "string"){const err588 = {instancePath:instancePath+"/body/" + i3+"/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 = [err588];}else {vErrors.push(err588);}errors++;}if("crmdig:D1_Digital_Object" !== data178){const err589 = {instancePath:instancePath+"/body/" + i3+"/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 = [err589];}else {vErrors.push(err589);}errors++;}}}else {const err590 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err590];}else {vErrors.push(err590);}errors++;}var _valid37 = _errs614 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 10];}else {if(_valid37){valid133 = true;passing21 = 10;}const _errs620 = errors;if(Array.isArray(data158)){if(data158.length > 2){const err591 = {instancePath:instancePath+"/body/" + i3+"/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 = [err591];}else {vErrors.push(err591);}errors++;}if(data158.length < 2){const err592 = {instancePath:instancePath+"/body/" + i3+"/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 = [err592];}else {vErrors.push(err592);}errors++;}const len51 = data158.length;if(len51 > 0){let data179 = data158[0];if(typeof data179 !== "string"){const err593 = {instancePath:instancePath+"/body/" + i3+"/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 = [err593];}else {vErrors.push(err593);}errors++;}if("crm:E55_Type" !== data179){const err594 = {instancePath:instancePath+"/body/" + i3+"/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 = [err594];}else {vErrors.push(err594);}errors++;}}if(len51 > 1){let data180 = data158[1];if(typeof data180 !== "string"){const err595 = {instancePath:instancePath+"/body/" + i3+"/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 = [err595];}else {vErrors.push(err595);}errors++;}if("crm:E33_Linguistic_Object" !== data180){const err596 = {instancePath:instancePath+"/body/" + i3+"/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 = [err596];}else {vErrors.push(err596);}errors++;}}}else {const err597 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err597];}else {vErrors.push(err597);}errors++;}var _valid37 = _errs620 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 11];}else {if(_valid37){valid133 = true;passing21 = 11;}const _errs626 = errors;if(typeof data158 !== "string"){const err598 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/12/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err598];}else {vErrors.push(err598);}errors++;}if("crmdig:D1_Digital_Object" !== data158){const err599 = {instancePath:instancePath+"/body/" + i3+"/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 = [err599];}else {vErrors.push(err599);}errors++;}var _valid37 = _errs626 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 12];}else {if(_valid37){valid133 = true;passing21 = 12;}const _errs628 = errors;const _errs629 = errors;let valid151 = false;let passing28 = null;const _errs630 = errors;if(typeof data158 !== "string"){const err600 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err600];}else {vErrors.push(err600);}errors++;}if("crm:E5_Event" !== data158){const err601 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err601];}else {vErrors.push(err601);}errors++;}var _valid44 = _errs630 === errors;if(_valid44){valid151 = true;passing28 = 0;}const _errs632 = errors;if(Array.isArray(data158)){if(data158.length > 2){const err602 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err602];}else {vErrors.push(err602);}errors++;}if(data158.length < 2){const err603 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err603];}else {vErrors.push(err603);}errors++;}const len52 = data158.length;if(len52 > 0){let data181 = data158[0];if(typeof data181 !== "string"){const err604 = {instancePath:instancePath+"/body/" + i3+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err604];}else {vErrors.push(err604);}errors++;}if("crm:E5_Event" !== data181){const err605 = {instancePath:instancePath+"/body/" + i3+"/entityType/0",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err605];}else {vErrors.push(err605);}errors++;}}if(len52 > 1){let data182 = data158[1];if(typeof data182 !== "string"){const err606 = {instancePath:instancePath+"/body/" + i3+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err606];}else {vErrors.push(err606);}errors++;}if("crm:E89_Propositional_Object" !== data182){const err607 = {instancePath:instancePath+"/body/" + i3+"/entityType/1",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err607];}else {vErrors.push(err607);}errors++;}}}else {const err608 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err608];}else {vErrors.push(err608);}errors++;}var _valid44 = _errs632 === errors;if(_valid44 && valid151){valid151 = false;passing28 = [passing28, 1];}else {if(_valid44){valid151 = true;passing28 = 1;}}if(!valid151){const err609 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf/13/oneOf",keyword:"oneOf",params:{passingSchemas: passing28},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err609];}else {vErrors.push(err609);}errors++;}else {errors = _errs629;if(vErrors !== null){if(_errs629){vErrors.length = _errs629;}else {vErrors = null;}}}var _valid37 = _errs628 === errors;if(_valid37 && valid133){valid133 = false;passing21 = [passing21, 13];}else {if(_valid37){valid133 = true;passing21 = 13;}}}}}}}}}}}}}}if(!valid133){const err610 = {instancePath:instancePath+"/body/" + i3+"/entityType",schemaPath:"defs.jsonld#/definitions/body/properties/entityType/oneOf",keyword:"oneOf",params:{passingSchemas: passing21},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err610];}else {vErrors.push(err610);}errors++;}else {errors = _errs533;if(vErrors !== null){if(_errs533){vErrors.length = _errs533;}else {vErrors = null;}}}}if(data142.additionalType !== undefined){let data183 = data142.additionalType;const _errs639 = errors;let valid153 = false;const _errs640 = errors;if(typeof data183 !== "string"){const err611 = {instancePath:instancePath+"/body/" + i3+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err611];}else {vErrors.push(err611);}errors++;}var _valid45 = _errs640 === errors;valid153 = valid153 || _valid45;if(!valid153){const _errs642 = errors;if(Array.isArray(data183)){const len53 = data183.length;for(let i4=0; i4<len53; i4++){if(typeof data183[i4] !== "string"){const err612 = {instancePath:instancePath+"/body/" + i3+"/additionalType/" + i4,schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err612];}else {vErrors.push(err612);}errors++;}}}else {const err613 = {instancePath:instancePath+"/body/" + i3+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err613];}else {vErrors.push(err613);}errors++;}var _valid45 = _errs642 === errors;valid153 = valid153 || _valid45;}if(!valid153){const err614 = {instancePath:instancePath+"/body/" + i3+"/additionalType",schemaPath:"defs.jsonld#/definitions/body/properties/additionalType/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err614];}else {vErrors.push(err614);}errors++;}else {errors = _errs639;if(vErrors !== null){if(_errs639){vErrors.length = _errs639;}else {vErrors = null;}}}}if(data142.value !== undefined){if(typeof data142.value !== "string"){const err615 = {instancePath:instancePath+"/body/" + i3+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err615];}else {vErrors.push(err615);}errors++;}}if(data142.label !== undefined){let data186 = data142.label;if(typeof data186 === "string"){if(func3(data186) < 1){const err616 = {instancePath:instancePath+"/body/" + i3+"/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 = [err616];}else {vErrors.push(err616);}errors++;}}else {const err617 = {instancePath:instancePath+"/body/" + i3+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err617];}else {vErrors.push(err617);}errors++;}}if(data142.modeExistence !== undefined){let data187 = data142.modeExistence;const _errs651 = errors;let valid156 = false;let passing29 = null;const _errs652 = errors;if(typeof data187 !== "string"){const err618 = {instancePath:instancePath+"/body/" + i3+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err618];}else {vErrors.push(err618);}errors++;}if("edit:modeReal" !== data187){const err619 = {instancePath:instancePath+"/body/" + i3+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:modeReal"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err619];}else {vErrors.push(err619);}errors++;}var _valid46 = _errs652 === errors;if(_valid46){valid156 = true;passing29 = 0;}const _errs654 = errors;if(typeof data187 !== "string"){const err620 = {instancePath:instancePath+"/body/" + i3+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err620];}else {vErrors.push(err620);}errors++;}if("edit:modeFictional" !== data187){const err621 = {instancePath:instancePath+"/body/" + i3+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:modeFictional"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err621];}else {vErrors.push(err621);}errors++;}var _valid46 = _errs654 === errors;if(_valid46 && valid156){valid156 = false;passing29 = [passing29, 1];}else {if(_valid46){valid156 = true;passing29 = 1;}const _errs656 = errors;if(typeof data187 !== "string"){const err622 = {instancePath:instancePath+"/body/" + i3+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err622];}else {vErrors.push(err622);}errors++;}if("edit:modeIdentifiable" !== data187){const err623 = {instancePath:instancePath+"/body/" + i3+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:modeIdentifiable"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err623];}else {vErrors.push(err623);}errors++;}var _valid46 = _errs656 === errors;if(_valid46 && valid156){valid156 = false;passing29 = [passing29, 2];}else {if(_valid46){valid156 = true;passing29 = 2;}}}if(!valid156){const err624 = {instancePath:instancePath+"/body/" + i3+"/modeExistence",schemaPath:"defs.jsonld#/definitions/body/properties/modeExistence/oneOf",keyword:"oneOf",params:{passingSchemas: passing29},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err624];}else {vErrors.push(err624);}errors++;}else {errors = _errs651;if(vErrors !== null){if(_errs651){vErrors.length = _errs651;}else {vErrors = null;}}}}if(data142.description !== undefined){if(typeof data142.description !== "string"){const err625 = {instancePath:instancePath+"/body/" + i3+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err625];}else {vErrors.push(err625);}errors++;}}}else {const err626 = {instancePath:instancePath+"/body/" + i3,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err626];}else {vErrors.push(err626);}errors++;}}}else {const err627 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err627];}else {vErrors.push(err627);}errors++;}var _valid18 = _errs483 === errors;if(_valid18 && valid76){valid76 = false;passing11 = [passing11, 2];}else {if(_valid18){valid76 = true;passing11 = 2;}}}if(!valid76){const err628 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err628];}else {vErrors.push(err628);}errors++;}else {errors = _errs306;if(vErrors !== null){if(_errs306){vErrors.length = _errs306;}else {vErrors = null;}}}}if(data.certainty !== undefined){let data189 = data.certainty;if(typeof data189 !== "string"){const err629 = {instancePath:instancePath+"/certainty",schemaPath:"#/properties/certainty/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err629];}else {vErrors.push(err629);}errors++;}if(!((((data189 === "edit:qualityLow") || (data189 === "edit:qualityMedium")) || (data189 === "edit:qualityHigh")) || (data189 === "edit:qualityUnknown"))){const err630 = {instancePath:instancePath+"/certainty",schemaPath:"#/properties/certainty/enum",keyword:"enum",params:{allowedValues: schema11.properties.certainty.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err630];}else {vErrors.push(err630);}errors++;}}if(data.precision !== undefined){let data190 = data.precision;if(typeof data190 !== "string"){const err631 = {instancePath:instancePath+"/precision",schemaPath:"#/properties/precision/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err631];}else {vErrors.push(err631);}errors++;}if(!((((data190 === "edit:qualityLow") || (data190 === "edit:qualityMedium")) || (data190 === "edit:qualityHigh")) || (data190 === "edit:qualityUnknown"))){const err632 = {instancePath:instancePath+"/precision",schemaPath:"#/properties/precision/enum",keyword:"enum",params:{allowedValues: schema11.properties.precision.enum},message:"must be equal to one of the allowed values"};if(vErrors === null){vErrors = [err632];}else {vErrors.push(err632);}errors++;}}if(data.label !== undefined){if(typeof data.label !== "string"){const err633 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err633];}else {vErrors.push(err633);}errors++;}}if(data.P2_has_type !== undefined){let data192 = data.P2_has_type;const _errs667 = errors;let valid157 = false;let passing30 = null;const _errs668 = errors;if(typeof data192 === "string"){if(func3(data192) < 3){const err634 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/oneOf/0/minLength",keyword:"minLength",params:{limit: 3},message:"must NOT have fewer than 3 characters"};if(vErrors === null){vErrors = [err634];}else {vErrors.push(err634);}errors++;}}else {const err635 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err635];}else {vErrors.push(err635);}errors++;}var _valid47 = _errs668 === errors;if(_valid47){valid157 = true;passing30 = 0;}const _errs670 = errors;if(Array.isArray(data192)){if(data192.length < 1){const err636 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/oneOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err636];}else {vErrors.push(err636);}errors++;}const len54 = data192.length;for(let i5=0; i5<len54; i5++){let data193 = data192[i5];if(typeof data193 === "string"){if(func3(data193) < 3){const err637 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/properties/P2_has_type/oneOf/1/items/minLength",keyword:"minLength",params:{limit: 3},message:"must NOT have fewer than 3 characters"};if(vErrors === null){vErrors = [err637];}else {vErrors.push(err637);}errors++;}}else {const err638 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/properties/P2_has_type/oneOf/1/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err638];}else {vErrors.push(err638);}errors++;}}let i6 = data192.length;let j0;if(i6 > 1){const indices0 = {};for(;i6--;){let item0 = data192[i6];if(typeof item0 !== "string"){continue;}if(typeof indices0[item0] == "number"){j0 = indices0[item0];const err639 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/oneOf/1/uniqueItems",keyword:"uniqueItems",params:{i: i6, j: j0},message:"must NOT have duplicate items (items ## "+j0+" and "+i6+" are identical)"};if(vErrors === null){vErrors = [err639];}else {vErrors.push(err639);}errors++;break;}indices0[item0] = i6;}}}else {const err640 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err640];}else {vErrors.push(err640);}errors++;}var _valid47 = _errs670 === errors;if(_valid47 && valid157){valid157 = false;passing30 = [passing30, 1];}else {if(_valid47){valid157 = true;passing30 = 1;}}if(!valid157){const err641 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/oneOf",keyword:"oneOf",params:{passingSchemas: passing30},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err641];}else {vErrors.push(err641);}errors++;}else {errors = _errs667;if(vErrors !== null){if(_errs667){vErrors.length = _errs667;}else {vErrors = null;}}}}}else {const err642 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err642];}else {vErrors.push(err642);}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":3,"maxItems":3,"items":[{"type":"string","const":"http://www.w3.org/ns/anno.jsonld"},{"type":"string","const":"https://www.cidoc-crm.org/cidoc-crm/json-ld_context.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":{"oneOf":[{"type":"string","const":"oa:identifying"},{"type":"string","const":"oa:describing"},{"type":"string","const":"correcting"},{"type":"string","const":"oa:tagging"},{"type":"string","const":"oa:classifying"},{"type":"string","const":"oa:linking"},{"type":"string","const":"citing"}],"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":{"oneOf":[{"$ref":"defs.jsonld#/definitions/user"},{"$ref":"defs.jsonld#/definitions/group"}]},"contributor":{"type":"array","items":{"oneOf":[{"$ref":"defs.jsonld#/definitions/user"},{"$ref":"defs.jsonld#/definitions/group"},{"$ref":"defs.jsonld#/definitions/software"}]},"minItems":1},"generator":{"$ref":"defs.jsonld#/definitions/software"},"target":{"oneOf":[{"$ref":"defs.jsonld#/definitions/target"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/target"},"minItems":1}]},"body":{"oneOf":[{"$ref":"defs.jsonld#/definitions/bodyChoice"},{"$ref":"defs.jsonld#/definitions/body"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"},"minItems":1}]},"label":{"type":"string"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"oneOf":[{"type":"string","const":"oa:identifying"},{"type":"string","const":"oa:describing"},{"type":"string","const":"correcting"},{"type":"string","const":"oa:tagging"},{"type":"string","const":"oa:classifying"},{"type":"string","const":"oa:linking"},{"type":"string","const":"citing"}],"description":"The relationship between an Annotation and a Motivation."}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","const":"edit:qualityLowCertainty"},{"type":"string","const":"edit:qualityMediumCertainty"},{"type":"string","const":"edit:qualityHighCertainty"},{"type":"string","const":"edit:qualityUnknownCertainty"}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","const":"edit:qualityLowPrecision"},{"type":"string","const":"edit:qualityMediumPrecision"},{"type":"string","const":"edit:qualityHighPrecision"},{"type":"string","const":"edit:qualityUnknownPrecision"}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}},"required":["@context","id","type","motivation","created","generator","target","body","P2_has_type"],"additionalProperties":false,"allOf":[{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"oneOf":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E53_Place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"biography:fictionalPlace"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"frbroo:F1"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"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"}]}]},{"type":"string","const":"crm:E28_Conceptual_Object"},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"event:Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:identifying"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"oa:identifying"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","const":"edit:qualityLowCertainty"},{"type":"string","const":"edit:qualityMediumCertainty"},{"type":"string","const":"edit:qualityHighCertainty"},{"type":"string","const":"edit:qualityUnknownCertainty"}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","const":"edit:qualityLowPrecision"},{"type":"string","const":"edit:qualityMediumPrecision"},{"type":"string","const":"edit:qualityHighPrecision"},{"type":"string","const":"edit:qualityUnknownPrecision"}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:describing"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"oa:describing"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","const":"edit:qualityLowCertainty"},{"type":"string","const":"edit:qualityMediumCertainty"},{"type":"string","const":"edit:qualityHighCertainty"},{"type":"string","const":"edit:qualityUnknownCertainty"}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","const":"edit:qualityLowPrecision"},{"type":"string","const":"edit:qualityMediumPrecision"},{"type":"string","const":"edit:qualityHighPrecision"},{"type":"string","const":"edit:qualityUnknownPrecision"}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"correcting"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"correcting"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","const":"edit:qualityLowCertainty"},{"type":"string","const":"edit:qualityMediumCertainty"},{"type":"string","const":"edit:qualityHighCertainty"},{"type":"string","const":"edit:qualityUnknownCertainty"}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","const":"edit:qualityLowPrecision"},{"type":"string","const":"edit:qualityMediumPrecision"},{"type":"string","const":"edit:qualityHighPrecision"},{"type":"string","const":"edit:qualityUnknownPrecision"}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:tagging"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"oa:tagging"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","const":"edit:qualityLowCertainty"},{"type":"string","const":"edit:qualityMediumCertainty"},{"type":"string","const":"edit:qualityHighCertainty"},{"type":"string","const":"edit:qualityUnknownCertainty"}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","const":"edit:qualityLowPrecision"},{"type":"string","const":"edit:qualityMediumPrecision"},{"type":"string","const":"edit:qualityHighPrecision"},{"type":"string","const":"edit:qualityUnknownPrecision"}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"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":"string","const":"oa:classifying"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"oa:classifying"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","const":"edit:qualityLowCertainty"},{"type":"string","const":"edit:qualityMediumCertainty"},{"type":"string","const":"edit:qualityHighCertainty"},{"type":"string","const":"edit:qualityUnknownCertainty"}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","const":"edit:qualityLowPrecision"},{"type":"string","const":"edit:qualityMediumPrecision"},{"type":"string","const":"edit:qualityHighPrecision"},{"type":"string","const":"edit:qualityUnknownPrecision"}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"string","const":"crmdig:D1_Digital_Object"}}}}},"then":{"type":"object","properties":{"motivation":{"type":"string","const":"oa:linking"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"oa:linking"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","const":"edit:qualityLowCertainty"},{"type":"string","const":"edit:qualityMediumCertainty"},{"type":"string","const":"edit:qualityHighCertainty"},{"type":"string","const":"edit:qualityUnknownCertainty"}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","const":"edit:qualityLowPrecision"},{"type":"string","const":"edit:qualityMediumPrecision"},{"type":"string","const":"edit:qualityHighPrecision"},{"type":"string","const":"edit:qualityUnknownPrecision"}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}},"else":{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"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":"string","const":"citing"},"P2_has_type":{"type":"array","minItems":1,"maxItems":3,"items":[{"type":"string","const":"citing"}],"additionalItems":{"oneOf":[{"oneOf":[{"type":"string","const":"edit:qualityLowCertainty"},{"type":"string","const":"edit:qualityMediumCertainty"},{"type":"string","const":"edit:qualityHighCertainty"},{"type":"string","const":"edit:qualityUnknownCertainty"}],"description":"Indicates the degree of certainty associated with some aspect of an assertion, description, identification, or entity linked to the annotation body."},{"oneOf":[{"type":"string","const":"edit:qualityLowPrecision"},{"type":"string","const":"edit:qualityMediumPrecision"},{"type":"string","const":"edit:qualityHighPrecision"},{"type":"string","const":"edit:qualityUnknownPrecision"}],"description":"Indicates the degree of precision associated with the location of the entity linked to the annotation body."}]}}}}}}}}}}},{"if":{"type":"object","properties":{"body":{"type":"object","properties":{"type":{"type":"string","const":"Choice"}}}}},"then":{"type":"object","properties":{"body":{"$ref":"defs.jsonld#/definitions/bodyChoice"}}},"else":{"type":"object","properties":{"body":{"oneOf":[{"$ref":"defs.jsonld#/definitions/body"},{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"},"minItems":1}]}}}}]};const schema14 = {"type":"object","description":"Web Annotation Body","properties":{"id":{"type":"string","format":"uri","description":"The IRI that identifies the Body resource."},"type":{"oneOf":[{"oneOf":[{"type":"string","const":"crm:E21_Person"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Person"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E53_Place"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"biography:fictionalPlace"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"crm:E74_Group"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"foaf:Organization"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"oneOf":[{"type":"string","const":"frbroo:F1"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"frbroo:F1"},{"type":"string","const":"wikidata:Q15306849"}]}]},{"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"}]}]},{"type":"string","const":"crm:E28_Conceptual_Object"},{"oneOf":[{"type":"string","const":"crm:E5_Event"},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"event:Event"},{"type":"string","const":"crm:E89_Propositional_Object"}]}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"cito:Citation"},{"type":"string","const":"crm:E73_Information_Object"}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"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":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"string","const":"crmdig:D1_Digital_Object"}]},"value":{"type":"string"},"label":{"type":"string","minLength":1,"description":"The title or name of a linked resource or named entity."},"P2_has_type":{"type":"array","items":{"type":"string"}},"description":{"type":"string","description":"Short description of the linked resources or named entity."}},"required":["id","type"],"anyOf":[{"if":{"type":"object","properties":{"type":{"anyOf":[{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"fabio:Correction"},{"type":"string","const":"crm:E33_Linguistic_Object"}]},{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"crm:E55_Type"},{"type":"string","const":"crm:E33_Linguistic_Object"}]}]}}},"then":{"type":"object","required":["id","type","value"],"if":{"type":"object","properties":{"type":{"type":"array","minItems":3,"maxItems":3,"items":[{"type":"string","const":"TextualBody"},{"type":"string","const":"xsd:date"},{"type":"string","const":"crm:E52_Time-Span"}]}}},"then":{"type":"object","required":["id","type","value"],"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)?)$"}}}}}],"additionalProperties":false};const schema17 = {"type":"object","description":"User Agent","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E21_Person"},"name":{"type":"string","minLength":1,"description":"The person's name."}},"required":["id","type","name"]};const schema18 = {"type":"object","description":"Group Agent","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E74_Group"},"name":{"type":"string","minLength":1,"description":"The group's name."}},"required":["id","type","name"]};const schema21 = {"type":"object","description":"Software Agent","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"Software"},{"type":"string","const":"crm:E73_Information_Object"}]},"P16_used_specific_object":{"type":"string","format":"uri","nullable":true},"name":{"type":"string","minLength":1,"description":"The software's name."},"softwareVersion":{"type":"string","nullable":true,"description":"The software version."}},"required":["id","type","name"]};const schema13 = {"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"},"items":{"type":"array","items":{"$ref":"defs.jsonld#/definitions/body"}}},"required":["id","type","items"],"additionalProperties":false};const formats0 = require("ajv-formats/dist/formats").fullFormats.uri;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");const func2 = require("ajv/dist/runtime/ucs2length").default;function validate12(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.items === undefined){const err2 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "items"},message:"must have required property '"+"items"+"'"};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}for(const key0 in data){if(!(((key0 === "id") || (key0 === "type")) || (key0 === "items"))){const err3 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}}if(data.id !== undefined){let data0 = data.id;if(typeof data0 === "string"){if(!(formats0(data0))){const err4 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}}else {const err5 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}}if(data.type !== undefined){let data1 = data.type;if(typeof data1 !== "string"){const err6 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err6];}else {vErrors.push(err6);}errors++;}if("Choice" !== data1){const err7 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/const",keyword:"const",params:{allowedValue: "Choice"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err7];}else {vErrors.push(err7);}errors++;}}if(data.items !== undefined){let data2 = data.items;if(Array.isArray(data2)){const len0 = data2.length;for(let i0=0; i0<len0; i0++){let data3 = data2[i0];const _errs11 = errors;let valid4 = false;const _errs12 = errors;const _errs13 = errors;let valid5 = true;const _errs14 = errors;if(errors === _errs14){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.type !== undefined){let data4 = data3.type;const _errs17 = errors;let valid7 = false;const _errs18 = errors;if(errors === _errs18){if(Array.isArray(data4)){if(data4.length > 2){const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}else {if(data4.length < 2){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {const len1 = data4.length;if(len1 > 0){let data5 = data4[0];const _errs20 = errors;if(typeof data5 !== "string"){const err10 = {};if(vErrors === null){vErrors = [err10];}else {vErrors.push(err10);}errors++;}if("TextualBody" !== data5){const err11 = {};if(vErrors === null){vErrors = [err11];}else {vErrors.push(err11);}errors++;}var valid8 = _errs20 === errors;}if(valid8){if(len1 > 1){let data6 = data4[1];const _errs22 = errors;if(typeof data6 !== "string"){const err12 = {};if(vErrors === null){vErrors = [err12];}else {vErrors.push(err12);}errors++;}if("crm:E33_Linguistic_Object" !== data6){const err13 = {};if(vErrors === null){vErrors = [err13];}else {vErrors.push(err13);}errors++;}var valid8 = _errs22 === errors;}}}}}else {const err14 = {};if(vErrors === null){vErrors = [err14];}else {vErrors.push(err14);}errors++;}}var _valid2 = _errs18 === errors;valid7 = valid7 || _valid2;if(!valid7){const _errs24 = errors;if(errors === _errs24){if(Array.isArray(data4)){if(data4.length > 3){const err15 = {};if(vErrors === null){vErrors = [err15];}else {vErrors.push(err15);}errors++;}else {if(data4.length < 3){const err16 = {};if(vErrors === null){vErrors = [err16];}else {vErrors.push(err16);}errors++;}else {const len2 = data4.length;if(len2 > 0){let data7 = data4[0];const _errs26 = errors;if(typeof data7 !== "string"){const err17 = {};if(vErrors === null){vErrors = [err17];}else {vErrors.push(err17);}errors++;}if("TextualBody" !== data7){const err18 = {};if(vErrors === null){vErrors = [err18];}else {vErrors.push(err18);}errors++;}var valid9 = _errs26 === errors;}if(valid9){if(len2 > 1){let data8 = data4[1];const _errs28 = errors;if(typeof data8 !== "string"){const err19 = {};if(vErrors === null){vErrors = [err19];}else {vErrors.push(err19);}errors++;}if("xsd:date" !== data8){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}var valid9 = _errs28 === errors;}if(valid9){if(len2 > 2){let data9 = data4[2];const _errs30 = errors;if(typeof data9 !== "string"){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}if("crm:E52_Time-Span" !== data9){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}var valid9 = _errs30 === errors;}}}}}}else {const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}}var _valid2 = _errs24 === errors;valid7 = valid7 || _valid2;if(!valid7){const _errs32 = errors;if(errors === _errs32){if(Array.isArray(data4)){if(data4.length > 3){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}else {if(data4.length < 3){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}else {const len3 = data4.length;if(len3 > 0){let data10 = data4[0];const _errs34 = errors;if(typeof data10 !== "string"){const err26 = {};if(vErrors === null){vErrors = [err26];}else {vErrors.push(err26);}errors++;}if("TextualBody" !== data10){const err27 = {};if(vErrors === null){vErrors = [err27];}else {vErrors.push(err27);}errors++;}var valid10 = _errs34 === errors;}if(valid10){if(len3 > 1){let data11 = data4[1];const _errs36 = errors;if(typeof data11 !== "string"){const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}if("fabio:Correction" !== data11){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}var valid10 = _errs36 === errors;}if(valid10){if(len3 > 2){let data12 = data4[2];const _errs38 = errors;if(typeof data12 !== "string"){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("crm:E33_Linguistic_Object" !== data12){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var valid10 = _errs38 === errors;}}}}}}else {const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}}var _valid2 = _errs32 === errors;valid7 = valid7 || _valid2;if(!valid7){const _errs40 = errors;if(errors === _errs40){if(Array.isArray(data4)){if(data4.length > 3){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {if(data4.length < 3){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}else {const len4 = data4.length;if(len4 > 0){let data13 = data4[0];const _errs42 = errors;if(typeof data13 !== "string"){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}if("TextualBody" !== data13){const err36 = {};if(vErrors === null){vErrors = [err36];}else {vErrors.push(err36);}errors++;}var valid11 = _errs42 === errors;}if(valid11){if(len4 > 1){let data14 = data4[1];const _errs44 = errors;if(typeof data14 !== "string"){const err37 = {};if(vErrors === null){vErrors = [err37];}else {vErrors.push(err37);}errors++;}if("crm:E55_Type" !== data14){const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}var valid11 = _errs44 === errors;}if(valid11){if(len4 > 2){let data15 = data4[2];const _errs46 = errors;if(typeof data15 !== "string"){const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}if("crm:E33_Linguistic_Object" !== data15){const err40 = {};if(vErrors === null){vErrors = [err40];}else {vErrors.push(err40);}errors++;}var valid11 = _errs46 === errors;}}}}}}else {const err41 = {};if(vErrors === null){vErrors = [err41];}else {vErrors.push(err41);}errors++;}}var _valid2 = _errs40 === errors;valid7 = valid7 || _valid2;}}}if(!valid7){const err42 = {};if(vErrors === null){vErrors = [err42];}else {vErrors.push(err42);}errors++;}else {errors = _errs17;if(vErrors !== null){if(_errs17){vErrors.length = _errs17;}else {vErrors = null;}}}}}else {const err43 = {};if(vErrors === null){vErrors = [err43];}else {vErrors.push(err43);}errors++;}}var _valid1 = _errs14 === errors;errors = _errs13;if(vErrors !== null){if(_errs13){vErrors.length = _errs13;}else {vErrors = null;}}if(_valid1){const _errs48 = errors;const _errs50 = errors;let valid12 = true;const _errs51 = errors;if(errors === _errs51){if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.type !== undefined){let data16 = data3.type;const _errs53 = errors;if(errors === _errs53){if(Array.isArray(data16)){if(data16.length > 3){const err44 = {};if(vErrors === null){vErrors = [err44];}else {vErrors.push(err44);}errors++;}else {if(data16.length < 3){const err45 = {};if(vErrors === null){vErrors = [err45];}else {vErrors.push(err45);}errors++;}else {const len5 = data16.length;if(len5 > 0){let data17 = data16[0];const _errs55 = errors;if(typeof data17 !== "string"){const err46 = {};if(vErrors === null){vErrors = [err46];}else {vErrors.push(err46);}errors++;}if("TextualBody" !== data17){const err47 = {};if(vErrors === null){vErrors = [err47];}else {vErrors.push(err47);}errors++;}var valid14 = _errs55 === errors;}if(valid14){if(len5 > 1){let data18 = data16[1];const _errs57 = errors;if(typeof data18 !== "string"){const err48 = {};if(vErrors === null){vErrors = [err48];}else {vErrors.push(err48);}errors++;}if("xsd:date" !== data18){const err49 = {};if(vErrors === null){vErrors = [err49];}else {vErrors.push(err49);}errors++;}var valid14 = _errs57 === errors;}if(valid14){if(len5 > 2){let data19 = data16[2];const _errs59 = errors;if(typeof data19 !== "string"){const err50 = {};if(vErrors === null){vErrors = [err50];}else {vErrors.push(err50);}errors++;}if("crm:E52_Time-Span" !== data19){const err51 = {};if(vErrors === null){vErrors = [err51];}else {vErrors.push(err51);}errors++;}var valid14 = _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++;}}var _valid3 = _errs51 === errors;errors = _errs50;if(vErrors !== null){if(_errs50){vErrors.length = _errs50;}else {vErrors = null;}}if(_valid3){const _errs61 = errors;if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.id === undefined){const err54 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if(data3.type === undefined){const err55 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}if(data3.value === undefined){const err56 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if(data3.value !== undefined){let data20 = data3.value;if(typeof data20 === "string"){if(!pattern0.test(data20)){const err57 = {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 = [err57];}else {vErrors.push(err57);}errors++;}}else {const err58 = {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 = [err58];}else {vErrors.push(err58);}errors++;}}}else {const err59 = {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 = [err59];}else {vErrors.push(err59);}errors++;}var _valid3 = _errs61 === errors;valid12 = _valid3;}if(!valid12){const err60 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.id === undefined){const err61 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if(data3.type === undefined){const err62 = {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 = [err62];}else {vErrors.push(err62);}errors++;}if(data3.value === undefined){const err63 = {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 = [err63];}else {vErrors.push(err63);}errors++;}}else {const err64 = {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 = [err64];}else {vErrors.push(err64);}errors++;}var _valid1 = _errs48 === errors;valid5 = _valid1;}if(!valid5){const err65 = {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 = [err65];}else {vErrors.push(err65);}errors++;}var _valid0 = _errs12 === errors;valid4 = valid4 || _valid0;if(!valid4){const err66 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}else {errors = _errs11;if(vErrors !== null){if(_errs11){vErrors.length = _errs11;}else {vErrors = null;}}}if(data3 && typeof data3 == "object" && !Array.isArray(data3)){if(data3.id === undefined){const err67 = {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 = [err67];}else {vErrors.push(err67);}errors++;}if(data3.type === undefined){const err68 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}for(const key1 in data3){if(!((((((key1 === "id") || (key1 === "type")) || (key1 === "value")) || (key1 === "label")) || (key1 === "P2_has_type")) || (key1 === "description"))){const err69 = {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 = [err69];}else {vErrors.push(err69);}errors++;}}if(data3.id !== undefined){let data21 = data3.id;if(typeof data21 === "string"){if(!(formats0(data21))){const err70 = {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 = [err70];}else {vErrors.push(err70);}errors++;}}else {const err71 = {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 = [err71];}else {vErrors.push(err71);}errors++;}}if(data3.type !== undefined){let data22 = data3.type;const _errs69 = errors;let valid17 = false;let passing0 = null;const _errs70 = errors;const _errs71 = errors;let valid18 = false;let passing1 = null;const _errs72 = errors;if(typeof data22 !== "string"){const err72 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}if("crm:E21_Person" !== data22){const err73 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var _valid5 = _errs72 === errors;if(_valid5){valid18 = true;passing1 = 0;}const _errs74 = errors;if(Array.isArray(data22)){if(data22.length > 2){const err74 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(data22.length < 2){const err75 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}const len6 = data22.length;if(len6 > 0){let data23 = data22[0];if(typeof data23 !== "string"){const err76 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if("foaf:Person" !== data23){const err77 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}}if(len6 > 1){let data24 = data22[1];if(typeof data24 !== "string"){const err78 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if("crm:E89_Propositional_Object" !== data24){const err79 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}}else {const err80 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}var _valid5 = _errs74 === errors;if(_valid5 && valid18){valid18 = false;passing1 = [passing1, 1];}else {if(_valid5){valid18 = true;passing1 = 1;}}if(!valid18){const err81 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing1},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}else {errors = _errs71;if(vErrors !== null){if(_errs71){vErrors.length = _errs71;}else {vErrors = null;}}}var _valid4 = _errs70 === errors;if(_valid4){valid17 = true;passing0 = 0;}const _errs80 = errors;const _errs81 = errors;let valid20 = false;let passing2 = null;const _errs82 = errors;if(typeof data22 !== "string"){const err82 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if("crm:E53_Place" !== data22){const err83 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var _valid6 = _errs82 === errors;if(_valid6){valid20 = true;passing2 = 0;}const _errs84 = errors;if(Array.isArray(data22)){if(data22.length > 2){const err84 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if(data22.length < 2){const err85 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}const len7 = data22.length;if(len7 > 0){let data25 = data22[0];if(typeof data25 !== "string"){const err86 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}if("biography:fictionalPlace" !== data25){const err87 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}}if(len7 > 1){let data26 = data22[1];if(typeof data26 !== "string"){const err88 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if("crm:E89_Propositional_Object" !== data26){const err89 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/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 = [err89];}else {vErrors.push(err89);}errors++;}}}else {const err90 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}var _valid6 = _errs84 === errors;if(_valid6 && valid20){valid20 = false;passing2 = [passing2, 1];}else {if(_valid6){valid20 = true;passing2 = 1;}}if(!valid20){const err91 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing2},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}else {errors = _errs81;if(vErrors !== null){if(_errs81){vErrors.length = _errs81;}else {vErrors = null;}}}var _valid4 = _errs80 === errors;if(_valid4 && valid17){valid17 = false;passing0 = [passing0, 1];}else {if(_valid4){valid17 = true;passing0 = 1;}const _errs90 = errors;const _errs91 = errors;let valid22 = false;let passing3 = null;const _errs92 = errors;if(typeof data22 !== "string"){const err92 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if("crm:E74_Group" !== data22){const err93 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}var _valid7 = _errs92 === errors;if(_valid7){valid22 = true;passing3 = 0;}const _errs94 = errors;if(Array.isArray(data22)){if(data22.length > 2){const err94 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}if(data22.length < 2){const err95 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}const len8 = data22.length;if(len8 > 0){let data27 = data22[0];if(typeof data27 !== "string"){const err96 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}if("foaf:Organization" !== data27){const err97 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}}if(len8 > 1){let data28 = data22[1];if(typeof data28 !== "string"){const err98 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}if("crm:E89_Propositional_Object" !== data28){const err99 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}else {const err100 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}var _valid7 = _errs94 === errors;if(_valid7 && valid22){valid22 = false;passing3 = [passing3, 1];}else {if(_valid7){valid22 = true;passing3 = 1;}}if(!valid22){const err101 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing3},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {errors = _errs91;if(vErrors !== null){if(_errs91){vErrors.length = _errs91;}else {vErrors = null;}}}var _valid4 = _errs90 === errors;if(_valid4 && valid17){valid17 = false;passing0 = [passing0, 2];}else {if(_valid4){valid17 = true;passing0 = 2;}const _errs100 = errors;const _errs101 = errors;let valid24 = false;let passing4 = null;const _errs102 = errors;if(typeof data22 !== "string"){const err102 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if("frbroo:F1" !== data22){const err103 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}var _valid8 = _errs102 === errors;if(_valid8){valid24 = true;passing4 = 0;}const _errs104 = errors;if(Array.isArray(data22)){if(data22.length > 2){const err104 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data22.length < 2){const err105 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}const len9 = data22.length;if(len9 > 0){let data29 = data22[0];if(typeof data29 !== "string"){const err106 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}if("frbroo:F1" !== data29){const err107 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(len9 > 1){let data30 = data22[1];if(typeof data30 !== "string"){const err108 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if("wikidata:Q15306849" !== data30){const err109 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}}else {const err110 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}var _valid8 = _errs104 === errors;if(_valid8 && valid24){valid24 = false;passing4 = [passing4, 1];}else {if(_valid8){valid24 = true;passing4 = 1;}}if(!valid24){const err111 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing4},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}else {errors = _errs101;if(vErrors !== null){if(_errs101){vErrors.length = _errs101;}else {vErrors = null;}}}var _valid4 = _errs100 === errors;if(_valid4 && valid17){valid17 = false;passing0 = [passing0, 3];}else {if(_valid4){valid17 = true;passing0 = 3;}const _errs110 = errors;const _errs111 = errors;let valid26 = false;let passing5 = null;const _errs112 = errors;if(typeof data22 !== "string"){const err112 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if("crm:E18_Physical_Thing" !== data22){const err113 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}var _valid9 = _errs112 === errors;if(_valid9){valid26 = true;passing5 = 0;}const _errs114 = errors;if(Array.isArray(data22)){if(data22.length > 2){const err114 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if(data22.length < 2){const err115 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}const len10 = data22.length;if(len10 > 0){let data31 = data22[0];if(typeof data31 !== "string"){const err116 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}if("crm:E18_Physical_Thing" !== data31){const err117 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/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 = [err117];}else {vErrors.push(err117);}errors++;}}if(len10 > 1){let data32 = data22[1];if(typeof data32 !== "string"){const err118 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if("wikidata:Q15831596" !== data32){const err119 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}}}else {const err120 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}var _valid9 = _errs114 === errors;if(_valid9 && valid26){valid26 = false;passing5 = [passing5, 1];}else {if(_valid9){valid26 = true;passing5 = 1;}}if(!valid26){const err121 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing5},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {errors = _errs111;if(vErrors !== null){if(_errs111){vErrors.length = _errs111;}else {vErrors = null;}}}var _valid4 = _errs110 === errors;if(_valid4 && valid17){valid17 = false;passing0 = [passing0, 4];}else {if(_valid4){valid17 = true;passing0 = 4;}const _errs120 = errors;if(typeof data22 !== "string"){const err122 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}if("crm:E28_Conceptual_Object" !== data22){const err123 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}var _valid4 = _errs120 === errors;if(_valid4 && valid17){valid17 = false;passing0 = [passing0, 5];}else {if(_valid4){valid17 = true;passing0 = 5;}const _errs122 = errors;const _errs123 = errors;let valid28 = false;let passing6 = null;const _errs124 = errors;if(typeof data22 !== "string"){const err124 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if("crm:E5_Event" !== data22){const err125 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}var _valid10 = _errs124 === errors;if(_valid10){valid28 = true;passing6 = 0;}const _errs126 = errors;if(Array.isArray(data22)){if(data22.length > 2){const err126 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/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(data22.length < 2){const err127 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/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 len11 = data22.length;if(len11 > 0){let data33 = data22[0];if(typeof data33 !== "string"){const err128 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}if("event:Event" !== data33){const err129 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}}if(len11 > 1){let data34 = data22[1];if(typeof data34 !== "string"){const err130 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}if("crm:E89_Propositional_Object" !== data34){const err131 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}}}else {const err132 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}var _valid10 = _errs126 === errors;if(_valid10 && valid28){valid28 = false;passing6 = [passing6, 1];}else {if(_valid10){valid28 = true;passing6 = 1;}}if(!valid28){const err133 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing6},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}else {errors = _errs123;if(vErrors !== null){if(_errs123){vErrors.length = _errs123;}else {vErrors = null;}}}var _valid4 = _errs122 === errors;if(_valid4 && valid17){valid17 = false;passing0 = [passing0, 6];}else {if(_valid4){valid17 = true;passing0 = 6;}const _errs132 = errors;if(Array.isArray(data22)){if(data22.length > 2){const err134 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}if(data22.length < 2){const err135 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}const len12 = data22.length;if(len12 > 0){let data35 = data22[0];if(typeof data35 !== "string"){const err136 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}if("cito:Citation" !== data35){const err137 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}if(len12 > 1){let data36 = data22[1];if(typeof data36 !== "string"){const err138 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}if("crm:E73_Information_Object" !== data36){const err139 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}}}else {const err140 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}var _valid4 = _errs132 === errors;if(_valid4 && valid17){valid17 = false;passing0 = [passing0, 7];}else {if(_valid4){valid17 = true;passing0 = 7;}const _errs138 = errors;if(Array.isArray(data22)){if(data22.length > 3){const err141 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if(data22.length < 3){const err142 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}const len13 = data22.length;if(len13 > 0){let data37 = data22[0];if(typeof data37 !== "string"){const err143 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if("TextualBody" !== data37){const err144 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}}if(len13 > 1){let data38 = data22[1];if(typeof data38 !== "string"){const err145 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}if("xsd:date" !== data38){const err146 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}if(len13 > 2){let data39 = data22[2];if(typeof data39 !== "string"){const err147 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}if("crm:E52_Time-Span" !== data39){const err148 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}}}else {const err149 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}var _valid4 = _errs138 === errors;if(_valid4 && valid17){valid17 = false;passing0 = [passing0, 8];}else {if(_valid4){valid17 = true;passing0 = 8;}const _errs146 = errors;if(Array.isArray(data22)){if(data22.length > 2){const err150 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data22.length < 2){const err151 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}const len14 = data22.length;if(len14 > 0){let data40 = data22[0];if(typeof data40 !== "string"){const err152 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if("TextualBody" !== data40){const err153 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}}if(len14 > 1){let data41 = data22[1];if(typeof data41 !== "string"){const err154 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if("crm:E33_Linguistic_Object" !== data41){const err155 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}}}else {const err156 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}var _valid4 = _errs146 === errors;if(_valid4 && valid17){valid17 = false;passing0 = [passing0, 9];}else {if(_valid4){valid17 = true;passing0 = 9;}const _errs152 = errors;if(Array.isArray(data22)){if(data22.length > 3){const err157 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}if(data22.length < 3){const err158 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}const len15 = data22.length;if(len15 > 0){let data42 = data22[0];if(typeof data42 !== "string"){const err159 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}if("TextualBody" !== data42){const err160 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}}if(len15 > 1){let data43 = data22[1];if(typeof data43 !== "string"){const err161 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if("fabio:Correction" !== data43){const err162 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}}if(len15 > 2){let data44 = data22[2];if(typeof data44 !== "string"){const err163 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if("crm:E33_Linguistic_Object" !== data44){const err164 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}}}else {const err165 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}var _valid4 = _errs152 === errors;if(_valid4 && valid17){valid17 = false;passing0 = [passing0, 10];}else {if(_valid4){valid17 = true;passing0 = 10;}const _errs160 = errors;if(Array.isArray(data22)){if(data22.length > 2){const err166 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}if(data22.length < 2){const err167 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}const len16 = data22.length;if(len16 > 0){let data45 = data22[0];if(typeof data45 !== "string"){const err168 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}if("crm:E55_Type" !== data45){const err169 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}}if(len16 > 1){let data46 = data22[1];if(typeof data46 !== "string"){const err170 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}if("crmdig:D1_Digital_Object" !== data46){const err171 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}}}else {const err172 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}var _valid4 = _errs160 === errors;if(_valid4 && valid17){valid17 = false;passing0 = [passing0, 11];}else {if(_valid4){valid17 = true;passing0 = 11;}const _errs166 = errors;if(Array.isArray(data22)){if(data22.length > 3){const err173 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}if(data22.length < 3){const err174 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}const len17 = data22.length;if(len17 > 0){let data47 = data22[0];if(typeof data47 !== "string"){const err175 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}if("TextualBody" !== data47){const err176 = {instancePath:instancePath+"/items/" + i0+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}}if(len17 > 1){let data48 = data22[1];if(typeof data48 !== "string"){const err177 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if("crm:E55_Type" !== data48){const err178 = {instancePath:instancePath+"/items/" + i0+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}}if(len17 > 2){let data49 = data22[2];if(typeof data49 !== "string"){const err179 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if("crm:E33_Linguistic_Object" !== data49){const err180 = {instancePath:instancePath+"/items/" + i0+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}}}else {const err181 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}var _valid4 = _errs166 === errors;if(_valid4 && valid17){valid17 = false;passing0 = [passing0, 12];}else {if(_valid4){valid17 = true;passing0 = 12;}const _errs174 = errors;if(typeof data22 !== "string"){const err182 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/13/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}if("crmdig:D1_Digital_Object" !== data22){const err183 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/13/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}var _valid4 = _errs174 === errors;if(_valid4 && valid17){valid17 = false;passing0 = [passing0, 13];}else {if(_valid4){valid17 = true;passing0 = 13;}}}}}}}}}}}}}}if(!valid17){const err184 = {instancePath:instancePath+"/items/" + i0+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing0},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}else {errors = _errs69;if(vErrors !== null){if(_errs69){vErrors.length = _errs69;}else {vErrors = null;}}}}if(data3.value !== undefined){if(typeof data3.value !== "string"){const err185 = {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 = [err185];}else {vErrors.push(err185);}errors++;}}if(data3.label !== undefined){let data51 = data3.label;if(typeof data51 === "string"){if(func2(data51) < 1){const err186 = {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 = [err186];}else {vErrors.push(err186);}errors++;}}else {const err187 = {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 = [err187];}else {vErrors.push(err187);}errors++;}}if(data3.P2_has_type !== undefined){let data52 = data3.P2_has_type;if(Array.isArray(data52)){const len18 = data52.length;for(let i1=0; i1<len18; i1++){if(typeof data52[i1] !== "string"){const err188 = {instancePath:instancePath+"/items/" + i0+"/P2_has_type/" + i1,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}}}else {const err189 = {instancePath:instancePath+"/items/" + i0+"/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}}if(data3.description !== undefined){if(typeof data3.description !== "string"){const err190 = {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 = [err190];}else {vErrors.push(err190);}errors++;}}}else {const err191 = {instancePath:instancePath+"/items/" + i0,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}}}else {const err192 = {instancePath:instancePath+"/items",schemaPath:"#/properties/items/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}}}else {const err193 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}validate12.errors = vErrors;return errors === 0;}const schema23 = {"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."},"type":{"type":"string","const":"crm:D1_Digital_Object"},"format":{"type":["string","array"],"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 format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification."}]},"P1_is_identified_by":{"type":"object","description":"indentifyBy","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"string","const":"crm:E33_E41_Linguistic_Appellation"},"title":{"type":"string","minLength":1,"description":"The title of the document being annotated."}},"required":["id","type","title"],"nullable":true},"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 language of the Web Resource's content. The value of the property should be a language code following the [bcp47] specification."}]}},"required":["id","type","format"]},"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":"CSS Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"CssSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select CSS"},"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":"CSS Selector","properties":{"id":{"type":"string","format":"uri"},"type":{"type":"array","minItems":2,"maxItems":2,"items":[{"type":"string","const":"CssSelector"},{"type":"string","const":"crm:E73_Information_Object"}],"description":"The class of the Selector,"},"value":{"type":"string","description":"Web Annotation Target Select CSS"},"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"],"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":"CssSelector"},{"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 schema25 = {"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 schema26 = {"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 schema33 = {"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 validate14(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("CssSelector" !== 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.value === undefined){const err56 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}}else {const err57 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/3/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}}}else {const err58 = {instancePath,schemaPath:"#/allOf/3/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}var _valid3 = _errs61 === errors;valid16 = _valid3;}if(!valid16){const err59 = {instancePath,schemaPath:"#/allOf/3/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}const _errs66 = errors;let valid21 = true;const _errs67 = errors;if(errors === _errs67){if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data20 = data.selector;const _errs69 = errors;if(errors === _errs69){if(data20 && typeof data20 == "object" && !Array.isArray(data20)){if(data20.type !== undefined){let data21 = data20.type;const _errs71 = errors;if(errors === _errs71){if(Array.isArray(data21)){if(data21.length > 2){const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}else {if(data21.length < 2){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}else {const len4 = data21.length;if(len4 > 0){let data22 = data21[0];const _errs73 = errors;if(typeof data22 !== "string"){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}if("TextPositionSelector" !== data22){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}var valid24 = _errs73 === errors;}if(valid24){if(len4 > 1){let data23 = data21[1];const _errs75 = errors;if(typeof data23 !== "string"){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}if("crm:E73_Information_Object" !== data23){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}var valid24 = _errs75 === errors;}}}}}else {const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}}}}else {const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}}}}else {const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}}var _valid4 = _errs67 === errors;errors = _errs66;if(vErrors !== null){if(_errs66){vErrors.length = _errs66;}else {vErrors = null;}}if(_valid4){const _errs77 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.selector !== undefined){let data24 = data.selector;if(data24 && typeof data24 == "object" && !Array.isArray(data24)){if(data24.type === undefined){const err69 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}if(data24.start === undefined){const err70 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/required",keyword:"required",params:{missingProperty: "start"},message:"must have required property '"+"start"+"'"};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}if(data24.end === undefined){const err71 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/required",keyword:"required",params:{missingProperty: "end"},message:"must have required property '"+"end"+"'"};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}}else {const err72 = {instancePath:instancePath+"/selector",schemaPath:"#/allOf/4/then/properties/selector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}else {const err73 = {instancePath,schemaPath:"#/allOf/4/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}var _valid4 = _errs77 === errors;valid21 = _valid4;}if(!valid21){const err74 = {instancePath,schemaPath:"#/allOf/4/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data.id === undefined){const err75 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}if(data.type === undefined){const err76 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data.source === undefined){const err77 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "source"},message:"must have required property '"+"source"+"'"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}if(data.id !== undefined){let data25 = data.id;if(typeof data25 === "string"){if(!(formats0(data25))){const err78 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}}else {const err79 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}}if(data.type !== undefined){let data26 = data.type;if(Array.isArray(data26)){if(data26.length > 2){const err80 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/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(data26.length < 2){const err81 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/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 len5 = data26.length;if(len5 > 0){let data27 = data26[0];if(typeof data27 !== "string"){const err82 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if("SpecificResource" !== data27){const err83 = {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 = [err83];}else {vErrors.push(err83);}errors++;}}if(len5 > 1){let data28 = data26[1];if(typeof data28 !== "string"){const err84 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if("crm:E73_Information_Object" !== data28){const err85 = {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 = [err85];}else {vErrors.push(err85);}errors++;}}}else {const err86 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}}if(data.source !== undefined){let data29 = data.source;if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.id === undefined){const err87 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if(data29.type === undefined){const err88 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}if(data29.format === undefined){const err89 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/required",keyword:"required",params:{missingProperty: "format"},message:"must have required property '"+"format"+"'"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if(data29.id !== undefined){let data30 = data29.id;if(typeof data30 === "string"){if(!(formats0(data30))){const err90 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}else {const err91 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}}if(data29.type !== undefined){let data31 = data29.type;if(typeof data31 !== "string"){const err92 = {instancePath:instancePath+"/source/type",schemaPath:"#/properties/source/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}if("crm:D1_Digital_Object" !== data31){const err93 = {instancePath:instancePath+"/source/type",schemaPath:"#/properties/source/properties/type/const",keyword:"const",params:{allowedValue: "crm:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}}if(data29.format !== undefined){let data32 = data29.format;if((typeof data32 !== "string") && (!(Array.isArray(data32)))){const err94 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/type",keyword:"type",params:{type: schema23.properties.source.properties.format.type},message:"must be string,array"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}const _errs97 = errors;let valid29 = false;const _errs98 = errors;if(typeof data32 === "string"){if(func2(data32) < 1){const err95 = {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 = [err95];}else {vErrors.push(err95);}errors++;}}else {const err96 = {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 = [err96];}else {vErrors.push(err96);}errors++;}var _valid5 = _errs98 === errors;valid29 = valid29 || _valid5;if(!valid29){const _errs100 = errors;if(Array.isArray(data32)){if(data32.length < 1){const err97 = {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 = [err97];}else {vErrors.push(err97);}errors++;}const len6 = data32.length;for(let i0=0; i0<len6; i0++){let data33 = data32[i0];if(typeof data33 === "string"){if(func2(data33) < 1){const err98 = {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 = [err98];}else {vErrors.push(err98);}errors++;}}else {const err99 = {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 = [err99];}else {vErrors.push(err99);}errors++;}}}else {const err100 = {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 = [err100];}else {vErrors.push(err100);}errors++;}var _valid5 = _errs100 === errors;valid29 = valid29 || _valid5;}if(!valid29){const err101 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {errors = _errs97;if(vErrors !== null){if(_errs97){vErrors.length = _errs97;}else {vErrors = null;}}}}if(data29.P1_is_identified_by !== undefined){let data34 = data29.P1_is_identified_by;if((!(data34 && typeof data34 == "object" && !Array.isArray(data34))) && (data34 !== null)){const err102 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.id === undefined){const err103 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if(data34.type === undefined){const err104 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}if(data34.title === undefined){const err105 = {instancePath:instancePath+"/source/P1_is_identified_by",schemaPath:"#/properties/source/properties/P1_is_identified_by/required",keyword:"required",params:{missingProperty: "title"},message:"must have required property '"+"title"+"'"};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if(data34.id !== undefined){let data35 = data34.id;if(typeof data35 === "string"){if(!(formats0(data35))){const err106 = {instancePath:instancePath+"/source/P1_is_identified_by/id",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}}else {const err107 = {instancePath:instancePath+"/source/P1_is_identified_by/id",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err107];}else {vErrors.push(err107);}errors++;}}if(data34.type !== undefined){let data36 = data34.type;if(typeof data36 !== "string"){const err108 = {instancePath:instancePath+"/source/P1_is_identified_by/type",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err108];}else {vErrors.push(err108);}errors++;}if("crm:E33_E41_Linguistic_Appellation" !== data36){const err109 = {instancePath:instancePath+"/source/P1_is_identified_by/type",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/type/const",keyword:"const",params:{allowedValue: "crm:E33_E41_Linguistic_Appellation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}if(data34.title !== undefined){let data37 = data34.title;if(typeof data37 === "string"){if(func2(data37) < 1){const err110 = {instancePath:instancePath+"/source/P1_is_identified_by/title",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/title/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+"/source/P1_is_identified_by/title",schemaPath:"#/properties/source/properties/P1_is_identified_by/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}}}if(data29.language !== undefined){let data38 = data29.language;if(((typeof data38 !== "string") && (!(Array.isArray(data38)))) && (data38 !== null)){const err112 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/type",keyword:"type",params:{type: schema23.properties.source.properties.language.type},message:"must be string,array,null"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}const _errs116 = errors;let valid33 = false;const _errs117 = errors;if(typeof data38 === "string"){if(func2(data38) > 3){const err113 = {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 = [err113];}else {vErrors.push(err113);}errors++;}if(func2(data38) < 2){const err114 = {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 = [err114];}else {vErrors.push(err114);}errors++;}}else {const err115 = {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 = [err115];}else {vErrors.push(err115);}errors++;}var _valid6 = _errs117 === errors;valid33 = valid33 || _valid6;if(!valid33){const _errs119 = errors;if(Array.isArray(data38)){if(data38.length < 1){const err116 = {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 = [err116];}else {vErrors.push(err116);}errors++;}const len7 = data38.length;for(let i1=0; i1<len7; i1++){let data39 = data38[i1];if(typeof data39 === "string"){if(func2(data39) > 3){const err117 = {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 = [err117];}else {vErrors.push(err117);}errors++;}if(func2(data39) < 2){const err118 = {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 = [err118];}else {vErrors.push(err118);}errors++;}}else {const err119 = {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 = [err119];}else {vErrors.push(err119);}errors++;}}}else {const err120 = {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 = [err120];}else {vErrors.push(err120);}errors++;}var _valid6 = _errs119 === errors;valid33 = valid33 || _valid6;}if(!valid33){const err121 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}else {errors = _errs116;if(vErrors !== null){if(_errs116){vErrors.length = _errs116;}else {vErrors = null;}}}}}else {const err122 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}if(data.renderedVia !== undefined){let data40 = data.renderedVia;if(data40 && typeof data40 == "object" && !Array.isArray(data40)){if(data40.id === undefined){const err123 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if(data40.type === undefined){const err124 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data40.name === undefined){const err125 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data40.id !== undefined){let data41 = data40.id;if(typeof data41 === "string"){if(!(formats0(data41))){const err126 = {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 = [err126];}else {vErrors.push(err126);}errors++;}}else {const err127 = {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 = [err127];}else {vErrors.push(err127);}errors++;}}if(data40.type !== undefined){let data42 = data40.type;if(Array.isArray(data42)){if(data42.length > 2){const err128 = {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 = [err128];}else {vErrors.push(err128);}errors++;}if(data42.length < 2){const err129 = {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 = [err129];}else {vErrors.push(err129);}errors++;}const len8 = data42.length;if(len8 > 0){let data43 = data42[0];if(typeof data43 !== "string"){const err130 = {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 = [err130];}else {vErrors.push(err130);}errors++;}if("Software" !== data43){const err131 = {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 = [err131];}else {vErrors.push(err131);}errors++;}}if(len8 > 1){let data44 = data42[1];if(typeof data44 !== "string"){const err132 = {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 = [err132];}else {vErrors.push(err132);}errors++;}if("crm:E73_Information_Object" !== data44){const err133 = {instancePath:instancePath+"/renderedVia/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}}}else {const err134 = {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 = [err134];}else {vErrors.push(err134);}errors++;}}if(data40.P16_used_specific_object !== undefined){let data45 = data40.P16_used_specific_object;if((typeof data45 !== "string") && (data45 !== null)){const err135 = {instancePath:instancePath+"/renderedVia/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}if(typeof data45 === "string"){if(!(formats0(data45))){const err136 = {instancePath:instancePath+"/renderedVia/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}}}if(data40.name !== undefined){let data46 = data40.name;if(typeof data46 === "string"){if(func2(data46) < 1){const err137 = {instancePath:instancePath+"/renderedVia/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}}else {const err138 = {instancePath:instancePath+"/renderedVia/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}}if(data40.softwareVersion !== undefined){let data47 = data40.softwareVersion;if((typeof data47 !== "string") && (data47 !== null)){const err139 = {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 = [err139];}else {vErrors.push(err139);}errors++;}}}else {const err140 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}}if(data.selector !== undefined){let data48 = data.selector;const _errs143 = errors;let valid39 = false;const _errs144 = errors;const _errs146 = errors;let valid40 = false;let passing0 = null;const _errs147 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err141 = {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 = [err141];}else {vErrors.push(err141);}errors++;}if(data48.type === undefined){const err142 = {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 = [err142];}else {vErrors.push(err142);}errors++;}if(data48.exact === undefined){const err143 = {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 = [err143];}else {vErrors.push(err143);}errors++;}if(data48.prefix === undefined){const err144 = {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 = [err144];}else {vErrors.push(err144);}errors++;}if(data48.suffix === undefined){const err145 = {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 = [err145];}else {vErrors.push(err145);}errors++;}if(data48.id !== undefined){let data49 = data48.id;if(typeof data49 === "string"){if(!(formats0(data49))){const err146 = {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 = [err146];}else {vErrors.push(err146);}errors++;}}else {const err147 = {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 = [err147];}else {vErrors.push(err147);}errors++;}}if(data48.type !== undefined){let data50 = data48.type;if(Array.isArray(data50)){if(data50.length > 2){const err148 = {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 = [err148];}else {vErrors.push(err148);}errors++;}if(data50.length < 2){const err149 = {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 = [err149];}else {vErrors.push(err149);}errors++;}const len9 = data50.length;if(len9 > 0){let data51 = data50[0];if(typeof data51 !== "string"){const err150 = {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 = [err150];}else {vErrors.push(err150);}errors++;}if("TextQuoteSelector" !== data51){const err151 = {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 = [err151];}else {vErrors.push(err151);}errors++;}}if(len9 > 1){let data52 = data50[1];if(typeof data52 !== "string"){const err152 = {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 = [err152];}else {vErrors.push(err152);}errors++;}if("crm:E33_Linguistic_Object" !== data52){const err153 = {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 = [err153];}else {vErrors.push(err153);}errors++;}}}else {const err154 = {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 = [err154];}else {vErrors.push(err154);}errors++;}}if(data48.exact !== undefined){if(typeof data48.exact !== "string"){const err155 = {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 = [err155];}else {vErrors.push(err155);}errors++;}}if(data48.prefix !== undefined){if(typeof data48.prefix !== "string"){const err156 = {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 = [err156];}else {vErrors.push(err156);}errors++;}}if(data48.suffix !== undefined){if(typeof data48.suffix !== "string"){const err157 = {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 = [err157];}else {vErrors.push(err157);}errors++;}}if(data48.refinedBy !== undefined){let data56 = data48.refinedBy;const _errs165 = errors;let valid43 = false;let passing1 = null;const _errs166 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.id === undefined){const err158 = {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 = [err158];}else {vErrors.push(err158);}errors++;}if(data56.type === undefined){const err159 = {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 = [err159];}else {vErrors.push(err159);}errors++;}if(data56.start === undefined){const err160 = {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 = [err160];}else {vErrors.push(err160);}errors++;}if(data56.end === undefined){const err161 = {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 = [err161];}else {vErrors.push(err161);}errors++;}if(data56.id !== undefined){let data57 = data56.id;if(typeof data57 === "string"){if(!(formats0(data57))){const err162 = {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 = [err162];}else {vErrors.push(err162);}errors++;}}else {const err163 = {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 = [err163];}else {vErrors.push(err163);}errors++;}}if(data56.type !== undefined){let data58 = data56.type;if(Array.isArray(data58)){if(data58.length > 2){const err164 = {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 = [err164];}else {vErrors.push(err164);}errors++;}if(data58.length < 2){const err165 = {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 = [err165];}else {vErrors.push(err165);}errors++;}const len10 = data58.length;if(len10 > 0){let data59 = data58[0];if(typeof data59 !== "string"){const err166 = {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 = [err166];}else {vErrors.push(err166);}errors++;}if("TextPositionSelector" !== data59){const err167 = {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 = [err167];}else {vErrors.push(err167);}errors++;}}if(len10 > 1){let data60 = data58[1];if(typeof data60 !== "string"){const err168 = {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 = [err168];}else {vErrors.push(err168);}errors++;}if("crm:E73_Information_Object" !== data60){const err169 = {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 = [err169];}else {vErrors.push(err169);}errors++;}}}else {const err170 = {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 = [err170];}else {vErrors.push(err170);}errors++;}}if(data56.start !== undefined){let data61 = data56.start;if((typeof data61 == "number") && (isFinite(data61))){if(data61 < 0 || isNaN(data61)){const err171 = {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 = [err171];}else {vErrors.push(err171);}errors++;}}else {const err172 = {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 = [err172];}else {vErrors.push(err172);}errors++;}}if(data56.end !== undefined){let data62 = data56.end;if((typeof data62 == "number") && (isFinite(data62))){if(data62 < 0 || isNaN(data62)){const err173 = {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 = [err173];}else {vErrors.push(err173);}errors++;}}else {const err174 = {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 = [err174];}else {vErrors.push(err174);}errors++;}}}else {const err175 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}var _valid9 = _errs166 === errors;if(_valid9){valid43 = true;passing1 = 0;}const _errs181 = errors;if(data56 && typeof data56 == "object" && !Array.isArray(data56)){if(data56.id === undefined){const err176 = {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 = [err176];}else {vErrors.push(err176);}errors++;}if(data56.type === undefined){const err177 = {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 = [err177];}else {vErrors.push(err177);}errors++;}if(data56.exact === undefined){const err178 = {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 = [err178];}else {vErrors.push(err178);}errors++;}if(data56.prefix === undefined){const err179 = {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 = [err179];}else {vErrors.push(err179);}errors++;}if(data56.suffix === undefined){const err180 = {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 = [err180];}else {vErrors.push(err180);}errors++;}if(data56.id !== undefined){let data63 = data56.id;if(typeof data63 === "string"){if(!(formats0(data63))){const err181 = {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 = [err181];}else {vErrors.push(err181);}errors++;}}else {const err182 = {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 = [err182];}else {vErrors.push(err182);}errors++;}}if(data56.type !== undefined){let data64 = data56.type;if(Array.isArray(data64)){if(data64.length > 2){const err183 = {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 = [err183];}else {vErrors.push(err183);}errors++;}if(data64.length < 2){const err184 = {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 = [err184];}else {vErrors.push(err184);}errors++;}const len11 = data64.length;if(len11 > 0){let data65 = data64[0];if(typeof data65 !== "string"){const err185 = {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 = [err185];}else {vErrors.push(err185);}errors++;}if("TextQuoteSelector" !== data65){const err186 = {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 = [err186];}else {vErrors.push(err186);}errors++;}}if(len11 > 1){let data66 = data64[1];if(typeof data66 !== "string"){const err187 = {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 = [err187];}else {vErrors.push(err187);}errors++;}if("crm:E33_Linguistic_Object" !== data66){const err188 = {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 = [err188];}else {vErrors.push(err188);}errors++;}}}else {const err189 = {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 = [err189];}else {vErrors.push(err189);}errors++;}}if(data56.exact !== undefined){if(typeof data56.exact !== "string"){const err190 = {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 = [err190];}else {vErrors.push(err190);}errors++;}}if(data56.prefix !== undefined){if(typeof data56.prefix !== "string"){const err191 = {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 = [err191];}else {vErrors.push(err191);}errors++;}}if(data56.suffix !== undefined){if(typeof data56.suffix !== "string"){const err192 = {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 = [err192];}else {vErrors.push(err192);}errors++;}}}else {const err193 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var _valid9 = _errs181 === errors;if(_valid9 && valid43){valid43 = false;passing1 = [passing1, 1];}else {if(_valid9){valid43 = true;passing1 = 1;}}if(!valid43){const err194 = {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 = [err194];}else {vErrors.push(err194);}errors++;}else {errors = _errs165;if(vErrors !== null){if(_errs165){vErrors.length = _errs165;}else {vErrors = null;}}}if(!(data56 && typeof data56 == "object" && !Array.isArray(data56))){const err195 = {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 = [err195];}else {vErrors.push(err195);}errors++;}}}else {const err196 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}var _valid8 = _errs147 === errors;if(_valid8){valid40 = true;passing0 = 0;}const _errs198 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err197 = {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 = [err197];}else {vErrors.push(err197);}errors++;}if(data48.type === undefined){const err198 = {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 = [err198];}else {vErrors.push(err198);}errors++;}if(data48.start === undefined){const err199 = {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 = [err199];}else {vErrors.push(err199);}errors++;}if(data48.end === undefined){const err200 = {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 = [err200];}else {vErrors.push(err200);}errors++;}if(data48.id !== undefined){let data70 = data48.id;if(typeof data70 === "string"){if(!(formats0(data70))){const err201 = {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 = [err201];}else {vErrors.push(err201);}errors++;}}else {const err202 = {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 = [err202];}else {vErrors.push(err202);}errors++;}}if(data48.type !== undefined){let data71 = data48.type;if(Array.isArray(data71)){if(data71.length > 2){const err203 = {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 = [err203];}else {vErrors.push(err203);}errors++;}if(data71.length < 2){const err204 = {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 = [err204];}else {vErrors.push(err204);}errors++;}const len12 = data71.length;if(len12 > 0){let data72 = data71[0];if(typeof data72 !== "string"){const err205 = {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 = [err205];}else {vErrors.push(err205);}errors++;}if("TextPositionSelector" !== data72){const err206 = {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 = [err206];}else {vErrors.push(err206);}errors++;}}if(len12 > 1){let data73 = data71[1];if(typeof data73 !== "string"){const err207 = {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 = [err207];}else {vErrors.push(err207);}errors++;}if("crm:E73_Information_Object" !== data73){const err208 = {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 = [err208];}else {vErrors.push(err208);}errors++;}}}else {const err209 = {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 = [err209];}else {vErrors.push(err209);}errors++;}}if(data48.start !== undefined){let data74 = data48.start;if((typeof data74 == "number") && (isFinite(data74))){if(data74 < 0 || isNaN(data74)){const err210 = {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 = [err210];}else {vErrors.push(err210);}errors++;}}else {const err211 = {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 = [err211];}else {vErrors.push(err211);}errors++;}}if(data48.end !== undefined){let data75 = data48.end;if((typeof data75 == "number") && (isFinite(data75))){if(data75 < 0 || isNaN(data75)){const err212 = {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 = [err212];}else {vErrors.push(err212);}errors++;}}else {const err213 = {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 = [err213];}else {vErrors.push(err213);}errors++;}}if(data48.refinedBy !== undefined){let data76 = data48.refinedBy;const _errs214 = errors;let valid52 = false;let passing2 = null;const _errs215 = errors;if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.id === undefined){const err214 = {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 = [err214];}else {vErrors.push(err214);}errors++;}if(data76.type === undefined){const err215 = {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 = [err215];}else {vErrors.push(err215);}errors++;}if(data76.start === undefined){const err216 = {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 = [err216];}else {vErrors.push(err216);}errors++;}if(data76.end === undefined){const err217 = {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 = [err217];}else {vErrors.push(err217);}errors++;}if(data76.id !== undefined){let data77 = data76.id;if(typeof data77 === "string"){if(!(formats0(data77))){const err218 = {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 = [err218];}else {vErrors.push(err218);}errors++;}}else {const err219 = {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 = [err219];}else {vErrors.push(err219);}errors++;}}if(data76.type !== undefined){let data78 = data76.type;if(Array.isArray(data78)){if(data78.length > 2){const err220 = {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 = [err220];}else {vErrors.push(err220);}errors++;}if(data78.length < 2){const err221 = {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 = [err221];}else {vErrors.push(err221);}errors++;}const len13 = data78.length;if(len13 > 0){let data79 = data78[0];if(typeof data79 !== "string"){const err222 = {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 = [err222];}else {vErrors.push(err222);}errors++;}if("TextPositionSelector" !== data79){const err223 = {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 = [err223];}else {vErrors.push(err223);}errors++;}}if(len13 > 1){let data80 = data78[1];if(typeof data80 !== "string"){const err224 = {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 = [err224];}else {vErrors.push(err224);}errors++;}if("crm:E73_Information_Object" !== data80){const err225 = {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 = [err225];}else {vErrors.push(err225);}errors++;}}}else {const err226 = {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 = [err226];}else {vErrors.push(err226);}errors++;}}if(data76.start !== undefined){let data81 = data76.start;if((typeof data81 == "number") && (isFinite(data81))){if(data81 < 0 || isNaN(data81)){const err227 = {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 = [err227];}else {vErrors.push(err227);}errors++;}}else {const err228 = {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 = [err228];}else {vErrors.push(err228);}errors++;}}if(data76.end !== undefined){let data82 = data76.end;if((typeof data82 == "number") && (isFinite(data82))){if(data82 < 0 || isNaN(data82)){const err229 = {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 = [err229];}else {vErrors.push(err229);}errors++;}}else {const err230 = {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 = [err230];}else {vErrors.push(err230);}errors++;}}}else {const err231 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var _valid10 = _errs215 === errors;if(_valid10){valid52 = true;passing2 = 0;}const _errs230 = errors;if(data76 && typeof data76 == "object" && !Array.isArray(data76)){if(data76.id === undefined){const err232 = {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 = [err232];}else {vErrors.push(err232);}errors++;}if(data76.type === undefined){const err233 = {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 = [err233];}else {vErrors.push(err233);}errors++;}if(data76.exact === undefined){const err234 = {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 = [err234];}else {vErrors.push(err234);}errors++;}if(data76.prefix === undefined){const err235 = {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 = [err235];}else {vErrors.push(err235);}errors++;}if(data76.suffix === undefined){const err236 = {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 = [err236];}else {vErrors.push(err236);}errors++;}if(data76.id !== undefined){let data83 = data76.id;if(typeof data83 === "string"){if(!(formats0(data83))){const err237 = {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 = [err237];}else {vErrors.push(err237);}errors++;}}else {const err238 = {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 = [err238];}else {vErrors.push(err238);}errors++;}}if(data76.type !== undefined){let data84 = data76.type;if(Array.isArray(data84)){if(data84.length > 2){const err239 = {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 = [err239];}else {vErrors.push(err239);}errors++;}if(data84.length < 2){const err240 = {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 = [err240];}else {vErrors.push(err240);}errors++;}const len14 = data84.length;if(len14 > 0){let data85 = data84[0];if(typeof data85 !== "string"){const err241 = {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 = [err241];}else {vErrors.push(err241);}errors++;}if("TextQuoteSelector" !== data85){const err242 = {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 = [err242];}else {vErrors.push(err242);}errors++;}}if(len14 > 1){let data86 = data84[1];if(typeof data86 !== "string"){const err243 = {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 = [err243];}else {vErrors.push(err243);}errors++;}if("crm:E33_Linguistic_Object" !== data86){const err244 = {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 = [err244];}else {vErrors.push(err244);}errors++;}}}else {const err245 = {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 = [err245];}else {vErrors.push(err245);}errors++;}}if(data76.exact !== undefined){if(typeof data76.exact !== "string"){const err246 = {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 = [err246];}else {vErrors.push(err246);}errors++;}}if(data76.prefix !== undefined){if(typeof data76.prefix !== "string"){const err247 = {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 = [err247];}else {vErrors.push(err247);}errors++;}}if(data76.suffix !== undefined){if(typeof data76.suffix !== "string"){const err248 = {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 = [err248];}else {vErrors.push(err248);}errors++;}}}else {const err249 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}var _valid10 = _errs230 === errors;if(_valid10 && valid52){valid52 = false;passing2 = [passing2, 1];}else {if(_valid10){valid52 = true;passing2 = 1;}}if(!valid52){const err250 = {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 = [err250];}else {vErrors.push(err250);}errors++;}else {errors = _errs214;if(vErrors !== null){if(_errs214){vErrors.length = _errs214;}else {vErrors = null;}}}if(!(data76 && typeof data76 == "object" && !Array.isArray(data76))){const err251 = {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 = [err251];}else {vErrors.push(err251);}errors++;}}}else {const err252 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}var _valid8 = _errs198 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 1];}else {if(_valid8){valid40 = true;passing0 = 1;}const _errs247 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err253 = {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 = [err253];}else {vErrors.push(err253);}errors++;}if(data48.type === undefined){const err254 = {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 = [err254];}else {vErrors.push(err254);}errors++;}if(data48.value === undefined){const err255 = {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 = [err255];}else {vErrors.push(err255);}errors++;}if(data48.id !== undefined){let data90 = data48.id;if(typeof data90 === "string"){if(!(formats0(data90))){const err256 = {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 = [err256];}else {vErrors.push(err256);}errors++;}}else {const err257 = {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 = [err257];}else {vErrors.push(err257);}errors++;}}if(data48.type !== undefined){let data91 = data48.type;if(Array.isArray(data91)){if(data91.length > 2){const err258 = {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 = [err258];}else {vErrors.push(err258);}errors++;}if(data91.length < 2){const err259 = {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 = [err259];}else {vErrors.push(err259);}errors++;}const len15 = data91.length;if(len15 > 0){let data92 = data91[0];if(typeof data92 !== "string"){const err260 = {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 = [err260];}else {vErrors.push(err260);}errors++;}if("XPathSelector" !== data92){const err261 = {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 = [err261];}else {vErrors.push(err261);}errors++;}}if(len15 > 1){let data93 = data91[1];if(typeof data93 !== "string"){const err262 = {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 = [err262];}else {vErrors.push(err262);}errors++;}if("crm:E73_Information_Object" !== data93){const err263 = {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 = [err263];}else {vErrors.push(err263);}errors++;}}}else {const err264 = {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 = [err264];}else {vErrors.push(err264);}errors++;}}if(data48.value !== undefined){if(typeof data48.value !== "string"){const err265 = {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 = [err265];}else {vErrors.push(err265);}errors++;}}if(data48.refinedBy !== undefined){let data95 = data48.refinedBy;const _errs261 = errors;let valid61 = false;const _errs262 = errors;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.id === undefined){const err266 = {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 = [err266];}else {vErrors.push(err266);}errors++;}if(data95.type === undefined){const err267 = {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 = [err267];}else {vErrors.push(err267);}errors++;}if(data95.start === undefined){const err268 = {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 = [err268];}else {vErrors.push(err268);}errors++;}if(data95.end === undefined){const err269 = {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 = [err269];}else {vErrors.push(err269);}errors++;}if(data95.id !== undefined){let data96 = data95.id;if(typeof data96 === "string"){if(!(formats0(data96))){const err270 = {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 = [err270];}else {vErrors.push(err270);}errors++;}}else {const err271 = {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 = [err271];}else {vErrors.push(err271);}errors++;}}if(data95.type !== undefined){let data97 = data95.type;if(Array.isArray(data97)){if(data97.length > 2){const err272 = {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 = [err272];}else {vErrors.push(err272);}errors++;}if(data97.length < 2){const err273 = {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 = [err273];}else {vErrors.push(err273);}errors++;}const len16 = data97.length;if(len16 > 0){let data98 = data97[0];if(typeof data98 !== "string"){const err274 = {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 = [err274];}else {vErrors.push(err274);}errors++;}if("TextPositionSelector" !== data98){const err275 = {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 = [err275];}else {vErrors.push(err275);}errors++;}}if(len16 > 1){let data99 = data97[1];if(typeof data99 !== "string"){const err276 = {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 = [err276];}else {vErrors.push(err276);}errors++;}if("crm:E73_Information_Object" !== data99){const err277 = {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 = [err277];}else {vErrors.push(err277);}errors++;}}}else {const err278 = {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 = [err278];}else {vErrors.push(err278);}errors++;}}if(data95.start !== undefined){let data100 = data95.start;if((typeof data100 == "number") && (isFinite(data100))){if(data100 < 0 || isNaN(data100)){const err279 = {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 = [err279];}else {vErrors.push(err279);}errors++;}}else {const err280 = {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 = [err280];}else {vErrors.push(err280);}errors++;}}if(data95.end !== undefined){let data101 = data95.end;if((typeof data101 == "number") && (isFinite(data101))){if(data101 < 0 || isNaN(data101)){const err281 = {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 = [err281];}else {vErrors.push(err281);}errors++;}}else {const err282 = {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 = [err282];}else {vErrors.push(err282);}errors++;}}}else {const err283 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var _valid11 = _errs262 === errors;valid61 = valid61 || _valid11;if(!valid61){const _errs277 = errors;if(data95 && typeof data95 == "object" && !Array.isArray(data95)){if(data95.id === undefined){const err284 = {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 = [err284];}else {vErrors.push(err284);}errors++;}if(data95.type === undefined){const err285 = {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 = [err285];}else {vErrors.push(err285);}errors++;}if(data95.exact === undefined){const err286 = {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 = [err286];}else {vErrors.push(err286);}errors++;}if(data95.prefix === undefined){const err287 = {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 = [err287];}else {vErrors.push(err287);}errors++;}if(data95.suffix === undefined){const err288 = {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 = [err288];}else {vErrors.push(err288);}errors++;}if(data95.id !== undefined){let data102 = data95.id;if(typeof data102 === "string"){if(!(formats0(data102))){const err289 = {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 = [err289];}else {vErrors.push(err289);}errors++;}}else {const err290 = {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 = [err290];}else {vErrors.push(err290);}errors++;}}if(data95.type !== undefined){let data103 = data95.type;if(Array.isArray(data103)){if(data103.length > 2){const err291 = {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 = [err291];}else {vErrors.push(err291);}errors++;}if(data103.length < 2){const err292 = {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 = [err292];}else {vErrors.push(err292);}errors++;}const len17 = data103.length;if(len17 > 0){let data104 = data103[0];if(typeof data104 !== "string"){const err293 = {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 = [err293];}else {vErrors.push(err293);}errors++;}if("TextQuoteSelector" !== data104){const err294 = {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 = [err294];}else {vErrors.push(err294);}errors++;}}if(len17 > 1){let data105 = data103[1];if(typeof data105 !== "string"){const err295 = {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 = [err295];}else {vErrors.push(err295);}errors++;}if("crm:E33_Linguistic_Object" !== data105){const err296 = {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 = [err296];}else {vErrors.push(err296);}errors++;}}}else {const err297 = {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 = [err297];}else {vErrors.push(err297);}errors++;}}if(data95.exact !== undefined){if(typeof data95.exact !== "string"){const err298 = {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 = [err298];}else {vErrors.push(err298);}errors++;}}if(data95.prefix !== undefined){if(typeof data95.prefix !== "string"){const err299 = {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 = [err299];}else {vErrors.push(err299);}errors++;}}if(data95.suffix !== undefined){if(typeof data95.suffix !== "string"){const err300 = {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 = [err300];}else {vErrors.push(err300);}errors++;}}}else {const err301 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}var _valid11 = _errs277 === errors;valid61 = valid61 || _valid11;}if(!valid61){const err302 = {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 = [err302];}else {vErrors.push(err302);}errors++;}else {errors = _errs261;if(vErrors !== null){if(_errs261){vErrors.length = _errs261;}else {vErrors = null;}}}if(!(data95 && typeof data95 == "object" && !Array.isArray(data95))){const err303 = {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 = [err303];}else {vErrors.push(err303);}errors++;}}}else {const err304 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}var _valid8 = _errs247 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 2];}else {if(_valid8){valid40 = true;passing0 = 2;}const _errs294 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err305 = {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 = [err305];}else {vErrors.push(err305);}errors++;}if(data48.type === undefined){const err306 = {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 = [err306];}else {vErrors.push(err306);}errors++;}if(data48.value === undefined){const err307 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}if(data48.id !== undefined){let data109 = data48.id;if(typeof data109 === "string"){if(!(formats0(data109))){const err308 = {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 = [err308];}else {vErrors.push(err308);}errors++;}}else {const err309 = {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 = [err309];}else {vErrors.push(err309);}errors++;}}if(data48.type !== undefined){let data110 = data48.type;if(Array.isArray(data110)){if(data110.length > 2){const err310 = {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 = [err310];}else {vErrors.push(err310);}errors++;}if(data110.length < 2){const err311 = {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 = [err311];}else {vErrors.push(err311);}errors++;}const len18 = data110.length;if(len18 > 0){let data111 = data110[0];if(typeof data111 !== "string"){const err312 = {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 = [err312];}else {vErrors.push(err312);}errors++;}if("CssSelector" !== data111){const err313 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "CssSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}}if(len18 > 1){let data112 = data110[1];if(typeof data112 !== "string"){const err314 = {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 = [err314];}else {vErrors.push(err314);}errors++;}if("crm:E73_Information_Object" !== data112){const err315 = {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 = [err315];}else {vErrors.push(err315);}errors++;}}}else {const err316 = {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 = [err316];}else {vErrors.push(err316);}errors++;}}if(data48.value !== undefined){if(typeof data48.value !== "string"){const err317 = {instancePath:instancePath+"/selector/value",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}}if(data48.refinedBy !== undefined){let data114 = data48.refinedBy;const _errs308 = errors;let valid70 = false;const _errs309 = errors;if(data114 && typeof data114 == "object" && !Array.isArray(data114)){if(data114.id === undefined){const err318 = {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 = [err318];}else {vErrors.push(err318);}errors++;}if(data114.type === undefined){const err319 = {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 = [err319];}else {vErrors.push(err319);}errors++;}if(data114.start === undefined){const err320 = {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 = [err320];}else {vErrors.push(err320);}errors++;}if(data114.end === undefined){const err321 = {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 = [err321];}else {vErrors.push(err321);}errors++;}if(data114.id !== undefined){let data115 = data114.id;if(typeof data115 === "string"){if(!(formats0(data115))){const err322 = {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 = [err322];}else {vErrors.push(err322);}errors++;}}else {const err323 = {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 = [err323];}else {vErrors.push(err323);}errors++;}}if(data114.type !== undefined){let data116 = data114.type;if(Array.isArray(data116)){if(data116.length > 2){const err324 = {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 = [err324];}else {vErrors.push(err324);}errors++;}if(data116.length < 2){const err325 = {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 = [err325];}else {vErrors.push(err325);}errors++;}const len19 = data116.length;if(len19 > 0){let data117 = data116[0];if(typeof data117 !== "string"){const err326 = {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 = [err326];}else {vErrors.push(err326);}errors++;}if("TextPositionSelector" !== data117){const err327 = {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 = [err327];}else {vErrors.push(err327);}errors++;}}if(len19 > 1){let data118 = data116[1];if(typeof data118 !== "string"){const err328 = {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 = [err328];}else {vErrors.push(err328);}errors++;}if("crm:E73_Information_Object" !== data118){const err329 = {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 = [err329];}else {vErrors.push(err329);}errors++;}}}else {const err330 = {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 = [err330];}else {vErrors.push(err330);}errors++;}}if(data114.start !== undefined){let data119 = data114.start;if((typeof data119 == "number") && (isFinite(data119))){if(data119 < 0 || isNaN(data119)){const err331 = {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 = [err331];}else {vErrors.push(err331);}errors++;}}else {const err332 = {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 = [err332];}else {vErrors.push(err332);}errors++;}}if(data114.end !== undefined){let data120 = data114.end;if((typeof data120 == "number") && (isFinite(data120))){if(data120 < 0 || isNaN(data120)){const err333 = {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 = [err333];}else {vErrors.push(err333);}errors++;}}else {const err334 = {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 = [err334];}else {vErrors.push(err334);}errors++;}}}else {const err335 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}var _valid12 = _errs309 === errors;valid70 = valid70 || _valid12;if(!valid70){const _errs324 = errors;if(data114 && typeof data114 == "object" && !Array.isArray(data114)){if(data114.id === undefined){const err336 = {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 = [err336];}else {vErrors.push(err336);}errors++;}if(data114.type === undefined){const err337 = {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 = [err337];}else {vErrors.push(err337);}errors++;}if(data114.exact === undefined){const err338 = {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 = [err338];}else {vErrors.push(err338);}errors++;}if(data114.prefix === undefined){const err339 = {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 = [err339];}else {vErrors.push(err339);}errors++;}if(data114.suffix === undefined){const err340 = {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 = [err340];}else {vErrors.push(err340);}errors++;}if(data114.id !== undefined){let data121 = data114.id;if(typeof data121 === "string"){if(!(formats0(data121))){const err341 = {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 = [err341];}else {vErrors.push(err341);}errors++;}}else {const err342 = {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 = [err342];}else {vErrors.push(err342);}errors++;}}if(data114.type !== undefined){let data122 = data114.type;if(Array.isArray(data122)){if(data122.length > 2){const err343 = {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 = [err343];}else {vErrors.push(err343);}errors++;}if(data122.length < 2){const err344 = {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 = [err344];}else {vErrors.push(err344);}errors++;}const len20 = data122.length;if(len20 > 0){let data123 = data122[0];if(typeof data123 !== "string"){const err345 = {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 = [err345];}else {vErrors.push(err345);}errors++;}if("TextQuoteSelector" !== data123){const err346 = {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 = [err346];}else {vErrors.push(err346);}errors++;}}if(len20 > 1){let data124 = data122[1];if(typeof data124 !== "string"){const err347 = {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 = [err347];}else {vErrors.push(err347);}errors++;}if("crm:E33_Linguistic_Object" !== data124){const err348 = {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 = [err348];}else {vErrors.push(err348);}errors++;}}}else {const err349 = {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 = [err349];}else {vErrors.push(err349);}errors++;}}if(data114.exact !== undefined){if(typeof data114.exact !== "string"){const err350 = {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 = [err350];}else {vErrors.push(err350);}errors++;}}if(data114.prefix !== undefined){if(typeof data114.prefix !== "string"){const err351 = {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 = [err351];}else {vErrors.push(err351);}errors++;}}if(data114.suffix !== undefined){if(typeof data114.suffix !== "string"){const err352 = {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 = [err352];}else {vErrors.push(err352);}errors++;}}}else {const err353 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}var _valid12 = _errs324 === errors;valid70 = valid70 || _valid12;}if(!valid70){const err354 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}else {errors = _errs308;if(vErrors !== null){if(_errs308){vErrors.length = _errs308;}else {vErrors = null;}}}if(!(data114 && typeof data114 == "object" && !Array.isArray(data114))){const err355 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}}}else {const err356 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}var _valid8 = _errs294 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 3];}else {if(_valid8){valid40 = true;passing0 = 3;}const _errs341 = errors;if(data48 && typeof data48 == "object" && !Array.isArray(data48)){if(data48.id === undefined){const err357 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}if(data48.type === undefined){const err358 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}if(data48.startSelector === undefined){const err359 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}if(data48.endSelector === undefined){const err360 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}if(data48.id !== undefined){let data128 = data48.id;if(typeof data128 === "string"){if(!(formats0(data128))){const err361 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}else {const err362 = {instancePath:instancePath+"/selector/id",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}}if(data48.type !== undefined){let data129 = data48.type;if(Array.isArray(data129)){if(data129.length > 2){const err363 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}if(data129.length < 2){const err364 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}const len21 = data129.length;if(len21 > 0){let data130 = data129[0];if(typeof data130 !== "string"){const err365 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}if("RangeSelector" !== data130){const err366 = {instancePath:instancePath+"/selector/type/0",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}}if(len21 > 1){let data131 = data129[1];if(typeof data131 !== "string"){const err367 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}if("crm:E73_Information_Object" !== data131){const err368 = {instancePath:instancePath+"/selector/type/1",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}}}else {const err369 = {instancePath:instancePath+"/selector/type",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}}if(data48.startSelector !== undefined){let data132 = data48.startSelector;if(data132 && typeof data132 == "object" && !Array.isArray(data132)){if(data132.id === undefined){const err370 = {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 = [err370];}else {vErrors.push(err370);}errors++;}if(data132.type === undefined){const err371 = {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 = [err371];}else {vErrors.push(err371);}errors++;}if(data132.value === undefined){const err372 = {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 = [err372];}else {vErrors.push(err372);}errors++;}if(data132.id !== undefined){let data133 = data132.id;if(typeof data133 === "string"){if(!(formats0(data133))){const err373 = {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 = [err373];}else {vErrors.push(err373);}errors++;}}else {const err374 = {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 = [err374];}else {vErrors.push(err374);}errors++;}}if(data132.type !== undefined){let data134 = data132.type;if(Array.isArray(data134)){if(data134.length > 2){const err375 = {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 = [err375];}else {vErrors.push(err375);}errors++;}if(data134.length < 2){const err376 = {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 = [err376];}else {vErrors.push(err376);}errors++;}const len22 = data134.length;if(len22 > 0){let data135 = data134[0];if(typeof data135 !== "string"){const err377 = {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 = [err377];}else {vErrors.push(err377);}errors++;}if("XPathSelector" !== data135){const err378 = {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 = [err378];}else {vErrors.push(err378);}errors++;}}if(len22 > 1){let data136 = data134[1];if(typeof data136 !== "string"){const err379 = {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 = [err379];}else {vErrors.push(err379);}errors++;}if("crm:E73_Information_Object" !== data136){const err380 = {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 = [err380];}else {vErrors.push(err380);}errors++;}}}else {const err381 = {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 = [err381];}else {vErrors.push(err381);}errors++;}}if(data132.value !== undefined){if(typeof data132.value !== "string"){const err382 = {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 = [err382];}else {vErrors.push(err382);}errors++;}}}else {const err383 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err383];}else {vErrors.push(err383);}errors++;}}if(data48.endSelector !== undefined){let data138 = data48.endSelector;if(data138 && typeof data138 == "object" && !Array.isArray(data138)){if(data138.id === undefined){const err384 = {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 = [err384];}else {vErrors.push(err384);}errors++;}if(data138.type === undefined){const err385 = {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 = [err385];}else {vErrors.push(err385);}errors++;}if(data138.value === undefined){const err386 = {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 = [err386];}else {vErrors.push(err386);}errors++;}if(data138.id !== undefined){let data139 = data138.id;if(typeof data139 === "string"){if(!(formats0(data139))){const err387 = {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 = [err387];}else {vErrors.push(err387);}errors++;}}else {const err388 = {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 = [err388];}else {vErrors.push(err388);}errors++;}}if(data138.type !== undefined){let data140 = data138.type;if(Array.isArray(data140)){if(data140.length > 2){const err389 = {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 = [err389];}else {vErrors.push(err389);}errors++;}if(data140.length < 2){const err390 = {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 = [err390];}else {vErrors.push(err390);}errors++;}const len23 = data140.length;if(len23 > 0){let data141 = data140[0];if(typeof data141 !== "string"){const err391 = {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 = [err391];}else {vErrors.push(err391);}errors++;}if("XPathSelector" !== data141){const err392 = {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 = [err392];}else {vErrors.push(err392);}errors++;}}if(len23 > 1){let data142 = data140[1];if(typeof data142 !== "string"){const err393 = {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 = [err393];}else {vErrors.push(err393);}errors++;}if("crm:E73_Information_Object" !== data142){const err394 = {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 = [err394];}else {vErrors.push(err394);}errors++;}}}else {const err395 = {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 = [err395];}else {vErrors.push(err395);}errors++;}}if(data138.value !== undefined){if(typeof data138.value !== "string"){const err396 = {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 = [err396];}else {vErrors.push(err396);}errors++;}}}else {const err397 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}}}else {const err398 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}var _valid8 = _errs341 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 4];}else {if(_valid8){valid40 = true;passing0 = 4;}}}}}if(!valid40){const err399 = {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 = [err399];}else {vErrors.push(err399);}errors++;}else {errors = _errs146;if(vErrors !== null){if(_errs146){vErrors.length = _errs146;}else {vErrors = null;}}}if(!(data48 && typeof data48 == "object" && !Array.isArray(data48))){const err400 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}var _valid7 = _errs144 === errors;valid39 = valid39 || _valid7;if(!valid39){const _errs377 = errors;if(Array.isArray(data48)){if(data48.length < 1){const err401 = {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 = [err401];}else {vErrors.push(err401);}errors++;}const len24 = data48.length;for(let i2=0; i2<len24; i2++){let data144 = data48[i2];const _errs381 = errors;let valid87 = false;let passing3 = null;const _errs382 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err402 = {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 = [err402];}else {vErrors.push(err402);}errors++;}if(data144.type === undefined){const err403 = {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 = [err403];}else {vErrors.push(err403);}errors++;}if(data144.exact === undefined){const err404 = {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 = [err404];}else {vErrors.push(err404);}errors++;}if(data144.prefix === undefined){const err405 = {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 = [err405];}else {vErrors.push(err405);}errors++;}if(data144.suffix === undefined){const err406 = {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 = [err406];}else {vErrors.push(err406);}errors++;}if(data144.id !== undefined){let data145 = data144.id;if(typeof data145 === "string"){if(!(formats0(data145))){const err407 = {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 = [err407];}else {vErrors.push(err407);}errors++;}}else {const err408 = {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 = [err408];}else {vErrors.push(err408);}errors++;}}if(data144.type !== undefined){let data146 = data144.type;if(Array.isArray(data146)){if(data146.length > 2){const err409 = {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 = [err409];}else {vErrors.push(err409);}errors++;}if(data146.length < 2){const err410 = {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 = [err410];}else {vErrors.push(err410);}errors++;}const len25 = data146.length;if(len25 > 0){let data147 = data146[0];if(typeof data147 !== "string"){const err411 = {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 = [err411];}else {vErrors.push(err411);}errors++;}if("TextQuoteSelector" !== data147){const err412 = {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 = [err412];}else {vErrors.push(err412);}errors++;}}if(len25 > 1){let data148 = data146[1];if(typeof data148 !== "string"){const err413 = {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 = [err413];}else {vErrors.push(err413);}errors++;}if("crm:E33_Linguistic_Object" !== data148){const err414 = {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 = [err414];}else {vErrors.push(err414);}errors++;}}}else {const err415 = {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 = [err415];}else {vErrors.push(err415);}errors++;}}if(data144.exact !== undefined){if(typeof data144.exact !== "string"){const err416 = {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 = [err416];}else {vErrors.push(err416);}errors++;}}if(data144.prefix !== undefined){if(typeof data144.prefix !== "string"){const err417 = {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 = [err417];}else {vErrors.push(err417);}errors++;}}if(data144.suffix !== undefined){if(typeof data144.suffix !== "string"){const err418 = {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 = [err418];}else {vErrors.push(err418);}errors++;}}if(data144.refinedBy !== undefined){let data152 = data144.refinedBy;const _errs400 = errors;let valid90 = false;let passing4 = null;const _errs401 = errors;if(data152 && typeof data152 == "object" && !Array.isArray(data152)){if(data152.id === undefined){const err419 = {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 = [err419];}else {vErrors.push(err419);}errors++;}if(data152.type === undefined){const err420 = {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 = [err420];}else {vErrors.push(err420);}errors++;}if(data152.start === undefined){const err421 = {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 = [err421];}else {vErrors.push(err421);}errors++;}if(data152.end === undefined){const err422 = {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 = [err422];}else {vErrors.push(err422);}errors++;}if(data152.id !== undefined){let data153 = data152.id;if(typeof data153 === "string"){if(!(formats0(data153))){const err423 = {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 = [err423];}else {vErrors.push(err423);}errors++;}}else {const err424 = {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 = [err424];}else {vErrors.push(err424);}errors++;}}if(data152.type !== undefined){let data154 = data152.type;if(Array.isArray(data154)){if(data154.length > 2){const err425 = {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 = [err425];}else {vErrors.push(err425);}errors++;}if(data154.length < 2){const err426 = {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 = [err426];}else {vErrors.push(err426);}errors++;}const len26 = data154.length;if(len26 > 0){let data155 = data154[0];if(typeof data155 !== "string"){const err427 = {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 = [err427];}else {vErrors.push(err427);}errors++;}if("TextPositionSelector" !== data155){const err428 = {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 = [err428];}else {vErrors.push(err428);}errors++;}}if(len26 > 1){let data156 = data154[1];if(typeof data156 !== "string"){const err429 = {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 = [err429];}else {vErrors.push(err429);}errors++;}if("crm:E73_Information_Object" !== data156){const err430 = {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 = [err430];}else {vErrors.push(err430);}errors++;}}}else {const err431 = {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 = [err431];}else {vErrors.push(err431);}errors++;}}if(data152.start !== undefined){let data157 = data152.start;if((typeof data157 == "number") && (isFinite(data157))){if(data157 < 0 || isNaN(data157)){const err432 = {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 = [err432];}else {vErrors.push(err432);}errors++;}}else {const err433 = {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 = [err433];}else {vErrors.push(err433);}errors++;}}if(data152.end !== undefined){let data158 = data152.end;if((typeof data158 == "number") && (isFinite(data158))){if(data158 < 0 || isNaN(data158)){const err434 = {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 = [err434];}else {vErrors.push(err434);}errors++;}}else {const err435 = {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 = [err435];}else {vErrors.push(err435);}errors++;}}}else {const err436 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}var _valid14 = _errs401 === errors;if(_valid14){valid90 = true;passing4 = 0;}const _errs416 = errors;if(data152 && typeof data152 == "object" && !Array.isArray(data152)){if(data152.id === undefined){const err437 = {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 = [err437];}else {vErrors.push(err437);}errors++;}if(data152.type === undefined){const err438 = {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 = [err438];}else {vErrors.push(err438);}errors++;}if(data152.exact === undefined){const err439 = {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 = [err439];}else {vErrors.push(err439);}errors++;}if(data152.prefix === undefined){const err440 = {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 = [err440];}else {vErrors.push(err440);}errors++;}if(data152.suffix === undefined){const err441 = {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 = [err441];}else {vErrors.push(err441);}errors++;}if(data152.id !== undefined){let data159 = data152.id;if(typeof data159 === "string"){if(!(formats0(data159))){const err442 = {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 = [err442];}else {vErrors.push(err442);}errors++;}}else {const err443 = {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 = [err443];}else {vErrors.push(err443);}errors++;}}if(data152.type !== undefined){let data160 = data152.type;if(Array.isArray(data160)){if(data160.length > 2){const err444 = {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 = [err444];}else {vErrors.push(err444);}errors++;}if(data160.length < 2){const err445 = {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 = [err445];}else {vErrors.push(err445);}errors++;}const len27 = data160.length;if(len27 > 0){let data161 = data160[0];if(typeof data161 !== "string"){const err446 = {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 = [err446];}else {vErrors.push(err446);}errors++;}if("TextQuoteSelector" !== data161){const err447 = {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 = [err447];}else {vErrors.push(err447);}errors++;}}if(len27 > 1){let data162 = data160[1];if(typeof data162 !== "string"){const err448 = {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 = [err448];}else {vErrors.push(err448);}errors++;}if("crm:E33_Linguistic_Object" !== data162){const err449 = {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 = [err449];}else {vErrors.push(err449);}errors++;}}}else {const err450 = {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 = [err450];}else {vErrors.push(err450);}errors++;}}if(data152.exact !== undefined){if(typeof data152.exact !== "string"){const err451 = {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 = [err451];}else {vErrors.push(err451);}errors++;}}if(data152.prefix !== undefined){if(typeof data152.prefix !== "string"){const err452 = {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 = [err452];}else {vErrors.push(err452);}errors++;}}if(data152.suffix !== undefined){if(typeof data152.suffix !== "string"){const err453 = {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 = [err453];}else {vErrors.push(err453);}errors++;}}}else {const err454 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err454];}else {vErrors.push(err454);}errors++;}var _valid14 = _errs416 === errors;if(_valid14 && valid90){valid90 = false;passing4 = [passing4, 1];}else {if(_valid14){valid90 = true;passing4 = 1;}}if(!valid90){const err455 = {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 = [err455];}else {vErrors.push(err455);}errors++;}else {errors = _errs400;if(vErrors !== null){if(_errs400){vErrors.length = _errs400;}else {vErrors = null;}}}if(!(data152 && typeof data152 == "object" && !Array.isArray(data152))){const err456 = {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 = [err456];}else {vErrors.push(err456);}errors++;}}}else {const err457 = {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 = [err457];}else {vErrors.push(err457);}errors++;}var _valid13 = _errs382 === errors;if(_valid13){valid87 = true;passing3 = 0;}const _errs433 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err458 = {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 = [err458];}else {vErrors.push(err458);}errors++;}if(data144.type === undefined){const err459 = {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 = [err459];}else {vErrors.push(err459);}errors++;}if(data144.start === undefined){const err460 = {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 = [err460];}else {vErrors.push(err460);}errors++;}if(data144.end === undefined){const err461 = {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 = [err461];}else {vErrors.push(err461);}errors++;}if(data144.id !== undefined){let data166 = data144.id;if(typeof data166 === "string"){if(!(formats0(data166))){const err462 = {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 = [err462];}else {vErrors.push(err462);}errors++;}}else {const err463 = {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 = [err463];}else {vErrors.push(err463);}errors++;}}if(data144.type !== undefined){let data167 = data144.type;if(Array.isArray(data167)){if(data167.length > 2){const err464 = {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 = [err464];}else {vErrors.push(err464);}errors++;}if(data167.length < 2){const err465 = {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 = [err465];}else {vErrors.push(err465);}errors++;}const len28 = data167.length;if(len28 > 0){let data168 = data167[0];if(typeof data168 !== "string"){const err466 = {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 = [err466];}else {vErrors.push(err466);}errors++;}if("TextPositionSelector" !== data168){const err467 = {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 = [err467];}else {vErrors.push(err467);}errors++;}}if(len28 > 1){let data169 = data167[1];if(typeof data169 !== "string"){const err468 = {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 = [err468];}else {vErrors.push(err468);}errors++;}if("crm:E73_Information_Object" !== data169){const err469 = {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 = [err469];}else {vErrors.push(err469);}errors++;}}}else {const err470 = {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 = [err470];}else {vErrors.push(err470);}errors++;}}if(data144.start !== undefined){let data170 = data144.start;if((typeof data170 == "number") && (isFinite(data170))){if(data170 < 0 || isNaN(data170)){const err471 = {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 = [err471];}else {vErrors.push(err471);}errors++;}}else {const err472 = {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 = [err472];}else {vErrors.push(err472);}errors++;}}if(data144.end !== undefined){let data171 = data144.end;if((typeof data171 == "number") && (isFinite(data171))){if(data171 < 0 || isNaN(data171)){const err473 = {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 = [err473];}else {vErrors.push(err473);}errors++;}}else {const err474 = {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 = [err474];}else {vErrors.push(err474);}errors++;}}if(data144.refinedBy !== undefined){let data172 = data144.refinedBy;const _errs449 = errors;let valid99 = false;let passing5 = null;const _errs450 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.id === undefined){const err475 = {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 = [err475];}else {vErrors.push(err475);}errors++;}if(data172.type === undefined){const err476 = {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 = [err476];}else {vErrors.push(err476);}errors++;}if(data172.start === undefined){const err477 = {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 = [err477];}else {vErrors.push(err477);}errors++;}if(data172.end === undefined){const err478 = {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 = [err478];}else {vErrors.push(err478);}errors++;}if(data172.id !== undefined){let data173 = data172.id;if(typeof data173 === "string"){if(!(formats0(data173))){const err479 = {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 = [err479];}else {vErrors.push(err479);}errors++;}}else {const err480 = {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 = [err480];}else {vErrors.push(err480);}errors++;}}if(data172.type !== undefined){let data174 = data172.type;if(Array.isArray(data174)){if(data174.length > 2){const err481 = {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 = [err481];}else {vErrors.push(err481);}errors++;}if(data174.length < 2){const err482 = {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 = [err482];}else {vErrors.push(err482);}errors++;}const len29 = data174.length;if(len29 > 0){let data175 = data174[0];if(typeof data175 !== "string"){const err483 = {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 = [err483];}else {vErrors.push(err483);}errors++;}if("TextPositionSelector" !== data175){const err484 = {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 = [err484];}else {vErrors.push(err484);}errors++;}}if(len29 > 1){let data176 = data174[1];if(typeof data176 !== "string"){const err485 = {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 = [err485];}else {vErrors.push(err485);}errors++;}if("crm:E73_Information_Object" !== data176){const err486 = {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 = [err486];}else {vErrors.push(err486);}errors++;}}}else {const err487 = {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 = [err487];}else {vErrors.push(err487);}errors++;}}if(data172.start !== undefined){let data177 = data172.start;if((typeof data177 == "number") && (isFinite(data177))){if(data177 < 0 || isNaN(data177)){const err488 = {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 = [err488];}else {vErrors.push(err488);}errors++;}}else {const err489 = {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 = [err489];}else {vErrors.push(err489);}errors++;}}if(data172.end !== undefined){let data178 = data172.end;if((typeof data178 == "number") && (isFinite(data178))){if(data178 < 0 || isNaN(data178)){const err490 = {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 = [err490];}else {vErrors.push(err490);}errors++;}}else {const err491 = {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 = [err491];}else {vErrors.push(err491);}errors++;}}}else {const err492 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}var _valid15 = _errs450 === errors;if(_valid15){valid99 = true;passing5 = 0;}const _errs465 = errors;if(data172 && typeof data172 == "object" && !Array.isArray(data172)){if(data172.id === undefined){const err493 = {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 = [err493];}else {vErrors.push(err493);}errors++;}if(data172.type === undefined){const err494 = {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 = [err494];}else {vErrors.push(err494);}errors++;}if(data172.exact === undefined){const err495 = {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 = [err495];}else {vErrors.push(err495);}errors++;}if(data172.prefix === undefined){const err496 = {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 = [err496];}else {vErrors.push(err496);}errors++;}if(data172.suffix === undefined){const err497 = {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 = [err497];}else {vErrors.push(err497);}errors++;}if(data172.id !== undefined){let data179 = data172.id;if(typeof data179 === "string"){if(!(formats0(data179))){const err498 = {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 = [err498];}else {vErrors.push(err498);}errors++;}}else {const err499 = {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 = [err499];}else {vErrors.push(err499);}errors++;}}if(data172.type !== undefined){let data180 = data172.type;if(Array.isArray(data180)){if(data180.length > 2){const err500 = {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 = [err500];}else {vErrors.push(err500);}errors++;}if(data180.length < 2){const err501 = {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 = [err501];}else {vErrors.push(err501);}errors++;}const len30 = data180.length;if(len30 > 0){let data181 = data180[0];if(typeof data181 !== "string"){const err502 = {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 = [err502];}else {vErrors.push(err502);}errors++;}if("TextQuoteSelector" !== data181){const err503 = {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 = [err503];}else {vErrors.push(err503);}errors++;}}if(len30 > 1){let data182 = data180[1];if(typeof data182 !== "string"){const err504 = {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 = [err504];}else {vErrors.push(err504);}errors++;}if("crm:E33_Linguistic_Object" !== data182){const err505 = {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 = [err505];}else {vErrors.push(err505);}errors++;}}}else {const err506 = {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 = [err506];}else {vErrors.push(err506);}errors++;}}if(data172.exact !== undefined){if(typeof data172.exact !== "string"){const err507 = {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 = [err507];}else {vErrors.push(err507);}errors++;}}if(data172.prefix !== undefined){if(typeof data172.prefix !== "string"){const err508 = {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 = [err508];}else {vErrors.push(err508);}errors++;}}if(data172.suffix !== undefined){if(typeof data172.suffix !== "string"){const err509 = {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 = [err509];}else {vErrors.push(err509);}errors++;}}}else {const err510 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err510];}else {vErrors.push(err510);}errors++;}var _valid15 = _errs465 === errors;if(_valid15 && valid99){valid99 = false;passing5 = [passing5, 1];}else {if(_valid15){valid99 = true;passing5 = 1;}}if(!valid99){const err511 = {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 = [err511];}else {vErrors.push(err511);}errors++;}else {errors = _errs449;if(vErrors !== null){if(_errs449){vErrors.length = _errs449;}else {vErrors = null;}}}if(!(data172 && typeof data172 == "object" && !Array.isArray(data172))){const err512 = {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 = [err512];}else {vErrors.push(err512);}errors++;}}}else {const err513 = {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 = [err513];}else {vErrors.push(err513);}errors++;}var _valid13 = _errs433 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 1];}else {if(_valid13){valid87 = true;passing3 = 1;}const _errs482 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err514 = {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 = [err514];}else {vErrors.push(err514);}errors++;}if(data144.type === undefined){const err515 = {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 = [err515];}else {vErrors.push(err515);}errors++;}if(data144.value === undefined){const err516 = {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 = [err516];}else {vErrors.push(err516);}errors++;}if(data144.id !== undefined){let data186 = data144.id;if(typeof data186 === "string"){if(!(formats0(data186))){const err517 = {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 = [err517];}else {vErrors.push(err517);}errors++;}}else {const err518 = {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 = [err518];}else {vErrors.push(err518);}errors++;}}if(data144.type !== undefined){let data187 = data144.type;if(Array.isArray(data187)){if(data187.length > 2){const err519 = {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 = [err519];}else {vErrors.push(err519);}errors++;}if(data187.length < 2){const err520 = {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 = [err520];}else {vErrors.push(err520);}errors++;}const len31 = data187.length;if(len31 > 0){let data188 = data187[0];if(typeof data188 !== "string"){const err521 = {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 = [err521];}else {vErrors.push(err521);}errors++;}if("XPathSelector" !== data188){const err522 = {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 = [err522];}else {vErrors.push(err522);}errors++;}}if(len31 > 1){let data189 = data187[1];if(typeof data189 !== "string"){const err523 = {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 = [err523];}else {vErrors.push(err523);}errors++;}if("crm:E73_Information_Object" !== data189){const err524 = {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 = [err524];}else {vErrors.push(err524);}errors++;}}}else {const err525 = {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 = [err525];}else {vErrors.push(err525);}errors++;}}if(data144.value !== undefined){if(typeof data144.value !== "string"){const err526 = {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 = [err526];}else {vErrors.push(err526);}errors++;}}if(data144.refinedBy !== undefined){let data191 = data144.refinedBy;const _errs496 = errors;let valid108 = false;const _errs497 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.id === undefined){const err527 = {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 = [err527];}else {vErrors.push(err527);}errors++;}if(data191.type === undefined){const err528 = {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 = [err528];}else {vErrors.push(err528);}errors++;}if(data191.start === undefined){const err529 = {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 = [err529];}else {vErrors.push(err529);}errors++;}if(data191.end === undefined){const err530 = {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 = [err530];}else {vErrors.push(err530);}errors++;}if(data191.id !== undefined){let data192 = data191.id;if(typeof data192 === "string"){if(!(formats0(data192))){const err531 = {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 = [err531];}else {vErrors.push(err531);}errors++;}}else {const err532 = {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 = [err532];}else {vErrors.push(err532);}errors++;}}if(data191.type !== undefined){let data193 = data191.type;if(Array.isArray(data193)){if(data193.length > 2){const err533 = {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 = [err533];}else {vErrors.push(err533);}errors++;}if(data193.length < 2){const err534 = {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 = [err534];}else {vErrors.push(err534);}errors++;}const len32 = data193.length;if(len32 > 0){let data194 = data193[0];if(typeof data194 !== "string"){const err535 = {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 = [err535];}else {vErrors.push(err535);}errors++;}if("TextPositionSelector" !== data194){const err536 = {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 = [err536];}else {vErrors.push(err536);}errors++;}}if(len32 > 1){let data195 = data193[1];if(typeof data195 !== "string"){const err537 = {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 = [err537];}else {vErrors.push(err537);}errors++;}if("crm:E73_Information_Object" !== data195){const err538 = {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 = [err538];}else {vErrors.push(err538);}errors++;}}}else {const err539 = {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 = [err539];}else {vErrors.push(err539);}errors++;}}if(data191.start !== undefined){let data196 = data191.start;if((typeof data196 == "number") && (isFinite(data196))){if(data196 < 0 || isNaN(data196)){const err540 = {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 = [err540];}else {vErrors.push(err540);}errors++;}}else {const err541 = {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 = [err541];}else {vErrors.push(err541);}errors++;}}if(data191.end !== undefined){let data197 = data191.end;if((typeof data197 == "number") && (isFinite(data197))){if(data197 < 0 || isNaN(data197)){const err542 = {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 = [err542];}else {vErrors.push(err542);}errors++;}}else {const err543 = {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 = [err543];}else {vErrors.push(err543);}errors++;}}}else {const err544 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}var _valid16 = _errs497 === errors;valid108 = valid108 || _valid16;if(!valid108){const _errs512 = errors;if(data191 && typeof data191 == "object" && !Array.isArray(data191)){if(data191.id === undefined){const err545 = {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 = [err545];}else {vErrors.push(err545);}errors++;}if(data191.type === undefined){const err546 = {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 = [err546];}else {vErrors.push(err546);}errors++;}if(data191.exact === undefined){const err547 = {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 = [err547];}else {vErrors.push(err547);}errors++;}if(data191.prefix === undefined){const err548 = {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 = [err548];}else {vErrors.push(err548);}errors++;}if(data191.suffix === undefined){const err549 = {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 = [err549];}else {vErrors.push(err549);}errors++;}if(data191.id !== undefined){let data198 = data191.id;if(typeof data198 === "string"){if(!(formats0(data198))){const err550 = {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 = [err550];}else {vErrors.push(err550);}errors++;}}else {const err551 = {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 = [err551];}else {vErrors.push(err551);}errors++;}}if(data191.type !== undefined){let data199 = data191.type;if(Array.isArray(data199)){if(data199.length > 2){const err552 = {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 = [err552];}else {vErrors.push(err552);}errors++;}if(data199.length < 2){const err553 = {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 = [err553];}else {vErrors.push(err553);}errors++;}const len33 = data199.length;if(len33 > 0){let data200 = data199[0];if(typeof data200 !== "string"){const err554 = {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 = [err554];}else {vErrors.push(err554);}errors++;}if("TextQuoteSelector" !== data200){const err555 = {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 = [err555];}else {vErrors.push(err555);}errors++;}}if(len33 > 1){let data201 = data199[1];if(typeof data201 !== "string"){const err556 = {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 = [err556];}else {vErrors.push(err556);}errors++;}if("crm:E33_Linguistic_Object" !== data201){const err557 = {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 = [err557];}else {vErrors.push(err557);}errors++;}}}else {const err558 = {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 = [err558];}else {vErrors.push(err558);}errors++;}}if(data191.exact !== undefined){if(typeof data191.exact !== "string"){const err559 = {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 = [err559];}else {vErrors.push(err559);}errors++;}}if(data191.prefix !== undefined){if(typeof data191.prefix !== "string"){const err560 = {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 = [err560];}else {vErrors.push(err560);}errors++;}}if(data191.suffix !== undefined){if(typeof data191.suffix !== "string"){const err561 = {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 = [err561];}else {vErrors.push(err561);}errors++;}}}else {const err562 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err562];}else {vErrors.push(err562);}errors++;}var _valid16 = _errs512 === errors;valid108 = valid108 || _valid16;}if(!valid108){const err563 = {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 = [err563];}else {vErrors.push(err563);}errors++;}else {errors = _errs496;if(vErrors !== null){if(_errs496){vErrors.length = _errs496;}else {vErrors = null;}}}if(!(data191 && typeof data191 == "object" && !Array.isArray(data191))){const err564 = {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 = [err564];}else {vErrors.push(err564);}errors++;}}}else {const err565 = {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 = [err565];}else {vErrors.push(err565);}errors++;}var _valid13 = _errs482 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 2];}else {if(_valid13){valid87 = true;passing3 = 2;}const _errs529 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err566 = {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 = [err566];}else {vErrors.push(err566);}errors++;}if(data144.type === undefined){const err567 = {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 = [err567];}else {vErrors.push(err567);}errors++;}if(data144.value === undefined){const err568 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}if(data144.id !== undefined){let data205 = data144.id;if(typeof data205 === "string"){if(!(formats0(data205))){const err569 = {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 = [err569];}else {vErrors.push(err569);}errors++;}}else {const err570 = {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 = [err570];}else {vErrors.push(err570);}errors++;}}if(data144.type !== undefined){let data206 = data144.type;if(Array.isArray(data206)){if(data206.length > 2){const err571 = {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 = [err571];}else {vErrors.push(err571);}errors++;}if(data206.length < 2){const err572 = {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 = [err572];}else {vErrors.push(err572);}errors++;}const len34 = data206.length;if(len34 > 0){let data207 = data206[0];if(typeof data207 !== "string"){const err573 = {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 = [err573];}else {vErrors.push(err573);}errors++;}if("CssSelector" !== data207){const err574 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/type/items/0/const",keyword:"const",params:{allowedValue: "CssSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}}if(len34 > 1){let data208 = data206[1];if(typeof data208 !== "string"){const err575 = {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 = [err575];}else {vErrors.push(err575);}errors++;}if("crm:E73_Information_Object" !== data208){const err576 = {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 = [err576];}else {vErrors.push(err576);}errors++;}}}else {const err577 = {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 = [err577];}else {vErrors.push(err577);}errors++;}}if(data144.value !== undefined){if(typeof data144.value !== "string"){const err578 = {instancePath:instancePath+"/selector/" + i2+"/value",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err578];}else {vErrors.push(err578);}errors++;}}if(data144.refinedBy !== undefined){let data210 = data144.refinedBy;const _errs543 = errors;let valid117 = false;const _errs544 = errors;if(data210 && typeof data210 == "object" && !Array.isArray(data210)){if(data210.id === undefined){const err579 = {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 = [err579];}else {vErrors.push(err579);}errors++;}if(data210.type === undefined){const err580 = {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 = [err580];}else {vErrors.push(err580);}errors++;}if(data210.start === undefined){const err581 = {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 = [err581];}else {vErrors.push(err581);}errors++;}if(data210.end === undefined){const err582 = {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 = [err582];}else {vErrors.push(err582);}errors++;}if(data210.id !== undefined){let data211 = data210.id;if(typeof data211 === "string"){if(!(formats0(data211))){const err583 = {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 = [err583];}else {vErrors.push(err583);}errors++;}}else {const err584 = {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 = [err584];}else {vErrors.push(err584);}errors++;}}if(data210.type !== undefined){let data212 = data210.type;if(Array.isArray(data212)){if(data212.length > 2){const err585 = {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 = [err585];}else {vErrors.push(err585);}errors++;}if(data212.length < 2){const err586 = {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 = [err586];}else {vErrors.push(err586);}errors++;}const len35 = data212.length;if(len35 > 0){let data213 = data212[0];if(typeof data213 !== "string"){const err587 = {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 = [err587];}else {vErrors.push(err587);}errors++;}if("TextPositionSelector" !== data213){const err588 = {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 = [err588];}else {vErrors.push(err588);}errors++;}}if(len35 > 1){let data214 = data212[1];if(typeof data214 !== "string"){const err589 = {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 = [err589];}else {vErrors.push(err589);}errors++;}if("crm:E73_Information_Object" !== data214){const err590 = {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 = [err590];}else {vErrors.push(err590);}errors++;}}}else {const err591 = {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 = [err591];}else {vErrors.push(err591);}errors++;}}if(data210.start !== undefined){let data215 = data210.start;if((typeof data215 == "number") && (isFinite(data215))){if(data215 < 0 || isNaN(data215)){const err592 = {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 = [err592];}else {vErrors.push(err592);}errors++;}}else {const err593 = {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 = [err593];}else {vErrors.push(err593);}errors++;}}if(data210.end !== undefined){let data216 = data210.end;if((typeof data216 == "number") && (isFinite(data216))){if(data216 < 0 || isNaN(data216)){const err594 = {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 = [err594];}else {vErrors.push(err594);}errors++;}}else {const err595 = {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 = [err595];}else {vErrors.push(err595);}errors++;}}}else {const err596 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err596];}else {vErrors.push(err596);}errors++;}var _valid17 = _errs544 === errors;valid117 = valid117 || _valid17;if(!valid117){const _errs559 = errors;if(data210 && typeof data210 == "object" && !Array.isArray(data210)){if(data210.id === undefined){const err597 = {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 = [err597];}else {vErrors.push(err597);}errors++;}if(data210.type === undefined){const err598 = {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 = [err598];}else {vErrors.push(err598);}errors++;}if(data210.exact === undefined){const err599 = {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 = [err599];}else {vErrors.push(err599);}errors++;}if(data210.prefix === undefined){const err600 = {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 = [err600];}else {vErrors.push(err600);}errors++;}if(data210.suffix === undefined){const err601 = {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 = [err601];}else {vErrors.push(err601);}errors++;}if(data210.id !== undefined){let data217 = data210.id;if(typeof data217 === "string"){if(!(formats0(data217))){const err602 = {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 = [err602];}else {vErrors.push(err602);}errors++;}}else {const err603 = {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 = [err603];}else {vErrors.push(err603);}errors++;}}if(data210.type !== undefined){let data218 = data210.type;if(Array.isArray(data218)){if(data218.length > 2){const err604 = {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 = [err604];}else {vErrors.push(err604);}errors++;}if(data218.length < 2){const err605 = {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 = [err605];}else {vErrors.push(err605);}errors++;}const len36 = data218.length;if(len36 > 0){let data219 = data218[0];if(typeof data219 !== "string"){const err606 = {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 = [err606];}else {vErrors.push(err606);}errors++;}if("TextQuoteSelector" !== data219){const err607 = {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 = [err607];}else {vErrors.push(err607);}errors++;}}if(len36 > 1){let data220 = data218[1];if(typeof data220 !== "string"){const err608 = {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 = [err608];}else {vErrors.push(err608);}errors++;}if("crm:E33_Linguistic_Object" !== data220){const err609 = {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 = [err609];}else {vErrors.push(err609);}errors++;}}}else {const err610 = {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 = [err610];}else {vErrors.push(err610);}errors++;}}if(data210.exact !== undefined){if(typeof data210.exact !== "string"){const err611 = {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 = [err611];}else {vErrors.push(err611);}errors++;}}if(data210.prefix !== undefined){if(typeof data210.prefix !== "string"){const err612 = {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 = [err612];}else {vErrors.push(err612);}errors++;}}if(data210.suffix !== undefined){if(typeof data210.suffix !== "string"){const err613 = {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 = [err613];}else {vErrors.push(err613);}errors++;}}}else {const err614 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err614];}else {vErrors.push(err614);}errors++;}var _valid17 = _errs559 === errors;valid117 = valid117 || _valid17;}if(!valid117){const err615 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/refinedBy/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err615];}else {vErrors.push(err615);}errors++;}else {errors = _errs543;if(vErrors !== null){if(_errs543){vErrors.length = _errs543;}else {vErrors = null;}}}if(!(data210 && typeof data210 == "object" && !Array.isArray(data210))){const err616 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/3/properties/refinedBy/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err616];}else {vErrors.push(err616);}errors++;}}}else {const err617 = {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 = [err617];}else {vErrors.push(err617);}errors++;}var _valid13 = _errs529 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 3];}else {if(_valid13){valid87 = true;passing3 = 3;}const _errs576 = errors;if(data144 && typeof data144 == "object" && !Array.isArray(data144)){if(data144.id === undefined){const err618 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err618];}else {vErrors.push(err618);}errors++;}if(data144.type === undefined){const err619 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err619];}else {vErrors.push(err619);}errors++;}if(data144.startSelector === undefined){const err620 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "startSelector"},message:"must have required property '"+"startSelector"+"'"};if(vErrors === null){vErrors = [err620];}else {vErrors.push(err620);}errors++;}if(data144.endSelector === undefined){const err621 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/required",keyword:"required",params:{missingProperty: "endSelector"},message:"must have required property '"+"endSelector"+"'"};if(vErrors === null){vErrors = [err621];}else {vErrors.push(err621);}errors++;}if(data144.id !== undefined){let data224 = data144.id;if(typeof data224 === "string"){if(!(formats0(data224))){const err622 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err622];}else {vErrors.push(err622);}errors++;}}else {const err623 = {instancePath:instancePath+"/selector/" + i2+"/id",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err623];}else {vErrors.push(err623);}errors++;}}if(data144.type !== undefined){let data225 = data144.type;if(Array.isArray(data225)){if(data225.length > 2){const err624 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err624];}else {vErrors.push(err624);}errors++;}if(data225.length < 2){const err625 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err625];}else {vErrors.push(err625);}errors++;}const len37 = data225.length;if(len37 > 0){let data226 = data225[0];if(typeof data226 !== "string"){const err626 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err626];}else {vErrors.push(err626);}errors++;}if("RangeSelector" !== data226){const err627 = {instancePath:instancePath+"/selector/" + i2+"/type/0",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/0/const",keyword:"const",params:{allowedValue: "RangeSelector"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err627];}else {vErrors.push(err627);}errors++;}}if(len37 > 1){let data227 = data225[1];if(typeof data227 !== "string"){const err628 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err628];}else {vErrors.push(err628);}errors++;}if("crm:E73_Information_Object" !== data227){const err629 = {instancePath:instancePath+"/selector/" + i2+"/type/1",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err629];}else {vErrors.push(err629);}errors++;}}}else {const err630 = {instancePath:instancePath+"/selector/" + i2+"/type",schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err630];}else {vErrors.push(err630);}errors++;}}if(data144.startSelector !== undefined){let data228 = data144.startSelector;if(data228 && typeof data228 == "object" && !Array.isArray(data228)){if(data228.id === undefined){const err631 = {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 = [err631];}else {vErrors.push(err631);}errors++;}if(data228.type === undefined){const err632 = {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 = [err632];}else {vErrors.push(err632);}errors++;}if(data228.value === undefined){const err633 = {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 = [err633];}else {vErrors.push(err633);}errors++;}if(data228.id !== undefined){let data229 = data228.id;if(typeof data229 === "string"){if(!(formats0(data229))){const err634 = {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 = [err634];}else {vErrors.push(err634);}errors++;}}else {const err635 = {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 = [err635];}else {vErrors.push(err635);}errors++;}}if(data228.type !== undefined){let data230 = data228.type;if(Array.isArray(data230)){if(data230.length > 2){const err636 = {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 = [err636];}else {vErrors.push(err636);}errors++;}if(data230.length < 2){const err637 = {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 = [err637];}else {vErrors.push(err637);}errors++;}const len38 = data230.length;if(len38 > 0){let data231 = data230[0];if(typeof data231 !== "string"){const err638 = {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 = [err638];}else {vErrors.push(err638);}errors++;}if("XPathSelector" !== data231){const err639 = {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 = [err639];}else {vErrors.push(err639);}errors++;}}if(len38 > 1){let data232 = data230[1];if(typeof data232 !== "string"){const err640 = {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 = [err640];}else {vErrors.push(err640);}errors++;}if("crm:E73_Information_Object" !== data232){const err641 = {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 = [err641];}else {vErrors.push(err641);}errors++;}}}else {const err642 = {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 = [err642];}else {vErrors.push(err642);}errors++;}}if(data228.value !== undefined){if(typeof data228.value !== "string"){const err643 = {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 = [err643];}else {vErrors.push(err643);}errors++;}}}else {const err644 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err644];}else {vErrors.push(err644);}errors++;}}if(data144.endSelector !== undefined){let data234 = data144.endSelector;if(data234 && typeof data234 == "object" && !Array.isArray(data234)){if(data234.id === undefined){const err645 = {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 = [err645];}else {vErrors.push(err645);}errors++;}if(data234.type === undefined){const err646 = {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 = [err646];}else {vErrors.push(err646);}errors++;}if(data234.value === undefined){const err647 = {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 = [err647];}else {vErrors.push(err647);}errors++;}if(data234.id !== undefined){let data235 = data234.id;if(typeof data235 === "string"){if(!(formats0(data235))){const err648 = {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 = [err648];}else {vErrors.push(err648);}errors++;}}else {const err649 = {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 = [err649];}else {vErrors.push(err649);}errors++;}}if(data234.type !== undefined){let data236 = data234.type;if(Array.isArray(data236)){if(data236.length > 2){const err650 = {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 = [err650];}else {vErrors.push(err650);}errors++;}if(data236.length < 2){const err651 = {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 = [err651];}else {vErrors.push(err651);}errors++;}const len39 = data236.length;if(len39 > 0){let data237 = data236[0];if(typeof data237 !== "string"){const err652 = {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 = [err652];}else {vErrors.push(err652);}errors++;}if("XPathSelector" !== data237){const err653 = {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 = [err653];}else {vErrors.push(err653);}errors++;}}if(len39 > 1){let data238 = data236[1];if(typeof data238 !== "string"){const err654 = {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 = [err654];}else {vErrors.push(err654);}errors++;}if("crm:E73_Information_Object" !== data238){const err655 = {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 = [err655];}else {vErrors.push(err655);}errors++;}}}else {const err656 = {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 = [err656];}else {vErrors.push(err656);}errors++;}}if(data234.value !== undefined){if(typeof data234.value !== "string"){const err657 = {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 = [err657];}else {vErrors.push(err657);}errors++;}}}else {const err658 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err658];}else {vErrors.push(err658);}errors++;}}}else {const err659 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err659];}else {vErrors.push(err659);}errors++;}var _valid13 = _errs576 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 4];}else {if(_valid13){valid87 = true;passing3 = 4;}}}}}if(!valid87){const err660 = {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 = [err660];}else {vErrors.push(err660);}errors++;}else {errors = _errs381;if(vErrors !== null){if(_errs381){vErrors.length = _errs381;}else {vErrors = null;}}}if(!(data144 && typeof data144 == "object" && !Array.isArray(data144))){const err661 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err661];}else {vErrors.push(err661);}errors++;}}}else {const err662 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err662];}else {vErrors.push(err662);}errors++;}var _valid7 = _errs377 === errors;valid39 = valid39 || _valid7;}if(!valid39){const err663 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err663];}else {vErrors.push(err663);}errors++;}else {errors = _errs143;if(vErrors !== null){if(_errs143){vErrors.length = _errs143;}else {vErrors = null;}}}}}else {const err664 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err664];}else {vErrors.push(err664);}errors++;}validate14.errors = vErrors;return errors === 0;}const formats10 = require("ajv-formats/dist/formats").fullFormats["date-time"];const func5 = Object.prototype.hasOwnProperty;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.type !== undefined){let data1 = data0.type;const _errs8 = errors;let valid4 = false;let passing0 = null;const _errs9 = errors;const _errs10 = errors;let valid5 = false;let passing1 = null;const _errs11 = errors;if(typeof data1 !== "string"){const err0 = {};if(vErrors === null){vErrors = [err0];}else {vErrors.push(err0);}errors++;}if("crm:E21_Person" !== data1){const err1 = {};if(vErrors === null){vErrors = [err1];}else {vErrors.push(err1);}errors++;}var _valid2 = _errs11 === errors;if(_valid2){valid5 = true;passing1 = 0;}const _errs13 = errors;if(errors === _errs13){if(Array.isArray(data1)){if(data1.length > 2){const err2 = {};if(vErrors === null){vErrors = [err2];}else {vErrors.push(err2);}errors++;}else {if(data1.length < 2){const err3 = {};if(vErrors === null){vErrors = [err3];}else {vErrors.push(err3);}errors++;}else {const len0 = data1.length;if(len0 > 0){let data2 = data1[0];const _errs15 = errors;if(typeof data2 !== "string"){const err4 = {};if(vErrors === null){vErrors = [err4];}else {vErrors.push(err4);}errors++;}if("foaf:Person" !== data2){const err5 = {};if(vErrors === null){vErrors = [err5];}else {vErrors.push(err5);}errors++;}var valid6 = _errs15 === errors;}if(valid6){if(len0 > 1){let data3 = data1[1];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 valid6 = _errs17 === errors;}}}}}else {const err8 = {};if(vErrors === null){vErrors = [err8];}else {vErrors.push(err8);}errors++;}}var _valid2 = _errs13 === errors;if(_valid2 && valid5){valid5 = false;passing1 = [passing1, 1];}else {if(_valid2){valid5 = true;passing1 = 1;}}if(!valid5){const err9 = {};if(vErrors === null){vErrors = [err9];}else {vErrors.push(err9);}errors++;}else {errors = _errs10;if(vErrors !== null){if(_errs10){vErrors.length = _errs10;}else {vErrors = null;}}}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("crm:E53_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("biography:fictionalPlace" !== 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;const _errs30 = errors;let valid9 = false;let passing3 = null;const _errs31 = errors;if(typeof data1 !== "string"){const err20 = {};if(vErrors === null){vErrors = [err20];}else {vErrors.push(err20);}errors++;}if("crm:E74_Group" !== data1){const err21 = {};if(vErrors === null){vErrors = [err21];}else {vErrors.push(err21);}errors++;}var _valid4 = _errs31 === errors;if(_valid4){valid9 = true;passing3 = 0;}const _errs33 = errors;if(errors === _errs33){if(Array.isArray(data1)){if(data1.length > 2){const err22 = {};if(vErrors === null){vErrors = [err22];}else {vErrors.push(err22);}errors++;}else {if(data1.length < 2){const err23 = {};if(vErrors === null){vErrors = [err23];}else {vErrors.push(err23);}errors++;}else {const len2 = data1.length;if(len2 > 0){let data6 = data1[0];const _errs35 = errors;if(typeof data6 !== "string"){const err24 = {};if(vErrors === null){vErrors = [err24];}else {vErrors.push(err24);}errors++;}if("foaf:Organization" !== data6){const err25 = {};if(vErrors === null){vErrors = [err25];}else {vErrors.push(err25);}errors++;}var valid10 = _errs35 === errors;}if(valid10){if(len2 > 1){let data7 = data1[1];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 valid10 = _errs37 === errors;}}}}}else {const err28 = {};if(vErrors === null){vErrors = [err28];}else {vErrors.push(err28);}errors++;}}var _valid4 = _errs33 === errors;if(_valid4 && valid9){valid9 = false;passing3 = [passing3, 1];}else {if(_valid4){valid9 = true;passing3 = 1;}}if(!valid9){const err29 = {};if(vErrors === null){vErrors = [err29];}else {vErrors.push(err29);}errors++;}else {errors = _errs30;if(vErrors !== null){if(_errs30){vErrors.length = _errs30;}else {vErrors = null;}}}var _valid1 = _errs29 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 2];}else {if(_valid1){valid4 = true;passing0 = 2;}const _errs39 = errors;const _errs40 = errors;let valid11 = false;let passing4 = null;const _errs41 = errors;if(typeof data1 !== "string"){const err30 = {};if(vErrors === null){vErrors = [err30];}else {vErrors.push(err30);}errors++;}if("frbroo:F1" !== data1){const err31 = {};if(vErrors === null){vErrors = [err31];}else {vErrors.push(err31);}errors++;}var _valid5 = _errs41 === errors;if(_valid5){valid11 = true;passing4 = 0;}const _errs43 = errors;if(errors === _errs43){if(Array.isArray(data1)){if(data1.length > 2){const err32 = {};if(vErrors === null){vErrors = [err32];}else {vErrors.push(err32);}errors++;}else {if(data1.length < 2){const err33 = {};if(vErrors === null){vErrors = [err33];}else {vErrors.push(err33);}errors++;}else {const len3 = data1.length;if(len3 > 0){let data8 = data1[0];const _errs45 = errors;if(typeof data8 !== "string"){const err34 = {};if(vErrors === null){vErrors = [err34];}else {vErrors.push(err34);}errors++;}if("frbroo:F1" !== data8){const err35 = {};if(vErrors === null){vErrors = [err35];}else {vErrors.push(err35);}errors++;}var valid12 = _errs45 === errors;}if(valid12){if(len3 > 1){let data9 = data1[1];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 valid12 = _errs47 === errors;}}}}}else {const err38 = {};if(vErrors === null){vErrors = [err38];}else {vErrors.push(err38);}errors++;}}var _valid5 = _errs43 === errors;if(_valid5 && valid11){valid11 = false;passing4 = [passing4, 1];}else {if(_valid5){valid11 = true;passing4 = 1;}}if(!valid11){const err39 = {};if(vErrors === null){vErrors = [err39];}else {vErrors.push(err39);}errors++;}else {errors = _errs40;if(vErrors !== null){if(_errs40){vErrors.length = _errs40;}else {vErrors = null;}}}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;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 _valid1 = _errs59 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 5];}else {if(_valid1){valid4 = true;passing0 = 5;}const _errs61 = errors;if(errors === _errs61){if(Array.isArray(data1)){if(data1.length > 3){const err52 = {};if(vErrors === null){vErrors = [err52];}else {vErrors.push(err52);}errors++;}else {if(data1.length < 3){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 _errs63 = errors;if(typeof data12 !== "string"){const err54 = {};if(vErrors === null){vErrors = [err54];}else {vErrors.push(err54);}errors++;}if("TextualBody" !== data12){const err55 = {};if(vErrors === null){vErrors = [err55];}else {vErrors.push(err55);}errors++;}var valid15 = _errs63 === errors;}if(valid15){if(len5 > 1){let data13 = data1[1];const _errs65 = errors;if(typeof data13 !== "string"){const err56 = {};if(vErrors === null){vErrors = [err56];}else {vErrors.push(err56);}errors++;}if("xsd:date" !== data13){const err57 = {};if(vErrors === null){vErrors = [err57];}else {vErrors.push(err57);}errors++;}var valid15 = _errs65 === errors;}if(valid15){if(len5 > 2){let data14 = data1[2];const _errs67 = errors;if(typeof data14 !== "string"){const err58 = {};if(vErrors === null){vErrors = [err58];}else {vErrors.push(err58);}errors++;}if("crm:E52_Time-Span" !== data14){const err59 = {};if(vErrors === null){vErrors = [err59];}else {vErrors.push(err59);}errors++;}var valid15 = _errs67 === errors;}}}}}}else {const err60 = {};if(vErrors === null){vErrors = [err60];}else {vErrors.push(err60);}errors++;}}var _valid1 = _errs61 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 6];}else {if(_valid1){valid4 = true;passing0 = 6;}const _errs69 = errors;const _errs70 = errors;let valid16 = false;let passing6 = null;const _errs71 = errors;if(typeof data1 !== "string"){const err61 = {};if(vErrors === null){vErrors = [err61];}else {vErrors.push(err61);}errors++;}if("crm:E5_Event" !== data1){const err62 = {};if(vErrors === null){vErrors = [err62];}else {vErrors.push(err62);}errors++;}var _valid7 = _errs71 === errors;if(_valid7){valid16 = true;passing6 = 0;}const _errs73 = errors;if(errors === _errs73){if(Array.isArray(data1)){if(data1.length > 2){const err63 = {};if(vErrors === null){vErrors = [err63];}else {vErrors.push(err63);}errors++;}else {if(data1.length < 2){const err64 = {};if(vErrors === null){vErrors = [err64];}else {vErrors.push(err64);}errors++;}else {const len6 = data1.length;if(len6 > 0){let data15 = data1[0];const _errs75 = errors;if(typeof data15 !== "string"){const err65 = {};if(vErrors === null){vErrors = [err65];}else {vErrors.push(err65);}errors++;}if("event:Event" !== data15){const err66 = {};if(vErrors === null){vErrors = [err66];}else {vErrors.push(err66);}errors++;}var valid17 = _errs75 === errors;}if(valid17){if(len6 > 1){let data16 = data1[1];const _errs77 = errors;if(typeof data16 !== "string"){const err67 = {};if(vErrors === null){vErrors = [err67];}else {vErrors.push(err67);}errors++;}if("crm:E89_Propositional_Object" !== data16){const err68 = {};if(vErrors === null){vErrors = [err68];}else {vErrors.push(err68);}errors++;}var valid17 = _errs77 === errors;}}}}}else {const err69 = {};if(vErrors === null){vErrors = [err69];}else {vErrors.push(err69);}errors++;}}var _valid7 = _errs73 === errors;if(_valid7 && valid16){valid16 = false;passing6 = [passing6, 1];}else {if(_valid7){valid16 = true;passing6 = 1;}}if(!valid16){const err70 = {};if(vErrors === null){vErrors = [err70];}else {vErrors.push(err70);}errors++;}else {errors = _errs70;if(vErrors !== null){if(_errs70){vErrors.length = _errs70;}else {vErrors = null;}}}var _valid1 = _errs69 === errors;if(_valid1 && valid4){valid4 = false;passing0 = [passing0, 7];}else {if(_valid1){valid4 = true;passing0 = 7;}}}}}}}}if(!valid4){const err71 = {};if(vErrors === null){vErrors = [err71];}else {vErrors.push(err71);}errors++;}else {errors = _errs8;if(vErrors !== null){if(_errs8){vErrors.length = _errs8;}else {vErrors = null;}}}}}else {const err72 = {};if(vErrors === null){vErrors = [err72];}else {vErrors.push(err72);}errors++;}}}}else {const err73 = {};if(vErrors === null){vErrors = [err73];}else {vErrors.push(err73);}errors++;}}var _valid0 = _errs3 === errors;errors = _errs2;if(vErrors !== null){if(_errs2){vErrors.length = _errs2;}else {vErrors = null;}}let ifClause0;if(_valid0){const _errs79 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data17 = data.motivation;if(typeof data17 !== "string"){const err74 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err74];}else {vErrors.push(err74);}errors++;}if("oa:identifying" !== data17){const err75 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err75];}else {vErrors.push(err75);}errors++;}}if(data.P2_has_type !== undefined){let data18 = data.P2_has_type;if(Array.isArray(data18)){if(data18.length > 3){const err76 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err76];}else {vErrors.push(err76);}errors++;}if(data18.length < 1){const err77 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err77];}else {vErrors.push(err77);}errors++;}const len7 = data18.length;var valid19 = len7 <= 1;if(!valid19){for(let i0=1; i0<len7; i0++){let data19 = data18[i0];const _errs85 = errors;const _errs86 = errors;let valid20 = false;let passing7 = null;const _errs87 = errors;const _errs88 = errors;let valid21 = false;let passing8 = null;const _errs89 = errors;if(typeof data19 !== "string"){const err78 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err78];}else {vErrors.push(err78);}errors++;}if("edit:qualityLowCertainty" !== data19){const err79 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err79];}else {vErrors.push(err79);}errors++;}var _valid9 = _errs89 === errors;if(_valid9){valid21 = true;passing8 = 0;}const _errs91 = errors;if(typeof data19 !== "string"){const err80 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err80];}else {vErrors.push(err80);}errors++;}if("edit:qualityMediumCertainty" !== data19){const err81 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err81];}else {vErrors.push(err81);}errors++;}var _valid9 = _errs91 === errors;if(_valid9 && valid21){valid21 = false;passing8 = [passing8, 1];}else {if(_valid9){valid21 = true;passing8 = 1;}const _errs93 = errors;if(typeof data19 !== "string"){const err82 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err82];}else {vErrors.push(err82);}errors++;}if("edit:qualityHighCertainty" !== data19){const err83 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err83];}else {vErrors.push(err83);}errors++;}var _valid9 = _errs93 === errors;if(_valid9 && valid21){valid21 = false;passing8 = [passing8, 2];}else {if(_valid9){valid21 = true;passing8 = 2;}const _errs95 = errors;if(typeof data19 !== "string"){const err84 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err84];}else {vErrors.push(err84);}errors++;}if("edit:qualityUnknownCertainty" !== data19){const err85 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err85];}else {vErrors.push(err85);}errors++;}var _valid9 = _errs95 === errors;if(_valid9 && valid21){valid21 = false;passing8 = [passing8, 3];}else {if(_valid9){valid21 = true;passing8 = 3;}}}}if(!valid21){const err86 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing8},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err86];}else {vErrors.push(err86);}errors++;}else {errors = _errs88;if(vErrors !== null){if(_errs88){vErrors.length = _errs88;}else {vErrors = null;}}}var _valid8 = _errs87 === errors;if(_valid8){valid20 = true;passing7 = 0;}const _errs97 = errors;const _errs98 = errors;let valid22 = false;let passing9 = null;const _errs99 = errors;if(typeof data19 !== "string"){const err87 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err87];}else {vErrors.push(err87);}errors++;}if("edit:qualityLowPrecision" !== data19){const err88 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err88];}else {vErrors.push(err88);}errors++;}var _valid10 = _errs99 === errors;if(_valid10){valid22 = true;passing9 = 0;}const _errs101 = errors;if(typeof data19 !== "string"){const err89 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}if("edit:qualityMediumPrecision" !== data19){const err90 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}var _valid10 = _errs101 === errors;if(_valid10 && valid22){valid22 = false;passing9 = [passing9, 1];}else {if(_valid10){valid22 = true;passing9 = 1;}const _errs103 = errors;if(typeof data19 !== "string"){const err91 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if("edit:qualityHighPrecision" !== data19){const err92 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err92];}else {vErrors.push(err92);}errors++;}var _valid10 = _errs103 === errors;if(_valid10 && valid22){valid22 = false;passing9 = [passing9, 2];}else {if(_valid10){valid22 = true;passing9 = 2;}const _errs105 = errors;if(typeof data19 !== "string"){const err93 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}if("edit:qualityUnknownPrecision" !== data19){const err94 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err94];}else {vErrors.push(err94);}errors++;}var _valid10 = _errs105 === errors;if(_valid10 && valid22){valid22 = false;passing9 = [passing9, 3];}else {if(_valid10){valid22 = true;passing9 = 3;}}}}if(!valid22){const err95 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing9},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err95];}else {vErrors.push(err95);}errors++;}else {errors = _errs98;if(vErrors !== null){if(_errs98){vErrors.length = _errs98;}else {vErrors = null;}}}var _valid8 = _errs97 === errors;if(_valid8 && valid20){valid20 = false;passing7 = [passing7, 1];}else {if(_valid8){valid20 = true;passing7 = 1;}}if(!valid20){const err96 = {instancePath:instancePath+"/P2_has_type/" + i0,schemaPath:"#/allOf/0/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing7},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err96];}else {vErrors.push(err96);}errors++;}else {errors = _errs86;if(vErrors !== null){if(_errs86){vErrors.length = _errs86;}else {vErrors = null;}}}var valid19 = _errs85 === errors;}}const len8 = data18.length;if(len8 > 0){let data20 = data18[0];if(typeof data20 !== "string"){const err97 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err97];}else {vErrors.push(err97);}errors++;}if("oa:identifying" !== data20){const err98 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "oa:identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err98];}else {vErrors.push(err98);}errors++;}}}else {const err99 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err99];}else {vErrors.push(err99);}errors++;}}}else {const err100 = {instancePath,schemaPath:"#/allOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}var _valid0 = _errs79 === errors;valid1 = _valid0;ifClause0 = "then";}else {const _errs109 = errors;const _errs110 = errors;let valid24 = true;const _errs111 = errors;if(errors === _errs111){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data21 = data.body;const _errs113 = errors;if(errors === _errs113){if(data21 && typeof data21 == "object" && !Array.isArray(data21)){if(data21.type !== undefined){let data22 = data21.type;const _errs115 = errors;if(errors === _errs115){if(Array.isArray(data22)){if(data22.length > 2){const err101 = {};if(vErrors === null){vErrors = [err101];}else {vErrors.push(err101);}errors++;}else {if(data22.length < 2){const err102 = {};if(vErrors === null){vErrors = [err102];}else {vErrors.push(err102);}errors++;}else {const len9 = data22.length;if(len9 > 0){let data23 = data22[0];const _errs117 = errors;if(typeof data23 !== "string"){const err103 = {};if(vErrors === null){vErrors = [err103];}else {vErrors.push(err103);}errors++;}if("TextualBody" !== data23){const err104 = {};if(vErrors === null){vErrors = [err104];}else {vErrors.push(err104);}errors++;}var valid27 = _errs117 === errors;}if(valid27){if(len9 > 1){let data24 = data22[1];const _errs119 = errors;if(typeof data24 !== "string"){const err105 = {};if(vErrors === null){vErrors = [err105];}else {vErrors.push(err105);}errors++;}if("crm:E33_Linguistic_Object" !== data24){const err106 = {};if(vErrors === null){vErrors = [err106];}else {vErrors.push(err106);}errors++;}var valid27 = _errs119 === 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++;}}}}else {const err109 = {};if(vErrors === null){vErrors = [err109];}else {vErrors.push(err109);}errors++;}}var _valid11 = _errs111 === errors;errors = _errs110;if(vErrors !== null){if(_errs110){vErrors.length = _errs110;}else {vErrors = null;}}let ifClause1;if(_valid11){const _errs121 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data25 = data.motivation;if(typeof data25 !== "string"){const err110 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err110];}else {vErrors.push(err110);}errors++;}if("oa:describing" !== data25){const err111 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err111];}else {vErrors.push(err111);}errors++;}}if(data.P2_has_type !== undefined){let data26 = data.P2_has_type;if(Array.isArray(data26)){if(data26.length > 3){const err112 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err112];}else {vErrors.push(err112);}errors++;}if(data26.length < 1){const err113 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err113];}else {vErrors.push(err113);}errors++;}const len10 = data26.length;var valid29 = len10 <= 1;if(!valid29){for(let i1=1; i1<len10; i1++){let data27 = data26[i1];const _errs127 = errors;const _errs128 = errors;let valid30 = false;let passing10 = null;const _errs129 = errors;const _errs130 = errors;let valid31 = false;let passing11 = null;const _errs131 = errors;if(typeof data27 !== "string"){const err114 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err114];}else {vErrors.push(err114);}errors++;}if("edit:qualityLowCertainty" !== data27){const err115 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err115];}else {vErrors.push(err115);}errors++;}var _valid13 = _errs131 === errors;if(_valid13){valid31 = true;passing11 = 0;}const _errs133 = errors;if(typeof data27 !== "string"){const err116 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err116];}else {vErrors.push(err116);}errors++;}if("edit:qualityMediumCertainty" !== data27){const err117 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err117];}else {vErrors.push(err117);}errors++;}var _valid13 = _errs133 === errors;if(_valid13 && valid31){valid31 = false;passing11 = [passing11, 1];}else {if(_valid13){valid31 = true;passing11 = 1;}const _errs135 = errors;if(typeof data27 !== "string"){const err118 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err118];}else {vErrors.push(err118);}errors++;}if("edit:qualityHighCertainty" !== data27){const err119 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err119];}else {vErrors.push(err119);}errors++;}var _valid13 = _errs135 === errors;if(_valid13 && valid31){valid31 = false;passing11 = [passing11, 2];}else {if(_valid13){valid31 = true;passing11 = 2;}const _errs137 = errors;if(typeof data27 !== "string"){const err120 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}if("edit:qualityUnknownCertainty" !== data27){const err121 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}var _valid13 = _errs137 === errors;if(_valid13 && valid31){valid31 = false;passing11 = [passing11, 3];}else {if(_valid13){valid31 = true;passing11 = 3;}}}}if(!valid31){const err122 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing11},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}else {errors = _errs130;if(vErrors !== null){if(_errs130){vErrors.length = _errs130;}else {vErrors = null;}}}var _valid12 = _errs129 === errors;if(_valid12){valid30 = true;passing10 = 0;}const _errs139 = errors;const _errs140 = errors;let valid32 = false;let passing12 = null;const _errs141 = errors;if(typeof data27 !== "string"){const err123 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}if("edit:qualityLowPrecision" !== data27){const err124 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}var _valid14 = _errs141 === errors;if(_valid14){valid32 = true;passing12 = 0;}const _errs143 = errors;if(typeof data27 !== "string"){const err125 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if("edit:qualityMediumPrecision" !== data27){const err126 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}var _valid14 = _errs143 === errors;if(_valid14 && valid32){valid32 = false;passing12 = [passing12, 1];}else {if(_valid14){valid32 = true;passing12 = 1;}const _errs145 = errors;if(typeof data27 !== "string"){const err127 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err127];}else {vErrors.push(err127);}errors++;}if("edit:qualityHighPrecision" !== data27){const err128 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err128];}else {vErrors.push(err128);}errors++;}var _valid14 = _errs145 === errors;if(_valid14 && valid32){valid32 = false;passing12 = [passing12, 2];}else {if(_valid14){valid32 = true;passing12 = 2;}const _errs147 = errors;if(typeof data27 !== "string"){const err129 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err129];}else {vErrors.push(err129);}errors++;}if("edit:qualityUnknownPrecision" !== data27){const err130 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err130];}else {vErrors.push(err130);}errors++;}var _valid14 = _errs147 === errors;if(_valid14 && valid32){valid32 = false;passing12 = [passing12, 3];}else {if(_valid14){valid32 = true;passing12 = 3;}}}}if(!valid32){const err131 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing12},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err131];}else {vErrors.push(err131);}errors++;}else {errors = _errs140;if(vErrors !== null){if(_errs140){vErrors.length = _errs140;}else {vErrors = null;}}}var _valid12 = _errs139 === errors;if(_valid12 && valid30){valid30 = false;passing10 = [passing10, 1];}else {if(_valid12){valid30 = true;passing10 = 1;}}if(!valid30){const err132 = {instancePath:instancePath+"/P2_has_type/" + i1,schemaPath:"#/allOf/0/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing10},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err132];}else {vErrors.push(err132);}errors++;}else {errors = _errs128;if(vErrors !== null){if(_errs128){vErrors.length = _errs128;}else {vErrors = null;}}}var valid29 = _errs127 === errors;}}const len11 = data26.length;if(len11 > 0){let data28 = data26[0];if(typeof data28 !== "string"){const err133 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err133];}else {vErrors.push(err133);}errors++;}if("oa:describing" !== data28){const err134 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "oa:describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err134];}else {vErrors.push(err134);}errors++;}}}else {const err135 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err135];}else {vErrors.push(err135);}errors++;}}}else {const err136 = {instancePath,schemaPath:"#/allOf/0/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err136];}else {vErrors.push(err136);}errors++;}var _valid11 = _errs121 === errors;valid24 = _valid11;ifClause1 = "then";}else {const _errs151 = errors;const _errs152 = errors;let valid34 = true;const _errs153 = errors;if(errors === _errs153){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data29 = data.body;const _errs155 = errors;if(errors === _errs155){if(data29 && typeof data29 == "object" && !Array.isArray(data29)){if(data29.type !== undefined){let data30 = data29.type;const _errs157 = errors;if(errors === _errs157){if(Array.isArray(data30)){if(data30.length > 3){const err137 = {};if(vErrors === null){vErrors = [err137];}else {vErrors.push(err137);}errors++;}else {if(data30.length < 3){const err138 = {};if(vErrors === null){vErrors = [err138];}else {vErrors.push(err138);}errors++;}else {const len12 = data30.length;if(len12 > 0){let data31 = data30[0];const _errs159 = errors;if(typeof data31 !== "string"){const err139 = {};if(vErrors === null){vErrors = [err139];}else {vErrors.push(err139);}errors++;}if("TextualBody" !== data31){const err140 = {};if(vErrors === null){vErrors = [err140];}else {vErrors.push(err140);}errors++;}var valid37 = _errs159 === errors;}if(valid37){if(len12 > 1){let data32 = data30[1];const _errs161 = errors;if(typeof data32 !== "string"){const err141 = {};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}if("fabio:Correction" !== data32){const err142 = {};if(vErrors === null){vErrors = [err142];}else {vErrors.push(err142);}errors++;}var valid37 = _errs161 === errors;}if(valid37){if(len12 > 2){let data33 = data30[2];const _errs163 = errors;if(typeof data33 !== "string"){const err143 = {};if(vErrors === null){vErrors = [err143];}else {vErrors.push(err143);}errors++;}if("crm:E33_Linguistic_Object" !== data33){const err144 = {};if(vErrors === null){vErrors = [err144];}else {vErrors.push(err144);}errors++;}var valid37 = _errs163 === errors;}}}}}}else {const err145 = {};if(vErrors === null){vErrors = [err145];}else {vErrors.push(err145);}errors++;}}}}else {const err146 = {};if(vErrors === null){vErrors = [err146];}else {vErrors.push(err146);}errors++;}}}}else {const err147 = {};if(vErrors === null){vErrors = [err147];}else {vErrors.push(err147);}errors++;}}var _valid15 = _errs153 === errors;errors = _errs152;if(vErrors !== null){if(_errs152){vErrors.length = _errs152;}else {vErrors = null;}}let ifClause2;if(_valid15){const _errs165 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data34 = data.motivation;if(typeof data34 !== "string"){const err148 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err148];}else {vErrors.push(err148);}errors++;}if("correcting" !== data34){const err149 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err149];}else {vErrors.push(err149);}errors++;}}if(data.P2_has_type !== undefined){let data35 = data.P2_has_type;if(Array.isArray(data35)){if(data35.length > 3){const err150 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err150];}else {vErrors.push(err150);}errors++;}if(data35.length < 1){const err151 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err151];}else {vErrors.push(err151);}errors++;}const len13 = data35.length;var valid39 = len13 <= 1;if(!valid39){for(let i2=1; i2<len13; i2++){let data36 = data35[i2];const _errs171 = errors;const _errs172 = errors;let valid40 = false;let passing13 = null;const _errs173 = errors;const _errs174 = errors;let valid41 = false;let passing14 = null;const _errs175 = errors;if(typeof data36 !== "string"){const err152 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err152];}else {vErrors.push(err152);}errors++;}if("edit:qualityLowCertainty" !== data36){const err153 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err153];}else {vErrors.push(err153);}errors++;}var _valid17 = _errs175 === errors;if(_valid17){valid41 = true;passing14 = 0;}const _errs177 = errors;if(typeof data36 !== "string"){const err154 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err154];}else {vErrors.push(err154);}errors++;}if("edit:qualityMediumCertainty" !== data36){const err155 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err155];}else {vErrors.push(err155);}errors++;}var _valid17 = _errs177 === errors;if(_valid17 && valid41){valid41 = false;passing14 = [passing14, 1];}else {if(_valid17){valid41 = true;passing14 = 1;}const _errs179 = errors;if(typeof data36 !== "string"){const err156 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err156];}else {vErrors.push(err156);}errors++;}if("edit:qualityHighCertainty" !== data36){const err157 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err157];}else {vErrors.push(err157);}errors++;}var _valid17 = _errs179 === errors;if(_valid17 && valid41){valid41 = false;passing14 = [passing14, 2];}else {if(_valid17){valid41 = true;passing14 = 2;}const _errs181 = errors;if(typeof data36 !== "string"){const err158 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err158];}else {vErrors.push(err158);}errors++;}if("edit:qualityUnknownCertainty" !== data36){const err159 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err159];}else {vErrors.push(err159);}errors++;}var _valid17 = _errs181 === errors;if(_valid17 && valid41){valid41 = false;passing14 = [passing14, 3];}else {if(_valid17){valid41 = true;passing14 = 3;}}}}if(!valid41){const err160 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing14},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err160];}else {vErrors.push(err160);}errors++;}else {errors = _errs174;if(vErrors !== null){if(_errs174){vErrors.length = _errs174;}else {vErrors = null;}}}var _valid16 = _errs173 === errors;if(_valid16){valid40 = true;passing13 = 0;}const _errs183 = errors;const _errs184 = errors;let valid42 = false;let passing15 = null;const _errs185 = errors;if(typeof data36 !== "string"){const err161 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err161];}else {vErrors.push(err161);}errors++;}if("edit:qualityLowPrecision" !== data36){const err162 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err162];}else {vErrors.push(err162);}errors++;}var _valid18 = _errs185 === errors;if(_valid18){valid42 = true;passing15 = 0;}const _errs187 = errors;if(typeof data36 !== "string"){const err163 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err163];}else {vErrors.push(err163);}errors++;}if("edit:qualityMediumPrecision" !== data36){const err164 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err164];}else {vErrors.push(err164);}errors++;}var _valid18 = _errs187 === errors;if(_valid18 && valid42){valid42 = false;passing15 = [passing15, 1];}else {if(_valid18){valid42 = true;passing15 = 1;}const _errs189 = errors;if(typeof data36 !== "string"){const err165 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err165];}else {vErrors.push(err165);}errors++;}if("edit:qualityHighPrecision" !== data36){const err166 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err166];}else {vErrors.push(err166);}errors++;}var _valid18 = _errs189 === errors;if(_valid18 && valid42){valid42 = false;passing15 = [passing15, 2];}else {if(_valid18){valid42 = true;passing15 = 2;}const _errs191 = errors;if(typeof data36 !== "string"){const err167 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err167];}else {vErrors.push(err167);}errors++;}if("edit:qualityUnknownPrecision" !== data36){const err168 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err168];}else {vErrors.push(err168);}errors++;}var _valid18 = _errs191 === errors;if(_valid18 && valid42){valid42 = false;passing15 = [passing15, 3];}else {if(_valid18){valid42 = true;passing15 = 3;}}}}if(!valid42){const err169 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing15},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err169];}else {vErrors.push(err169);}errors++;}else {errors = _errs184;if(vErrors !== null){if(_errs184){vErrors.length = _errs184;}else {vErrors = null;}}}var _valid16 = _errs183 === errors;if(_valid16 && valid40){valid40 = false;passing13 = [passing13, 1];}else {if(_valid16){valid40 = true;passing13 = 1;}}if(!valid40){const err170 = {instancePath:instancePath+"/P2_has_type/" + i2,schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing13},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err170];}else {vErrors.push(err170);}errors++;}else {errors = _errs172;if(vErrors !== null){if(_errs172){vErrors.length = _errs172;}else {vErrors = null;}}}var valid39 = _errs171 === errors;}}const len14 = data35.length;if(len14 > 0){let data37 = data35[0];if(typeof data37 !== "string"){const err171 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err171];}else {vErrors.push(err171);}errors++;}if("correcting" !== data37){const err172 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err172];}else {vErrors.push(err172);}errors++;}}}else {const err173 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err173];}else {vErrors.push(err173);}errors++;}}}else {const err174 = {instancePath,schemaPath:"#/allOf/0/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err174];}else {vErrors.push(err174);}errors++;}var _valid15 = _errs165 === errors;valid34 = _valid15;ifClause2 = "then";}else {const _errs195 = errors;const _errs196 = errors;let valid44 = true;const _errs197 = errors;if(errors === _errs197){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data38 = data.body;const _errs199 = errors;if(errors === _errs199){if(data38 && typeof data38 == "object" && !Array.isArray(data38)){if(data38.type !== undefined){let data39 = data38.type;const _errs201 = errors;if(errors === _errs201){if(Array.isArray(data39)){if(data39.length > 3){const err175 = {};if(vErrors === null){vErrors = [err175];}else {vErrors.push(err175);}errors++;}else {if(data39.length < 3){const err176 = {};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}else {const len15 = data39.length;if(len15 > 0){let data40 = data39[0];const _errs203 = errors;if(typeof data40 !== "string"){const err177 = {};if(vErrors === null){vErrors = [err177];}else {vErrors.push(err177);}errors++;}if("TextualBody" !== data40){const err178 = {};if(vErrors === null){vErrors = [err178];}else {vErrors.push(err178);}errors++;}var valid47 = _errs203 === errors;}if(valid47){if(len15 > 1){let data41 = data39[1];const _errs205 = errors;if(typeof data41 !== "string"){const err179 = {};if(vErrors === null){vErrors = [err179];}else {vErrors.push(err179);}errors++;}if("crm:E55_Type" !== data41){const err180 = {};if(vErrors === null){vErrors = [err180];}else {vErrors.push(err180);}errors++;}var valid47 = _errs205 === errors;}if(valid47){if(len15 > 2){let data42 = data39[2];const _errs207 = errors;if(typeof data42 !== "string"){const err181 = {};if(vErrors === null){vErrors = [err181];}else {vErrors.push(err181);}errors++;}if("crm:E33_Linguistic_Object" !== data42){const err182 = {};if(vErrors === null){vErrors = [err182];}else {vErrors.push(err182);}errors++;}var valid47 = _errs207 === errors;}}}}}}else {const err183 = {};if(vErrors === null){vErrors = [err183];}else {vErrors.push(err183);}errors++;}}}}else {const err184 = {};if(vErrors === null){vErrors = [err184];}else {vErrors.push(err184);}errors++;}}}}else {const err185 = {};if(vErrors === null){vErrors = [err185];}else {vErrors.push(err185);}errors++;}}var _valid19 = _errs197 === errors;errors = _errs196;if(vErrors !== null){if(_errs196){vErrors.length = _errs196;}else {vErrors = null;}}let ifClause3;if(_valid19){const _errs209 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data43 = data.motivation;if(typeof data43 !== "string"){const err186 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err186];}else {vErrors.push(err186);}errors++;}if("oa:tagging" !== data43){const err187 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err187];}else {vErrors.push(err187);}errors++;}}if(data.P2_has_type !== undefined){let data44 = data.P2_has_type;if(Array.isArray(data44)){if(data44.length > 3){const err188 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err188];}else {vErrors.push(err188);}errors++;}if(data44.length < 1){const err189 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err189];}else {vErrors.push(err189);}errors++;}const len16 = data44.length;var valid49 = len16 <= 1;if(!valid49){for(let i3=1; i3<len16; i3++){let data45 = data44[i3];const _errs215 = errors;const _errs216 = errors;let valid50 = false;let passing16 = null;const _errs217 = errors;const _errs218 = errors;let valid51 = false;let passing17 = null;const _errs219 = errors;if(typeof data45 !== "string"){const err190 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err190];}else {vErrors.push(err190);}errors++;}if("edit:qualityLowCertainty" !== data45){const err191 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err191];}else {vErrors.push(err191);}errors++;}var _valid21 = _errs219 === errors;if(_valid21){valid51 = true;passing17 = 0;}const _errs221 = errors;if(typeof data45 !== "string"){const err192 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err192];}else {vErrors.push(err192);}errors++;}if("edit:qualityMediumCertainty" !== data45){const err193 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err193];}else {vErrors.push(err193);}errors++;}var _valid21 = _errs221 === errors;if(_valid21 && valid51){valid51 = false;passing17 = [passing17, 1];}else {if(_valid21){valid51 = true;passing17 = 1;}const _errs223 = errors;if(typeof data45 !== "string"){const err194 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}if("edit:qualityHighCertainty" !== data45){const err195 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err195];}else {vErrors.push(err195);}errors++;}var _valid21 = _errs223 === errors;if(_valid21 && valid51){valid51 = false;passing17 = [passing17, 2];}else {if(_valid21){valid51 = true;passing17 = 2;}const _errs225 = errors;if(typeof data45 !== "string"){const err196 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err196];}else {vErrors.push(err196);}errors++;}if("edit:qualityUnknownCertainty" !== data45){const err197 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}var _valid21 = _errs225 === errors;if(_valid21 && valid51){valid51 = false;passing17 = [passing17, 3];}else {if(_valid21){valid51 = true;passing17 = 3;}}}}if(!valid51){const err198 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing17},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err198];}else {vErrors.push(err198);}errors++;}else {errors = _errs218;if(vErrors !== null){if(_errs218){vErrors.length = _errs218;}else {vErrors = null;}}}var _valid20 = _errs217 === errors;if(_valid20){valid50 = true;passing16 = 0;}const _errs227 = errors;const _errs228 = errors;let valid52 = false;let passing18 = null;const _errs229 = errors;if(typeof data45 !== "string"){const err199 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err199];}else {vErrors.push(err199);}errors++;}if("edit:qualityLowPrecision" !== data45){const err200 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err200];}else {vErrors.push(err200);}errors++;}var _valid22 = _errs229 === errors;if(_valid22){valid52 = true;passing18 = 0;}const _errs231 = errors;if(typeof data45 !== "string"){const err201 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err201];}else {vErrors.push(err201);}errors++;}if("edit:qualityMediumPrecision" !== data45){const err202 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err202];}else {vErrors.push(err202);}errors++;}var _valid22 = _errs231 === errors;if(_valid22 && valid52){valid52 = false;passing18 = [passing18, 1];}else {if(_valid22){valid52 = true;passing18 = 1;}const _errs233 = errors;if(typeof data45 !== "string"){const err203 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err203];}else {vErrors.push(err203);}errors++;}if("edit:qualityHighPrecision" !== data45){const err204 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err204];}else {vErrors.push(err204);}errors++;}var _valid22 = _errs233 === errors;if(_valid22 && valid52){valid52 = false;passing18 = [passing18, 2];}else {if(_valid22){valid52 = true;passing18 = 2;}const _errs235 = errors;if(typeof data45 !== "string"){const err205 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err205];}else {vErrors.push(err205);}errors++;}if("edit:qualityUnknownPrecision" !== data45){const err206 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err206];}else {vErrors.push(err206);}errors++;}var _valid22 = _errs235 === errors;if(_valid22 && valid52){valid52 = false;passing18 = [passing18, 3];}else {if(_valid22){valid52 = true;passing18 = 3;}}}}if(!valid52){const err207 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing18},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err207];}else {vErrors.push(err207);}errors++;}else {errors = _errs228;if(vErrors !== null){if(_errs228){vErrors.length = _errs228;}else {vErrors = null;}}}var _valid20 = _errs227 === errors;if(_valid20 && valid50){valid50 = false;passing16 = [passing16, 1];}else {if(_valid20){valid50 = true;passing16 = 1;}}if(!valid50){const err208 = {instancePath:instancePath+"/P2_has_type/" + i3,schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing16},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err208];}else {vErrors.push(err208);}errors++;}else {errors = _errs216;if(vErrors !== null){if(_errs216){vErrors.length = _errs216;}else {vErrors = null;}}}var valid49 = _errs215 === errors;}}const len17 = data44.length;if(len17 > 0){let data46 = data44[0];if(typeof data46 !== "string"){const err209 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err209];}else {vErrors.push(err209);}errors++;}if("oa:tagging" !== data46){const err210 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "oa:tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err210];}else {vErrors.push(err210);}errors++;}}}else {const err211 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err211];}else {vErrors.push(err211);}errors++;}}}else {const err212 = {instancePath,schemaPath:"#/allOf/0/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err212];}else {vErrors.push(err212);}errors++;}var _valid19 = _errs209 === errors;valid44 = _valid19;ifClause3 = "then";}else {const _errs239 = errors;const _errs240 = errors;let valid54 = true;const _errs241 = errors;if(errors === _errs241){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data47 = data.body;const _errs243 = errors;if(errors === _errs243){if(data47 && typeof data47 == "object" && !Array.isArray(data47)){if(data47.type !== undefined){let data48 = data47.type;const _errs245 = errors;if(errors === _errs245){if(Array.isArray(data48)){if(data48.length > 2){const err213 = {};if(vErrors === null){vErrors = [err213];}else {vErrors.push(err213);}errors++;}else {if(data48.length < 2){const err214 = {};if(vErrors === null){vErrors = [err214];}else {vErrors.push(err214);}errors++;}else {const len18 = data48.length;if(len18 > 0){let data49 = data48[0];const _errs247 = errors;if(typeof data49 !== "string"){const err215 = {};if(vErrors === null){vErrors = [err215];}else {vErrors.push(err215);}errors++;}if("crm:E55_Type" !== data49){const err216 = {};if(vErrors === null){vErrors = [err216];}else {vErrors.push(err216);}errors++;}var valid57 = _errs247 === errors;}if(valid57){if(len18 > 1){let data50 = data48[1];const _errs249 = errors;if(typeof data50 !== "string"){const err217 = {};if(vErrors === null){vErrors = [err217];}else {vErrors.push(err217);}errors++;}if("crmdig:D1_Digital_Object" !== data50){const err218 = {};if(vErrors === null){vErrors = [err218];}else {vErrors.push(err218);}errors++;}var valid57 = _errs249 === errors;}}}}}else {const err219 = {};if(vErrors === null){vErrors = [err219];}else {vErrors.push(err219);}errors++;}}}}else {const err220 = {};if(vErrors === null){vErrors = [err220];}else {vErrors.push(err220);}errors++;}}}}else {const err221 = {};if(vErrors === null){vErrors = [err221];}else {vErrors.push(err221);}errors++;}}var _valid23 = _errs241 === errors;errors = _errs240;if(vErrors !== null){if(_errs240){vErrors.length = _errs240;}else {vErrors = null;}}let ifClause4;if(_valid23){const _errs251 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data51 = data.motivation;if(typeof data51 !== "string"){const err222 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err222];}else {vErrors.push(err222);}errors++;}if("oa:classifying" !== data51){const err223 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:classifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err223];}else {vErrors.push(err223);}errors++;}}if(data.P2_has_type !== undefined){let data52 = data.P2_has_type;if(Array.isArray(data52)){if(data52.length > 3){const err224 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err224];}else {vErrors.push(err224);}errors++;}if(data52.length < 1){const err225 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err225];}else {vErrors.push(err225);}errors++;}const len19 = data52.length;var valid59 = len19 <= 1;if(!valid59){for(let i4=1; i4<len19; i4++){let data53 = data52[i4];const _errs257 = errors;const _errs258 = errors;let valid60 = false;let passing19 = null;const _errs259 = errors;const _errs260 = errors;let valid61 = false;let passing20 = null;const _errs261 = errors;if(typeof data53 !== "string"){const err226 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err226];}else {vErrors.push(err226);}errors++;}if("edit:qualityLowCertainty" !== data53){const err227 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err227];}else {vErrors.push(err227);}errors++;}var _valid25 = _errs261 === errors;if(_valid25){valid61 = true;passing20 = 0;}const _errs263 = errors;if(typeof data53 !== "string"){const err228 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err228];}else {vErrors.push(err228);}errors++;}if("edit:qualityMediumCertainty" !== data53){const err229 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err229];}else {vErrors.push(err229);}errors++;}var _valid25 = _errs263 === errors;if(_valid25 && valid61){valid61 = false;passing20 = [passing20, 1];}else {if(_valid25){valid61 = true;passing20 = 1;}const _errs265 = errors;if(typeof data53 !== "string"){const err230 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err230];}else {vErrors.push(err230);}errors++;}if("edit:qualityHighCertainty" !== data53){const err231 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err231];}else {vErrors.push(err231);}errors++;}var _valid25 = _errs265 === errors;if(_valid25 && valid61){valid61 = false;passing20 = [passing20, 2];}else {if(_valid25){valid61 = true;passing20 = 2;}const _errs267 = errors;if(typeof data53 !== "string"){const err232 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}if("edit:qualityUnknownCertainty" !== data53){const err233 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err233];}else {vErrors.push(err233);}errors++;}var _valid25 = _errs267 === errors;if(_valid25 && valid61){valid61 = false;passing20 = [passing20, 3];}else {if(_valid25){valid61 = true;passing20 = 3;}}}}if(!valid61){const err234 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing20},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err234];}else {vErrors.push(err234);}errors++;}else {errors = _errs260;if(vErrors !== null){if(_errs260){vErrors.length = _errs260;}else {vErrors = null;}}}var _valid24 = _errs259 === errors;if(_valid24){valid60 = true;passing19 = 0;}const _errs269 = errors;const _errs270 = errors;let valid62 = false;let passing21 = null;const _errs271 = errors;if(typeof data53 !== "string"){const err235 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err235];}else {vErrors.push(err235);}errors++;}if("edit:qualityLowPrecision" !== data53){const err236 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err236];}else {vErrors.push(err236);}errors++;}var _valid26 = _errs271 === errors;if(_valid26){valid62 = true;passing21 = 0;}const _errs273 = errors;if(typeof data53 !== "string"){const err237 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err237];}else {vErrors.push(err237);}errors++;}if("edit:qualityMediumPrecision" !== data53){const err238 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err238];}else {vErrors.push(err238);}errors++;}var _valid26 = _errs273 === errors;if(_valid26 && valid62){valid62 = false;passing21 = [passing21, 1];}else {if(_valid26){valid62 = true;passing21 = 1;}const _errs275 = errors;if(typeof data53 !== "string"){const err239 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err239];}else {vErrors.push(err239);}errors++;}if("edit:qualityHighPrecision" !== data53){const err240 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err240];}else {vErrors.push(err240);}errors++;}var _valid26 = _errs275 === errors;if(_valid26 && valid62){valid62 = false;passing21 = [passing21, 2];}else {if(_valid26){valid62 = true;passing21 = 2;}const _errs277 = errors;if(typeof data53 !== "string"){const err241 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err241];}else {vErrors.push(err241);}errors++;}if("edit:qualityUnknownPrecision" !== data53){const err242 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err242];}else {vErrors.push(err242);}errors++;}var _valid26 = _errs277 === errors;if(_valid26 && valid62){valid62 = false;passing21 = [passing21, 3];}else {if(_valid26){valid62 = true;passing21 = 3;}}}}if(!valid62){const err243 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing21},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err243];}else {vErrors.push(err243);}errors++;}else {errors = _errs270;if(vErrors !== null){if(_errs270){vErrors.length = _errs270;}else {vErrors = null;}}}var _valid24 = _errs269 === errors;if(_valid24 && valid60){valid60 = false;passing19 = [passing19, 1];}else {if(_valid24){valid60 = true;passing19 = 1;}}if(!valid60){const err244 = {instancePath:instancePath+"/P2_has_type/" + i4,schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing19},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err244];}else {vErrors.push(err244);}errors++;}else {errors = _errs258;if(vErrors !== null){if(_errs258){vErrors.length = _errs258;}else {vErrors = null;}}}var valid59 = _errs257 === errors;}}const len20 = data52.length;if(len20 > 0){let data54 = data52[0];if(typeof data54 !== "string"){const err245 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err245];}else {vErrors.push(err245);}errors++;}if("oa:classifying" !== data54){const err246 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "oa:classifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err246];}else {vErrors.push(err246);}errors++;}}}else {const err247 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err247];}else {vErrors.push(err247);}errors++;}}}else {const err248 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err248];}else {vErrors.push(err248);}errors++;}var _valid23 = _errs251 === errors;valid54 = _valid23;ifClause4 = "then";}else {const _errs281 = errors;const _errs282 = errors;let valid64 = true;const _errs283 = errors;if(errors === _errs283){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data55 = data.body;const _errs285 = errors;if(errors === _errs285){if(data55 && typeof data55 == "object" && !Array.isArray(data55)){if(data55.type !== undefined){let data56 = data55.type;if(typeof data56 !== "string"){const err249 = {};if(vErrors === null){vErrors = [err249];}else {vErrors.push(err249);}errors++;}if("crmdig:D1_Digital_Object" !== data56){const err250 = {};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}}}else {const err251 = {};if(vErrors === null){vErrors = [err251];}else {vErrors.push(err251);}errors++;}}}}else {const err252 = {};if(vErrors === null){vErrors = [err252];}else {vErrors.push(err252);}errors++;}}var _valid27 = _errs283 === errors;errors = _errs282;if(vErrors !== null){if(_errs282){vErrors.length = _errs282;}else {vErrors = null;}}let ifClause5;if(_valid27){const _errs289 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data57 = data.motivation;if(typeof data57 !== "string"){const err253 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}if("oa:linking" !== data57){const err254 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "oa:linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err254];}else {vErrors.push(err254);}errors++;}}if(data.P2_has_type !== undefined){let data58 = data.P2_has_type;if(Array.isArray(data58)){if(data58.length > 3){const err255 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err255];}else {vErrors.push(err255);}errors++;}if(data58.length < 1){const err256 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err256];}else {vErrors.push(err256);}errors++;}const len21 = data58.length;var valid68 = len21 <= 1;if(!valid68){for(let i5=1; i5<len21; i5++){let data59 = data58[i5];const _errs295 = errors;const _errs296 = errors;let valid69 = false;let passing22 = null;const _errs297 = errors;const _errs298 = errors;let valid70 = false;let passing23 = null;const _errs299 = errors;if(typeof data59 !== "string"){const err257 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err257];}else {vErrors.push(err257);}errors++;}if("edit:qualityLowCertainty" !== data59){const err258 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err258];}else {vErrors.push(err258);}errors++;}var _valid29 = _errs299 === errors;if(_valid29){valid70 = true;passing23 = 0;}const _errs301 = errors;if(typeof data59 !== "string"){const err259 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err259];}else {vErrors.push(err259);}errors++;}if("edit:qualityMediumCertainty" !== data59){const err260 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err260];}else {vErrors.push(err260);}errors++;}var _valid29 = _errs301 === errors;if(_valid29 && valid70){valid70 = false;passing23 = [passing23, 1];}else {if(_valid29){valid70 = true;passing23 = 1;}const _errs303 = errors;if(typeof data59 !== "string"){const err261 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err261];}else {vErrors.push(err261);}errors++;}if("edit:qualityHighCertainty" !== data59){const err262 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err262];}else {vErrors.push(err262);}errors++;}var _valid29 = _errs303 === errors;if(_valid29 && valid70){valid70 = false;passing23 = [passing23, 2];}else {if(_valid29){valid70 = true;passing23 = 2;}const _errs305 = errors;if(typeof data59 !== "string"){const err263 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err263];}else {vErrors.push(err263);}errors++;}if("edit:qualityUnknownCertainty" !== data59){const err264 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err264];}else {vErrors.push(err264);}errors++;}var _valid29 = _errs305 === errors;if(_valid29 && valid70){valid70 = false;passing23 = [passing23, 3];}else {if(_valid29){valid70 = true;passing23 = 3;}}}}if(!valid70){const err265 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing23},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err265];}else {vErrors.push(err265);}errors++;}else {errors = _errs298;if(vErrors !== null){if(_errs298){vErrors.length = _errs298;}else {vErrors = null;}}}var _valid28 = _errs297 === errors;if(_valid28){valid69 = true;passing22 = 0;}const _errs307 = errors;const _errs308 = errors;let valid71 = false;let passing24 = null;const _errs309 = errors;if(typeof data59 !== "string"){const err266 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err266];}else {vErrors.push(err266);}errors++;}if("edit:qualityLowPrecision" !== data59){const err267 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err267];}else {vErrors.push(err267);}errors++;}var _valid30 = _errs309 === errors;if(_valid30){valid71 = true;passing24 = 0;}const _errs311 = errors;if(typeof data59 !== "string"){const err268 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err268];}else {vErrors.push(err268);}errors++;}if("edit:qualityMediumPrecision" !== data59){const err269 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err269];}else {vErrors.push(err269);}errors++;}var _valid30 = _errs311 === errors;if(_valid30 && valid71){valid71 = false;passing24 = [passing24, 1];}else {if(_valid30){valid71 = true;passing24 = 1;}const _errs313 = errors;if(typeof data59 !== "string"){const err270 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err270];}else {vErrors.push(err270);}errors++;}if("edit:qualityHighPrecision" !== data59){const err271 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err271];}else {vErrors.push(err271);}errors++;}var _valid30 = _errs313 === errors;if(_valid30 && valid71){valid71 = false;passing24 = [passing24, 2];}else {if(_valid30){valid71 = true;passing24 = 2;}const _errs315 = errors;if(typeof data59 !== "string"){const err272 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err272];}else {vErrors.push(err272);}errors++;}if("edit:qualityUnknownPrecision" !== data59){const err273 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err273];}else {vErrors.push(err273);}errors++;}var _valid30 = _errs315 === errors;if(_valid30 && valid71){valid71 = false;passing24 = [passing24, 3];}else {if(_valid30){valid71 = true;passing24 = 3;}}}}if(!valid71){const err274 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing24},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err274];}else {vErrors.push(err274);}errors++;}else {errors = _errs308;if(vErrors !== null){if(_errs308){vErrors.length = _errs308;}else {vErrors = null;}}}var _valid28 = _errs307 === errors;if(_valid28 && valid69){valid69 = false;passing22 = [passing22, 1];}else {if(_valid28){valid69 = true;passing22 = 1;}}if(!valid69){const err275 = {instancePath:instancePath+"/P2_has_type/" + i5,schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing22},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err275];}else {vErrors.push(err275);}errors++;}else {errors = _errs296;if(vErrors !== null){if(_errs296){vErrors.length = _errs296;}else {vErrors = null;}}}var valid68 = _errs295 === errors;}}const len22 = data58.length;if(len22 > 0){let data60 = data58[0];if(typeof data60 !== "string"){const err276 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err276];}else {vErrors.push(err276);}errors++;}if("oa:linking" !== data60){const err277 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "oa:linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err277];}else {vErrors.push(err277);}errors++;}}}else {const err278 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err278];}else {vErrors.push(err278);}errors++;}}}else {const err279 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err279];}else {vErrors.push(err279);}errors++;}var _valid27 = _errs289 === errors;valid64 = _valid27;ifClause5 = "then";}else {const _errs319 = errors;const _errs320 = errors;let valid73 = true;const _errs321 = errors;if(errors === _errs321){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data61 = data.body;const _errs323 = errors;if(errors === _errs323){if(data61 && typeof data61 == "object" && !Array.isArray(data61)){if(data61.type !== undefined){let data62 = data61.type;const _errs325 = errors;if(errors === _errs325){if(Array.isArray(data62)){if(data62.length > 2){const err280 = {};if(vErrors === null){vErrors = [err280];}else {vErrors.push(err280);}errors++;}else {if(data62.length < 2){const err281 = {};if(vErrors === null){vErrors = [err281];}else {vErrors.push(err281);}errors++;}else {const len23 = data62.length;if(len23 > 0){let data63 = data62[0];const _errs327 = errors;if(typeof data63 !== "string"){const err282 = {};if(vErrors === null){vErrors = [err282];}else {vErrors.push(err282);}errors++;}if("cito:Citation" !== data63){const err283 = {};if(vErrors === null){vErrors = [err283];}else {vErrors.push(err283);}errors++;}var valid76 = _errs327 === errors;}if(valid76){if(len23 > 1){let data64 = data62[1];const _errs329 = errors;if(typeof data64 !== "string"){const err284 = {};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}if("crm:E73_Information_Object" !== data64){const err285 = {};if(vErrors === null){vErrors = [err285];}else {vErrors.push(err285);}errors++;}var valid76 = _errs329 === errors;}}}}}else {const err286 = {};if(vErrors === null){vErrors = [err286];}else {vErrors.push(err286);}errors++;}}}}else {const err287 = {};if(vErrors === null){vErrors = [err287];}else {vErrors.push(err287);}errors++;}}}}else {const err288 = {};if(vErrors === null){vErrors = [err288];}else {vErrors.push(err288);}errors++;}}var _valid31 = _errs321 === errors;errors = _errs320;if(vErrors !== null){if(_errs320){vErrors.length = _errs320;}else {vErrors = null;}}if(_valid31){const _errs331 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.motivation !== undefined){let data65 = data.motivation;if(typeof data65 !== "string"){const err289 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err289];}else {vErrors.push(err289);}errors++;}if("citing" !== data65){const err290 = {instancePath:instancePath+"/motivation",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/motivation/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err290];}else {vErrors.push(err290);}errors++;}}if(data.P2_has_type !== undefined){let data66 = data.P2_has_type;if(Array.isArray(data66)){if(data66.length > 3){const err291 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err291];}else {vErrors.push(err291);}errors++;}if(data66.length < 1){const err292 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err292];}else {vErrors.push(err292);}errors++;}const len24 = data66.length;var valid78 = len24 <= 1;if(!valid78){for(let i6=1; i6<len24; i6++){let data67 = data66[i6];const _errs337 = errors;const _errs338 = errors;let valid79 = false;let passing25 = null;const _errs339 = errors;const _errs340 = errors;let valid80 = false;let passing26 = null;const _errs341 = errors;if(typeof data67 !== "string"){const err293 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err293];}else {vErrors.push(err293);}errors++;}if("edit:qualityLowCertainty" !== data67){const err294 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err294];}else {vErrors.push(err294);}errors++;}var _valid33 = _errs341 === errors;if(_valid33){valid80 = true;passing26 = 0;}const _errs343 = errors;if(typeof data67 !== "string"){const err295 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err295];}else {vErrors.push(err295);}errors++;}if("edit:qualityMediumCertainty" !== data67){const err296 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err296];}else {vErrors.push(err296);}errors++;}var _valid33 = _errs343 === errors;if(_valid33 && valid80){valid80 = false;passing26 = [passing26, 1];}else {if(_valid33){valid80 = true;passing26 = 1;}const _errs345 = errors;if(typeof data67 !== "string"){const err297 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err297];}else {vErrors.push(err297);}errors++;}if("edit:qualityHighCertainty" !== data67){const err298 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err298];}else {vErrors.push(err298);}errors++;}var _valid33 = _errs345 === errors;if(_valid33 && valid80){valid80 = false;passing26 = [passing26, 2];}else {if(_valid33){valid80 = true;passing26 = 2;}const _errs347 = errors;if(typeof data67 !== "string"){const err299 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err299];}else {vErrors.push(err299);}errors++;}if("edit:qualityUnknownCertainty" !== data67){const err300 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err300];}else {vErrors.push(err300);}errors++;}var _valid33 = _errs347 === errors;if(_valid33 && valid80){valid80 = false;passing26 = [passing26, 3];}else {if(_valid33){valid80 = true;passing26 = 3;}}}}if(!valid80){const err301 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing26},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err301];}else {vErrors.push(err301);}errors++;}else {errors = _errs340;if(vErrors !== null){if(_errs340){vErrors.length = _errs340;}else {vErrors = null;}}}var _valid32 = _errs339 === errors;if(_valid32){valid79 = true;passing25 = 0;}const _errs349 = errors;const _errs350 = errors;let valid81 = false;let passing27 = null;const _errs351 = errors;if(typeof data67 !== "string"){const err302 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}if("edit:qualityLowPrecision" !== data67){const err303 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err303];}else {vErrors.push(err303);}errors++;}var _valid34 = _errs351 === errors;if(_valid34){valid81 = true;passing27 = 0;}const _errs353 = errors;if(typeof data67 !== "string"){const err304 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err304];}else {vErrors.push(err304);}errors++;}if("edit:qualityMediumPrecision" !== data67){const err305 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}var _valid34 = _errs353 === errors;if(_valid34 && valid81){valid81 = false;passing27 = [passing27, 1];}else {if(_valid34){valid81 = true;passing27 = 1;}const _errs355 = errors;if(typeof data67 !== "string"){const err306 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err306];}else {vErrors.push(err306);}errors++;}if("edit:qualityHighPrecision" !== data67){const err307 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err307];}else {vErrors.push(err307);}errors++;}var _valid34 = _errs355 === errors;if(_valid34 && valid81){valid81 = false;passing27 = [passing27, 2];}else {if(_valid34){valid81 = true;passing27 = 2;}const _errs357 = errors;if(typeof data67 !== "string"){const err308 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err308];}else {vErrors.push(err308);}errors++;}if("edit:qualityUnknownPrecision" !== data67){const err309 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err309];}else {vErrors.push(err309);}errors++;}var _valid34 = _errs357 === errors;if(_valid34 && valid81){valid81 = false;passing27 = [passing27, 3];}else {if(_valid34){valid81 = true;passing27 = 3;}}}}if(!valid81){const err310 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing27},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err310];}else {vErrors.push(err310);}errors++;}else {errors = _errs350;if(vErrors !== null){if(_errs350){vErrors.length = _errs350;}else {vErrors = null;}}}var _valid32 = _errs349 === errors;if(_valid32 && valid79){valid79 = false;passing25 = [passing25, 1];}else {if(_valid32){valid79 = true;passing25 = 1;}}if(!valid79){const err311 = {instancePath:instancePath+"/P2_has_type/" + i6,schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing25},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err311];}else {vErrors.push(err311);}errors++;}else {errors = _errs338;if(vErrors !== null){if(_errs338){vErrors.length = _errs338;}else {vErrors = null;}}}var valid78 = _errs337 === errors;}}const len25 = data66.length;if(len25 > 0){let data68 = data66[0];if(typeof data68 !== "string"){const err312 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err312];}else {vErrors.push(err312);}errors++;}if("citing" !== data68){const err313 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/items/0/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err313];}else {vErrors.push(err313);}errors++;}}}else {const err314 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/allOf/0/else/else/else/else/else/else/then/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err314];}else {vErrors.push(err314);}errors++;}}}else {const err315 = {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 = [err315];}else {vErrors.push(err315);}errors++;}var _valid31 = _errs331 === errors;valid73 = _valid31;}if(!valid73){const err316 = {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 = [err316];}else {vErrors.push(err316);}errors++;}var _valid27 = _errs319 === errors;valid64 = _valid27;ifClause5 = "else";}if(!valid64){const err317 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause5},message:"must match \""+ifClause5+"\" schema"};if(vErrors === null){vErrors = [err317];}else {vErrors.push(err317);}errors++;}var _valid23 = _errs281 === errors;valid54 = _valid23;ifClause4 = "else";}if(!valid54){const err318 = {instancePath,schemaPath:"#/allOf/0/else/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause4},message:"must match \""+ifClause4+"\" schema"};if(vErrors === null){vErrors = [err318];}else {vErrors.push(err318);}errors++;}var _valid19 = _errs239 === errors;valid44 = _valid19;ifClause3 = "else";}if(!valid44){const err319 = {instancePath,schemaPath:"#/allOf/0/else/else/else/if",keyword:"if",params:{failingKeyword: ifClause3},message:"must match \""+ifClause3+"\" schema"};if(vErrors === null){vErrors = [err319];}else {vErrors.push(err319);}errors++;}var _valid15 = _errs195 === errors;valid34 = _valid15;ifClause2 = "else";}if(!valid34){const err320 = {instancePath,schemaPath:"#/allOf/0/else/else/if",keyword:"if",params:{failingKeyword: ifClause2},message:"must match \""+ifClause2+"\" schema"};if(vErrors === null){vErrors = [err320];}else {vErrors.push(err320);}errors++;}var _valid11 = _errs151 === errors;valid24 = _valid11;ifClause1 = "else";}if(!valid24){const err321 = {instancePath,schemaPath:"#/allOf/0/else/if",keyword:"if",params:{failingKeyword: ifClause1},message:"must match \""+ifClause1+"\" schema"};if(vErrors === null){vErrors = [err321];}else {vErrors.push(err321);}errors++;}var _valid0 = _errs109 === errors;valid1 = _valid0;ifClause0 = "else";}if(!valid1){const err322 = {instancePath,schemaPath:"#/allOf/0/if",keyword:"if",params:{failingKeyword: ifClause0},message:"must match \""+ifClause0+"\" schema"};if(vErrors === null){vErrors = [err322];}else {vErrors.push(err322);}errors++;}const _errs362 = errors;let valid83 = true;const _errs363 = errors;if(errors === _errs363){if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data69 = data.body;const _errs365 = errors;if(errors === _errs365){if(data69 && typeof data69 == "object" && !Array.isArray(data69)){if(data69.type !== undefined){let data70 = data69.type;if(typeof data70 !== "string"){const err323 = {};if(vErrors === null){vErrors = [err323];}else {vErrors.push(err323);}errors++;}if("Choice" !== data70){const err324 = {};if(vErrors === null){vErrors = [err324];}else {vErrors.push(err324);}errors++;}}}else {const err325 = {};if(vErrors === null){vErrors = [err325];}else {vErrors.push(err325);}errors++;}}}}else {const err326 = {};if(vErrors === null){vErrors = [err326];}else {vErrors.push(err326);}errors++;}}var _valid35 = _errs363 === errors;errors = _errs362;if(vErrors !== null){if(_errs362){vErrors.length = _errs362;}else {vErrors = null;}}let ifClause6;if(_valid35){const _errs369 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){if(!(validate12(data.body, {instancePath:instancePath+"/body",parentData:data,parentDataProperty:"body",rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}}}else {const err327 = {instancePath,schemaPath:"#/allOf/1/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err327];}else {vErrors.push(err327);}errors++;}var _valid35 = _errs369 === errors;valid83 = _valid35;ifClause6 = "then";}else {const _errs372 = errors;if(data && typeof data == "object" && !Array.isArray(data)){if(data.body !== undefined){let data72 = data.body;const _errs375 = errors;let valid88 = false;let passing28 = null;const _errs376 = errors;const _errs379 = errors;let valid90 = false;const _errs380 = errors;const _errs381 = errors;let valid91 = true;const _errs382 = errors;if(errors === _errs382){if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.type !== undefined){let data73 = data72.type;const _errs385 = errors;let valid93 = false;const _errs386 = errors;if(errors === _errs386){if(Array.isArray(data73)){if(data73.length > 2){const err328 = {};if(vErrors === null){vErrors = [err328];}else {vErrors.push(err328);}errors++;}else {if(data73.length < 2){const err329 = {};if(vErrors === null){vErrors = [err329];}else {vErrors.push(err329);}errors++;}else {const len26 = data73.length;if(len26 > 0){let data74 = data73[0];const _errs388 = errors;if(typeof data74 !== "string"){const err330 = {};if(vErrors === null){vErrors = [err330];}else {vErrors.push(err330);}errors++;}if("TextualBody" !== data74){const err331 = {};if(vErrors === null){vErrors = [err331];}else {vErrors.push(err331);}errors++;}var valid94 = _errs388 === errors;}if(valid94){if(len26 > 1){let data75 = data73[1];const _errs390 = errors;if(typeof data75 !== "string"){const err332 = {};if(vErrors === null){vErrors = [err332];}else {vErrors.push(err332);}errors++;}if("crm:E33_Linguistic_Object" !== data75){const err333 = {};if(vErrors === null){vErrors = [err333];}else {vErrors.push(err333);}errors++;}var valid94 = _errs390 === errors;}}}}}else {const err334 = {};if(vErrors === null){vErrors = [err334];}else {vErrors.push(err334);}errors++;}}var _valid39 = _errs386 === errors;valid93 = valid93 || _valid39;if(!valid93){const _errs392 = errors;if(errors === _errs392){if(Array.isArray(data73)){if(data73.length > 3){const err335 = {};if(vErrors === null){vErrors = [err335];}else {vErrors.push(err335);}errors++;}else {if(data73.length < 3){const err336 = {};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}else {const len27 = data73.length;if(len27 > 0){let data76 = data73[0];const _errs394 = errors;if(typeof data76 !== "string"){const err337 = {};if(vErrors === null){vErrors = [err337];}else {vErrors.push(err337);}errors++;}if("TextualBody" !== data76){const err338 = {};if(vErrors === null){vErrors = [err338];}else {vErrors.push(err338);}errors++;}var valid95 = _errs394 === errors;}if(valid95){if(len27 > 1){let data77 = data73[1];const _errs396 = errors;if(typeof data77 !== "string"){const err339 = {};if(vErrors === null){vErrors = [err339];}else {vErrors.push(err339);}errors++;}if("xsd:date" !== data77){const err340 = {};if(vErrors === null){vErrors = [err340];}else {vErrors.push(err340);}errors++;}var valid95 = _errs396 === errors;}if(valid95){if(len27 > 2){let data78 = data73[2];const _errs398 = errors;if(typeof data78 !== "string"){const err341 = {};if(vErrors === null){vErrors = [err341];}else {vErrors.push(err341);}errors++;}if("crm:E52_Time-Span" !== data78){const err342 = {};if(vErrors === null){vErrors = [err342];}else {vErrors.push(err342);}errors++;}var valid95 = _errs398 === errors;}}}}}}else {const err343 = {};if(vErrors === null){vErrors = [err343];}else {vErrors.push(err343);}errors++;}}var _valid39 = _errs392 === errors;valid93 = valid93 || _valid39;if(!valid93){const _errs400 = errors;if(errors === _errs400){if(Array.isArray(data73)){if(data73.length > 3){const err344 = {};if(vErrors === null){vErrors = [err344];}else {vErrors.push(err344);}errors++;}else {if(data73.length < 3){const err345 = {};if(vErrors === null){vErrors = [err345];}else {vErrors.push(err345);}errors++;}else {const len28 = data73.length;if(len28 > 0){let data79 = data73[0];const _errs402 = errors;if(typeof data79 !== "string"){const err346 = {};if(vErrors === null){vErrors = [err346];}else {vErrors.push(err346);}errors++;}if("TextualBody" !== data79){const err347 = {};if(vErrors === null){vErrors = [err347];}else {vErrors.push(err347);}errors++;}var valid96 = _errs402 === errors;}if(valid96){if(len28 > 1){let data80 = data73[1];const _errs404 = errors;if(typeof data80 !== "string"){const err348 = {};if(vErrors === null){vErrors = [err348];}else {vErrors.push(err348);}errors++;}if("fabio:Correction" !== data80){const err349 = {};if(vErrors === null){vErrors = [err349];}else {vErrors.push(err349);}errors++;}var valid96 = _errs404 === errors;}if(valid96){if(len28 > 2){let data81 = data73[2];const _errs406 = errors;if(typeof data81 !== "string"){const err350 = {};if(vErrors === null){vErrors = [err350];}else {vErrors.push(err350);}errors++;}if("crm:E33_Linguistic_Object" !== data81){const err351 = {};if(vErrors === null){vErrors = [err351];}else {vErrors.push(err351);}errors++;}var valid96 = _errs406 === errors;}}}}}}else {const err352 = {};if(vErrors === null){vErrors = [err352];}else {vErrors.push(err352);}errors++;}}var _valid39 = _errs400 === errors;valid93 = valid93 || _valid39;if(!valid93){const _errs408 = errors;if(errors === _errs408){if(Array.isArray(data73)){if(data73.length > 3){const err353 = {};if(vErrors === null){vErrors = [err353];}else {vErrors.push(err353);}errors++;}else {if(data73.length < 3){const err354 = {};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}else {const len29 = data73.length;if(len29 > 0){let data82 = data73[0];const _errs410 = errors;if(typeof data82 !== "string"){const err355 = {};if(vErrors === null){vErrors = [err355];}else {vErrors.push(err355);}errors++;}if("TextualBody" !== data82){const err356 = {};if(vErrors === null){vErrors = [err356];}else {vErrors.push(err356);}errors++;}var valid97 = _errs410 === errors;}if(valid97){if(len29 > 1){let data83 = data73[1];const _errs412 = errors;if(typeof data83 !== "string"){const err357 = {};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}if("crm:E55_Type" !== data83){const err358 = {};if(vErrors === null){vErrors = [err358];}else {vErrors.push(err358);}errors++;}var valid97 = _errs412 === errors;}if(valid97){if(len29 > 2){let data84 = data73[2];const _errs414 = errors;if(typeof data84 !== "string"){const err359 = {};if(vErrors === null){vErrors = [err359];}else {vErrors.push(err359);}errors++;}if("crm:E33_Linguistic_Object" !== data84){const err360 = {};if(vErrors === null){vErrors = [err360];}else {vErrors.push(err360);}errors++;}var valid97 = _errs414 === errors;}}}}}}else {const err361 = {};if(vErrors === null){vErrors = [err361];}else {vErrors.push(err361);}errors++;}}var _valid39 = _errs408 === errors;valid93 = valid93 || _valid39;}}}if(!valid93){const err362 = {};if(vErrors === null){vErrors = [err362];}else {vErrors.push(err362);}errors++;}else {errors = _errs385;if(vErrors !== null){if(_errs385){vErrors.length = _errs385;}else {vErrors = null;}}}}}else {const err363 = {};if(vErrors === null){vErrors = [err363];}else {vErrors.push(err363);}errors++;}}var _valid38 = _errs382 === errors;errors = _errs381;if(vErrors !== null){if(_errs381){vErrors.length = _errs381;}else {vErrors = null;}}if(_valid38){const _errs416 = errors;const _errs418 = errors;let valid98 = true;const _errs419 = errors;if(errors === _errs419){if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.type !== undefined){let data85 = data72.type;const _errs421 = errors;if(errors === _errs421){if(Array.isArray(data85)){if(data85.length > 3){const err364 = {};if(vErrors === null){vErrors = [err364];}else {vErrors.push(err364);}errors++;}else {if(data85.length < 3){const err365 = {};if(vErrors === null){vErrors = [err365];}else {vErrors.push(err365);}errors++;}else {const len30 = data85.length;if(len30 > 0){let data86 = data85[0];const _errs423 = errors;if(typeof data86 !== "string"){const err366 = {};if(vErrors === null){vErrors = [err366];}else {vErrors.push(err366);}errors++;}if("TextualBody" !== data86){const err367 = {};if(vErrors === null){vErrors = [err367];}else {vErrors.push(err367);}errors++;}var valid100 = _errs423 === errors;}if(valid100){if(len30 > 1){let data87 = data85[1];const _errs425 = errors;if(typeof data87 !== "string"){const err368 = {};if(vErrors === null){vErrors = [err368];}else {vErrors.push(err368);}errors++;}if("xsd:date" !== data87){const err369 = {};if(vErrors === null){vErrors = [err369];}else {vErrors.push(err369);}errors++;}var valid100 = _errs425 === errors;}if(valid100){if(len30 > 2){let data88 = data85[2];const _errs427 = errors;if(typeof data88 !== "string"){const err370 = {};if(vErrors === null){vErrors = [err370];}else {vErrors.push(err370);}errors++;}if("crm:E52_Time-Span" !== data88){const err371 = {};if(vErrors === null){vErrors = [err371];}else {vErrors.push(err371);}errors++;}var valid100 = _errs427 === errors;}}}}}}else {const err372 = {};if(vErrors === null){vErrors = [err372];}else {vErrors.push(err372);}errors++;}}}}else {const err373 = {};if(vErrors === null){vErrors = [err373];}else {vErrors.push(err373);}errors++;}}var _valid40 = _errs419 === errors;errors = _errs418;if(vErrors !== null){if(_errs418){vErrors.length = _errs418;}else {vErrors = null;}}if(_valid40){const _errs429 = errors;if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.id === undefined){const err374 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err374];}else {vErrors.push(err374);}errors++;}if(data72.type === undefined){const err375 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err375];}else {vErrors.push(err375);}errors++;}if(data72.value === undefined){const err376 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err376];}else {vErrors.push(err376);}errors++;}if(data72.value !== undefined){let data89 = data72.value;if(typeof data89 === "string"){if(!pattern0.test(data89)){const err377 = {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 = [err377];}else {vErrors.push(err377);}errors++;}}else {const err378 = {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 = [err378];}else {vErrors.push(err378);}errors++;}}}else {const err379 = {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 = [err379];}else {vErrors.push(err379);}errors++;}var _valid40 = _errs429 === errors;valid98 = _valid40;}if(!valid98){const err380 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err380];}else {vErrors.push(err380);}errors++;}if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.id === undefined){const err381 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err381];}else {vErrors.push(err381);}errors++;}if(data72.type === undefined){const err382 = {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 = [err382];}else {vErrors.push(err382);}errors++;}if(data72.value === undefined){const err383 = {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 = [err383];}else {vErrors.push(err383);}errors++;}}else {const err384 = {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 = [err384];}else {vErrors.push(err384);}errors++;}var _valid38 = _errs416 === errors;valid91 = _valid38;}if(!valid91){const err385 = {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 = [err385];}else {vErrors.push(err385);}errors++;}var _valid37 = _errs380 === errors;valid90 = valid90 || _valid37;if(!valid90){const err386 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err386];}else {vErrors.push(err386);}errors++;}else {errors = _errs379;if(vErrors !== null){if(_errs379){vErrors.length = _errs379;}else {vErrors = null;}}}if(data72 && typeof data72 == "object" && !Array.isArray(data72)){if(data72.id === undefined){const err387 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err387];}else {vErrors.push(err387);}errors++;}if(data72.type === undefined){const err388 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err388];}else {vErrors.push(err388);}errors++;}for(const key0 in data72){if(!((((((key0 === "id") || (key0 === "type")) || (key0 === "value")) || (key0 === "label")) || (key0 === "P2_has_type")) || (key0 === "description"))){const err389 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key0},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err389];}else {vErrors.push(err389);}errors++;}}if(data72.id !== undefined){let data90 = data72.id;if(typeof data90 === "string"){if(!(formats0(data90))){const err390 = {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 = [err390];}else {vErrors.push(err390);}errors++;}}else {const err391 = {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 = [err391];}else {vErrors.push(err391);}errors++;}}if(data72.type !== undefined){let data91 = data72.type;const _errs437 = errors;let valid103 = false;let passing29 = null;const _errs438 = errors;const _errs439 = errors;let valid104 = false;let passing30 = null;const _errs440 = errors;if(typeof data91 !== "string"){const err392 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err392];}else {vErrors.push(err392);}errors++;}if("crm:E21_Person" !== data91){const err393 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err393];}else {vErrors.push(err393);}errors++;}var _valid42 = _errs440 === errors;if(_valid42){valid104 = true;passing30 = 0;}const _errs442 = errors;if(Array.isArray(data91)){if(data91.length > 2){const err394 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err394];}else {vErrors.push(err394);}errors++;}if(data91.length < 2){const err395 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err395];}else {vErrors.push(err395);}errors++;}const len31 = data91.length;if(len31 > 0){let data92 = data91[0];if(typeof data92 !== "string"){const err396 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err396];}else {vErrors.push(err396);}errors++;}if("foaf:Person" !== data92){const err397 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err397];}else {vErrors.push(err397);}errors++;}}if(len31 > 1){let data93 = data91[1];if(typeof data93 !== "string"){const err398 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}if("crm:E89_Propositional_Object" !== data93){const err399 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}}}else {const err400 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err400];}else {vErrors.push(err400);}errors++;}var _valid42 = _errs442 === errors;if(_valid42 && valid104){valid104 = false;passing30 = [passing30, 1];}else {if(_valid42){valid104 = true;passing30 = 1;}}if(!valid104){const err401 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing30},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}else {errors = _errs439;if(vErrors !== null){if(_errs439){vErrors.length = _errs439;}else {vErrors = null;}}}var _valid41 = _errs438 === errors;if(_valid41){valid103 = true;passing29 = 0;}const _errs448 = errors;const _errs449 = errors;let valid106 = false;let passing31 = null;const _errs450 = errors;if(typeof data91 !== "string"){const err402 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err402];}else {vErrors.push(err402);}errors++;}if("crm:E53_Place" !== data91){const err403 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err403];}else {vErrors.push(err403);}errors++;}var _valid43 = _errs450 === errors;if(_valid43){valid106 = true;passing31 = 0;}const _errs452 = errors;if(Array.isArray(data91)){if(data91.length > 2){const err404 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err404];}else {vErrors.push(err404);}errors++;}if(data91.length < 2){const err405 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err405];}else {vErrors.push(err405);}errors++;}const len32 = data91.length;if(len32 > 0){let data94 = data91[0];if(typeof data94 !== "string"){const err406 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err406];}else {vErrors.push(err406);}errors++;}if("biography:fictionalPlace" !== data94){const err407 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err407];}else {vErrors.push(err407);}errors++;}}if(len32 > 1){let data95 = data91[1];if(typeof data95 !== "string"){const err408 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err408];}else {vErrors.push(err408);}errors++;}if("crm:E89_Propositional_Object" !== data95){const err409 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/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 = [err409];}else {vErrors.push(err409);}errors++;}}}else {const err410 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err410];}else {vErrors.push(err410);}errors++;}var _valid43 = _errs452 === errors;if(_valid43 && valid106){valid106 = false;passing31 = [passing31, 1];}else {if(_valid43){valid106 = true;passing31 = 1;}}if(!valid106){const err411 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing31},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err411];}else {vErrors.push(err411);}errors++;}else {errors = _errs449;if(vErrors !== null){if(_errs449){vErrors.length = _errs449;}else {vErrors = null;}}}var _valid41 = _errs448 === errors;if(_valid41 && valid103){valid103 = false;passing29 = [passing29, 1];}else {if(_valid41){valid103 = true;passing29 = 1;}const _errs458 = errors;const _errs459 = errors;let valid108 = false;let passing32 = null;const _errs460 = errors;if(typeof data91 !== "string"){const err412 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err412];}else {vErrors.push(err412);}errors++;}if("crm:E74_Group" !== data91){const err413 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err413];}else {vErrors.push(err413);}errors++;}var _valid44 = _errs460 === errors;if(_valid44){valid108 = true;passing32 = 0;}const _errs462 = errors;if(Array.isArray(data91)){if(data91.length > 2){const err414 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err414];}else {vErrors.push(err414);}errors++;}if(data91.length < 2){const err415 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err415];}else {vErrors.push(err415);}errors++;}const len33 = data91.length;if(len33 > 0){let data96 = data91[0];if(typeof data96 !== "string"){const err416 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err416];}else {vErrors.push(err416);}errors++;}if("foaf:Organization" !== data96){const err417 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err417];}else {vErrors.push(err417);}errors++;}}if(len33 > 1){let data97 = data91[1];if(typeof data97 !== "string"){const err418 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err418];}else {vErrors.push(err418);}errors++;}if("crm:E89_Propositional_Object" !== data97){const err419 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err419];}else {vErrors.push(err419);}errors++;}}}else {const err420 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err420];}else {vErrors.push(err420);}errors++;}var _valid44 = _errs462 === errors;if(_valid44 && valid108){valid108 = false;passing32 = [passing32, 1];}else {if(_valid44){valid108 = true;passing32 = 1;}}if(!valid108){const err421 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing32},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err421];}else {vErrors.push(err421);}errors++;}else {errors = _errs459;if(vErrors !== null){if(_errs459){vErrors.length = _errs459;}else {vErrors = null;}}}var _valid41 = _errs458 === errors;if(_valid41 && valid103){valid103 = false;passing29 = [passing29, 2];}else {if(_valid41){valid103 = true;passing29 = 2;}const _errs468 = errors;const _errs469 = errors;let valid110 = false;let passing33 = null;const _errs470 = errors;if(typeof data91 !== "string"){const err422 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err422];}else {vErrors.push(err422);}errors++;}if("frbroo:F1" !== data91){const err423 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err423];}else {vErrors.push(err423);}errors++;}var _valid45 = _errs470 === errors;if(_valid45){valid110 = true;passing33 = 0;}const _errs472 = errors;if(Array.isArray(data91)){if(data91.length > 2){const err424 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err424];}else {vErrors.push(err424);}errors++;}if(data91.length < 2){const err425 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err425];}else {vErrors.push(err425);}errors++;}const len34 = data91.length;if(len34 > 0){let data98 = data91[0];if(typeof data98 !== "string"){const err426 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err426];}else {vErrors.push(err426);}errors++;}if("frbroo:F1" !== data98){const err427 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err427];}else {vErrors.push(err427);}errors++;}}if(len34 > 1){let data99 = data91[1];if(typeof data99 !== "string"){const err428 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err428];}else {vErrors.push(err428);}errors++;}if("wikidata:Q15306849" !== data99){const err429 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err429];}else {vErrors.push(err429);}errors++;}}}else {const err430 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err430];}else {vErrors.push(err430);}errors++;}var _valid45 = _errs472 === errors;if(_valid45 && valid110){valid110 = false;passing33 = [passing33, 1];}else {if(_valid45){valid110 = true;passing33 = 1;}}if(!valid110){const err431 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing33},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err431];}else {vErrors.push(err431);}errors++;}else {errors = _errs469;if(vErrors !== null){if(_errs469){vErrors.length = _errs469;}else {vErrors = null;}}}var _valid41 = _errs468 === errors;if(_valid41 && valid103){valid103 = false;passing29 = [passing29, 3];}else {if(_valid41){valid103 = true;passing29 = 3;}const _errs478 = errors;const _errs479 = errors;let valid112 = false;let passing34 = null;const _errs480 = errors;if(typeof data91 !== "string"){const err432 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err432];}else {vErrors.push(err432);}errors++;}if("crm:E18_Physical_Thing" !== data91){const err433 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err433];}else {vErrors.push(err433);}errors++;}var _valid46 = _errs480 === errors;if(_valid46){valid112 = true;passing34 = 0;}const _errs482 = errors;if(Array.isArray(data91)){if(data91.length > 2){const err434 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err434];}else {vErrors.push(err434);}errors++;}if(data91.length < 2){const err435 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err435];}else {vErrors.push(err435);}errors++;}const len35 = data91.length;if(len35 > 0){let data100 = data91[0];if(typeof data100 !== "string"){const err436 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err436];}else {vErrors.push(err436);}errors++;}if("crm:E18_Physical_Thing" !== data100){const err437 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/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 = [err437];}else {vErrors.push(err437);}errors++;}}if(len35 > 1){let data101 = data91[1];if(typeof data101 !== "string"){const err438 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err438];}else {vErrors.push(err438);}errors++;}if("wikidata:Q15831596" !== data101){const err439 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err439];}else {vErrors.push(err439);}errors++;}}}else {const err440 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err440];}else {vErrors.push(err440);}errors++;}var _valid46 = _errs482 === errors;if(_valid46 && valid112){valid112 = false;passing34 = [passing34, 1];}else {if(_valid46){valid112 = true;passing34 = 1;}}if(!valid112){const err441 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing34},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err441];}else {vErrors.push(err441);}errors++;}else {errors = _errs479;if(vErrors !== null){if(_errs479){vErrors.length = _errs479;}else {vErrors = null;}}}var _valid41 = _errs478 === errors;if(_valid41 && valid103){valid103 = false;passing29 = [passing29, 4];}else {if(_valid41){valid103 = true;passing29 = 4;}const _errs488 = errors;if(typeof data91 !== "string"){const err442 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err442];}else {vErrors.push(err442);}errors++;}if("crm:E28_Conceptual_Object" !== data91){const err443 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err443];}else {vErrors.push(err443);}errors++;}var _valid41 = _errs488 === errors;if(_valid41 && valid103){valid103 = false;passing29 = [passing29, 5];}else {if(_valid41){valid103 = true;passing29 = 5;}const _errs490 = errors;const _errs491 = errors;let valid114 = false;let passing35 = null;const _errs492 = errors;if(typeof data91 !== "string"){const err444 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err444];}else {vErrors.push(err444);}errors++;}if("crm:E5_Event" !== data91){const err445 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err445];}else {vErrors.push(err445);}errors++;}var _valid47 = _errs492 === errors;if(_valid47){valid114 = true;passing35 = 0;}const _errs494 = errors;if(Array.isArray(data91)){if(data91.length > 2){const err446 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err446];}else {vErrors.push(err446);}errors++;}if(data91.length < 2){const err447 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err447];}else {vErrors.push(err447);}errors++;}const len36 = data91.length;if(len36 > 0){let data102 = data91[0];if(typeof data102 !== "string"){const err448 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err448];}else {vErrors.push(err448);}errors++;}if("event:Event" !== data102){const err449 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err449];}else {vErrors.push(err449);}errors++;}}if(len36 > 1){let data103 = data91[1];if(typeof data103 !== "string"){const err450 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err450];}else {vErrors.push(err450);}errors++;}if("crm:E89_Propositional_Object" !== data103){const err451 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err451];}else {vErrors.push(err451);}errors++;}}}else {const err452 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err452];}else {vErrors.push(err452);}errors++;}var _valid47 = _errs494 === errors;if(_valid47 && valid114){valid114 = false;passing35 = [passing35, 1];}else {if(_valid47){valid114 = true;passing35 = 1;}}if(!valid114){const err453 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing35},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err453];}else {vErrors.push(err453);}errors++;}else {errors = _errs491;if(vErrors !== null){if(_errs491){vErrors.length = _errs491;}else {vErrors = null;}}}var _valid41 = _errs490 === errors;if(_valid41 && valid103){valid103 = false;passing29 = [passing29, 6];}else {if(_valid41){valid103 = true;passing29 = 6;}const _errs500 = errors;if(Array.isArray(data91)){if(data91.length > 2){const err454 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/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(data91.length < 2){const err455 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/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 len37 = data91.length;if(len37 > 0){let data104 = data91[0];if(typeof data104 !== "string"){const err456 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err456];}else {vErrors.push(err456);}errors++;}if("cito:Citation" !== data104){const err457 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err457];}else {vErrors.push(err457);}errors++;}}if(len37 > 1){let data105 = data91[1];if(typeof data105 !== "string"){const err458 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/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" !== data105){const err459 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/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+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err460];}else {vErrors.push(err460);}errors++;}var _valid41 = _errs500 === errors;if(_valid41 && valid103){valid103 = false;passing29 = [passing29, 7];}else {if(_valid41){valid103 = true;passing29 = 7;}const _errs506 = errors;if(Array.isArray(data91)){if(data91.length > 3){const err461 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err461];}else {vErrors.push(err461);}errors++;}if(data91.length < 3){const err462 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err462];}else {vErrors.push(err462);}errors++;}const len38 = data91.length;if(len38 > 0){let data106 = data91[0];if(typeof data106 !== "string"){const err463 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err463];}else {vErrors.push(err463);}errors++;}if("TextualBody" !== data106){const err464 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err464];}else {vErrors.push(err464);}errors++;}}if(len38 > 1){let data107 = data91[1];if(typeof data107 !== "string"){const err465 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err465];}else {vErrors.push(err465);}errors++;}if("xsd:date" !== data107){const err466 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err466];}else {vErrors.push(err466);}errors++;}}if(len38 > 2){let data108 = data91[2];if(typeof data108 !== "string"){const err467 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err467];}else {vErrors.push(err467);}errors++;}if("crm:E52_Time-Span" !== data108){const err468 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err468];}else {vErrors.push(err468);}errors++;}}}else {const err469 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err469];}else {vErrors.push(err469);}errors++;}var _valid41 = _errs506 === errors;if(_valid41 && valid103){valid103 = false;passing29 = [passing29, 8];}else {if(_valid41){valid103 = true;passing29 = 8;}const _errs514 = errors;if(Array.isArray(data91)){if(data91.length > 2){const err470 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err470];}else {vErrors.push(err470);}errors++;}if(data91.length < 2){const err471 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err471];}else {vErrors.push(err471);}errors++;}const len39 = data91.length;if(len39 > 0){let data109 = data91[0];if(typeof data109 !== "string"){const err472 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err472];}else {vErrors.push(err472);}errors++;}if("TextualBody" !== data109){const err473 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err473];}else {vErrors.push(err473);}errors++;}}if(len39 > 1){let data110 = data91[1];if(typeof data110 !== "string"){const err474 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err474];}else {vErrors.push(err474);}errors++;}if("crm:E33_Linguistic_Object" !== data110){const err475 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err475];}else {vErrors.push(err475);}errors++;}}}else {const err476 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err476];}else {vErrors.push(err476);}errors++;}var _valid41 = _errs514 === errors;if(_valid41 && valid103){valid103 = false;passing29 = [passing29, 9];}else {if(_valid41){valid103 = true;passing29 = 9;}const _errs520 = errors;if(Array.isArray(data91)){if(data91.length > 3){const err477 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err477];}else {vErrors.push(err477);}errors++;}if(data91.length < 3){const err478 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err478];}else {vErrors.push(err478);}errors++;}const len40 = data91.length;if(len40 > 0){let data111 = data91[0];if(typeof data111 !== "string"){const err479 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err479];}else {vErrors.push(err479);}errors++;}if("TextualBody" !== data111){const err480 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err480];}else {vErrors.push(err480);}errors++;}}if(len40 > 1){let data112 = data91[1];if(typeof data112 !== "string"){const err481 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err481];}else {vErrors.push(err481);}errors++;}if("fabio:Correction" !== data112){const err482 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err482];}else {vErrors.push(err482);}errors++;}}if(len40 > 2){let data113 = data91[2];if(typeof data113 !== "string"){const err483 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err483];}else {vErrors.push(err483);}errors++;}if("crm:E33_Linguistic_Object" !== data113){const err484 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err484];}else {vErrors.push(err484);}errors++;}}}else {const err485 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err485];}else {vErrors.push(err485);}errors++;}var _valid41 = _errs520 === errors;if(_valid41 && valid103){valid103 = false;passing29 = [passing29, 10];}else {if(_valid41){valid103 = true;passing29 = 10;}const _errs528 = errors;if(Array.isArray(data91)){if(data91.length > 2){const err486 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/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(data91.length < 2){const err487 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/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 len41 = data91.length;if(len41 > 0){let data114 = data91[0];if(typeof data114 !== "string"){const err488 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err488];}else {vErrors.push(err488);}errors++;}if("crm:E55_Type" !== data114){const err489 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err489];}else {vErrors.push(err489);}errors++;}}if(len41 > 1){let data115 = data91[1];if(typeof data115 !== "string"){const err490 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err490];}else {vErrors.push(err490);}errors++;}if("crmdig:D1_Digital_Object" !== data115){const err491 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err491];}else {vErrors.push(err491);}errors++;}}}else {const err492 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err492];}else {vErrors.push(err492);}errors++;}var _valid41 = _errs528 === errors;if(_valid41 && valid103){valid103 = false;passing29 = [passing29, 11];}else {if(_valid41){valid103 = true;passing29 = 11;}const _errs534 = errors;if(Array.isArray(data91)){if(data91.length > 3){const err493 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}if(data91.length < 3){const err494 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err494];}else {vErrors.push(err494);}errors++;}const len42 = data91.length;if(len42 > 0){let data116 = data91[0];if(typeof data116 !== "string"){const err495 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err495];}else {vErrors.push(err495);}errors++;}if("TextualBody" !== data116){const err496 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err496];}else {vErrors.push(err496);}errors++;}}if(len42 > 1){let data117 = data91[1];if(typeof data117 !== "string"){const err497 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err497];}else {vErrors.push(err497);}errors++;}if("crm:E55_Type" !== data117){const err498 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err498];}else {vErrors.push(err498);}errors++;}}if(len42 > 2){let data118 = data91[2];if(typeof data118 !== "string"){const err499 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err499];}else {vErrors.push(err499);}errors++;}if("crm:E33_Linguistic_Object" !== data118){const err500 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err500];}else {vErrors.push(err500);}errors++;}}}else {const err501 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err501];}else {vErrors.push(err501);}errors++;}var _valid41 = _errs534 === errors;if(_valid41 && valid103){valid103 = false;passing29 = [passing29, 12];}else {if(_valid41){valid103 = true;passing29 = 12;}const _errs542 = errors;if(typeof data91 !== "string"){const err502 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/13/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err502];}else {vErrors.push(err502);}errors++;}if("crmdig:D1_Digital_Object" !== data91){const err503 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/13/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err503];}else {vErrors.push(err503);}errors++;}var _valid41 = _errs542 === errors;if(_valid41 && valid103){valid103 = false;passing29 = [passing29, 13];}else {if(_valid41){valid103 = true;passing29 = 13;}}}}}}}}}}}}}}if(!valid103){const err504 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing29},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err504];}else {vErrors.push(err504);}errors++;}else {errors = _errs437;if(vErrors !== null){if(_errs437){vErrors.length = _errs437;}else {vErrors = null;}}}}if(data72.value !== undefined){if(typeof data72.value !== "string"){const err505 = {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 = [err505];}else {vErrors.push(err505);}errors++;}}if(data72.label !== undefined){let data120 = data72.label;if(typeof data120 === "string"){if(func2(data120) < 1){const err506 = {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 = [err506];}else {vErrors.push(err506);}errors++;}}else {const err507 = {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 = [err507];}else {vErrors.push(err507);}errors++;}}if(data72.P2_has_type !== undefined){let data121 = data72.P2_has_type;if(Array.isArray(data121)){const len43 = data121.length;for(let i7=0; i7<len43; i7++){if(typeof data121[i7] !== "string"){const err508 = {instancePath:instancePath+"/body/P2_has_type/" + i7,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err508];}else {vErrors.push(err508);}errors++;}}}else {const err509 = {instancePath:instancePath+"/body/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err509];}else {vErrors.push(err509);}errors++;}}if(data72.description !== undefined){if(typeof data72.description !== "string"){const err510 = {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 = [err510];}else {vErrors.push(err510);}errors++;}}}else {const err511 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}var _valid36 = _errs376 === errors;if(_valid36){valid88 = true;passing28 = 0;}const _errs554 = errors;if(Array.isArray(data72)){if(data72.length < 1){const err512 = {instancePath:instancePath+"/body",schemaPath:"#/allOf/1/else/properties/body/oneOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err512];}else {vErrors.push(err512);}errors++;}const len44 = data72.length;for(let i8=0; i8<len44; i8++){let data124 = data72[i8];const _errs559 = errors;let valid127 = false;const _errs560 = errors;const _errs561 = errors;let valid128 = true;const _errs562 = errors;if(errors === _errs562){if(data124 && typeof data124 == "object" && !Array.isArray(data124)){if(data124.type !== undefined){let data125 = data124.type;const _errs565 = errors;let valid130 = false;const _errs566 = errors;if(errors === _errs566){if(Array.isArray(data125)){if(data125.length > 2){const err513 = {};if(vErrors === null){vErrors = [err513];}else {vErrors.push(err513);}errors++;}else {if(data125.length < 2){const err514 = {};if(vErrors === null){vErrors = [err514];}else {vErrors.push(err514);}errors++;}else {const len45 = data125.length;if(len45 > 0){let data126 = data125[0];const _errs568 = errors;if(typeof data126 !== "string"){const err515 = {};if(vErrors === null){vErrors = [err515];}else {vErrors.push(err515);}errors++;}if("TextualBody" !== data126){const err516 = {};if(vErrors === null){vErrors = [err516];}else {vErrors.push(err516);}errors++;}var valid131 = _errs568 === errors;}if(valid131){if(len45 > 1){let data127 = data125[1];const _errs570 = errors;if(typeof data127 !== "string"){const err517 = {};if(vErrors === null){vErrors = [err517];}else {vErrors.push(err517);}errors++;}if("crm:E33_Linguistic_Object" !== data127){const err518 = {};if(vErrors === null){vErrors = [err518];}else {vErrors.push(err518);}errors++;}var valid131 = _errs570 === errors;}}}}}else {const err519 = {};if(vErrors === null){vErrors = [err519];}else {vErrors.push(err519);}errors++;}}var _valid50 = _errs566 === errors;valid130 = valid130 || _valid50;if(!valid130){const _errs572 = errors;if(errors === _errs572){if(Array.isArray(data125)){if(data125.length > 3){const err520 = {};if(vErrors === null){vErrors = [err520];}else {vErrors.push(err520);}errors++;}else {if(data125.length < 3){const err521 = {};if(vErrors === null){vErrors = [err521];}else {vErrors.push(err521);}errors++;}else {const len46 = data125.length;if(len46 > 0){let data128 = data125[0];const _errs574 = errors;if(typeof data128 !== "string"){const err522 = {};if(vErrors === null){vErrors = [err522];}else {vErrors.push(err522);}errors++;}if("TextualBody" !== data128){const err523 = {};if(vErrors === null){vErrors = [err523];}else {vErrors.push(err523);}errors++;}var valid132 = _errs574 === errors;}if(valid132){if(len46 > 1){let data129 = data125[1];const _errs576 = errors;if(typeof data129 !== "string"){const err524 = {};if(vErrors === null){vErrors = [err524];}else {vErrors.push(err524);}errors++;}if("xsd:date" !== data129){const err525 = {};if(vErrors === null){vErrors = [err525];}else {vErrors.push(err525);}errors++;}var valid132 = _errs576 === errors;}if(valid132){if(len46 > 2){let data130 = data125[2];const _errs578 = errors;if(typeof data130 !== "string"){const err526 = {};if(vErrors === null){vErrors = [err526];}else {vErrors.push(err526);}errors++;}if("crm:E52_Time-Span" !== data130){const err527 = {};if(vErrors === null){vErrors = [err527];}else {vErrors.push(err527);}errors++;}var valid132 = _errs578 === errors;}}}}}}else {const err528 = {};if(vErrors === null){vErrors = [err528];}else {vErrors.push(err528);}errors++;}}var _valid50 = _errs572 === errors;valid130 = valid130 || _valid50;if(!valid130){const _errs580 = errors;if(errors === _errs580){if(Array.isArray(data125)){if(data125.length > 3){const err529 = {};if(vErrors === null){vErrors = [err529];}else {vErrors.push(err529);}errors++;}else {if(data125.length < 3){const err530 = {};if(vErrors === null){vErrors = [err530];}else {vErrors.push(err530);}errors++;}else {const len47 = data125.length;if(len47 > 0){let data131 = data125[0];const _errs582 = errors;if(typeof data131 !== "string"){const err531 = {};if(vErrors === null){vErrors = [err531];}else {vErrors.push(err531);}errors++;}if("TextualBody" !== data131){const err532 = {};if(vErrors === null){vErrors = [err532];}else {vErrors.push(err532);}errors++;}var valid133 = _errs582 === errors;}if(valid133){if(len47 > 1){let data132 = data125[1];const _errs584 = errors;if(typeof data132 !== "string"){const err533 = {};if(vErrors === null){vErrors = [err533];}else {vErrors.push(err533);}errors++;}if("fabio:Correction" !== data132){const err534 = {};if(vErrors === null){vErrors = [err534];}else {vErrors.push(err534);}errors++;}var valid133 = _errs584 === errors;}if(valid133){if(len47 > 2){let data133 = data125[2];const _errs586 = errors;if(typeof data133 !== "string"){const err535 = {};if(vErrors === null){vErrors = [err535];}else {vErrors.push(err535);}errors++;}if("crm:E33_Linguistic_Object" !== data133){const err536 = {};if(vErrors === null){vErrors = [err536];}else {vErrors.push(err536);}errors++;}var valid133 = _errs586 === errors;}}}}}}else {const err537 = {};if(vErrors === null){vErrors = [err537];}else {vErrors.push(err537);}errors++;}}var _valid50 = _errs580 === errors;valid130 = valid130 || _valid50;if(!valid130){const _errs588 = errors;if(errors === _errs588){if(Array.isArray(data125)){if(data125.length > 3){const err538 = {};if(vErrors === null){vErrors = [err538];}else {vErrors.push(err538);}errors++;}else {if(data125.length < 3){const err539 = {};if(vErrors === null){vErrors = [err539];}else {vErrors.push(err539);}errors++;}else {const len48 = data125.length;if(len48 > 0){let data134 = data125[0];const _errs590 = errors;if(typeof data134 !== "string"){const err540 = {};if(vErrors === null){vErrors = [err540];}else {vErrors.push(err540);}errors++;}if("TextualBody" !== data134){const err541 = {};if(vErrors === null){vErrors = [err541];}else {vErrors.push(err541);}errors++;}var valid134 = _errs590 === errors;}if(valid134){if(len48 > 1){let data135 = data125[1];const _errs592 = errors;if(typeof data135 !== "string"){const err542 = {};if(vErrors === null){vErrors = [err542];}else {vErrors.push(err542);}errors++;}if("crm:E55_Type" !== data135){const err543 = {};if(vErrors === null){vErrors = [err543];}else {vErrors.push(err543);}errors++;}var valid134 = _errs592 === errors;}if(valid134){if(len48 > 2){let data136 = data125[2];const _errs594 = errors;if(typeof data136 !== "string"){const err544 = {};if(vErrors === null){vErrors = [err544];}else {vErrors.push(err544);}errors++;}if("crm:E33_Linguistic_Object" !== data136){const err545 = {};if(vErrors === null){vErrors = [err545];}else {vErrors.push(err545);}errors++;}var valid134 = _errs594 === errors;}}}}}}else {const err546 = {};if(vErrors === null){vErrors = [err546];}else {vErrors.push(err546);}errors++;}}var _valid50 = _errs588 === errors;valid130 = valid130 || _valid50;}}}if(!valid130){const err547 = {};if(vErrors === null){vErrors = [err547];}else {vErrors.push(err547);}errors++;}else {errors = _errs565;if(vErrors !== null){if(_errs565){vErrors.length = _errs565;}else {vErrors = null;}}}}}else {const err548 = {};if(vErrors === null){vErrors = [err548];}else {vErrors.push(err548);}errors++;}}var _valid49 = _errs562 === errors;errors = _errs561;if(vErrors !== null){if(_errs561){vErrors.length = _errs561;}else {vErrors = null;}}if(_valid49){const _errs596 = errors;const _errs598 = errors;let valid135 = true;const _errs599 = errors;if(errors === _errs599){if(data124 && typeof data124 == "object" && !Array.isArray(data124)){if(data124.type !== undefined){let data137 = data124.type;const _errs601 = errors;if(errors === _errs601){if(Array.isArray(data137)){if(data137.length > 3){const err549 = {};if(vErrors === null){vErrors = [err549];}else {vErrors.push(err549);}errors++;}else {if(data137.length < 3){const err550 = {};if(vErrors === null){vErrors = [err550];}else {vErrors.push(err550);}errors++;}else {const len49 = data137.length;if(len49 > 0){let data138 = data137[0];const _errs603 = errors;if(typeof data138 !== "string"){const err551 = {};if(vErrors === null){vErrors = [err551];}else {vErrors.push(err551);}errors++;}if("TextualBody" !== data138){const err552 = {};if(vErrors === null){vErrors = [err552];}else {vErrors.push(err552);}errors++;}var valid137 = _errs603 === errors;}if(valid137){if(len49 > 1){let data139 = data137[1];const _errs605 = errors;if(typeof data139 !== "string"){const err553 = {};if(vErrors === null){vErrors = [err553];}else {vErrors.push(err553);}errors++;}if("xsd:date" !== data139){const err554 = {};if(vErrors === null){vErrors = [err554];}else {vErrors.push(err554);}errors++;}var valid137 = _errs605 === errors;}if(valid137){if(len49 > 2){let data140 = data137[2];const _errs607 = errors;if(typeof data140 !== "string"){const err555 = {};if(vErrors === null){vErrors = [err555];}else {vErrors.push(err555);}errors++;}if("crm:E52_Time-Span" !== data140){const err556 = {};if(vErrors === null){vErrors = [err556];}else {vErrors.push(err556);}errors++;}var valid137 = _errs607 === errors;}}}}}}else {const err557 = {};if(vErrors === null){vErrors = [err557];}else {vErrors.push(err557);}errors++;}}}}else {const err558 = {};if(vErrors === null){vErrors = [err558];}else {vErrors.push(err558);}errors++;}}var _valid51 = _errs599 === errors;errors = _errs598;if(vErrors !== null){if(_errs598){vErrors.length = _errs598;}else {vErrors = null;}}if(_valid51){const _errs609 = errors;if(data124 && typeof data124 == "object" && !Array.isArray(data124)){if(data124.id === undefined){const err559 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err559];}else {vErrors.push(err559);}errors++;}if(data124.type === undefined){const err560 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err560];}else {vErrors.push(err560);}errors++;}if(data124.value === undefined){const err561 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err561];}else {vErrors.push(err561);}errors++;}if(data124.value !== undefined){let data141 = data124.value;if(typeof data141 === "string"){if(!pattern0.test(data141)){const err562 = {instancePath:instancePath+"/body/" + i8+"/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 = [err562];}else {vErrors.push(err562);}errors++;}}else {const err563 = {instancePath:instancePath+"/body/" + i8+"/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 = [err563];}else {vErrors.push(err563);}errors++;}}}else {const err564 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err564];}else {vErrors.push(err564);}errors++;}var _valid51 = _errs609 === errors;valid135 = _valid51;}if(!valid135){const err565 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err565];}else {vErrors.push(err565);}errors++;}if(data124 && typeof data124 == "object" && !Array.isArray(data124)){if(data124.id === undefined){const err566 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err566];}else {vErrors.push(err566);}errors++;}if(data124.type === undefined){const err567 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err567];}else {vErrors.push(err567);}errors++;}if(data124.value === undefined){const err568 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err568];}else {vErrors.push(err568);}errors++;}}else {const err569 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err569];}else {vErrors.push(err569);}errors++;}var _valid49 = _errs596 === errors;valid128 = _valid49;}if(!valid128){const err570 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err570];}else {vErrors.push(err570);}errors++;}var _valid48 = _errs560 === errors;valid127 = valid127 || _valid48;if(!valid127){const err571 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err571];}else {vErrors.push(err571);}errors++;}else {errors = _errs559;if(vErrors !== null){if(_errs559){vErrors.length = _errs559;}else {vErrors = null;}}}if(data124 && typeof data124 == "object" && !Array.isArray(data124)){if(data124.id === undefined){const err572 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err572];}else {vErrors.push(err572);}errors++;}if(data124.type === undefined){const err573 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err573];}else {vErrors.push(err573);}errors++;}for(const key1 in data124){if(!((((((key1 === "id") || (key1 === "type")) || (key1 === "value")) || (key1 === "label")) || (key1 === "P2_has_type")) || (key1 === "description"))){const err574 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key1},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err574];}else {vErrors.push(err574);}errors++;}}if(data124.id !== undefined){let data142 = data124.id;if(typeof data142 === "string"){if(!(formats0(data142))){const err575 = {instancePath:instancePath+"/body/" + i8+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err575];}else {vErrors.push(err575);}errors++;}}else {const err576 = {instancePath:instancePath+"/body/" + i8+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err576];}else {vErrors.push(err576);}errors++;}}if(data124.type !== undefined){let data143 = data124.type;const _errs617 = errors;let valid140 = false;let passing36 = null;const _errs618 = errors;const _errs619 = errors;let valid141 = false;let passing37 = null;const _errs620 = errors;if(typeof data143 !== "string"){const err577 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err577];}else {vErrors.push(err577);}errors++;}if("crm:E21_Person" !== data143){const err578 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err578];}else {vErrors.push(err578);}errors++;}var _valid53 = _errs620 === errors;if(_valid53){valid141 = true;passing37 = 0;}const _errs622 = errors;if(Array.isArray(data143)){if(data143.length > 2){const err579 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err579];}else {vErrors.push(err579);}errors++;}if(data143.length < 2){const err580 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err580];}else {vErrors.push(err580);}errors++;}const len50 = data143.length;if(len50 > 0){let data144 = data143[0];if(typeof data144 !== "string"){const err581 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err581];}else {vErrors.push(err581);}errors++;}if("foaf:Person" !== data144){const err582 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err582];}else {vErrors.push(err582);}errors++;}}if(len50 > 1){let data145 = data143[1];if(typeof data145 !== "string"){const err583 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err583];}else {vErrors.push(err583);}errors++;}if("crm:E89_Propositional_Object" !== data145){const err584 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err584];}else {vErrors.push(err584);}errors++;}}}else {const err585 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err585];}else {vErrors.push(err585);}errors++;}var _valid53 = _errs622 === errors;if(_valid53 && valid141){valid141 = false;passing37 = [passing37, 1];}else {if(_valid53){valid141 = true;passing37 = 1;}}if(!valid141){const err586 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing37},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err586];}else {vErrors.push(err586);}errors++;}else {errors = _errs619;if(vErrors !== null){if(_errs619){vErrors.length = _errs619;}else {vErrors = null;}}}var _valid52 = _errs618 === errors;if(_valid52){valid140 = true;passing36 = 0;}const _errs628 = errors;const _errs629 = errors;let valid143 = false;let passing38 = null;const _errs630 = errors;if(typeof data143 !== "string"){const err587 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err587];}else {vErrors.push(err587);}errors++;}if("crm:E53_Place" !== data143){const err588 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err588];}else {vErrors.push(err588);}errors++;}var _valid54 = _errs630 === errors;if(_valid54){valid143 = true;passing38 = 0;}const _errs632 = errors;if(Array.isArray(data143)){if(data143.length > 2){const err589 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err589];}else {vErrors.push(err589);}errors++;}if(data143.length < 2){const err590 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err590];}else {vErrors.push(err590);}errors++;}const len51 = data143.length;if(len51 > 0){let data146 = data143[0];if(typeof data146 !== "string"){const err591 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err591];}else {vErrors.push(err591);}errors++;}if("biography:fictionalPlace" !== data146){const err592 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err592];}else {vErrors.push(err592);}errors++;}}if(len51 > 1){let data147 = data143[1];if(typeof data147 !== "string"){const err593 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err593];}else {vErrors.push(err593);}errors++;}if("crm:E89_Propositional_Object" !== data147){const err594 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/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 = [err594];}else {vErrors.push(err594);}errors++;}}}else {const err595 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err595];}else {vErrors.push(err595);}errors++;}var _valid54 = _errs632 === errors;if(_valid54 && valid143){valid143 = false;passing38 = [passing38, 1];}else {if(_valid54){valid143 = true;passing38 = 1;}}if(!valid143){const err596 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing38},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err596];}else {vErrors.push(err596);}errors++;}else {errors = _errs629;if(vErrors !== null){if(_errs629){vErrors.length = _errs629;}else {vErrors = null;}}}var _valid52 = _errs628 === errors;if(_valid52 && valid140){valid140 = false;passing36 = [passing36, 1];}else {if(_valid52){valid140 = true;passing36 = 1;}const _errs638 = errors;const _errs639 = errors;let valid145 = false;let passing39 = null;const _errs640 = errors;if(typeof data143 !== "string"){const err597 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err597];}else {vErrors.push(err597);}errors++;}if("crm:E74_Group" !== data143){const err598 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err598];}else {vErrors.push(err598);}errors++;}var _valid55 = _errs640 === errors;if(_valid55){valid145 = true;passing39 = 0;}const _errs642 = errors;if(Array.isArray(data143)){if(data143.length > 2){const err599 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err599];}else {vErrors.push(err599);}errors++;}if(data143.length < 2){const err600 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err600];}else {vErrors.push(err600);}errors++;}const len52 = data143.length;if(len52 > 0){let data148 = data143[0];if(typeof data148 !== "string"){const err601 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err601];}else {vErrors.push(err601);}errors++;}if("foaf:Organization" !== data148){const err602 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err602];}else {vErrors.push(err602);}errors++;}}if(len52 > 1){let data149 = data143[1];if(typeof data149 !== "string"){const err603 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err603];}else {vErrors.push(err603);}errors++;}if("crm:E89_Propositional_Object" !== data149){const err604 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err604];}else {vErrors.push(err604);}errors++;}}}else {const err605 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err605];}else {vErrors.push(err605);}errors++;}var _valid55 = _errs642 === errors;if(_valid55 && valid145){valid145 = false;passing39 = [passing39, 1];}else {if(_valid55){valid145 = true;passing39 = 1;}}if(!valid145){const err606 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing39},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err606];}else {vErrors.push(err606);}errors++;}else {errors = _errs639;if(vErrors !== null){if(_errs639){vErrors.length = _errs639;}else {vErrors = null;}}}var _valid52 = _errs638 === errors;if(_valid52 && valid140){valid140 = false;passing36 = [passing36, 2];}else {if(_valid52){valid140 = true;passing36 = 2;}const _errs648 = errors;const _errs649 = errors;let valid147 = false;let passing40 = null;const _errs650 = errors;if(typeof data143 !== "string"){const err607 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err607];}else {vErrors.push(err607);}errors++;}if("frbroo:F1" !== data143){const err608 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err608];}else {vErrors.push(err608);}errors++;}var _valid56 = _errs650 === errors;if(_valid56){valid147 = true;passing40 = 0;}const _errs652 = errors;if(Array.isArray(data143)){if(data143.length > 2){const err609 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err609];}else {vErrors.push(err609);}errors++;}if(data143.length < 2){const err610 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err610];}else {vErrors.push(err610);}errors++;}const len53 = data143.length;if(len53 > 0){let data150 = data143[0];if(typeof data150 !== "string"){const err611 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err611];}else {vErrors.push(err611);}errors++;}if("frbroo:F1" !== data150){const err612 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err612];}else {vErrors.push(err612);}errors++;}}if(len53 > 1){let data151 = data143[1];if(typeof data151 !== "string"){const err613 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err613];}else {vErrors.push(err613);}errors++;}if("wikidata:Q15306849" !== data151){const err614 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err614];}else {vErrors.push(err614);}errors++;}}}else {const err615 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err615];}else {vErrors.push(err615);}errors++;}var _valid56 = _errs652 === errors;if(_valid56 && valid147){valid147 = false;passing40 = [passing40, 1];}else {if(_valid56){valid147 = true;passing40 = 1;}}if(!valid147){const err616 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing40},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err616];}else {vErrors.push(err616);}errors++;}else {errors = _errs649;if(vErrors !== null){if(_errs649){vErrors.length = _errs649;}else {vErrors = null;}}}var _valid52 = _errs648 === errors;if(_valid52 && valid140){valid140 = false;passing36 = [passing36, 3];}else {if(_valid52){valid140 = true;passing36 = 3;}const _errs658 = errors;const _errs659 = errors;let valid149 = false;let passing41 = null;const _errs660 = errors;if(typeof data143 !== "string"){const err617 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err617];}else {vErrors.push(err617);}errors++;}if("crm:E18_Physical_Thing" !== data143){const err618 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err618];}else {vErrors.push(err618);}errors++;}var _valid57 = _errs660 === errors;if(_valid57){valid149 = true;passing41 = 0;}const _errs662 = errors;if(Array.isArray(data143)){if(data143.length > 2){const err619 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err619];}else {vErrors.push(err619);}errors++;}if(data143.length < 2){const err620 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err620];}else {vErrors.push(err620);}errors++;}const len54 = data143.length;if(len54 > 0){let data152 = data143[0];if(typeof data152 !== "string"){const err621 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err621];}else {vErrors.push(err621);}errors++;}if("crm:E18_Physical_Thing" !== data152){const err622 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/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 = [err622];}else {vErrors.push(err622);}errors++;}}if(len54 > 1){let data153 = data143[1];if(typeof data153 !== "string"){const err623 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err623];}else {vErrors.push(err623);}errors++;}if("wikidata:Q15831596" !== data153){const err624 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err624];}else {vErrors.push(err624);}errors++;}}}else {const err625 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err625];}else {vErrors.push(err625);}errors++;}var _valid57 = _errs662 === errors;if(_valid57 && valid149){valid149 = false;passing41 = [passing41, 1];}else {if(_valid57){valid149 = true;passing41 = 1;}}if(!valid149){const err626 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing41},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err626];}else {vErrors.push(err626);}errors++;}else {errors = _errs659;if(vErrors !== null){if(_errs659){vErrors.length = _errs659;}else {vErrors = null;}}}var _valid52 = _errs658 === errors;if(_valid52 && valid140){valid140 = false;passing36 = [passing36, 4];}else {if(_valid52){valid140 = true;passing36 = 4;}const _errs668 = errors;if(typeof data143 !== "string"){const err627 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err627];}else {vErrors.push(err627);}errors++;}if("crm:E28_Conceptual_Object" !== data143){const err628 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err628];}else {vErrors.push(err628);}errors++;}var _valid52 = _errs668 === errors;if(_valid52 && valid140){valid140 = false;passing36 = [passing36, 5];}else {if(_valid52){valid140 = true;passing36 = 5;}const _errs670 = errors;const _errs671 = errors;let valid151 = false;let passing42 = null;const _errs672 = errors;if(typeof data143 !== "string"){const err629 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err629];}else {vErrors.push(err629);}errors++;}if("crm:E5_Event" !== data143){const err630 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err630];}else {vErrors.push(err630);}errors++;}var _valid58 = _errs672 === errors;if(_valid58){valid151 = true;passing42 = 0;}const _errs674 = errors;if(Array.isArray(data143)){if(data143.length > 2){const err631 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err631];}else {vErrors.push(err631);}errors++;}if(data143.length < 2){const err632 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err632];}else {vErrors.push(err632);}errors++;}const len55 = data143.length;if(len55 > 0){let data154 = data143[0];if(typeof data154 !== "string"){const err633 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err633];}else {vErrors.push(err633);}errors++;}if("event:Event" !== data154){const err634 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err634];}else {vErrors.push(err634);}errors++;}}if(len55 > 1){let data155 = data143[1];if(typeof data155 !== "string"){const err635 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err635];}else {vErrors.push(err635);}errors++;}if("crm:E89_Propositional_Object" !== data155){const err636 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err636];}else {vErrors.push(err636);}errors++;}}}else {const err637 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err637];}else {vErrors.push(err637);}errors++;}var _valid58 = _errs674 === errors;if(_valid58 && valid151){valid151 = false;passing42 = [passing42, 1];}else {if(_valid58){valid151 = true;passing42 = 1;}}if(!valid151){const err638 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing42},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err638];}else {vErrors.push(err638);}errors++;}else {errors = _errs671;if(vErrors !== null){if(_errs671){vErrors.length = _errs671;}else {vErrors = null;}}}var _valid52 = _errs670 === errors;if(_valid52 && valid140){valid140 = false;passing36 = [passing36, 6];}else {if(_valid52){valid140 = true;passing36 = 6;}const _errs680 = errors;if(Array.isArray(data143)){if(data143.length > 2){const err639 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err639];}else {vErrors.push(err639);}errors++;}if(data143.length < 2){const err640 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err640];}else {vErrors.push(err640);}errors++;}const len56 = data143.length;if(len56 > 0){let data156 = data143[0];if(typeof data156 !== "string"){const err641 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err641];}else {vErrors.push(err641);}errors++;}if("cito:Citation" !== data156){const err642 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err642];}else {vErrors.push(err642);}errors++;}}if(len56 > 1){let data157 = data143[1];if(typeof data157 !== "string"){const err643 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err643];}else {vErrors.push(err643);}errors++;}if("crm:E73_Information_Object" !== data157){const err644 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err644];}else {vErrors.push(err644);}errors++;}}}else {const err645 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err645];}else {vErrors.push(err645);}errors++;}var _valid52 = _errs680 === errors;if(_valid52 && valid140){valid140 = false;passing36 = [passing36, 7];}else {if(_valid52){valid140 = true;passing36 = 7;}const _errs686 = errors;if(Array.isArray(data143)){if(data143.length > 3){const err646 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err646];}else {vErrors.push(err646);}errors++;}if(data143.length < 3){const err647 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err647];}else {vErrors.push(err647);}errors++;}const len57 = data143.length;if(len57 > 0){let data158 = data143[0];if(typeof data158 !== "string"){const err648 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err648];}else {vErrors.push(err648);}errors++;}if("TextualBody" !== data158){const err649 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err649];}else {vErrors.push(err649);}errors++;}}if(len57 > 1){let data159 = data143[1];if(typeof data159 !== "string"){const err650 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err650];}else {vErrors.push(err650);}errors++;}if("xsd:date" !== data159){const err651 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err651];}else {vErrors.push(err651);}errors++;}}if(len57 > 2){let data160 = data143[2];if(typeof data160 !== "string"){const err652 = {instancePath:instancePath+"/body/" + i8+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err652];}else {vErrors.push(err652);}errors++;}if("crm:E52_Time-Span" !== data160){const err653 = {instancePath:instancePath+"/body/" + i8+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err653];}else {vErrors.push(err653);}errors++;}}}else {const err654 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err654];}else {vErrors.push(err654);}errors++;}var _valid52 = _errs686 === errors;if(_valid52 && valid140){valid140 = false;passing36 = [passing36, 8];}else {if(_valid52){valid140 = true;passing36 = 8;}const _errs694 = errors;if(Array.isArray(data143)){if(data143.length > 2){const err655 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err655];}else {vErrors.push(err655);}errors++;}if(data143.length < 2){const err656 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err656];}else {vErrors.push(err656);}errors++;}const len58 = data143.length;if(len58 > 0){let data161 = data143[0];if(typeof data161 !== "string"){const err657 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err657];}else {vErrors.push(err657);}errors++;}if("TextualBody" !== data161){const err658 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err658];}else {vErrors.push(err658);}errors++;}}if(len58 > 1){let data162 = data143[1];if(typeof data162 !== "string"){const err659 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err659];}else {vErrors.push(err659);}errors++;}if("crm:E33_Linguistic_Object" !== data162){const err660 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err660];}else {vErrors.push(err660);}errors++;}}}else {const err661 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err661];}else {vErrors.push(err661);}errors++;}var _valid52 = _errs694 === errors;if(_valid52 && valid140){valid140 = false;passing36 = [passing36, 9];}else {if(_valid52){valid140 = true;passing36 = 9;}const _errs700 = errors;if(Array.isArray(data143)){if(data143.length > 3){const err662 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err662];}else {vErrors.push(err662);}errors++;}if(data143.length < 3){const err663 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err663];}else {vErrors.push(err663);}errors++;}const len59 = data143.length;if(len59 > 0){let data163 = data143[0];if(typeof data163 !== "string"){const err664 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err664];}else {vErrors.push(err664);}errors++;}if("TextualBody" !== data163){const err665 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err665];}else {vErrors.push(err665);}errors++;}}if(len59 > 1){let data164 = data143[1];if(typeof data164 !== "string"){const err666 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err666];}else {vErrors.push(err666);}errors++;}if("fabio:Correction" !== data164){const err667 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err667];}else {vErrors.push(err667);}errors++;}}if(len59 > 2){let data165 = data143[2];if(typeof data165 !== "string"){const err668 = {instancePath:instancePath+"/body/" + i8+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err668];}else {vErrors.push(err668);}errors++;}if("crm:E33_Linguistic_Object" !== data165){const err669 = {instancePath:instancePath+"/body/" + i8+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err669];}else {vErrors.push(err669);}errors++;}}}else {const err670 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err670];}else {vErrors.push(err670);}errors++;}var _valid52 = _errs700 === errors;if(_valid52 && valid140){valid140 = false;passing36 = [passing36, 10];}else {if(_valid52){valid140 = true;passing36 = 10;}const _errs708 = errors;if(Array.isArray(data143)){if(data143.length > 2){const err671 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err671];}else {vErrors.push(err671);}errors++;}if(data143.length < 2){const err672 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err672];}else {vErrors.push(err672);}errors++;}const len60 = data143.length;if(len60 > 0){let data166 = data143[0];if(typeof data166 !== "string"){const err673 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err673];}else {vErrors.push(err673);}errors++;}if("crm:E55_Type" !== data166){const err674 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err674];}else {vErrors.push(err674);}errors++;}}if(len60 > 1){let data167 = data143[1];if(typeof data167 !== "string"){const err675 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err675];}else {vErrors.push(err675);}errors++;}if("crmdig:D1_Digital_Object" !== data167){const err676 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err676];}else {vErrors.push(err676);}errors++;}}}else {const err677 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err677];}else {vErrors.push(err677);}errors++;}var _valid52 = _errs708 === errors;if(_valid52 && valid140){valid140 = false;passing36 = [passing36, 11];}else {if(_valid52){valid140 = true;passing36 = 11;}const _errs714 = errors;if(Array.isArray(data143)){if(data143.length > 3){const err678 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err678];}else {vErrors.push(err678);}errors++;}if(data143.length < 3){const err679 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err679];}else {vErrors.push(err679);}errors++;}const len61 = data143.length;if(len61 > 0){let data168 = data143[0];if(typeof data168 !== "string"){const err680 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err680];}else {vErrors.push(err680);}errors++;}if("TextualBody" !== data168){const err681 = {instancePath:instancePath+"/body/" + i8+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err681];}else {vErrors.push(err681);}errors++;}}if(len61 > 1){let data169 = data143[1];if(typeof data169 !== "string"){const err682 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err682];}else {vErrors.push(err682);}errors++;}if("crm:E55_Type" !== data169){const err683 = {instancePath:instancePath+"/body/" + i8+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err683];}else {vErrors.push(err683);}errors++;}}if(len61 > 2){let data170 = data143[2];if(typeof data170 !== "string"){const err684 = {instancePath:instancePath+"/body/" + i8+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err684];}else {vErrors.push(err684);}errors++;}if("crm:E33_Linguistic_Object" !== data170){const err685 = {instancePath:instancePath+"/body/" + i8+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err685];}else {vErrors.push(err685);}errors++;}}}else {const err686 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err686];}else {vErrors.push(err686);}errors++;}var _valid52 = _errs714 === errors;if(_valid52 && valid140){valid140 = false;passing36 = [passing36, 12];}else {if(_valid52){valid140 = true;passing36 = 12;}const _errs722 = errors;if(typeof data143 !== "string"){const err687 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/13/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err687];}else {vErrors.push(err687);}errors++;}if("crmdig:D1_Digital_Object" !== data143){const err688 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/13/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err688];}else {vErrors.push(err688);}errors++;}var _valid52 = _errs722 === errors;if(_valid52 && valid140){valid140 = false;passing36 = [passing36, 13];}else {if(_valid52){valid140 = true;passing36 = 13;}}}}}}}}}}}}}}if(!valid140){const err689 = {instancePath:instancePath+"/body/" + i8+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing36},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err689];}else {vErrors.push(err689);}errors++;}else {errors = _errs617;if(vErrors !== null){if(_errs617){vErrors.length = _errs617;}else {vErrors = null;}}}}if(data124.value !== undefined){if(typeof data124.value !== "string"){const err690 = {instancePath:instancePath+"/body/" + i8+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err690];}else {vErrors.push(err690);}errors++;}}if(data124.label !== undefined){let data172 = data124.label;if(typeof data172 === "string"){if(func2(data172) < 1){const err691 = {instancePath:instancePath+"/body/" + i8+"/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 = [err691];}else {vErrors.push(err691);}errors++;}}else {const err692 = {instancePath:instancePath+"/body/" + i8+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err692];}else {vErrors.push(err692);}errors++;}}if(data124.P2_has_type !== undefined){let data173 = data124.P2_has_type;if(Array.isArray(data173)){const len62 = data173.length;for(let i9=0; i9<len62; i9++){if(typeof data173[i9] !== "string"){const err693 = {instancePath:instancePath+"/body/" + i8+"/P2_has_type/" + i9,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err693];}else {vErrors.push(err693);}errors++;}}}else {const err694 = {instancePath:instancePath+"/body/" + i8+"/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err694];}else {vErrors.push(err694);}errors++;}}if(data124.description !== undefined){if(typeof data124.description !== "string"){const err695 = {instancePath:instancePath+"/body/" + i8+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err695];}else {vErrors.push(err695);}errors++;}}}else {const err696 = {instancePath:instancePath+"/body/" + i8,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err696];}else {vErrors.push(err696);}errors++;}}}else {const err697 = {instancePath:instancePath+"/body",schemaPath:"#/allOf/1/else/properties/body/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err697];}else {vErrors.push(err697);}errors++;}var _valid36 = _errs554 === errors;if(_valid36 && valid88){valid88 = false;passing28 = [passing28, 1];}else {if(_valid36){valid88 = true;passing28 = 1;}}if(!valid88){const err698 = {instancePath:instancePath+"/body",schemaPath:"#/allOf/1/else/properties/body/oneOf",keyword:"oneOf",params:{passingSchemas: passing28},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err698];}else {vErrors.push(err698);}errors++;}else {errors = _errs375;if(vErrors !== null){if(_errs375){vErrors.length = _errs375;}else {vErrors = null;}}}}}else {const err699 = {instancePath,schemaPath:"#/allOf/1/else/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err699];}else {vErrors.push(err699);}errors++;}var _valid35 = _errs372 === errors;valid83 = _valid35;ifClause6 = "else";}if(!valid83){const err700 = {instancePath,schemaPath:"#/allOf/1/if",keyword:"if",params:{failingKeyword: ifClause6},message:"must match \""+ifClause6+"\" schema"};if(vErrors === null){vErrors = [err700];}else {vErrors.push(err700);}errors++;}if(data && typeof data == "object" && !Array.isArray(data)){if(data["@context"] === undefined){const err701 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "@context"},message:"must have required property '"+"@context"+"'"};if(vErrors === null){vErrors = [err701];}else {vErrors.push(err701);}errors++;}if(data.id === undefined){const err702 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err702];}else {vErrors.push(err702);}errors++;}if(data.type === undefined){const err703 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err703];}else {vErrors.push(err703);}errors++;}if(data.motivation === undefined){const err704 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "motivation"},message:"must have required property '"+"motivation"+"'"};if(vErrors === null){vErrors = [err704];}else {vErrors.push(err704);}errors++;}if(data.created === undefined){const err705 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "created"},message:"must have required property '"+"created"+"'"};if(vErrors === null){vErrors = [err705];}else {vErrors.push(err705);}errors++;}if(data.generator === undefined){const err706 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "generator"},message:"must have required property '"+"generator"+"'"};if(vErrors === null){vErrors = [err706];}else {vErrors.push(err706);}errors++;}if(data.target === undefined){const err707 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "target"},message:"must have required property '"+"target"+"'"};if(vErrors === null){vErrors = [err707];}else {vErrors.push(err707);}errors++;}if(data.body === undefined){const err708 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "body"},message:"must have required property '"+"body"+"'"};if(vErrors === null){vErrors = [err708];}else {vErrors.push(err708);}errors++;}if(data.P2_has_type === undefined){const err709 = {instancePath,schemaPath:"#/required",keyword:"required",params:{missingProperty: "P2_has_type"},message:"must have required property '"+"P2_has_type"+"'"};if(vErrors === null){vErrors = [err709];}else {vErrors.push(err709);}errors++;}for(const key2 in data){if(!(func5.call(schema11.properties, key2))){const err710 = {instancePath,schemaPath:"#/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key2},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err710];}else {vErrors.push(err710);}errors++;}}if(data["@context"] !== undefined){let data176 = data["@context"];if(Array.isArray(data176)){if(data176.length > 3){const err711 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err711];}else {vErrors.push(err711);}errors++;}if(data176.length < 3){const err712 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err712];}else {vErrors.push(err712);}errors++;}const len63 = data176.length;if(len63 > 0){let data177 = data176[0];if(typeof data177 !== "string"){const err713 = {instancePath:instancePath+"/@context/0",schemaPath:"#/properties/%40context/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err713];}else {vErrors.push(err713);}errors++;}if("http://www.w3.org/ns/anno.jsonld" !== data177){const err714 = {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 = [err714];}else {vErrors.push(err714);}errors++;}}if(len63 > 1){let data178 = data176[1];if(typeof data178 !== "string"){const err715 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err715];}else {vErrors.push(err715);}errors++;}if("https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld" !== data178){const err716 = {instancePath:instancePath+"/@context/1",schemaPath:"#/properties/%40context/items/1/const",keyword:"const",params:{allowedValue: "https://www.cidoc-crm.org/cidoc-crm/json-ld_context.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err716];}else {vErrors.push(err716);}errors++;}}if(len63 > 2){let data179 = data176[2];if(typeof data179 !== "string"){const err717 = {instancePath:instancePath+"/@context/2",schemaPath:"#/properties/%40context/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err717];}else {vErrors.push(err717);}errors++;}if("https://wa.lincsproject.ca/v1/ns/anno.jsonld" !== data179){const err718 = {instancePath:instancePath+"/@context/2",schemaPath:"#/properties/%40context/items/2/const",keyword:"const",params:{allowedValue: "https://wa.lincsproject.ca/v1/ns/anno.jsonld"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err718];}else {vErrors.push(err718);}errors++;}}}else {const err719 = {instancePath:instancePath+"/@context",schemaPath:"#/properties/%40context/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err719];}else {vErrors.push(err719);}errors++;}}if(data.id !== undefined){let data180 = data.id;if(typeof data180 === "string"){if(!(formats0(data180))){const err720 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err720];}else {vErrors.push(err720);}errors++;}}else {const err721 = {instancePath:instancePath+"/id",schemaPath:"#/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err721];}else {vErrors.push(err721);}errors++;}}if(data.type !== undefined){let data181 = data.type;if(Array.isArray(data181)){if(data181.length > 2){const err722 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err722];}else {vErrors.push(err722);}errors++;}if(data181.length < 2){const err723 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err723];}else {vErrors.push(err723);}errors++;}const len64 = data181.length;if(len64 > 0){let data182 = data181[0];if(typeof data182 !== "string"){const err724 = {instancePath:instancePath+"/type/0",schemaPath:"#/properties/type/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err724];}else {vErrors.push(err724);}errors++;}if("Annotation" !== data182){const err725 = {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 = [err725];}else {vErrors.push(err725);}errors++;}}if(len64 > 1){let data183 = data181[1];if(typeof data183 !== "string"){const err726 = {instancePath:instancePath+"/type/1",schemaPath:"#/properties/type/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err726];}else {vErrors.push(err726);}errors++;}if("crm:E33_Linguistic_Object" !== data183){const err727 = {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 = [err727];}else {vErrors.push(err727);}errors++;}}}else {const err728 = {instancePath:instancePath+"/type",schemaPath:"#/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err728];}else {vErrors.push(err728);}errors++;}}if(data.motivation !== undefined){let data184 = data.motivation;const _errs752 = errors;let valid164 = false;let passing43 = null;const _errs753 = errors;if(typeof data184 !== "string"){const err729 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err729];}else {vErrors.push(err729);}errors++;}if("oa:identifying" !== data184){const err730 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/0/const",keyword:"const",params:{allowedValue: "oa:identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err730];}else {vErrors.push(err730);}errors++;}var _valid59 = _errs753 === errors;if(_valid59){valid164 = true;passing43 = 0;}const _errs755 = errors;if(typeof data184 !== "string"){const err731 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err731];}else {vErrors.push(err731);}errors++;}if("oa:describing" !== data184){const err732 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/1/const",keyword:"const",params:{allowedValue: "oa:describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err732];}else {vErrors.push(err732);}errors++;}var _valid59 = _errs755 === errors;if(_valid59 && valid164){valid164 = false;passing43 = [passing43, 1];}else {if(_valid59){valid164 = true;passing43 = 1;}const _errs757 = errors;if(typeof data184 !== "string"){const err733 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err733];}else {vErrors.push(err733);}errors++;}if("correcting" !== data184){const err734 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/2/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err734];}else {vErrors.push(err734);}errors++;}var _valid59 = _errs757 === errors;if(_valid59 && valid164){valid164 = false;passing43 = [passing43, 2];}else {if(_valid59){valid164 = true;passing43 = 2;}const _errs759 = errors;if(typeof data184 !== "string"){const err735 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err735];}else {vErrors.push(err735);}errors++;}if("oa:tagging" !== data184){const err736 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/3/const",keyword:"const",params:{allowedValue: "oa:tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err736];}else {vErrors.push(err736);}errors++;}var _valid59 = _errs759 === errors;if(_valid59 && valid164){valid164 = false;passing43 = [passing43, 3];}else {if(_valid59){valid164 = true;passing43 = 3;}const _errs761 = errors;if(typeof data184 !== "string"){const err737 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/4/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err737];}else {vErrors.push(err737);}errors++;}if("oa:classifying" !== data184){const err738 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/4/const",keyword:"const",params:{allowedValue: "oa:classifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err738];}else {vErrors.push(err738);}errors++;}var _valid59 = _errs761 === errors;if(_valid59 && valid164){valid164 = false;passing43 = [passing43, 4];}else {if(_valid59){valid164 = true;passing43 = 4;}const _errs763 = errors;if(typeof data184 !== "string"){const err739 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err739];}else {vErrors.push(err739);}errors++;}if("oa:linking" !== data184){const err740 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/5/const",keyword:"const",params:{allowedValue: "oa:linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err740];}else {vErrors.push(err740);}errors++;}var _valid59 = _errs763 === errors;if(_valid59 && valid164){valid164 = false;passing43 = [passing43, 5];}else {if(_valid59){valid164 = true;passing43 = 5;}const _errs765 = errors;if(typeof data184 !== "string"){const err741 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/6/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err741];}else {vErrors.push(err741);}errors++;}if("citing" !== data184){const err742 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf/6/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err742];}else {vErrors.push(err742);}errors++;}var _valid59 = _errs765 === errors;if(_valid59 && valid164){valid164 = false;passing43 = [passing43, 6];}else {if(_valid59){valid164 = true;passing43 = 6;}}}}}}}if(!valid164){const err743 = {instancePath:instancePath+"/motivation",schemaPath:"#/properties/motivation/oneOf",keyword:"oneOf",params:{passingSchemas: passing43},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err743];}else {vErrors.push(err743);}errors++;}else {errors = _errs752;if(vErrors !== null){if(_errs752){vErrors.length = _errs752;}else {vErrors = null;}}}}if(data.created !== undefined){let data185 = data.created;if(typeof data185 === "string"){if(!(formats10.validate(data185))){const err744 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err744];}else {vErrors.push(err744);}errors++;}}else {const err745 = {instancePath:instancePath+"/created",schemaPath:"#/properties/created/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err745];}else {vErrors.push(err745);}errors++;}}if(data.modified !== undefined){let data186 = data.modified;if(typeof data186 === "string"){if(!(formats10.validate(data186))){const err746 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/format",keyword:"format",params:{format: "date-time"},message:"must match format \""+"date-time"+"\""};if(vErrors === null){vErrors = [err746];}else {vErrors.push(err746);}errors++;}}else {const err747 = {instancePath:instancePath+"/modified",schemaPath:"#/properties/modified/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err747];}else {vErrors.push(err747);}errors++;}}if(data.creator !== undefined){let data187 = data.creator;const _errs772 = errors;let valid165 = false;let passing44 = null;const _errs773 = errors;if(data187 && typeof data187 == "object" && !Array.isArray(data187)){if(data187.id === undefined){const err748 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err748];}else {vErrors.push(err748);}errors++;}if(data187.type === undefined){const err749 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err749];}else {vErrors.push(err749);}errors++;}if(data187.name === undefined){const err750 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err750];}else {vErrors.push(err750);}errors++;}if(data187.id !== undefined){let data188 = data187.id;if(typeof data188 === "string"){if(!(formats0(data188))){const err751 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err751];}else {vErrors.push(err751);}errors++;}}else {const err752 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err752];}else {vErrors.push(err752);}errors++;}}if(data187.type !== undefined){let data189 = data187.type;if(typeof data189 !== "string"){const err753 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err753];}else {vErrors.push(err753);}errors++;}if("crm:E21_Person" !== data189){const err754 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err754];}else {vErrors.push(err754);}errors++;}}if(data187.name !== undefined){let data190 = data187.name;if(typeof data190 === "string"){if(func2(data190) < 1){const err755 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err755];}else {vErrors.push(err755);}errors++;}}else {const err756 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err756];}else {vErrors.push(err756);}errors++;}}}else {const err757 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/user/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err757];}else {vErrors.push(err757);}errors++;}var _valid60 = _errs773 === errors;if(_valid60){valid165 = true;passing44 = 0;}const _errs782 = errors;if(data187 && typeof data187 == "object" && !Array.isArray(data187)){if(data187.id === undefined){const err758 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err758];}else {vErrors.push(err758);}errors++;}if(data187.type === undefined){const err759 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err759];}else {vErrors.push(err759);}errors++;}if(data187.name === undefined){const err760 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err760];}else {vErrors.push(err760);}errors++;}if(data187.id !== undefined){let data191 = data187.id;if(typeof data191 === "string"){if(!(formats0(data191))){const err761 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err761];}else {vErrors.push(err761);}errors++;}}else {const err762 = {instancePath:instancePath+"/creator/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err762];}else {vErrors.push(err762);}errors++;}}if(data187.type !== undefined){let data192 = data187.type;if(typeof data192 !== "string"){const err763 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err763];}else {vErrors.push(err763);}errors++;}if("crm:E74_Group" !== data192){const err764 = {instancePath:instancePath+"/creator/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err764];}else {vErrors.push(err764);}errors++;}}if(data187.name !== undefined){let data193 = data187.name;if(typeof data193 === "string"){if(func2(data193) < 1){const err765 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err765];}else {vErrors.push(err765);}errors++;}}else {const err766 = {instancePath:instancePath+"/creator/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err766];}else {vErrors.push(err766);}errors++;}}}else {const err767 = {instancePath:instancePath+"/creator",schemaPath:"defs.jsonld#/definitions/group/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err767];}else {vErrors.push(err767);}errors++;}var _valid60 = _errs782 === errors;if(_valid60 && valid165){valid165 = false;passing44 = [passing44, 1];}else {if(_valid60){valid165 = true;passing44 = 1;}}if(!valid165){const err768 = {instancePath:instancePath+"/creator",schemaPath:"#/properties/creator/oneOf",keyword:"oneOf",params:{passingSchemas: passing44},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err768];}else {vErrors.push(err768);}errors++;}else {errors = _errs772;if(vErrors !== null){if(_errs772){vErrors.length = _errs772;}else {vErrors = null;}}}}if(data.contributor !== undefined){let data194 = data.contributor;if(Array.isArray(data194)){if(data194.length < 1){const err769 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err769];}else {vErrors.push(err769);}errors++;}const len65 = data194.length;for(let i10=0; i10<len65; i10++){let data195 = data194[i10];const _errs794 = errors;let valid172 = false;let passing45 = null;const _errs795 = errors;if(data195 && typeof data195 == "object" && !Array.isArray(data195)){if(data195.id === undefined){const err770 = {instancePath:instancePath+"/contributor/" + i10,schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err770];}else {vErrors.push(err770);}errors++;}if(data195.type === undefined){const err771 = {instancePath:instancePath+"/contributor/" + i10,schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err771];}else {vErrors.push(err771);}errors++;}if(data195.name === undefined){const err772 = {instancePath:instancePath+"/contributor/" + i10,schemaPath:"defs.jsonld#/definitions/user/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err772];}else {vErrors.push(err772);}errors++;}if(data195.id !== undefined){let data196 = data195.id;if(typeof data196 === "string"){if(!(formats0(data196))){const err773 = {instancePath:instancePath+"/contributor/" + i10+"/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err773];}else {vErrors.push(err773);}errors++;}}else {const err774 = {instancePath:instancePath+"/contributor/" + i10+"/id",schemaPath:"defs.jsonld#/definitions/user/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err774];}else {vErrors.push(err774);}errors++;}}if(data195.type !== undefined){let data197 = data195.type;if(typeof data197 !== "string"){const err775 = {instancePath:instancePath+"/contributor/" + i10+"/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err775];}else {vErrors.push(err775);}errors++;}if("crm:E21_Person" !== data197){const err776 = {instancePath:instancePath+"/contributor/" + i10+"/type",schemaPath:"defs.jsonld#/definitions/user/properties/type/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err776];}else {vErrors.push(err776);}errors++;}}if(data195.name !== undefined){let data198 = data195.name;if(typeof data198 === "string"){if(func2(data198) < 1){const err777 = {instancePath:instancePath+"/contributor/" + i10+"/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err777];}else {vErrors.push(err777);}errors++;}}else {const err778 = {instancePath:instancePath+"/contributor/" + i10+"/name",schemaPath:"defs.jsonld#/definitions/user/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err778];}else {vErrors.push(err778);}errors++;}}}else {const err779 = {instancePath:instancePath+"/contributor/" + i10,schemaPath:"defs.jsonld#/definitions/user/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err779];}else {vErrors.push(err779);}errors++;}var _valid61 = _errs795 === errors;if(_valid61){valid172 = true;passing45 = 0;}const _errs804 = errors;if(data195 && typeof data195 == "object" && !Array.isArray(data195)){if(data195.id === undefined){const err780 = {instancePath:instancePath+"/contributor/" + i10,schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err780];}else {vErrors.push(err780);}errors++;}if(data195.type === undefined){const err781 = {instancePath:instancePath+"/contributor/" + i10,schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err781];}else {vErrors.push(err781);}errors++;}if(data195.name === undefined){const err782 = {instancePath:instancePath+"/contributor/" + i10,schemaPath:"defs.jsonld#/definitions/group/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err782];}else {vErrors.push(err782);}errors++;}if(data195.id !== undefined){let data199 = data195.id;if(typeof data199 === "string"){if(!(formats0(data199))){const err783 = {instancePath:instancePath+"/contributor/" + i10+"/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err783];}else {vErrors.push(err783);}errors++;}}else {const err784 = {instancePath:instancePath+"/contributor/" + i10+"/id",schemaPath:"defs.jsonld#/definitions/group/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err784];}else {vErrors.push(err784);}errors++;}}if(data195.type !== undefined){let data200 = data195.type;if(typeof data200 !== "string"){const err785 = {instancePath:instancePath+"/contributor/" + i10+"/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err785];}else {vErrors.push(err785);}errors++;}if("crm:E74_Group" !== data200){const err786 = {instancePath:instancePath+"/contributor/" + i10+"/type",schemaPath:"defs.jsonld#/definitions/group/properties/type/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err786];}else {vErrors.push(err786);}errors++;}}if(data195.name !== undefined){let data201 = data195.name;if(typeof data201 === "string"){if(func2(data201) < 1){const err787 = {instancePath:instancePath+"/contributor/" + i10+"/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err787];}else {vErrors.push(err787);}errors++;}}else {const err788 = {instancePath:instancePath+"/contributor/" + i10+"/name",schemaPath:"defs.jsonld#/definitions/group/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err788];}else {vErrors.push(err788);}errors++;}}}else {const err789 = {instancePath:instancePath+"/contributor/" + i10,schemaPath:"defs.jsonld#/definitions/group/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err789];}else {vErrors.push(err789);}errors++;}var _valid61 = _errs804 === errors;if(_valid61 && valid172){valid172 = false;passing45 = [passing45, 1];}else {if(_valid61){valid172 = true;passing45 = 1;}const _errs813 = errors;if(data195 && typeof data195 == "object" && !Array.isArray(data195)){if(data195.id === undefined){const err790 = {instancePath:instancePath+"/contributor/" + i10,schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err790];}else {vErrors.push(err790);}errors++;}if(data195.type === undefined){const err791 = {instancePath:instancePath+"/contributor/" + i10,schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err791];}else {vErrors.push(err791);}errors++;}if(data195.name === undefined){const err792 = {instancePath:instancePath+"/contributor/" + i10,schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err792];}else {vErrors.push(err792);}errors++;}if(data195.id !== undefined){let data202 = data195.id;if(typeof data202 === "string"){if(!(formats0(data202))){const err793 = {instancePath:instancePath+"/contributor/" + i10+"/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err793];}else {vErrors.push(err793);}errors++;}}else {const err794 = {instancePath:instancePath+"/contributor/" + i10+"/id",schemaPath:"defs.jsonld#/definitions/software/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err794];}else {vErrors.push(err794);}errors++;}}if(data195.type !== undefined){let data203 = data195.type;if(Array.isArray(data203)){if(data203.length > 2){const err795 = {instancePath:instancePath+"/contributor/" + i10+"/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 = [err795];}else {vErrors.push(err795);}errors++;}if(data203.length < 2){const err796 = {instancePath:instancePath+"/contributor/" + i10+"/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 = [err796];}else {vErrors.push(err796);}errors++;}const len66 = data203.length;if(len66 > 0){let data204 = data203[0];if(typeof data204 !== "string"){const err797 = {instancePath:instancePath+"/contributor/" + i10+"/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 = [err797];}else {vErrors.push(err797);}errors++;}if("Software" !== data204){const err798 = {instancePath:instancePath+"/contributor/" + i10+"/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 = [err798];}else {vErrors.push(err798);}errors++;}}if(len66 > 1){let data205 = data203[1];if(typeof data205 !== "string"){const err799 = {instancePath:instancePath+"/contributor/" + i10+"/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 = [err799];}else {vErrors.push(err799);}errors++;}if("crm:E73_Information_Object" !== data205){const err800 = {instancePath:instancePath+"/contributor/" + i10+"/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err800];}else {vErrors.push(err800);}errors++;}}}else {const err801 = {instancePath:instancePath+"/contributor/" + i10+"/type",schemaPath:"defs.jsonld#/definitions/software/properties/type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err801];}else {vErrors.push(err801);}errors++;}}if(data195.P16_used_specific_object !== undefined){let data206 = data195.P16_used_specific_object;if((typeof data206 !== "string") && (data206 !== null)){const err802 = {instancePath:instancePath+"/contributor/" + i10+"/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err802];}else {vErrors.push(err802);}errors++;}if(typeof data206 === "string"){if(!(formats0(data206))){const err803 = {instancePath:instancePath+"/contributor/" + i10+"/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err803];}else {vErrors.push(err803);}errors++;}}}if(data195.name !== undefined){let data207 = data195.name;if(typeof data207 === "string"){if(func2(data207) < 1){const err804 = {instancePath:instancePath+"/contributor/" + i10+"/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err804];}else {vErrors.push(err804);}errors++;}}else {const err805 = {instancePath:instancePath+"/contributor/" + i10+"/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err805];}else {vErrors.push(err805);}errors++;}}if(data195.softwareVersion !== undefined){let data208 = data195.softwareVersion;if((typeof data208 !== "string") && (data208 !== null)){const err806 = {instancePath:instancePath+"/contributor/" + i10+"/softwareVersion",schemaPath:"defs.jsonld#/definitions/software/properties/softwareVersion/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err806];}else {vErrors.push(err806);}errors++;}}}else {const err807 = {instancePath:instancePath+"/contributor/" + i10,schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err807];}else {vErrors.push(err807);}errors++;}var _valid61 = _errs813 === errors;if(_valid61 && valid172){valid172 = false;passing45 = [passing45, 2];}else {if(_valid61){valid172 = true;passing45 = 2;}}}if(!valid172){const err808 = {instancePath:instancePath+"/contributor/" + i10,schemaPath:"#/properties/contributor/items/oneOf",keyword:"oneOf",params:{passingSchemas: passing45},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err808];}else {vErrors.push(err808);}errors++;}else {errors = _errs794;if(vErrors !== null){if(_errs794){vErrors.length = _errs794;}else {vErrors = null;}}}}}else {const err809 = {instancePath:instancePath+"/contributor",schemaPath:"#/properties/contributor/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err809];}else {vErrors.push(err809);}errors++;}}if(data.generator !== undefined){let data209 = data.generator;if(data209 && typeof data209 == "object" && !Array.isArray(data209)){if(data209.id === undefined){const err810 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err810];}else {vErrors.push(err810);}errors++;}if(data209.type === undefined){const err811 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err811];}else {vErrors.push(err811);}errors++;}if(data209.name === undefined){const err812 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err812];}else {vErrors.push(err812);}errors++;}if(data209.id !== undefined){let data210 = data209.id;if(typeof data210 === "string"){if(!(formats0(data210))){const err813 = {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 = [err813];}else {vErrors.push(err813);}errors++;}}else {const err814 = {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 = [err814];}else {vErrors.push(err814);}errors++;}}if(data209.type !== undefined){let data211 = data209.type;if(Array.isArray(data211)){if(data211.length > 2){const err815 = {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 = [err815];}else {vErrors.push(err815);}errors++;}if(data211.length < 2){const err816 = {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 = [err816];}else {vErrors.push(err816);}errors++;}const len67 = data211.length;if(len67 > 0){let data212 = data211[0];if(typeof data212 !== "string"){const err817 = {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 = [err817];}else {vErrors.push(err817);}errors++;}if("Software" !== data212){const err818 = {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 = [err818];}else {vErrors.push(err818);}errors++;}}if(len67 > 1){let data213 = data211[1];if(typeof data213 !== "string"){const err819 = {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 = [err819];}else {vErrors.push(err819);}errors++;}if("crm:E73_Information_Object" !== data213){const err820 = {instancePath:instancePath+"/generator/type/1",schemaPath:"defs.jsonld#/definitions/software/properties/type/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err820];}else {vErrors.push(err820);}errors++;}}}else {const err821 = {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 = [err821];}else {vErrors.push(err821);}errors++;}}if(data209.P16_used_specific_object !== undefined){let data214 = data209.P16_used_specific_object;if((typeof data214 !== "string") && (data214 !== null)){const err822 = {instancePath:instancePath+"/generator/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err822];}else {vErrors.push(err822);}errors++;}if(typeof data214 === "string"){if(!(formats0(data214))){const err823 = {instancePath:instancePath+"/generator/P16_used_specific_object",schemaPath:"defs.jsonld#/definitions/software/properties/P16_used_specific_object/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err823];}else {vErrors.push(err823);}errors++;}}}if(data209.name !== undefined){let data215 = data209.name;if(typeof data215 === "string"){if(func2(data215) < 1){const err824 = {instancePath:instancePath+"/generator/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err824];}else {vErrors.push(err824);}errors++;}}else {const err825 = {instancePath:instancePath+"/generator/name",schemaPath:"defs.jsonld#/definitions/software/properties/name/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err825];}else {vErrors.push(err825);}errors++;}}if(data209.softwareVersion !== undefined){let data216 = data209.softwareVersion;if((typeof data216 !== "string") && (data216 !== null)){const err826 = {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 = [err826];}else {vErrors.push(err826);}errors++;}}}else {const err827 = {instancePath:instancePath+"/generator",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err827];}else {vErrors.push(err827);}errors++;}}if(data.target !== undefined){let data217 = data.target;const _errs852 = errors;let valid183 = false;let passing46 = null;const _errs853 = errors;if(!(validate14(data217, {instancePath:instancePath+"/target",parentData:data,parentDataProperty:"target",rootData}))){vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);errors = vErrors.length;}var _valid62 = _errs853 === errors;if(_valid62){valid183 = true;passing46 = 0;}const _errs854 = errors;if(Array.isArray(data217)){if(data217.length < 1){const err828 = {instancePath:instancePath+"/target",schemaPath:"#/properties/target/oneOf/1/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err828];}else {vErrors.push(err828);}errors++;}const len68 = data217.length;for(let i11=0; i11<len68; i11++){if(!(validate14(data217[i11], {instancePath:instancePath+"/target/" + i11,parentData:data217,parentDataProperty:i11,rootData}))){vErrors = vErrors === null ? validate14.errors : vErrors.concat(validate14.errors);errors = vErrors.length;}}}else {const err829 = {instancePath:instancePath+"/target",schemaPath:"#/properties/target/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err829];}else {vErrors.push(err829);}errors++;}var _valid62 = _errs854 === errors;if(_valid62 && valid183){valid183 = false;passing46 = [passing46, 1];}else {if(_valid62){valid183 = true;passing46 = 1;}}if(!valid183){const err830 = {instancePath:instancePath+"/target",schemaPath:"#/properties/target/oneOf",keyword:"oneOf",params:{passingSchemas: passing46},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err830];}else {vErrors.push(err830);}errors++;}else {errors = _errs852;if(vErrors !== null){if(_errs852){vErrors.length = _errs852;}else {vErrors = null;}}}}if(data.body !== undefined){let data219 = data.body;const _errs858 = errors;let valid186 = false;let passing47 = null;const _errs859 = errors;if(!(validate12(data219, {instancePath:instancePath+"/body",parentData:data,parentDataProperty:"body",rootData}))){vErrors = vErrors === null ? validate12.errors : vErrors.concat(validate12.errors);errors = vErrors.length;}var _valid63 = _errs859 === errors;if(_valid63){valid186 = true;passing47 = 0;}const _errs860 = errors;const _errs863 = errors;let valid188 = false;const _errs864 = errors;const _errs865 = errors;let valid189 = true;const _errs866 = errors;if(errors === _errs866){if(data219 && typeof data219 == "object" && !Array.isArray(data219)){if(data219.type !== undefined){let data220 = data219.type;const _errs869 = errors;let valid191 = false;const _errs870 = errors;if(errors === _errs870){if(Array.isArray(data220)){if(data220.length > 2){const err831 = {};if(vErrors === null){vErrors = [err831];}else {vErrors.push(err831);}errors++;}else {if(data220.length < 2){const err832 = {};if(vErrors === null){vErrors = [err832];}else {vErrors.push(err832);}errors++;}else {const len69 = data220.length;if(len69 > 0){let data221 = data220[0];const _errs872 = errors;if(typeof data221 !== "string"){const err833 = {};if(vErrors === null){vErrors = [err833];}else {vErrors.push(err833);}errors++;}if("TextualBody" !== data221){const err834 = {};if(vErrors === null){vErrors = [err834];}else {vErrors.push(err834);}errors++;}var valid192 = _errs872 === errors;}if(valid192){if(len69 > 1){let data222 = data220[1];const _errs874 = errors;if(typeof data222 !== "string"){const err835 = {};if(vErrors === null){vErrors = [err835];}else {vErrors.push(err835);}errors++;}if("crm:E33_Linguistic_Object" !== data222){const err836 = {};if(vErrors === null){vErrors = [err836];}else {vErrors.push(err836);}errors++;}var valid192 = _errs874 === errors;}}}}}else {const err837 = {};if(vErrors === null){vErrors = [err837];}else {vErrors.push(err837);}errors++;}}var _valid66 = _errs870 === errors;valid191 = valid191 || _valid66;if(!valid191){const _errs876 = errors;if(errors === _errs876){if(Array.isArray(data220)){if(data220.length > 3){const err838 = {};if(vErrors === null){vErrors = [err838];}else {vErrors.push(err838);}errors++;}else {if(data220.length < 3){const err839 = {};if(vErrors === null){vErrors = [err839];}else {vErrors.push(err839);}errors++;}else {const len70 = data220.length;if(len70 > 0){let data223 = data220[0];const _errs878 = errors;if(typeof data223 !== "string"){const err840 = {};if(vErrors === null){vErrors = [err840];}else {vErrors.push(err840);}errors++;}if("TextualBody" !== data223){const err841 = {};if(vErrors === null){vErrors = [err841];}else {vErrors.push(err841);}errors++;}var valid193 = _errs878 === errors;}if(valid193){if(len70 > 1){let data224 = data220[1];const _errs880 = errors;if(typeof data224 !== "string"){const err842 = {};if(vErrors === null){vErrors = [err842];}else {vErrors.push(err842);}errors++;}if("xsd:date" !== data224){const err843 = {};if(vErrors === null){vErrors = [err843];}else {vErrors.push(err843);}errors++;}var valid193 = _errs880 === errors;}if(valid193){if(len70 > 2){let data225 = data220[2];const _errs882 = errors;if(typeof data225 !== "string"){const err844 = {};if(vErrors === null){vErrors = [err844];}else {vErrors.push(err844);}errors++;}if("crm:E52_Time-Span" !== data225){const err845 = {};if(vErrors === null){vErrors = [err845];}else {vErrors.push(err845);}errors++;}var valid193 = _errs882 === errors;}}}}}}else {const err846 = {};if(vErrors === null){vErrors = [err846];}else {vErrors.push(err846);}errors++;}}var _valid66 = _errs876 === errors;valid191 = valid191 || _valid66;if(!valid191){const _errs884 = errors;if(errors === _errs884){if(Array.isArray(data220)){if(data220.length > 3){const err847 = {};if(vErrors === null){vErrors = [err847];}else {vErrors.push(err847);}errors++;}else {if(data220.length < 3){const err848 = {};if(vErrors === null){vErrors = [err848];}else {vErrors.push(err848);}errors++;}else {const len71 = data220.length;if(len71 > 0){let data226 = data220[0];const _errs886 = errors;if(typeof data226 !== "string"){const err849 = {};if(vErrors === null){vErrors = [err849];}else {vErrors.push(err849);}errors++;}if("TextualBody" !== data226){const err850 = {};if(vErrors === null){vErrors = [err850];}else {vErrors.push(err850);}errors++;}var valid194 = _errs886 === errors;}if(valid194){if(len71 > 1){let data227 = data220[1];const _errs888 = errors;if(typeof data227 !== "string"){const err851 = {};if(vErrors === null){vErrors = [err851];}else {vErrors.push(err851);}errors++;}if("fabio:Correction" !== data227){const err852 = {};if(vErrors === null){vErrors = [err852];}else {vErrors.push(err852);}errors++;}var valid194 = _errs888 === errors;}if(valid194){if(len71 > 2){let data228 = data220[2];const _errs890 = errors;if(typeof data228 !== "string"){const err853 = {};if(vErrors === null){vErrors = [err853];}else {vErrors.push(err853);}errors++;}if("crm:E33_Linguistic_Object" !== data228){const err854 = {};if(vErrors === null){vErrors = [err854];}else {vErrors.push(err854);}errors++;}var valid194 = _errs890 === errors;}}}}}}else {const err855 = {};if(vErrors === null){vErrors = [err855];}else {vErrors.push(err855);}errors++;}}var _valid66 = _errs884 === errors;valid191 = valid191 || _valid66;if(!valid191){const _errs892 = errors;if(errors === _errs892){if(Array.isArray(data220)){if(data220.length > 3){const err856 = {};if(vErrors === null){vErrors = [err856];}else {vErrors.push(err856);}errors++;}else {if(data220.length < 3){const err857 = {};if(vErrors === null){vErrors = [err857];}else {vErrors.push(err857);}errors++;}else {const len72 = data220.length;if(len72 > 0){let data229 = data220[0];const _errs894 = errors;if(typeof data229 !== "string"){const err858 = {};if(vErrors === null){vErrors = [err858];}else {vErrors.push(err858);}errors++;}if("TextualBody" !== data229){const err859 = {};if(vErrors === null){vErrors = [err859];}else {vErrors.push(err859);}errors++;}var valid195 = _errs894 === errors;}if(valid195){if(len72 > 1){let data230 = data220[1];const _errs896 = errors;if(typeof data230 !== "string"){const err860 = {};if(vErrors === null){vErrors = [err860];}else {vErrors.push(err860);}errors++;}if("crm:E55_Type" !== data230){const err861 = {};if(vErrors === null){vErrors = [err861];}else {vErrors.push(err861);}errors++;}var valid195 = _errs896 === errors;}if(valid195){if(len72 > 2){let data231 = data220[2];const _errs898 = errors;if(typeof data231 !== "string"){const err862 = {};if(vErrors === null){vErrors = [err862];}else {vErrors.push(err862);}errors++;}if("crm:E33_Linguistic_Object" !== data231){const err863 = {};if(vErrors === null){vErrors = [err863];}else {vErrors.push(err863);}errors++;}var valid195 = _errs898 === errors;}}}}}}else {const err864 = {};if(vErrors === null){vErrors = [err864];}else {vErrors.push(err864);}errors++;}}var _valid66 = _errs892 === errors;valid191 = valid191 || _valid66;}}}if(!valid191){const err865 = {};if(vErrors === null){vErrors = [err865];}else {vErrors.push(err865);}errors++;}else {errors = _errs869;if(vErrors !== null){if(_errs869){vErrors.length = _errs869;}else {vErrors = null;}}}}}else {const err866 = {};if(vErrors === null){vErrors = [err866];}else {vErrors.push(err866);}errors++;}}var _valid65 = _errs866 === errors;errors = _errs865;if(vErrors !== null){if(_errs865){vErrors.length = _errs865;}else {vErrors = null;}}if(_valid65){const _errs900 = errors;const _errs902 = errors;let valid196 = true;const _errs903 = errors;if(errors === _errs903){if(data219 && typeof data219 == "object" && !Array.isArray(data219)){if(data219.type !== undefined){let data232 = data219.type;const _errs905 = errors;if(errors === _errs905){if(Array.isArray(data232)){if(data232.length > 3){const err867 = {};if(vErrors === null){vErrors = [err867];}else {vErrors.push(err867);}errors++;}else {if(data232.length < 3){const err868 = {};if(vErrors === null){vErrors = [err868];}else {vErrors.push(err868);}errors++;}else {const len73 = data232.length;if(len73 > 0){let data233 = data232[0];const _errs907 = errors;if(typeof data233 !== "string"){const err869 = {};if(vErrors === null){vErrors = [err869];}else {vErrors.push(err869);}errors++;}if("TextualBody" !== data233){const err870 = {};if(vErrors === null){vErrors = [err870];}else {vErrors.push(err870);}errors++;}var valid198 = _errs907 === errors;}if(valid198){if(len73 > 1){let data234 = data232[1];const _errs909 = errors;if(typeof data234 !== "string"){const err871 = {};if(vErrors === null){vErrors = [err871];}else {vErrors.push(err871);}errors++;}if("xsd:date" !== data234){const err872 = {};if(vErrors === null){vErrors = [err872];}else {vErrors.push(err872);}errors++;}var valid198 = _errs909 === errors;}if(valid198){if(len73 > 2){let data235 = data232[2];const _errs911 = errors;if(typeof data235 !== "string"){const err873 = {};if(vErrors === null){vErrors = [err873];}else {vErrors.push(err873);}errors++;}if("crm:E52_Time-Span" !== data235){const err874 = {};if(vErrors === null){vErrors = [err874];}else {vErrors.push(err874);}errors++;}var valid198 = _errs911 === errors;}}}}}}else {const err875 = {};if(vErrors === null){vErrors = [err875];}else {vErrors.push(err875);}errors++;}}}}else {const err876 = {};if(vErrors === null){vErrors = [err876];}else {vErrors.push(err876);}errors++;}}var _valid67 = _errs903 === errors;errors = _errs902;if(vErrors !== null){if(_errs902){vErrors.length = _errs902;}else {vErrors = null;}}if(_valid67){const _errs913 = errors;if(data219 && typeof data219 == "object" && !Array.isArray(data219)){if(data219.id === undefined){const err877 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err877];}else {vErrors.push(err877);}errors++;}if(data219.type === undefined){const err878 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err878];}else {vErrors.push(err878);}errors++;}if(data219.value === undefined){const err879 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err879];}else {vErrors.push(err879);}errors++;}if(data219.value !== undefined){let data236 = data219.value;if(typeof data236 === "string"){if(!pattern0.test(data236)){const err880 = {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 = [err880];}else {vErrors.push(err880);}errors++;}}else {const err881 = {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 = [err881];}else {vErrors.push(err881);}errors++;}}}else {const err882 = {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 = [err882];}else {vErrors.push(err882);}errors++;}var _valid67 = _errs913 === errors;valid196 = _valid67;}if(!valid196){const err883 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err883];}else {vErrors.push(err883);}errors++;}if(data219 && typeof data219 == "object" && !Array.isArray(data219)){if(data219.id === undefined){const err884 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err884];}else {vErrors.push(err884);}errors++;}if(data219.type === undefined){const err885 = {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 = [err885];}else {vErrors.push(err885);}errors++;}if(data219.value === undefined){const err886 = {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 = [err886];}else {vErrors.push(err886);}errors++;}}else {const err887 = {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 = [err887];}else {vErrors.push(err887);}errors++;}var _valid65 = _errs900 === errors;valid189 = _valid65;}if(!valid189){const err888 = {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 = [err888];}else {vErrors.push(err888);}errors++;}var _valid64 = _errs864 === errors;valid188 = valid188 || _valid64;if(!valid188){const err889 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err889];}else {vErrors.push(err889);}errors++;}else {errors = _errs863;if(vErrors !== null){if(_errs863){vErrors.length = _errs863;}else {vErrors = null;}}}if(data219 && typeof data219 == "object" && !Array.isArray(data219)){if(data219.id === undefined){const err890 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err890];}else {vErrors.push(err890);}errors++;}if(data219.type === undefined){const err891 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err891];}else {vErrors.push(err891);}errors++;}for(const key3 in data219){if(!((((((key3 === "id") || (key3 === "type")) || (key3 === "value")) || (key3 === "label")) || (key3 === "P2_has_type")) || (key3 === "description"))){const err892 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key3},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err892];}else {vErrors.push(err892);}errors++;}}if(data219.id !== undefined){let data237 = data219.id;if(typeof data237 === "string"){if(!(formats0(data237))){const err893 = {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 = [err893];}else {vErrors.push(err893);}errors++;}}else {const err894 = {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 = [err894];}else {vErrors.push(err894);}errors++;}}if(data219.type !== undefined){let data238 = data219.type;const _errs921 = errors;let valid201 = false;let passing48 = null;const _errs922 = errors;const _errs923 = errors;let valid202 = false;let passing49 = null;const _errs924 = errors;if(typeof data238 !== "string"){const err895 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err895];}else {vErrors.push(err895);}errors++;}if("crm:E21_Person" !== data238){const err896 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err896];}else {vErrors.push(err896);}errors++;}var _valid69 = _errs924 === errors;if(_valid69){valid202 = true;passing49 = 0;}const _errs926 = errors;if(Array.isArray(data238)){if(data238.length > 2){const err897 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err897];}else {vErrors.push(err897);}errors++;}if(data238.length < 2){const err898 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err898];}else {vErrors.push(err898);}errors++;}const len74 = data238.length;if(len74 > 0){let data239 = data238[0];if(typeof data239 !== "string"){const err899 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err899];}else {vErrors.push(err899);}errors++;}if("foaf:Person" !== data239){const err900 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err900];}else {vErrors.push(err900);}errors++;}}if(len74 > 1){let data240 = data238[1];if(typeof data240 !== "string"){const err901 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err901];}else {vErrors.push(err901);}errors++;}if("crm:E89_Propositional_Object" !== data240){const err902 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err902];}else {vErrors.push(err902);}errors++;}}}else {const err903 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err903];}else {vErrors.push(err903);}errors++;}var _valid69 = _errs926 === errors;if(_valid69 && valid202){valid202 = false;passing49 = [passing49, 1];}else {if(_valid69){valid202 = true;passing49 = 1;}}if(!valid202){const err904 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing49},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err904];}else {vErrors.push(err904);}errors++;}else {errors = _errs923;if(vErrors !== null){if(_errs923){vErrors.length = _errs923;}else {vErrors = null;}}}var _valid68 = _errs922 === errors;if(_valid68){valid201 = true;passing48 = 0;}const _errs932 = errors;const _errs933 = errors;let valid204 = false;let passing50 = null;const _errs934 = errors;if(typeof data238 !== "string"){const err905 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err905];}else {vErrors.push(err905);}errors++;}if("crm:E53_Place" !== data238){const err906 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err906];}else {vErrors.push(err906);}errors++;}var _valid70 = _errs934 === errors;if(_valid70){valid204 = true;passing50 = 0;}const _errs936 = errors;if(Array.isArray(data238)){if(data238.length > 2){const err907 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err907];}else {vErrors.push(err907);}errors++;}if(data238.length < 2){const err908 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err908];}else {vErrors.push(err908);}errors++;}const len75 = data238.length;if(len75 > 0){let data241 = data238[0];if(typeof data241 !== "string"){const err909 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err909];}else {vErrors.push(err909);}errors++;}if("biography:fictionalPlace" !== data241){const err910 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err910];}else {vErrors.push(err910);}errors++;}}if(len75 > 1){let data242 = data238[1];if(typeof data242 !== "string"){const err911 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err911];}else {vErrors.push(err911);}errors++;}if("crm:E89_Propositional_Object" !== data242){const err912 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/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 = [err912];}else {vErrors.push(err912);}errors++;}}}else {const err913 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err913];}else {vErrors.push(err913);}errors++;}var _valid70 = _errs936 === errors;if(_valid70 && valid204){valid204 = false;passing50 = [passing50, 1];}else {if(_valid70){valid204 = true;passing50 = 1;}}if(!valid204){const err914 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing50},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err914];}else {vErrors.push(err914);}errors++;}else {errors = _errs933;if(vErrors !== null){if(_errs933){vErrors.length = _errs933;}else {vErrors = null;}}}var _valid68 = _errs932 === errors;if(_valid68 && valid201){valid201 = false;passing48 = [passing48, 1];}else {if(_valid68){valid201 = true;passing48 = 1;}const _errs942 = errors;const _errs943 = errors;let valid206 = false;let passing51 = null;const _errs944 = errors;if(typeof data238 !== "string"){const err915 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err915];}else {vErrors.push(err915);}errors++;}if("crm:E74_Group" !== data238){const err916 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err916];}else {vErrors.push(err916);}errors++;}var _valid71 = _errs944 === errors;if(_valid71){valid206 = true;passing51 = 0;}const _errs946 = errors;if(Array.isArray(data238)){if(data238.length > 2){const err917 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err917];}else {vErrors.push(err917);}errors++;}if(data238.length < 2){const err918 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err918];}else {vErrors.push(err918);}errors++;}const len76 = data238.length;if(len76 > 0){let data243 = data238[0];if(typeof data243 !== "string"){const err919 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err919];}else {vErrors.push(err919);}errors++;}if("foaf:Organization" !== data243){const err920 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err920];}else {vErrors.push(err920);}errors++;}}if(len76 > 1){let data244 = data238[1];if(typeof data244 !== "string"){const err921 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err921];}else {vErrors.push(err921);}errors++;}if("crm:E89_Propositional_Object" !== data244){const err922 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err922];}else {vErrors.push(err922);}errors++;}}}else {const err923 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err923];}else {vErrors.push(err923);}errors++;}var _valid71 = _errs946 === errors;if(_valid71 && valid206){valid206 = false;passing51 = [passing51, 1];}else {if(_valid71){valid206 = true;passing51 = 1;}}if(!valid206){const err924 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing51},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err924];}else {vErrors.push(err924);}errors++;}else {errors = _errs943;if(vErrors !== null){if(_errs943){vErrors.length = _errs943;}else {vErrors = null;}}}var _valid68 = _errs942 === errors;if(_valid68 && valid201){valid201 = false;passing48 = [passing48, 2];}else {if(_valid68){valid201 = true;passing48 = 2;}const _errs952 = errors;const _errs953 = errors;let valid208 = false;let passing52 = null;const _errs954 = errors;if(typeof data238 !== "string"){const err925 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err925];}else {vErrors.push(err925);}errors++;}if("frbroo:F1" !== data238){const err926 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err926];}else {vErrors.push(err926);}errors++;}var _valid72 = _errs954 === errors;if(_valid72){valid208 = true;passing52 = 0;}const _errs956 = errors;if(Array.isArray(data238)){if(data238.length > 2){const err927 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err927];}else {vErrors.push(err927);}errors++;}if(data238.length < 2){const err928 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err928];}else {vErrors.push(err928);}errors++;}const len77 = data238.length;if(len77 > 0){let data245 = data238[0];if(typeof data245 !== "string"){const err929 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err929];}else {vErrors.push(err929);}errors++;}if("frbroo:F1" !== data245){const err930 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err930];}else {vErrors.push(err930);}errors++;}}if(len77 > 1){let data246 = data238[1];if(typeof data246 !== "string"){const err931 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err931];}else {vErrors.push(err931);}errors++;}if("wikidata:Q15306849" !== data246){const err932 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err932];}else {vErrors.push(err932);}errors++;}}}else {const err933 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err933];}else {vErrors.push(err933);}errors++;}var _valid72 = _errs956 === errors;if(_valid72 && valid208){valid208 = false;passing52 = [passing52, 1];}else {if(_valid72){valid208 = true;passing52 = 1;}}if(!valid208){const err934 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing52},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err934];}else {vErrors.push(err934);}errors++;}else {errors = _errs953;if(vErrors !== null){if(_errs953){vErrors.length = _errs953;}else {vErrors = null;}}}var _valid68 = _errs952 === errors;if(_valid68 && valid201){valid201 = false;passing48 = [passing48, 3];}else {if(_valid68){valid201 = true;passing48 = 3;}const _errs962 = errors;const _errs963 = errors;let valid210 = false;let passing53 = null;const _errs964 = errors;if(typeof data238 !== "string"){const err935 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err935];}else {vErrors.push(err935);}errors++;}if("crm:E18_Physical_Thing" !== data238){const err936 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err936];}else {vErrors.push(err936);}errors++;}var _valid73 = _errs964 === errors;if(_valid73){valid210 = true;passing53 = 0;}const _errs966 = errors;if(Array.isArray(data238)){if(data238.length > 2){const err937 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err937];}else {vErrors.push(err937);}errors++;}if(data238.length < 2){const err938 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err938];}else {vErrors.push(err938);}errors++;}const len78 = data238.length;if(len78 > 0){let data247 = data238[0];if(typeof data247 !== "string"){const err939 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err939];}else {vErrors.push(err939);}errors++;}if("crm:E18_Physical_Thing" !== data247){const err940 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/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 = [err940];}else {vErrors.push(err940);}errors++;}}if(len78 > 1){let data248 = data238[1];if(typeof data248 !== "string"){const err941 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err941];}else {vErrors.push(err941);}errors++;}if("wikidata:Q15831596" !== data248){const err942 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err942];}else {vErrors.push(err942);}errors++;}}}else {const err943 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err943];}else {vErrors.push(err943);}errors++;}var _valid73 = _errs966 === errors;if(_valid73 && valid210){valid210 = false;passing53 = [passing53, 1];}else {if(_valid73){valid210 = true;passing53 = 1;}}if(!valid210){const err944 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing53},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err944];}else {vErrors.push(err944);}errors++;}else {errors = _errs963;if(vErrors !== null){if(_errs963){vErrors.length = _errs963;}else {vErrors = null;}}}var _valid68 = _errs962 === errors;if(_valid68 && valid201){valid201 = false;passing48 = [passing48, 4];}else {if(_valid68){valid201 = true;passing48 = 4;}const _errs972 = errors;if(typeof data238 !== "string"){const err945 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err945];}else {vErrors.push(err945);}errors++;}if("crm:E28_Conceptual_Object" !== data238){const err946 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err946];}else {vErrors.push(err946);}errors++;}var _valid68 = _errs972 === errors;if(_valid68 && valid201){valid201 = false;passing48 = [passing48, 5];}else {if(_valid68){valid201 = true;passing48 = 5;}const _errs974 = errors;const _errs975 = errors;let valid212 = false;let passing54 = null;const _errs976 = errors;if(typeof data238 !== "string"){const err947 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err947];}else {vErrors.push(err947);}errors++;}if("crm:E5_Event" !== data238){const err948 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err948];}else {vErrors.push(err948);}errors++;}var _valid74 = _errs976 === errors;if(_valid74){valid212 = true;passing54 = 0;}const _errs978 = errors;if(Array.isArray(data238)){if(data238.length > 2){const err949 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err949];}else {vErrors.push(err949);}errors++;}if(data238.length < 2){const err950 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err950];}else {vErrors.push(err950);}errors++;}const len79 = data238.length;if(len79 > 0){let data249 = data238[0];if(typeof data249 !== "string"){const err951 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err951];}else {vErrors.push(err951);}errors++;}if("event:Event" !== data249){const err952 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err952];}else {vErrors.push(err952);}errors++;}}if(len79 > 1){let data250 = data238[1];if(typeof data250 !== "string"){const err953 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err953];}else {vErrors.push(err953);}errors++;}if("crm:E89_Propositional_Object" !== data250){const err954 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err954];}else {vErrors.push(err954);}errors++;}}}else {const err955 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err955];}else {vErrors.push(err955);}errors++;}var _valid74 = _errs978 === errors;if(_valid74 && valid212){valid212 = false;passing54 = [passing54, 1];}else {if(_valid74){valid212 = true;passing54 = 1;}}if(!valid212){const err956 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing54},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err956];}else {vErrors.push(err956);}errors++;}else {errors = _errs975;if(vErrors !== null){if(_errs975){vErrors.length = _errs975;}else {vErrors = null;}}}var _valid68 = _errs974 === errors;if(_valid68 && valid201){valid201 = false;passing48 = [passing48, 6];}else {if(_valid68){valid201 = true;passing48 = 6;}const _errs984 = errors;if(Array.isArray(data238)){if(data238.length > 2){const err957 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err957];}else {vErrors.push(err957);}errors++;}if(data238.length < 2){const err958 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err958];}else {vErrors.push(err958);}errors++;}const len80 = data238.length;if(len80 > 0){let data251 = data238[0];if(typeof data251 !== "string"){const err959 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err959];}else {vErrors.push(err959);}errors++;}if("cito:Citation" !== data251){const err960 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err960];}else {vErrors.push(err960);}errors++;}}if(len80 > 1){let data252 = data238[1];if(typeof data252 !== "string"){const err961 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err961];}else {vErrors.push(err961);}errors++;}if("crm:E73_Information_Object" !== data252){const err962 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err962];}else {vErrors.push(err962);}errors++;}}}else {const err963 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err963];}else {vErrors.push(err963);}errors++;}var _valid68 = _errs984 === errors;if(_valid68 && valid201){valid201 = false;passing48 = [passing48, 7];}else {if(_valid68){valid201 = true;passing48 = 7;}const _errs990 = errors;if(Array.isArray(data238)){if(data238.length > 3){const err964 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err964];}else {vErrors.push(err964);}errors++;}if(data238.length < 3){const err965 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err965];}else {vErrors.push(err965);}errors++;}const len81 = data238.length;if(len81 > 0){let data253 = data238[0];if(typeof data253 !== "string"){const err966 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err966];}else {vErrors.push(err966);}errors++;}if("TextualBody" !== data253){const err967 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err967];}else {vErrors.push(err967);}errors++;}}if(len81 > 1){let data254 = data238[1];if(typeof data254 !== "string"){const err968 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err968];}else {vErrors.push(err968);}errors++;}if("xsd:date" !== data254){const err969 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err969];}else {vErrors.push(err969);}errors++;}}if(len81 > 2){let data255 = data238[2];if(typeof data255 !== "string"){const err970 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err970];}else {vErrors.push(err970);}errors++;}if("crm:E52_Time-Span" !== data255){const err971 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err971];}else {vErrors.push(err971);}errors++;}}}else {const err972 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err972];}else {vErrors.push(err972);}errors++;}var _valid68 = _errs990 === errors;if(_valid68 && valid201){valid201 = false;passing48 = [passing48, 8];}else {if(_valid68){valid201 = true;passing48 = 8;}const _errs998 = errors;if(Array.isArray(data238)){if(data238.length > 2){const err973 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err973];}else {vErrors.push(err973);}errors++;}if(data238.length < 2){const err974 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err974];}else {vErrors.push(err974);}errors++;}const len82 = data238.length;if(len82 > 0){let data256 = data238[0];if(typeof data256 !== "string"){const err975 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err975];}else {vErrors.push(err975);}errors++;}if("TextualBody" !== data256){const err976 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err976];}else {vErrors.push(err976);}errors++;}}if(len82 > 1){let data257 = data238[1];if(typeof data257 !== "string"){const err977 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err977];}else {vErrors.push(err977);}errors++;}if("crm:E33_Linguistic_Object" !== data257){const err978 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err978];}else {vErrors.push(err978);}errors++;}}}else {const err979 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err979];}else {vErrors.push(err979);}errors++;}var _valid68 = _errs998 === errors;if(_valid68 && valid201){valid201 = false;passing48 = [passing48, 9];}else {if(_valid68){valid201 = true;passing48 = 9;}const _errs1004 = errors;if(Array.isArray(data238)){if(data238.length > 3){const err980 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err980];}else {vErrors.push(err980);}errors++;}if(data238.length < 3){const err981 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err981];}else {vErrors.push(err981);}errors++;}const len83 = data238.length;if(len83 > 0){let data258 = data238[0];if(typeof data258 !== "string"){const err982 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err982];}else {vErrors.push(err982);}errors++;}if("TextualBody" !== data258){const err983 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err983];}else {vErrors.push(err983);}errors++;}}if(len83 > 1){let data259 = data238[1];if(typeof data259 !== "string"){const err984 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err984];}else {vErrors.push(err984);}errors++;}if("fabio:Correction" !== data259){const err985 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err985];}else {vErrors.push(err985);}errors++;}}if(len83 > 2){let data260 = data238[2];if(typeof data260 !== "string"){const err986 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err986];}else {vErrors.push(err986);}errors++;}if("crm:E33_Linguistic_Object" !== data260){const err987 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err987];}else {vErrors.push(err987);}errors++;}}}else {const err988 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err988];}else {vErrors.push(err988);}errors++;}var _valid68 = _errs1004 === errors;if(_valid68 && valid201){valid201 = false;passing48 = [passing48, 10];}else {if(_valid68){valid201 = true;passing48 = 10;}const _errs1012 = errors;if(Array.isArray(data238)){if(data238.length > 2){const err989 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err989];}else {vErrors.push(err989);}errors++;}if(data238.length < 2){const err990 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err990];}else {vErrors.push(err990);}errors++;}const len84 = data238.length;if(len84 > 0){let data261 = data238[0];if(typeof data261 !== "string"){const err991 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err991];}else {vErrors.push(err991);}errors++;}if("crm:E55_Type" !== data261){const err992 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err992];}else {vErrors.push(err992);}errors++;}}if(len84 > 1){let data262 = data238[1];if(typeof data262 !== "string"){const err993 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err993];}else {vErrors.push(err993);}errors++;}if("crmdig:D1_Digital_Object" !== data262){const err994 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err994];}else {vErrors.push(err994);}errors++;}}}else {const err995 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err995];}else {vErrors.push(err995);}errors++;}var _valid68 = _errs1012 === errors;if(_valid68 && valid201){valid201 = false;passing48 = [passing48, 11];}else {if(_valid68){valid201 = true;passing48 = 11;}const _errs1018 = errors;if(Array.isArray(data238)){if(data238.length > 3){const err996 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err996];}else {vErrors.push(err996);}errors++;}if(data238.length < 3){const err997 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err997];}else {vErrors.push(err997);}errors++;}const len85 = data238.length;if(len85 > 0){let data263 = data238[0];if(typeof data263 !== "string"){const err998 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err998];}else {vErrors.push(err998);}errors++;}if("TextualBody" !== data263){const err999 = {instancePath:instancePath+"/body/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err999];}else {vErrors.push(err999);}errors++;}}if(len85 > 1){let data264 = data238[1];if(typeof data264 !== "string"){const err1000 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1000];}else {vErrors.push(err1000);}errors++;}if("crm:E55_Type" !== data264){const err1001 = {instancePath:instancePath+"/body/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1001];}else {vErrors.push(err1001);}errors++;}}if(len85 > 2){let data265 = data238[2];if(typeof data265 !== "string"){const err1002 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1002];}else {vErrors.push(err1002);}errors++;}if("crm:E33_Linguistic_Object" !== data265){const err1003 = {instancePath:instancePath+"/body/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1003];}else {vErrors.push(err1003);}errors++;}}}else {const err1004 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1004];}else {vErrors.push(err1004);}errors++;}var _valid68 = _errs1018 === errors;if(_valid68 && valid201){valid201 = false;passing48 = [passing48, 12];}else {if(_valid68){valid201 = true;passing48 = 12;}const _errs1026 = errors;if(typeof data238 !== "string"){const err1005 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/13/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1005];}else {vErrors.push(err1005);}errors++;}if("crmdig:D1_Digital_Object" !== data238){const err1006 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/13/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1006];}else {vErrors.push(err1006);}errors++;}var _valid68 = _errs1026 === errors;if(_valid68 && valid201){valid201 = false;passing48 = [passing48, 13];}else {if(_valid68){valid201 = true;passing48 = 13;}}}}}}}}}}}}}}if(!valid201){const err1007 = {instancePath:instancePath+"/body/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing48},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1007];}else {vErrors.push(err1007);}errors++;}else {errors = _errs921;if(vErrors !== null){if(_errs921){vErrors.length = _errs921;}else {vErrors = null;}}}}if(data219.value !== undefined){if(typeof data219.value !== "string"){const err1008 = {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 = [err1008];}else {vErrors.push(err1008);}errors++;}}if(data219.label !== undefined){let data267 = data219.label;if(typeof data267 === "string"){if(func2(data267) < 1){const err1009 = {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 = [err1009];}else {vErrors.push(err1009);}errors++;}}else {const err1010 = {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 = [err1010];}else {vErrors.push(err1010);}errors++;}}if(data219.P2_has_type !== undefined){let data268 = data219.P2_has_type;if(Array.isArray(data268)){const len86 = data268.length;for(let i12=0; i12<len86; i12++){if(typeof data268[i12] !== "string"){const err1011 = {instancePath:instancePath+"/body/P2_has_type/" + i12,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1011];}else {vErrors.push(err1011);}errors++;}}}else {const err1012 = {instancePath:instancePath+"/body/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1012];}else {vErrors.push(err1012);}errors++;}}if(data219.description !== undefined){if(typeof data219.description !== "string"){const err1013 = {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 = [err1013];}else {vErrors.push(err1013);}errors++;}}}else {const err1014 = {instancePath:instancePath+"/body",schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err1014];}else {vErrors.push(err1014);}errors++;}var _valid63 = _errs860 === errors;if(_valid63 && valid186){valid186 = false;passing47 = [passing47, 1];}else {if(_valid63){valid186 = true;passing47 = 1;}const _errs1038 = errors;if(Array.isArray(data219)){if(data219.length < 1){const err1015 = {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 = [err1015];}else {vErrors.push(err1015);}errors++;}const len87 = data219.length;for(let i13=0; i13<len87; i13++){let data271 = data219[i13];const _errs1043 = errors;let valid225 = false;const _errs1044 = errors;const _errs1045 = errors;let valid226 = true;const _errs1046 = errors;if(errors === _errs1046){if(data271 && typeof data271 == "object" && !Array.isArray(data271)){if(data271.type !== undefined){let data272 = data271.type;const _errs1049 = errors;let valid228 = false;const _errs1050 = errors;if(errors === _errs1050){if(Array.isArray(data272)){if(data272.length > 2){const err1016 = {};if(vErrors === null){vErrors = [err1016];}else {vErrors.push(err1016);}errors++;}else {if(data272.length < 2){const err1017 = {};if(vErrors === null){vErrors = [err1017];}else {vErrors.push(err1017);}errors++;}else {const len88 = data272.length;if(len88 > 0){let data273 = data272[0];const _errs1052 = errors;if(typeof data273 !== "string"){const err1018 = {};if(vErrors === null){vErrors = [err1018];}else {vErrors.push(err1018);}errors++;}if("TextualBody" !== data273){const err1019 = {};if(vErrors === null){vErrors = [err1019];}else {vErrors.push(err1019);}errors++;}var valid229 = _errs1052 === errors;}if(valid229){if(len88 > 1){let data274 = data272[1];const _errs1054 = errors;if(typeof data274 !== "string"){const err1020 = {};if(vErrors === null){vErrors = [err1020];}else {vErrors.push(err1020);}errors++;}if("crm:E33_Linguistic_Object" !== data274){const err1021 = {};if(vErrors === null){vErrors = [err1021];}else {vErrors.push(err1021);}errors++;}var valid229 = _errs1054 === errors;}}}}}else {const err1022 = {};if(vErrors === null){vErrors = [err1022];}else {vErrors.push(err1022);}errors++;}}var _valid77 = _errs1050 === errors;valid228 = valid228 || _valid77;if(!valid228){const _errs1056 = errors;if(errors === _errs1056){if(Array.isArray(data272)){if(data272.length > 3){const err1023 = {};if(vErrors === null){vErrors = [err1023];}else {vErrors.push(err1023);}errors++;}else {if(data272.length < 3){const err1024 = {};if(vErrors === null){vErrors = [err1024];}else {vErrors.push(err1024);}errors++;}else {const len89 = data272.length;if(len89 > 0){let data275 = data272[0];const _errs1058 = errors;if(typeof data275 !== "string"){const err1025 = {};if(vErrors === null){vErrors = [err1025];}else {vErrors.push(err1025);}errors++;}if("TextualBody" !== data275){const err1026 = {};if(vErrors === null){vErrors = [err1026];}else {vErrors.push(err1026);}errors++;}var valid230 = _errs1058 === errors;}if(valid230){if(len89 > 1){let data276 = data272[1];const _errs1060 = errors;if(typeof data276 !== "string"){const err1027 = {};if(vErrors === null){vErrors = [err1027];}else {vErrors.push(err1027);}errors++;}if("xsd:date" !== data276){const err1028 = {};if(vErrors === null){vErrors = [err1028];}else {vErrors.push(err1028);}errors++;}var valid230 = _errs1060 === errors;}if(valid230){if(len89 > 2){let data277 = data272[2];const _errs1062 = errors;if(typeof data277 !== "string"){const err1029 = {};if(vErrors === null){vErrors = [err1029];}else {vErrors.push(err1029);}errors++;}if("crm:E52_Time-Span" !== data277){const err1030 = {};if(vErrors === null){vErrors = [err1030];}else {vErrors.push(err1030);}errors++;}var valid230 = _errs1062 === errors;}}}}}}else {const err1031 = {};if(vErrors === null){vErrors = [err1031];}else {vErrors.push(err1031);}errors++;}}var _valid77 = _errs1056 === errors;valid228 = valid228 || _valid77;if(!valid228){const _errs1064 = errors;if(errors === _errs1064){if(Array.isArray(data272)){if(data272.length > 3){const err1032 = {};if(vErrors === null){vErrors = [err1032];}else {vErrors.push(err1032);}errors++;}else {if(data272.length < 3){const err1033 = {};if(vErrors === null){vErrors = [err1033];}else {vErrors.push(err1033);}errors++;}else {const len90 = data272.length;if(len90 > 0){let data278 = data272[0];const _errs1066 = errors;if(typeof data278 !== "string"){const err1034 = {};if(vErrors === null){vErrors = [err1034];}else {vErrors.push(err1034);}errors++;}if("TextualBody" !== data278){const err1035 = {};if(vErrors === null){vErrors = [err1035];}else {vErrors.push(err1035);}errors++;}var valid231 = _errs1066 === errors;}if(valid231){if(len90 > 1){let data279 = data272[1];const _errs1068 = errors;if(typeof data279 !== "string"){const err1036 = {};if(vErrors === null){vErrors = [err1036];}else {vErrors.push(err1036);}errors++;}if("fabio:Correction" !== data279){const err1037 = {};if(vErrors === null){vErrors = [err1037];}else {vErrors.push(err1037);}errors++;}var valid231 = _errs1068 === errors;}if(valid231){if(len90 > 2){let data280 = data272[2];const _errs1070 = errors;if(typeof data280 !== "string"){const err1038 = {};if(vErrors === null){vErrors = [err1038];}else {vErrors.push(err1038);}errors++;}if("crm:E33_Linguistic_Object" !== data280){const err1039 = {};if(vErrors === null){vErrors = [err1039];}else {vErrors.push(err1039);}errors++;}var valid231 = _errs1070 === errors;}}}}}}else {const err1040 = {};if(vErrors === null){vErrors = [err1040];}else {vErrors.push(err1040);}errors++;}}var _valid77 = _errs1064 === errors;valid228 = valid228 || _valid77;if(!valid228){const _errs1072 = errors;if(errors === _errs1072){if(Array.isArray(data272)){if(data272.length > 3){const err1041 = {};if(vErrors === null){vErrors = [err1041];}else {vErrors.push(err1041);}errors++;}else {if(data272.length < 3){const err1042 = {};if(vErrors === null){vErrors = [err1042];}else {vErrors.push(err1042);}errors++;}else {const len91 = data272.length;if(len91 > 0){let data281 = data272[0];const _errs1074 = errors;if(typeof data281 !== "string"){const err1043 = {};if(vErrors === null){vErrors = [err1043];}else {vErrors.push(err1043);}errors++;}if("TextualBody" !== data281){const err1044 = {};if(vErrors === null){vErrors = [err1044];}else {vErrors.push(err1044);}errors++;}var valid232 = _errs1074 === errors;}if(valid232){if(len91 > 1){let data282 = data272[1];const _errs1076 = errors;if(typeof data282 !== "string"){const err1045 = {};if(vErrors === null){vErrors = [err1045];}else {vErrors.push(err1045);}errors++;}if("crm:E55_Type" !== data282){const err1046 = {};if(vErrors === null){vErrors = [err1046];}else {vErrors.push(err1046);}errors++;}var valid232 = _errs1076 === errors;}if(valid232){if(len91 > 2){let data283 = data272[2];const _errs1078 = errors;if(typeof data283 !== "string"){const err1047 = {};if(vErrors === null){vErrors = [err1047];}else {vErrors.push(err1047);}errors++;}if("crm:E33_Linguistic_Object" !== data283){const err1048 = {};if(vErrors === null){vErrors = [err1048];}else {vErrors.push(err1048);}errors++;}var valid232 = _errs1078 === errors;}}}}}}else {const err1049 = {};if(vErrors === null){vErrors = [err1049];}else {vErrors.push(err1049);}errors++;}}var _valid77 = _errs1072 === errors;valid228 = valid228 || _valid77;}}}if(!valid228){const err1050 = {};if(vErrors === null){vErrors = [err1050];}else {vErrors.push(err1050);}errors++;}else {errors = _errs1049;if(vErrors !== null){if(_errs1049){vErrors.length = _errs1049;}else {vErrors = null;}}}}}else {const err1051 = {};if(vErrors === null){vErrors = [err1051];}else {vErrors.push(err1051);}errors++;}}var _valid76 = _errs1046 === errors;errors = _errs1045;if(vErrors !== null){if(_errs1045){vErrors.length = _errs1045;}else {vErrors = null;}}if(_valid76){const _errs1080 = errors;const _errs1082 = errors;let valid233 = true;const _errs1083 = errors;if(errors === _errs1083){if(data271 && typeof data271 == "object" && !Array.isArray(data271)){if(data271.type !== undefined){let data284 = data271.type;const _errs1085 = errors;if(errors === _errs1085){if(Array.isArray(data284)){if(data284.length > 3){const err1052 = {};if(vErrors === null){vErrors = [err1052];}else {vErrors.push(err1052);}errors++;}else {if(data284.length < 3){const err1053 = {};if(vErrors === null){vErrors = [err1053];}else {vErrors.push(err1053);}errors++;}else {const len92 = data284.length;if(len92 > 0){let data285 = data284[0];const _errs1087 = errors;if(typeof data285 !== "string"){const err1054 = {};if(vErrors === null){vErrors = [err1054];}else {vErrors.push(err1054);}errors++;}if("TextualBody" !== data285){const err1055 = {};if(vErrors === null){vErrors = [err1055];}else {vErrors.push(err1055);}errors++;}var valid235 = _errs1087 === errors;}if(valid235){if(len92 > 1){let data286 = data284[1];const _errs1089 = errors;if(typeof data286 !== "string"){const err1056 = {};if(vErrors === null){vErrors = [err1056];}else {vErrors.push(err1056);}errors++;}if("xsd:date" !== data286){const err1057 = {};if(vErrors === null){vErrors = [err1057];}else {vErrors.push(err1057);}errors++;}var valid235 = _errs1089 === errors;}if(valid235){if(len92 > 2){let data287 = data284[2];const _errs1091 = errors;if(typeof data287 !== "string"){const err1058 = {};if(vErrors === null){vErrors = [err1058];}else {vErrors.push(err1058);}errors++;}if("crm:E52_Time-Span" !== data287){const err1059 = {};if(vErrors === null){vErrors = [err1059];}else {vErrors.push(err1059);}errors++;}var valid235 = _errs1091 === errors;}}}}}}else {const err1060 = {};if(vErrors === null){vErrors = [err1060];}else {vErrors.push(err1060);}errors++;}}}}else {const err1061 = {};if(vErrors === null){vErrors = [err1061];}else {vErrors.push(err1061);}errors++;}}var _valid78 = _errs1083 === errors;errors = _errs1082;if(vErrors !== null){if(_errs1082){vErrors.length = _errs1082;}else {vErrors = null;}}if(_valid78){const _errs1093 = errors;if(data271 && typeof data271 == "object" && !Array.isArray(data271)){if(data271.id === undefined){const err1062 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1062];}else {vErrors.push(err1062);}errors++;}if(data271.type === undefined){const err1063 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err1063];}else {vErrors.push(err1063);}errors++;}if(data271.value === undefined){const err1064 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err1064];}else {vErrors.push(err1064);}errors++;}if(data271.value !== undefined){let data288 = data271.value;if(typeof data288 === "string"){if(!pattern0.test(data288)){const err1065 = {instancePath:instancePath+"/body/" + i13+"/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 = [err1065];}else {vErrors.push(err1065);}errors++;}}else {const err1066 = {instancePath:instancePath+"/body/" + i13+"/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 = [err1066];}else {vErrors.push(err1066);}errors++;}}}else {const err1067 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err1067];}else {vErrors.push(err1067);}errors++;}var _valid78 = _errs1093 === errors;valid233 = _valid78;}if(!valid233){const err1068 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err1068];}else {vErrors.push(err1068);}errors++;}if(data271 && typeof data271 == "object" && !Array.isArray(data271)){if(data271.id === undefined){const err1069 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1069];}else {vErrors.push(err1069);}errors++;}if(data271.type === undefined){const err1070 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err1070];}else {vErrors.push(err1070);}errors++;}if(data271.value === undefined){const err1071 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/required",keyword:"required",params:{missingProperty: "value"},message:"must have required property '"+"value"+"'"};if(vErrors === null){vErrors = [err1071];}else {vErrors.push(err1071);}errors++;}}else {const err1072 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/then/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err1072];}else {vErrors.push(err1072);}errors++;}var _valid76 = _errs1080 === errors;valid226 = _valid76;}if(!valid226){const err1073 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/anyOf/0/if",keyword:"if",params:{failingKeyword: "then"},message:"must match \"then\" schema"};if(vErrors === null){vErrors = [err1073];}else {vErrors.push(err1073);}errors++;}var _valid75 = _errs1044 === errors;valid225 = valid225 || _valid75;if(!valid225){const err1074 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err1074];}else {vErrors.push(err1074);}errors++;}else {errors = _errs1043;if(vErrors !== null){if(_errs1043){vErrors.length = _errs1043;}else {vErrors = null;}}}if(data271 && typeof data271 == "object" && !Array.isArray(data271)){if(data271.id === undefined){const err1075 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err1075];}else {vErrors.push(err1075);}errors++;}if(data271.type === undefined){const err1076 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err1076];}else {vErrors.push(err1076);}errors++;}for(const key4 in data271){if(!((((((key4 === "id") || (key4 === "type")) || (key4 === "value")) || (key4 === "label")) || (key4 === "P2_has_type")) || (key4 === "description"))){const err1077 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/additionalProperties",keyword:"additionalProperties",params:{additionalProperty: key4},message:"must NOT have additional properties"};if(vErrors === null){vErrors = [err1077];}else {vErrors.push(err1077);}errors++;}}if(data271.id !== undefined){let data289 = data271.id;if(typeof data289 === "string"){if(!(formats0(data289))){const err1078 = {instancePath:instancePath+"/body/" + i13+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err1078];}else {vErrors.push(err1078);}errors++;}}else {const err1079 = {instancePath:instancePath+"/body/" + i13+"/id",schemaPath:"defs.jsonld#/definitions/body/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1079];}else {vErrors.push(err1079);}errors++;}}if(data271.type !== undefined){let data290 = data271.type;const _errs1101 = errors;let valid238 = false;let passing55 = null;const _errs1102 = errors;const _errs1103 = errors;let valid239 = false;let passing56 = null;const _errs1104 = errors;if(typeof data290 !== "string"){const err1080 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1080];}else {vErrors.push(err1080);}errors++;}if("crm:E21_Person" !== data290){const err1081 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E21_Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1081];}else {vErrors.push(err1081);}errors++;}var _valid80 = _errs1104 === errors;if(_valid80){valid239 = true;passing56 = 0;}const _errs1106 = errors;if(Array.isArray(data290)){if(data290.length > 2){const err1082 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err1082];}else {vErrors.push(err1082);}errors++;}if(data290.length < 2){const err1083 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err1083];}else {vErrors.push(err1083);}errors++;}const len93 = data290.length;if(len93 > 0){let data291 = data290[0];if(typeof data291 !== "string"){const err1084 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1084];}else {vErrors.push(err1084);}errors++;}if("foaf:Person" !== data291){const err1085 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Person"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1085];}else {vErrors.push(err1085);}errors++;}}if(len93 > 1){let data292 = data290[1];if(typeof data292 !== "string"){const err1086 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1086];}else {vErrors.push(err1086);}errors++;}if("crm:E89_Propositional_Object" !== data292){const err1087 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1087];}else {vErrors.push(err1087);}errors++;}}}else {const err1088 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1088];}else {vErrors.push(err1088);}errors++;}var _valid80 = _errs1106 === errors;if(_valid80 && valid239){valid239 = false;passing56 = [passing56, 1];}else {if(_valid80){valid239 = true;passing56 = 1;}}if(!valid239){const err1089 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing56},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1089];}else {vErrors.push(err1089);}errors++;}else {errors = _errs1103;if(vErrors !== null){if(_errs1103){vErrors.length = _errs1103;}else {vErrors = null;}}}var _valid79 = _errs1102 === errors;if(_valid79){valid238 = true;passing55 = 0;}const _errs1112 = errors;const _errs1113 = errors;let valid241 = false;let passing57 = null;const _errs1114 = errors;if(typeof data290 !== "string"){const err1090 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1090];}else {vErrors.push(err1090);}errors++;}if("crm:E53_Place" !== data290){const err1091 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E53_Place"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1091];}else {vErrors.push(err1091);}errors++;}var _valid81 = _errs1114 === errors;if(_valid81){valid241 = true;passing57 = 0;}const _errs1116 = errors;if(Array.isArray(data290)){if(data290.length > 2){const err1092 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err1092];}else {vErrors.push(err1092);}errors++;}if(data290.length < 2){const err1093 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err1093];}else {vErrors.push(err1093);}errors++;}const len94 = data290.length;if(len94 > 0){let data293 = data290[0];if(typeof data293 !== "string"){const err1094 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1094];}else {vErrors.push(err1094);}errors++;}if("biography:fictionalPlace" !== data293){const err1095 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "biography:fictionalPlace"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1095];}else {vErrors.push(err1095);}errors++;}}if(len94 > 1){let data294 = data290[1];if(typeof data294 !== "string"){const err1096 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1096];}else {vErrors.push(err1096);}errors++;}if("crm:E89_Propositional_Object" !== data294){const err1097 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/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 = [err1097];}else {vErrors.push(err1097);}errors++;}}}else {const err1098 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1098];}else {vErrors.push(err1098);}errors++;}var _valid81 = _errs1116 === errors;if(_valid81 && valid241){valid241 = false;passing57 = [passing57, 1];}else {if(_valid81){valid241 = true;passing57 = 1;}}if(!valid241){const err1099 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing57},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1099];}else {vErrors.push(err1099);}errors++;}else {errors = _errs1113;if(vErrors !== null){if(_errs1113){vErrors.length = _errs1113;}else {vErrors = null;}}}var _valid79 = _errs1112 === errors;if(_valid79 && valid238){valid238 = false;passing55 = [passing55, 1];}else {if(_valid79){valid238 = true;passing55 = 1;}const _errs1122 = errors;const _errs1123 = errors;let valid243 = false;let passing58 = null;const _errs1124 = errors;if(typeof data290 !== "string"){const err1100 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1100];}else {vErrors.push(err1100);}errors++;}if("crm:E74_Group" !== data290){const err1101 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E74_Group"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1101];}else {vErrors.push(err1101);}errors++;}var _valid82 = _errs1124 === errors;if(_valid82){valid243 = true;passing58 = 0;}const _errs1126 = errors;if(Array.isArray(data290)){if(data290.length > 2){const err1102 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err1102];}else {vErrors.push(err1102);}errors++;}if(data290.length < 2){const err1103 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err1103];}else {vErrors.push(err1103);}errors++;}const len95 = data290.length;if(len95 > 0){let data295 = data290[0];if(typeof data295 !== "string"){const err1104 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1104];}else {vErrors.push(err1104);}errors++;}if("foaf:Organization" !== data295){const err1105 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "foaf:Organization"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1105];}else {vErrors.push(err1105);}errors++;}}if(len95 > 1){let data296 = data290[1];if(typeof data296 !== "string"){const err1106 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1106];}else {vErrors.push(err1106);}errors++;}if("crm:E89_Propositional_Object" !== data296){const err1107 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1107];}else {vErrors.push(err1107);}errors++;}}}else {const err1108 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1108];}else {vErrors.push(err1108);}errors++;}var _valid82 = _errs1126 === errors;if(_valid82 && valid243){valid243 = false;passing58 = [passing58, 1];}else {if(_valid82){valid243 = true;passing58 = 1;}}if(!valid243){const err1109 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/2/oneOf",keyword:"oneOf",params:{passingSchemas: passing58},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1109];}else {vErrors.push(err1109);}errors++;}else {errors = _errs1123;if(vErrors !== null){if(_errs1123){vErrors.length = _errs1123;}else {vErrors = null;}}}var _valid79 = _errs1122 === errors;if(_valid79 && valid238){valid238 = false;passing55 = [passing55, 2];}else {if(_valid79){valid238 = true;passing55 = 2;}const _errs1132 = errors;const _errs1133 = errors;let valid245 = false;let passing59 = null;const _errs1134 = errors;if(typeof data290 !== "string"){const err1110 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1110];}else {vErrors.push(err1110);}errors++;}if("frbroo:F1" !== data290){const err1111 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1111];}else {vErrors.push(err1111);}errors++;}var _valid83 = _errs1134 === errors;if(_valid83){valid245 = true;passing59 = 0;}const _errs1136 = errors;if(Array.isArray(data290)){if(data290.length > 2){const err1112 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err1112];}else {vErrors.push(err1112);}errors++;}if(data290.length < 2){const err1113 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err1113];}else {vErrors.push(err1113);}errors++;}const len96 = data290.length;if(len96 > 0){let data297 = data290[0];if(typeof data297 !== "string"){const err1114 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1114];}else {vErrors.push(err1114);}errors++;}if("frbroo:F1" !== data297){const err1115 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "frbroo:F1"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1115];}else {vErrors.push(err1115);}errors++;}}if(len96 > 1){let data298 = data290[1];if(typeof data298 !== "string"){const err1116 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1116];}else {vErrors.push(err1116);}errors++;}if("wikidata:Q15306849" !== data298){const err1117 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15306849"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1117];}else {vErrors.push(err1117);}errors++;}}}else {const err1118 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1118];}else {vErrors.push(err1118);}errors++;}var _valid83 = _errs1136 === errors;if(_valid83 && valid245){valid245 = false;passing59 = [passing59, 1];}else {if(_valid83){valid245 = true;passing59 = 1;}}if(!valid245){const err1119 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/3/oneOf",keyword:"oneOf",params:{passingSchemas: passing59},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1119];}else {vErrors.push(err1119);}errors++;}else {errors = _errs1133;if(vErrors !== null){if(_errs1133){vErrors.length = _errs1133;}else {vErrors = null;}}}var _valid79 = _errs1132 === errors;if(_valid79 && valid238){valid238 = false;passing55 = [passing55, 3];}else {if(_valid79){valid238 = true;passing55 = 3;}const _errs1142 = errors;const _errs1143 = errors;let valid247 = false;let passing60 = null;const _errs1144 = errors;if(typeof data290 !== "string"){const err1120 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1120];}else {vErrors.push(err1120);}errors++;}if("crm:E18_Physical_Thing" !== data290){const err1121 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E18_Physical_Thing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1121];}else {vErrors.push(err1121);}errors++;}var _valid84 = _errs1144 === errors;if(_valid84){valid247 = true;passing60 = 0;}const _errs1146 = errors;if(Array.isArray(data290)){if(data290.length > 2){const err1122 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err1122];}else {vErrors.push(err1122);}errors++;}if(data290.length < 2){const err1123 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err1123];}else {vErrors.push(err1123);}errors++;}const len97 = data290.length;if(len97 > 0){let data299 = data290[0];if(typeof data299 !== "string"){const err1124 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1124];}else {vErrors.push(err1124);}errors++;}if("crm:E18_Physical_Thing" !== data299){const err1125 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/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 = [err1125];}else {vErrors.push(err1125);}errors++;}}if(len97 > 1){let data300 = data290[1];if(typeof data300 !== "string"){const err1126 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1126];}else {vErrors.push(err1126);}errors++;}if("wikidata:Q15831596" !== data300){const err1127 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "wikidata:Q15831596"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1127];}else {vErrors.push(err1127);}errors++;}}}else {const err1128 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1128];}else {vErrors.push(err1128);}errors++;}var _valid84 = _errs1146 === errors;if(_valid84 && valid247){valid247 = false;passing60 = [passing60, 1];}else {if(_valid84){valid247 = true;passing60 = 1;}}if(!valid247){const err1129 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/4/oneOf",keyword:"oneOf",params:{passingSchemas: passing60},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1129];}else {vErrors.push(err1129);}errors++;}else {errors = _errs1143;if(vErrors !== null){if(_errs1143){vErrors.length = _errs1143;}else {vErrors = null;}}}var _valid79 = _errs1142 === errors;if(_valid79 && valid238){valid238 = false;passing55 = [passing55, 4];}else {if(_valid79){valid238 = true;passing55 = 4;}const _errs1152 = errors;if(typeof data290 !== "string"){const err1130 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1130];}else {vErrors.push(err1130);}errors++;}if("crm:E28_Conceptual_Object" !== data290){const err1131 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/5/const",keyword:"const",params:{allowedValue: "crm:E28_Conceptual_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1131];}else {vErrors.push(err1131);}errors++;}var _valid79 = _errs1152 === errors;if(_valid79 && valid238){valid238 = false;passing55 = [passing55, 5];}else {if(_valid79){valid238 = true;passing55 = 5;}const _errs1154 = errors;const _errs1155 = errors;let valid249 = false;let passing61 = null;const _errs1156 = errors;if(typeof data290 !== "string"){const err1132 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1132];}else {vErrors.push(err1132);}errors++;}if("crm:E5_Event" !== data290){const err1133 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/0/const",keyword:"const",params:{allowedValue: "crm:E5_Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1133];}else {vErrors.push(err1133);}errors++;}var _valid85 = _errs1156 === errors;if(_valid85){valid249 = true;passing61 = 0;}const _errs1158 = errors;if(Array.isArray(data290)){if(data290.length > 2){const err1134 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err1134];}else {vErrors.push(err1134);}errors++;}if(data290.length < 2){const err1135 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err1135];}else {vErrors.push(err1135);}errors++;}const len98 = data290.length;if(len98 > 0){let data301 = data290[0];if(typeof data301 !== "string"){const err1136 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1136];}else {vErrors.push(err1136);}errors++;}if("event:Event" !== data301){const err1137 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/0/const",keyword:"const",params:{allowedValue: "event:Event"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1137];}else {vErrors.push(err1137);}errors++;}}if(len98 > 1){let data302 = data290[1];if(typeof data302 !== "string"){const err1138 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1138];}else {vErrors.push(err1138);}errors++;}if("crm:E89_Propositional_Object" !== data302){const err1139 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/items/1/const",keyword:"const",params:{allowedValue: "crm:E89_Propositional_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1139];}else {vErrors.push(err1139);}errors++;}}}else {const err1140 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1140];}else {vErrors.push(err1140);}errors++;}var _valid85 = _errs1158 === errors;if(_valid85 && valid249){valid249 = false;passing61 = [passing61, 1];}else {if(_valid85){valid249 = true;passing61 = 1;}}if(!valid249){const err1141 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/6/oneOf",keyword:"oneOf",params:{passingSchemas: passing61},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1141];}else {vErrors.push(err1141);}errors++;}else {errors = _errs1155;if(vErrors !== null){if(_errs1155){vErrors.length = _errs1155;}else {vErrors = null;}}}var _valid79 = _errs1154 === errors;if(_valid79 && valid238){valid238 = false;passing55 = [passing55, 6];}else {if(_valid79){valid238 = true;passing55 = 6;}const _errs1164 = errors;if(Array.isArray(data290)){if(data290.length > 2){const err1142 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err1142];}else {vErrors.push(err1142);}errors++;}if(data290.length < 2){const err1143 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err1143];}else {vErrors.push(err1143);}errors++;}const len99 = data290.length;if(len99 > 0){let data303 = data290[0];if(typeof data303 !== "string"){const err1144 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1144];}else {vErrors.push(err1144);}errors++;}if("cito:Citation" !== data303){const err1145 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/0/const",keyword:"const",params:{allowedValue: "cito:Citation"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1145];}else {vErrors.push(err1145);}errors++;}}if(len99 > 1){let data304 = data290[1];if(typeof data304 !== "string"){const err1146 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1146];}else {vErrors.push(err1146);}errors++;}if("crm:E73_Information_Object" !== data304){const err1147 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/items/1/const",keyword:"const",params:{allowedValue: "crm:E73_Information_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1147];}else {vErrors.push(err1147);}errors++;}}}else {const err1148 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/7/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1148];}else {vErrors.push(err1148);}errors++;}var _valid79 = _errs1164 === errors;if(_valid79 && valid238){valid238 = false;passing55 = [passing55, 7];}else {if(_valid79){valid238 = true;passing55 = 7;}const _errs1170 = errors;if(Array.isArray(data290)){if(data290.length > 3){const err1149 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err1149];}else {vErrors.push(err1149);}errors++;}if(data290.length < 3){const err1150 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err1150];}else {vErrors.push(err1150);}errors++;}const len100 = data290.length;if(len100 > 0){let data305 = data290[0];if(typeof data305 !== "string"){const err1151 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1151];}else {vErrors.push(err1151);}errors++;}if("TextualBody" !== data305){const err1152 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1152];}else {vErrors.push(err1152);}errors++;}}if(len100 > 1){let data306 = data290[1];if(typeof data306 !== "string"){const err1153 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1153];}else {vErrors.push(err1153);}errors++;}if("xsd:date" !== data306){const err1154 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/1/const",keyword:"const",params:{allowedValue: "xsd:date"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1154];}else {vErrors.push(err1154);}errors++;}}if(len100 > 2){let data307 = data290[2];if(typeof data307 !== "string"){const err1155 = {instancePath:instancePath+"/body/" + i13+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1155];}else {vErrors.push(err1155);}errors++;}if("crm:E52_Time-Span" !== data307){const err1156 = {instancePath:instancePath+"/body/" + i13+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/items/2/const",keyword:"const",params:{allowedValue: "crm:E52_Time-Span"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1156];}else {vErrors.push(err1156);}errors++;}}}else {const err1157 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/8/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1157];}else {vErrors.push(err1157);}errors++;}var _valid79 = _errs1170 === errors;if(_valid79 && valid238){valid238 = false;passing55 = [passing55, 8];}else {if(_valid79){valid238 = true;passing55 = 8;}const _errs1178 = errors;if(Array.isArray(data290)){if(data290.length > 2){const err1158 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err1158];}else {vErrors.push(err1158);}errors++;}if(data290.length < 2){const err1159 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err1159];}else {vErrors.push(err1159);}errors++;}const len101 = data290.length;if(len101 > 0){let data308 = data290[0];if(typeof data308 !== "string"){const err1160 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1160];}else {vErrors.push(err1160);}errors++;}if("TextualBody" !== data308){const err1161 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1161];}else {vErrors.push(err1161);}errors++;}}if(len101 > 1){let data309 = data290[1];if(typeof data309 !== "string"){const err1162 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1162];}else {vErrors.push(err1162);}errors++;}if("crm:E33_Linguistic_Object" !== data309){const err1163 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/items/1/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1163];}else {vErrors.push(err1163);}errors++;}}}else {const err1164 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/9/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1164];}else {vErrors.push(err1164);}errors++;}var _valid79 = _errs1178 === errors;if(_valid79 && valid238){valid238 = false;passing55 = [passing55, 9];}else {if(_valid79){valid238 = true;passing55 = 9;}const _errs1184 = errors;if(Array.isArray(data290)){if(data290.length > 3){const err1165 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err1165];}else {vErrors.push(err1165);}errors++;}if(data290.length < 3){const err1166 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err1166];}else {vErrors.push(err1166);}errors++;}const len102 = data290.length;if(len102 > 0){let data310 = data290[0];if(typeof data310 !== "string"){const err1167 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1167];}else {vErrors.push(err1167);}errors++;}if("TextualBody" !== data310){const err1168 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1168];}else {vErrors.push(err1168);}errors++;}}if(len102 > 1){let data311 = data290[1];if(typeof data311 !== "string"){const err1169 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1169];}else {vErrors.push(err1169);}errors++;}if("fabio:Correction" !== data311){const err1170 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/1/const",keyword:"const",params:{allowedValue: "fabio:Correction"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1170];}else {vErrors.push(err1170);}errors++;}}if(len102 > 2){let data312 = data290[2];if(typeof data312 !== "string"){const err1171 = {instancePath:instancePath+"/body/" + i13+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1171];}else {vErrors.push(err1171);}errors++;}if("crm:E33_Linguistic_Object" !== data312){const err1172 = {instancePath:instancePath+"/body/" + i13+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1172];}else {vErrors.push(err1172);}errors++;}}}else {const err1173 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/10/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1173];}else {vErrors.push(err1173);}errors++;}var _valid79 = _errs1184 === errors;if(_valid79 && valid238){valid238 = false;passing55 = [passing55, 10];}else {if(_valid79){valid238 = true;passing55 = 10;}const _errs1192 = errors;if(Array.isArray(data290)){if(data290.length > 2){const err1174 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/maxItems",keyword:"maxItems",params:{limit: 2},message:"must NOT have more than 2 items"};if(vErrors === null){vErrors = [err1174];}else {vErrors.push(err1174);}errors++;}if(data290.length < 2){const err1175 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/minItems",keyword:"minItems",params:{limit: 2},message:"must NOT have fewer than 2 items"};if(vErrors === null){vErrors = [err1175];}else {vErrors.push(err1175);}errors++;}const len103 = data290.length;if(len103 > 0){let data313 = data290[0];if(typeof data313 !== "string"){const err1176 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1176];}else {vErrors.push(err1176);}errors++;}if("crm:E55_Type" !== data313){const err1177 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/0/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1177];}else {vErrors.push(err1177);}errors++;}}if(len103 > 1){let data314 = data290[1];if(typeof data314 !== "string"){const err1178 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1178];}else {vErrors.push(err1178);}errors++;}if("crmdig:D1_Digital_Object" !== data314){const err1179 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/items/1/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1179];}else {vErrors.push(err1179);}errors++;}}}else {const err1180 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/11/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1180];}else {vErrors.push(err1180);}errors++;}var _valid79 = _errs1192 === errors;if(_valid79 && valid238){valid238 = false;passing55 = [passing55, 11];}else {if(_valid79){valid238 = true;passing55 = 11;}const _errs1198 = errors;if(Array.isArray(data290)){if(data290.length > 3){const err1181 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err1181];}else {vErrors.push(err1181);}errors++;}if(data290.length < 3){const err1182 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/minItems",keyword:"minItems",params:{limit: 3},message:"must NOT have fewer than 3 items"};if(vErrors === null){vErrors = [err1182];}else {vErrors.push(err1182);}errors++;}const len104 = data290.length;if(len104 > 0){let data315 = data290[0];if(typeof data315 !== "string"){const err1183 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1183];}else {vErrors.push(err1183);}errors++;}if("TextualBody" !== data315){const err1184 = {instancePath:instancePath+"/body/" + i13+"/type/0",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/0/const",keyword:"const",params:{allowedValue: "TextualBody"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1184];}else {vErrors.push(err1184);}errors++;}}if(len104 > 1){let data316 = data290[1];if(typeof data316 !== "string"){const err1185 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1185];}else {vErrors.push(err1185);}errors++;}if("crm:E55_Type" !== data316){const err1186 = {instancePath:instancePath+"/body/" + i13+"/type/1",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/1/const",keyword:"const",params:{allowedValue: "crm:E55_Type"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1186];}else {vErrors.push(err1186);}errors++;}}if(len104 > 2){let data317 = data290[2];if(typeof data317 !== "string"){const err1187 = {instancePath:instancePath+"/body/" + i13+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1187];}else {vErrors.push(err1187);}errors++;}if("crm:E33_Linguistic_Object" !== data317){const err1188 = {instancePath:instancePath+"/body/" + i13+"/type/2",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/items/2/const",keyword:"const",params:{allowedValue: "crm:E33_Linguistic_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1188];}else {vErrors.push(err1188);}errors++;}}}else {const err1189 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/12/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1189];}else {vErrors.push(err1189);}errors++;}var _valid79 = _errs1198 === errors;if(_valid79 && valid238){valid238 = false;passing55 = [passing55, 12];}else {if(_valid79){valid238 = true;passing55 = 12;}const _errs1206 = errors;if(typeof data290 !== "string"){const err1190 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/13/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1190];}else {vErrors.push(err1190);}errors++;}if("crmdig:D1_Digital_Object" !== data290){const err1191 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf/13/const",keyword:"const",params:{allowedValue: "crmdig:D1_Digital_Object"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1191];}else {vErrors.push(err1191);}errors++;}var _valid79 = _errs1206 === errors;if(_valid79 && valid238){valid238 = false;passing55 = [passing55, 13];}else {if(_valid79){valid238 = true;passing55 = 13;}}}}}}}}}}}}}}if(!valid238){const err1192 = {instancePath:instancePath+"/body/" + i13+"/type",schemaPath:"defs.jsonld#/definitions/body/properties/type/oneOf",keyword:"oneOf",params:{passingSchemas: passing55},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1192];}else {vErrors.push(err1192);}errors++;}else {errors = _errs1101;if(vErrors !== null){if(_errs1101){vErrors.length = _errs1101;}else {vErrors = null;}}}}if(data271.value !== undefined){if(typeof data271.value !== "string"){const err1193 = {instancePath:instancePath+"/body/" + i13+"/value",schemaPath:"defs.jsonld#/definitions/body/properties/value/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1193];}else {vErrors.push(err1193);}errors++;}}if(data271.label !== undefined){let data319 = data271.label;if(typeof data319 === "string"){if(func2(data319) < 1){const err1194 = {instancePath:instancePath+"/body/" + i13+"/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 = [err1194];}else {vErrors.push(err1194);}errors++;}}else {const err1195 = {instancePath:instancePath+"/body/" + i13+"/label",schemaPath:"defs.jsonld#/definitions/body/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1195];}else {vErrors.push(err1195);}errors++;}}if(data271.P2_has_type !== undefined){let data320 = data271.P2_has_type;if(Array.isArray(data320)){const len105 = data320.length;for(let i14=0; i14<len105; i14++){if(typeof data320[i14] !== "string"){const err1196 = {instancePath:instancePath+"/body/" + i13+"/P2_has_type/" + i14,schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/items/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1196];}else {vErrors.push(err1196);}errors++;}}}else {const err1197 = {instancePath:instancePath+"/body/" + i13+"/P2_has_type",schemaPath:"defs.jsonld#/definitions/body/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1197];}else {vErrors.push(err1197);}errors++;}}if(data271.description !== undefined){if(typeof data271.description !== "string"){const err1198 = {instancePath:instancePath+"/body/" + i13+"/description",schemaPath:"defs.jsonld#/definitions/body/properties/description/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1198];}else {vErrors.push(err1198);}errors++;}}}else {const err1199 = {instancePath:instancePath+"/body/" + i13,schemaPath:"defs.jsonld#/definitions/body/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err1199];}else {vErrors.push(err1199);}errors++;}}}else {const err1200 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf/2/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1200];}else {vErrors.push(err1200);}errors++;}var _valid63 = _errs1038 === errors;if(_valid63 && valid186){valid186 = false;passing47 = [passing47, 2];}else {if(_valid63){valid186 = true;passing47 = 2;}}}if(!valid186){const err1201 = {instancePath:instancePath+"/body",schemaPath:"#/properties/body/oneOf",keyword:"oneOf",params:{passingSchemas: passing47},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1201];}else {vErrors.push(err1201);}errors++;}else {errors = _errs858;if(vErrors !== null){if(_errs858){vErrors.length = _errs858;}else {vErrors = null;}}}}if(data.label !== undefined){if(typeof data.label !== "string"){const err1202 = {instancePath:instancePath+"/label",schemaPath:"#/properties/label/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1202];}else {vErrors.push(err1202);}errors++;}}if(data.P2_has_type !== undefined){let data324 = data.P2_has_type;if(Array.isArray(data324)){if(data324.length > 3){const err1203 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/maxItems",keyword:"maxItems",params:{limit: 3},message:"must NOT have more than 3 items"};if(vErrors === null){vErrors = [err1203];}else {vErrors.push(err1203);}errors++;}if(data324.length < 1){const err1204 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/minItems",keyword:"minItems",params:{limit: 1},message:"must NOT have fewer than 1 items"};if(vErrors === null){vErrors = [err1204];}else {vErrors.push(err1204);}errors++;}const len106 = data324.length;var valid259 = len106 <= 1;if(!valid259){for(let i15=1; i15<len106; i15++){let data325 = data324[i15];const _errs1222 = errors;const _errs1223 = errors;let valid260 = false;let passing62 = null;const _errs1224 = errors;const _errs1225 = errors;let valid261 = false;let passing63 = null;const _errs1226 = errors;if(typeof data325 !== "string"){const err1205 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1205];}else {vErrors.push(err1205);}errors++;}if("edit:qualityLowCertainty" !== data325){const err1206 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1206];}else {vErrors.push(err1206);}errors++;}var _valid87 = _errs1226 === errors;if(_valid87){valid261 = true;passing63 = 0;}const _errs1228 = errors;if(typeof data325 !== "string"){const err1207 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1207];}else {vErrors.push(err1207);}errors++;}if("edit:qualityMediumCertainty" !== data325){const err1208 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1208];}else {vErrors.push(err1208);}errors++;}var _valid87 = _errs1228 === errors;if(_valid87 && valid261){valid261 = false;passing63 = [passing63, 1];}else {if(_valid87){valid261 = true;passing63 = 1;}const _errs1230 = errors;if(typeof data325 !== "string"){const err1209 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1209];}else {vErrors.push(err1209);}errors++;}if("edit:qualityHighCertainty" !== data325){const err1210 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1210];}else {vErrors.push(err1210);}errors++;}var _valid87 = _errs1230 === errors;if(_valid87 && valid261){valid261 = false;passing63 = [passing63, 2];}else {if(_valid87){valid261 = true;passing63 = 2;}const _errs1232 = errors;if(typeof data325 !== "string"){const err1211 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1211];}else {vErrors.push(err1211);}errors++;}if("edit:qualityUnknownCertainty" !== data325){const err1212 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownCertainty"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1212];}else {vErrors.push(err1212);}errors++;}var _valid87 = _errs1232 === errors;if(_valid87 && valid261){valid261 = false;passing63 = [passing63, 3];}else {if(_valid87){valid261 = true;passing63 = 3;}}}}if(!valid261){const err1213 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing63},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1213];}else {vErrors.push(err1213);}errors++;}else {errors = _errs1225;if(vErrors !== null){if(_errs1225){vErrors.length = _errs1225;}else {vErrors = null;}}}var _valid86 = _errs1224 === errors;if(_valid86){valid260 = true;passing62 = 0;}const _errs1234 = errors;const _errs1235 = errors;let valid262 = false;let passing64 = null;const _errs1236 = errors;if(typeof data325 !== "string"){const err1214 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1214];}else {vErrors.push(err1214);}errors++;}if("edit:qualityLowPrecision" !== data325){const err1215 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf/0/const",keyword:"const",params:{allowedValue: "edit:qualityLowPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1215];}else {vErrors.push(err1215);}errors++;}var _valid88 = _errs1236 === errors;if(_valid88){valid262 = true;passing64 = 0;}const _errs1238 = errors;if(typeof data325 !== "string"){const err1216 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1216];}else {vErrors.push(err1216);}errors++;}if("edit:qualityMediumPrecision" !== data325){const err1217 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf/1/const",keyword:"const",params:{allowedValue: "edit:qualityMediumPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1217];}else {vErrors.push(err1217);}errors++;}var _valid88 = _errs1238 === errors;if(_valid88 && valid262){valid262 = false;passing64 = [passing64, 1];}else {if(_valid88){valid262 = true;passing64 = 1;}const _errs1240 = errors;if(typeof data325 !== "string"){const err1218 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1218];}else {vErrors.push(err1218);}errors++;}if("edit:qualityHighPrecision" !== data325){const err1219 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf/2/const",keyword:"const",params:{allowedValue: "edit:qualityHighPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1219];}else {vErrors.push(err1219);}errors++;}var _valid88 = _errs1240 === errors;if(_valid88 && valid262){valid262 = false;passing64 = [passing64, 2];}else {if(_valid88){valid262 = true;passing64 = 2;}const _errs1242 = errors;if(typeof data325 !== "string"){const err1220 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1220];}else {vErrors.push(err1220);}errors++;}if("edit:qualityUnknownPrecision" !== data325){const err1221 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf/3/const",keyword:"const",params:{allowedValue: "edit:qualityUnknownPrecision"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1221];}else {vErrors.push(err1221);}errors++;}var _valid88 = _errs1242 === errors;if(_valid88 && valid262){valid262 = false;passing64 = [passing64, 3];}else {if(_valid88){valid262 = true;passing64 = 3;}}}}if(!valid262){const err1222 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf/1/oneOf",keyword:"oneOf",params:{passingSchemas: passing64},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1222];}else {vErrors.push(err1222);}errors++;}else {errors = _errs1235;if(vErrors !== null){if(_errs1235){vErrors.length = _errs1235;}else {vErrors = null;}}}var _valid86 = _errs1234 === errors;if(_valid86 && valid260){valid260 = false;passing62 = [passing62, 1];}else {if(_valid86){valid260 = true;passing62 = 1;}}if(!valid260){const err1223 = {instancePath:instancePath+"/P2_has_type/" + i15,schemaPath:"#/properties/P2_has_type/additionalItems/oneOf",keyword:"oneOf",params:{passingSchemas: passing62},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1223];}else {vErrors.push(err1223);}errors++;}else {errors = _errs1223;if(vErrors !== null){if(_errs1223){vErrors.length = _errs1223;}else {vErrors = null;}}}var valid259 = _errs1222 === errors;}}const len107 = data324.length;if(len107 > 0){let data326 = data324[0];const _errs1245 = errors;let valid264 = false;let passing65 = null;const _errs1246 = errors;if(typeof data326 !== "string"){const err1224 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/0/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1224];}else {vErrors.push(err1224);}errors++;}if("oa:identifying" !== data326){const err1225 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/0/const",keyword:"const",params:{allowedValue: "oa:identifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1225];}else {vErrors.push(err1225);}errors++;}var _valid89 = _errs1246 === errors;if(_valid89){valid264 = true;passing65 = 0;}const _errs1248 = errors;if(typeof data326 !== "string"){const err1226 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/1/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1226];}else {vErrors.push(err1226);}errors++;}if("oa:describing" !== data326){const err1227 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/1/const",keyword:"const",params:{allowedValue: "oa:describing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1227];}else {vErrors.push(err1227);}errors++;}var _valid89 = _errs1248 === errors;if(_valid89 && valid264){valid264 = false;passing65 = [passing65, 1];}else {if(_valid89){valid264 = true;passing65 = 1;}const _errs1250 = errors;if(typeof data326 !== "string"){const err1228 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/2/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1228];}else {vErrors.push(err1228);}errors++;}if("correcting" !== data326){const err1229 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/2/const",keyword:"const",params:{allowedValue: "correcting"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1229];}else {vErrors.push(err1229);}errors++;}var _valid89 = _errs1250 === errors;if(_valid89 && valid264){valid264 = false;passing65 = [passing65, 2];}else {if(_valid89){valid264 = true;passing65 = 2;}const _errs1252 = errors;if(typeof data326 !== "string"){const err1230 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/3/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1230];}else {vErrors.push(err1230);}errors++;}if("oa:tagging" !== data326){const err1231 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/3/const",keyword:"const",params:{allowedValue: "oa:tagging"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1231];}else {vErrors.push(err1231);}errors++;}var _valid89 = _errs1252 === errors;if(_valid89 && valid264){valid264 = false;passing65 = [passing65, 3];}else {if(_valid89){valid264 = true;passing65 = 3;}const _errs1254 = errors;if(typeof data326 !== "string"){const err1232 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/4/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1232];}else {vErrors.push(err1232);}errors++;}if("oa:classifying" !== data326){const err1233 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/4/const",keyword:"const",params:{allowedValue: "oa:classifying"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1233];}else {vErrors.push(err1233);}errors++;}var _valid89 = _errs1254 === errors;if(_valid89 && valid264){valid264 = false;passing65 = [passing65, 4];}else {if(_valid89){valid264 = true;passing65 = 4;}const _errs1256 = errors;if(typeof data326 !== "string"){const err1234 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/5/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1234];}else {vErrors.push(err1234);}errors++;}if("oa:linking" !== data326){const err1235 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/5/const",keyword:"const",params:{allowedValue: "oa:linking"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1235];}else {vErrors.push(err1235);}errors++;}var _valid89 = _errs1256 === errors;if(_valid89 && valid264){valid264 = false;passing65 = [passing65, 5];}else {if(_valid89){valid264 = true;passing65 = 5;}const _errs1258 = errors;if(typeof data326 !== "string"){const err1236 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/6/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err1236];}else {vErrors.push(err1236);}errors++;}if("citing" !== data326){const err1237 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf/6/const",keyword:"const",params:{allowedValue: "citing"},message:"must be equal to constant"};if(vErrors === null){vErrors = [err1237];}else {vErrors.push(err1237);}errors++;}var _valid89 = _errs1258 === errors;if(_valid89 && valid264){valid264 = false;passing65 = [passing65, 6];}else {if(_valid89){valid264 = true;passing65 = 6;}}}}}}}if(!valid264){const err1238 = {instancePath:instancePath+"/P2_has_type/0",schemaPath:"#/properties/P2_has_type/items/0/oneOf",keyword:"oneOf",params:{passingSchemas: passing65},message:"must match exactly one schema in oneOf"};if(vErrors === null){vErrors = [err1238];}else {vErrors.push(err1238);}errors++;}else {errors = _errs1245;if(vErrors !== null){if(_errs1245){vErrors.length = _errs1245;}else {vErrors = null;}}}}}else {const err1239 = {instancePath:instancePath+"/P2_has_type",schemaPath:"#/properties/P2_has_type/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err1239];}else {vErrors.push(err1239);}errors++;}}}else {const err1240 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err1240];}else {vErrors.push(err1240);}errors++;}validate10.errors = vErrors;return errors === 0;}