@lincs.project/webannotation-schema 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +30 -30
- package/dist/index.d.ts +30 -30
- package/dist/index.js +3 -10
- package/dist/index.mjs +3 -10
- package/dist/v1/jsonld/defs.jsonld +3 -10
- package/dist/v1/standalone/linc-wa-validator.js +1 -1
- package/package.json +2 -2
|
@@ -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"],"nullable":true,"anyOf":[{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},{"type":"array","minItems":1,"items":{"type":"string","description":"The format of the Web Resource's content. The value of the property should be the media-type of the format, following the [rfc6838] specification.","minLength":1},"description":"The formats of the Web Resource's content. The value of the property should and array of media-types of the format, following the [rfc6838] specification."}]},"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."}]},"title":{"type":"string","minLength":1,"nullable":true,"description":"The title of the document being annotated."}},"required":["id","type"]},"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.id !== undefined){let data30 = data29.id;if(typeof data30 === "string"){if(!(formats0(data30))){const err89 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/format",keyword:"format",params:{format: "uri"},message:"must match format \""+"uri"+"\""};if(vErrors === null){vErrors = [err89];}else {vErrors.push(err89);}errors++;}}else {const err90 = {instancePath:instancePath+"/source/id",schemaPath:"#/properties/source/properties/id/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err90];}else {vErrors.push(err90);}errors++;}}if(data29.type !== undefined){let data31 = data29.type;if(typeof data31 !== "string"){const err91 = {instancePath:instancePath+"/source/type",schemaPath:"#/properties/source/properties/type/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err91];}else {vErrors.push(err91);}errors++;}if("crm:D1_Digital_Object" !== data31){const err92 = {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 = [err92];}else {vErrors.push(err92);}errors++;}}if(data29.format !== undefined){let data32 = data29.format;if(((typeof data32 !== "string") && (!(Array.isArray(data32)))) && (data32 !== null)){const err93 = {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,null"};if(vErrors === null){vErrors = [err93];}else {vErrors.push(err93);}errors++;}const _errs98 = errors;let valid29 = false;const _errs99 = errors;if(typeof data32 === "string"){if(func3(data32) < 1){const err94 = {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 = [err94];}else {vErrors.push(err94);}errors++;}}else {const err95 = {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 = [err95];}else {vErrors.push(err95);}errors++;}var _valid5 = _errs99 === errors;valid29 = valid29 || _valid5;if(!valid29){const _errs101 = errors;if(Array.isArray(data32)){if(data32.length < 1){const err96 = {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 = [err96];}else {vErrors.push(err96);}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 err97 = {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 = [err97];}else {vErrors.push(err97);}errors++;}}else {const err98 = {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 = [err98];}else {vErrors.push(err98);}errors++;}}}else {const err99 = {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 = [err99];}else {vErrors.push(err99);}errors++;}var _valid5 = _errs101 === errors;valid29 = valid29 || _valid5;}if(!valid29){const err100 = {instancePath:instancePath+"/source/format",schemaPath:"#/properties/source/properties/format/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err100];}else {vErrors.push(err100);}errors++;}else {errors = _errs98;if(vErrors !== null){if(_errs98){vErrors.length = _errs98;}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 err101 = {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 = [err101];}else {vErrors.push(err101);}errors++;}if(data34 && typeof data34 == "object" && !Array.isArray(data34)){if(data34.id === undefined){const err102 = {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 = [err102];}else {vErrors.push(err102);}errors++;}if(data34.type === undefined){const err103 = {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 = [err103];}else {vErrors.push(err103);}errors++;}if(data34.title === undefined){const err104 = {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 = [err104];}else {vErrors.push(err104);}errors++;}if(data34.id !== undefined){let data35 = data34.id;if(typeof data35 === "string"){if(!(formats0(data35))){const err105 = {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 = [err105];}else {vErrors.push(err105);}errors++;}}else {const err106 = {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 = [err106];}else {vErrors.push(err106);}errors++;}}if(data34.type !== undefined){let data36 = data34.type;if(typeof data36 !== "string"){const err107 = {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 = [err107];}else {vErrors.push(err107);}errors++;}if("crm:E33_E41_Linguistic_Appellation" !== data36){const err108 = {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 = [err108];}else {vErrors.push(err108);}errors++;}}if(data34.title !== undefined){let data37 = data34.title;if(typeof data37 === "string"){if(func3(data37) < 1){const err109 = {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 = [err109];}else {vErrors.push(err109);}errors++;}}else {const err110 = {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 = [err110];}else {vErrors.push(err110);}errors++;}}}}if(data29.language !== undefined){let data38 = data29.language;if(((typeof data38 !== "string") && (!(Array.isArray(data38)))) && (data38 !== null)){const err111 = {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 = [err111];}else {vErrors.push(err111);}errors++;}const _errs117 = errors;let valid33 = false;const _errs118 = errors;if(typeof data38 === "string"){if(func3(data38) > 3){const err112 = {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 = [err112];}else {vErrors.push(err112);}errors++;}if(func3(data38) < 2){const err113 = {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 = [err113];}else {vErrors.push(err113);}errors++;}}else {const err114 = {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 = [err114];}else {vErrors.push(err114);}errors++;}var _valid6 = _errs118 === errors;valid33 = valid33 || _valid6;if(!valid33){const _errs120 = errors;if(Array.isArray(data38)){if(data38.length < 1){const err115 = {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 = [err115];}else {vErrors.push(err115);}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 err116 = {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 = [err116];}else {vErrors.push(err116);}errors++;}if(func3(data39) < 2){const err117 = {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 = [err117];}else {vErrors.push(err117);}errors++;}}else {const err118 = {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 = [err118];}else {vErrors.push(err118);}errors++;}}}else {const err119 = {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 = [err119];}else {vErrors.push(err119);}errors++;}var _valid6 = _errs120 === errors;valid33 = valid33 || _valid6;}if(!valid33){const err120 = {instancePath:instancePath+"/source/language",schemaPath:"#/properties/source/properties/language/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err120];}else {vErrors.push(err120);}errors++;}else {errors = _errs117;if(vErrors !== null){if(_errs117){vErrors.length = _errs117;}else {vErrors = null;}}}}if(data29.title !== undefined){let data40 = data29.title;if((typeof data40 !== "string") && (data40 !== null)){const err121 = {instancePath:instancePath+"/source/title",schemaPath:"#/properties/source/properties/title/type",keyword:"type",params:{type: "string"},message:"must be string"};if(vErrors === null){vErrors = [err121];}else {vErrors.push(err121);}errors++;}if(typeof data40 === "string"){if(func3(data40) < 1){const err122 = {instancePath:instancePath+"/source/title",schemaPath:"#/properties/source/properties/title/minLength",keyword:"minLength",params:{limit: 1},message:"must NOT have fewer than 1 characters"};if(vErrors === null){vErrors = [err122];}else {vErrors.push(err122);}errors++;}}}}else {const err123 = {instancePath:instancePath+"/source",schemaPath:"#/properties/source/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err123];}else {vErrors.push(err123);}errors++;}}if(data.renderedVia !== undefined){let data41 = data.renderedVia;if(data41 && typeof data41 == "object" && !Array.isArray(data41)){if(data41.id === undefined){const err124 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "id"},message:"must have required property '"+"id"+"'"};if(vErrors === null){vErrors = [err124];}else {vErrors.push(err124);}errors++;}if(data41.type === undefined){const err125 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "type"},message:"must have required property '"+"type"+"'"};if(vErrors === null){vErrors = [err125];}else {vErrors.push(err125);}errors++;}if(data41.name === undefined){const err126 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/required",keyword:"required",params:{missingProperty: "name"},message:"must have required property '"+"name"+"'"};if(vErrors === null){vErrors = [err126];}else {vErrors.push(err126);}errors++;}if(data41.id !== undefined){let data42 = data41.id;if(typeof data42 === "string"){if(!(formats0(data42))){const err127 = {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 = [err127];}else {vErrors.push(err127);}errors++;}}else {const err128 = {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 = [err128];}else {vErrors.push(err128);}errors++;}}if(data41.type !== undefined){let data43 = data41.type;if(Array.isArray(data43)){if(data43.length > 2){const err129 = {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 = [err129];}else {vErrors.push(err129);}errors++;}if(data43.length < 2){const err130 = {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 = [err130];}else {vErrors.push(err130);}errors++;}const len8 = data43.length;if(len8 > 0){let data44 = data43[0];if(typeof data44 !== "string"){const err131 = {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 = [err131];}else {vErrors.push(err131);}errors++;}if("Software" !== data44){const err132 = {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 = [err132];}else {vErrors.push(err132);}errors++;}}if(len8 > 1){let data45 = data43[1];if(typeof data45 !== "string"){const err133 = {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 = [err133];}else {vErrors.push(err133);}errors++;}if("crm:E73_Information_Object" !== data45){const err134 = {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 = [err134];}else {vErrors.push(err134);}errors++;}}}else {const err135 = {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 = [err135];}else {vErrors.push(err135);}errors++;}}if(data41.P16_used_specific_object !== undefined){let data46 = data41.P16_used_specific_object;if((typeof data46 !== "string") && (data46 !== null)){const err136 = {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 = [err136];}else {vErrors.push(err136);}errors++;}if(typeof data46 === "string"){if(!(formats0(data46))){const err137 = {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 = [err137];}else {vErrors.push(err137);}errors++;}}}if(data41.name !== undefined){let data47 = data41.name;if(typeof data47 === "string"){if(func3(data47) < 1){const err138 = {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 = [err138];}else {vErrors.push(err138);}errors++;}}else {const err139 = {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 = [err139];}else {vErrors.push(err139);}errors++;}}if(data41.softwareVersion !== undefined){let data48 = data41.softwareVersion;if((typeof data48 !== "string") && (data48 !== null)){const err140 = {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 = [err140];}else {vErrors.push(err140);}errors++;}}}else {const err141 = {instancePath:instancePath+"/renderedVia",schemaPath:"defs.jsonld#/definitions/software/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err141];}else {vErrors.push(err141);}errors++;}}if(data.selector !== undefined){let data49 = data.selector;const _errs147 = errors;let valid39 = false;const _errs148 = errors;const _errs150 = errors;let valid40 = false;let passing0 = null;const _errs151 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.id === undefined){const err142 = {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 = [err142];}else {vErrors.push(err142);}errors++;}if(data49.type === undefined){const err143 = {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 = [err143];}else {vErrors.push(err143);}errors++;}if(data49.exact === undefined){const err144 = {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 = [err144];}else {vErrors.push(err144);}errors++;}if(data49.prefix === undefined){const err145 = {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 = [err145];}else {vErrors.push(err145);}errors++;}if(data49.suffix === undefined){const err146 = {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 = [err146];}else {vErrors.push(err146);}errors++;}if(data49.id !== undefined){let data50 = data49.id;if(typeof data50 === "string"){if(!(formats0(data50))){const err147 = {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 = [err147];}else {vErrors.push(err147);}errors++;}}else {const err148 = {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 = [err148];}else {vErrors.push(err148);}errors++;}}if(data49.type !== undefined){let data51 = data49.type;if(Array.isArray(data51)){if(data51.length > 2){const err149 = {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 = [err149];}else {vErrors.push(err149);}errors++;}if(data51.length < 2){const err150 = {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 = [err150];}else {vErrors.push(err150);}errors++;}const len9 = data51.length;if(len9 > 0){let data52 = data51[0];if(typeof data52 !== "string"){const err151 = {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 = [err151];}else {vErrors.push(err151);}errors++;}if("TextQuoteSelector" !== data52){const err152 = {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 = [err152];}else {vErrors.push(err152);}errors++;}}if(len9 > 1){let data53 = data51[1];if(typeof data53 !== "string"){const err153 = {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 = [err153];}else {vErrors.push(err153);}errors++;}if("crm:E33_Linguistic_Object" !== data53){const err154 = {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 = [err154];}else {vErrors.push(err154);}errors++;}}}else {const err155 = {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 = [err155];}else {vErrors.push(err155);}errors++;}}if(data49.exact !== undefined){if(typeof data49.exact !== "string"){const err156 = {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 = [err156];}else {vErrors.push(err156);}errors++;}}if(data49.prefix !== undefined){if(typeof data49.prefix !== "string"){const err157 = {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 = [err157];}else {vErrors.push(err157);}errors++;}}if(data49.suffix !== undefined){if(typeof data49.suffix !== "string"){const err158 = {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 = [err158];}else {vErrors.push(err158);}errors++;}}if(data49.refinedBy !== undefined){let data57 = data49.refinedBy;const _errs169 = errors;let valid43 = false;let passing1 = null;const _errs170 = errors;if(data57 && typeof data57 == "object" && !Array.isArray(data57)){if(data57.id === undefined){const err159 = {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 = [err159];}else {vErrors.push(err159);}errors++;}if(data57.type === undefined){const err160 = {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 = [err160];}else {vErrors.push(err160);}errors++;}if(data57.start === undefined){const err161 = {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 = [err161];}else {vErrors.push(err161);}errors++;}if(data57.end === undefined){const err162 = {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 = [err162];}else {vErrors.push(err162);}errors++;}if(data57.id !== undefined){let data58 = data57.id;if(typeof data58 === "string"){if(!(formats0(data58))){const err163 = {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 = [err163];}else {vErrors.push(err163);}errors++;}}else {const err164 = {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 = [err164];}else {vErrors.push(err164);}errors++;}}if(data57.type !== undefined){let data59 = data57.type;if(Array.isArray(data59)){if(data59.length > 2){const err165 = {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 = [err165];}else {vErrors.push(err165);}errors++;}if(data59.length < 2){const err166 = {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 = [err166];}else {vErrors.push(err166);}errors++;}const len10 = data59.length;if(len10 > 0){let data60 = data59[0];if(typeof data60 !== "string"){const err167 = {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 = [err167];}else {vErrors.push(err167);}errors++;}if("TextPositionSelector" !== data60){const err168 = {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 = [err168];}else {vErrors.push(err168);}errors++;}}if(len10 > 1){let data61 = data59[1];if(typeof data61 !== "string"){const err169 = {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 = [err169];}else {vErrors.push(err169);}errors++;}if("crm:E73_Information_Object" !== data61){const err170 = {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 = [err170];}else {vErrors.push(err170);}errors++;}}}else {const err171 = {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 = [err171];}else {vErrors.push(err171);}errors++;}}if(data57.start !== undefined){let data62 = data57.start;if((typeof data62 == "number") && (isFinite(data62))){if(data62 < 0 || isNaN(data62)){const err172 = {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 = [err172];}else {vErrors.push(err172);}errors++;}}else {const err173 = {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 = [err173];}else {vErrors.push(err173);}errors++;}}if(data57.end !== undefined){let data63 = data57.end;if((typeof data63 == "number") && (isFinite(data63))){if(data63 < 0 || isNaN(data63)){const err174 = {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 = [err174];}else {vErrors.push(err174);}errors++;}}else {const err175 = {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 = [err175];}else {vErrors.push(err175);}errors++;}}}else {const err176 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err176];}else {vErrors.push(err176);}errors++;}var _valid9 = _errs170 === errors;if(_valid9){valid43 = true;passing1 = 0;}const _errs185 = errors;if(data57 && typeof data57 == "object" && !Array.isArray(data57)){if(data57.id === undefined){const err177 = {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 = [err177];}else {vErrors.push(err177);}errors++;}if(data57.type === undefined){const err178 = {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 = [err178];}else {vErrors.push(err178);}errors++;}if(data57.exact === undefined){const err179 = {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 = [err179];}else {vErrors.push(err179);}errors++;}if(data57.prefix === undefined){const err180 = {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 = [err180];}else {vErrors.push(err180);}errors++;}if(data57.suffix === undefined){const err181 = {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 = [err181];}else {vErrors.push(err181);}errors++;}if(data57.id !== undefined){let data64 = data57.id;if(typeof data64 === "string"){if(!(formats0(data64))){const err182 = {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 = [err182];}else {vErrors.push(err182);}errors++;}}else {const err183 = {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 = [err183];}else {vErrors.push(err183);}errors++;}}if(data57.type !== undefined){let data65 = data57.type;if(Array.isArray(data65)){if(data65.length > 2){const err184 = {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 = [err184];}else {vErrors.push(err184);}errors++;}if(data65.length < 2){const err185 = {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 = [err185];}else {vErrors.push(err185);}errors++;}const len11 = data65.length;if(len11 > 0){let data66 = data65[0];if(typeof data66 !== "string"){const err186 = {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 = [err186];}else {vErrors.push(err186);}errors++;}if("TextQuoteSelector" !== data66){const err187 = {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 = [err187];}else {vErrors.push(err187);}errors++;}}if(len11 > 1){let data67 = data65[1];if(typeof data67 !== "string"){const err188 = {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 = [err188];}else {vErrors.push(err188);}errors++;}if("crm:E33_Linguistic_Object" !== data67){const err189 = {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 = [err189];}else {vErrors.push(err189);}errors++;}}}else {const err190 = {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 = [err190];}else {vErrors.push(err190);}errors++;}}if(data57.exact !== undefined){if(typeof data57.exact !== "string"){const err191 = {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 = [err191];}else {vErrors.push(err191);}errors++;}}if(data57.prefix !== undefined){if(typeof data57.prefix !== "string"){const err192 = {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 = [err192];}else {vErrors.push(err192);}errors++;}}if(data57.suffix !== undefined){if(typeof data57.suffix !== "string"){const err193 = {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 = [err193];}else {vErrors.push(err193);}errors++;}}}else {const err194 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err194];}else {vErrors.push(err194);}errors++;}var _valid9 = _errs185 === errors;if(_valid9 && valid43){valid43 = false;passing1 = [passing1, 1];}else {if(_valid9){valid43 = true;passing1 = 1;}}if(!valid43){const err195 = {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 = [err195];}else {vErrors.push(err195);}errors++;}else {errors = _errs169;if(vErrors !== null){if(_errs169){vErrors.length = _errs169;}else {vErrors = null;}}}if(!(data57 && typeof data57 == "object" && !Array.isArray(data57))){const err196 = {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 = [err196];}else {vErrors.push(err196);}errors++;}}}else {const err197 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err197];}else {vErrors.push(err197);}errors++;}var _valid8 = _errs151 === errors;if(_valid8){valid40 = true;passing0 = 0;}const _errs202 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.id === undefined){const err198 = {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 = [err198];}else {vErrors.push(err198);}errors++;}if(data49.type === undefined){const err199 = {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 = [err199];}else {vErrors.push(err199);}errors++;}if(data49.start === undefined){const err200 = {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 = [err200];}else {vErrors.push(err200);}errors++;}if(data49.end === undefined){const err201 = {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 = [err201];}else {vErrors.push(err201);}errors++;}if(data49.id !== undefined){let data71 = data49.id;if(typeof data71 === "string"){if(!(formats0(data71))){const err202 = {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 = [err202];}else {vErrors.push(err202);}errors++;}}else {const err203 = {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 = [err203];}else {vErrors.push(err203);}errors++;}}if(data49.type !== undefined){let data72 = data49.type;if(Array.isArray(data72)){if(data72.length > 2){const err204 = {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 = [err204];}else {vErrors.push(err204);}errors++;}if(data72.length < 2){const err205 = {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 = [err205];}else {vErrors.push(err205);}errors++;}const len12 = data72.length;if(len12 > 0){let data73 = data72[0];if(typeof data73 !== "string"){const err206 = {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 = [err206];}else {vErrors.push(err206);}errors++;}if("TextPositionSelector" !== data73){const err207 = {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 = [err207];}else {vErrors.push(err207);}errors++;}}if(len12 > 1){let data74 = data72[1];if(typeof data74 !== "string"){const err208 = {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 = [err208];}else {vErrors.push(err208);}errors++;}if("crm:E73_Information_Object" !== data74){const err209 = {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 = [err209];}else {vErrors.push(err209);}errors++;}}}else {const err210 = {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 = [err210];}else {vErrors.push(err210);}errors++;}}if(data49.start !== undefined){let data75 = data49.start;if((typeof data75 == "number") && (isFinite(data75))){if(data75 < 0 || isNaN(data75)){const err211 = {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 = [err211];}else {vErrors.push(err211);}errors++;}}else {const err212 = {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 = [err212];}else {vErrors.push(err212);}errors++;}}if(data49.end !== undefined){let data76 = data49.end;if((typeof data76 == "number") && (isFinite(data76))){if(data76 < 0 || isNaN(data76)){const err213 = {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 = [err213];}else {vErrors.push(err213);}errors++;}}else {const err214 = {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 = [err214];}else {vErrors.push(err214);}errors++;}}if(data49.refinedBy !== undefined){let data77 = data49.refinedBy;const _errs218 = errors;let valid52 = false;let passing2 = null;const _errs219 = errors;if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if(data77.id === undefined){const err215 = {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 = [err215];}else {vErrors.push(err215);}errors++;}if(data77.type === undefined){const err216 = {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 = [err216];}else {vErrors.push(err216);}errors++;}if(data77.start === undefined){const err217 = {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 = [err217];}else {vErrors.push(err217);}errors++;}if(data77.end === undefined){const err218 = {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 = [err218];}else {vErrors.push(err218);}errors++;}if(data77.id !== undefined){let data78 = data77.id;if(typeof data78 === "string"){if(!(formats0(data78))){const err219 = {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 = [err219];}else {vErrors.push(err219);}errors++;}}else {const err220 = {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 = [err220];}else {vErrors.push(err220);}errors++;}}if(data77.type !== undefined){let data79 = data77.type;if(Array.isArray(data79)){if(data79.length > 2){const err221 = {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 = [err221];}else {vErrors.push(err221);}errors++;}if(data79.length < 2){const err222 = {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 = [err222];}else {vErrors.push(err222);}errors++;}const len13 = data79.length;if(len13 > 0){let data80 = data79[0];if(typeof data80 !== "string"){const err223 = {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 = [err223];}else {vErrors.push(err223);}errors++;}if("TextPositionSelector" !== data80){const err224 = {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 = [err224];}else {vErrors.push(err224);}errors++;}}if(len13 > 1){let data81 = data79[1];if(typeof data81 !== "string"){const err225 = {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 = [err225];}else {vErrors.push(err225);}errors++;}if("crm:E73_Information_Object" !== data81){const err226 = {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 = [err226];}else {vErrors.push(err226);}errors++;}}}else {const err227 = {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 = [err227];}else {vErrors.push(err227);}errors++;}}if(data77.start !== undefined){let data82 = data77.start;if((typeof data82 == "number") && (isFinite(data82))){if(data82 < 0 || isNaN(data82)){const err228 = {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 = [err228];}else {vErrors.push(err228);}errors++;}}else {const err229 = {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 = [err229];}else {vErrors.push(err229);}errors++;}}if(data77.end !== undefined){let data83 = data77.end;if((typeof data83 == "number") && (isFinite(data83))){if(data83 < 0 || isNaN(data83)){const err230 = {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 = [err230];}else {vErrors.push(err230);}errors++;}}else {const err231 = {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 = [err231];}else {vErrors.push(err231);}errors++;}}}else {const err232 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err232];}else {vErrors.push(err232);}errors++;}var _valid10 = _errs219 === errors;if(_valid10){valid52 = true;passing2 = 0;}const _errs234 = errors;if(data77 && typeof data77 == "object" && !Array.isArray(data77)){if(data77.id === undefined){const err233 = {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 = [err233];}else {vErrors.push(err233);}errors++;}if(data77.type === undefined){const err234 = {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 = [err234];}else {vErrors.push(err234);}errors++;}if(data77.exact === undefined){const err235 = {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 = [err235];}else {vErrors.push(err235);}errors++;}if(data77.prefix === undefined){const err236 = {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 = [err236];}else {vErrors.push(err236);}errors++;}if(data77.suffix === undefined){const err237 = {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 = [err237];}else {vErrors.push(err237);}errors++;}if(data77.id !== undefined){let data84 = data77.id;if(typeof data84 === "string"){if(!(formats0(data84))){const err238 = {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 = [err238];}else {vErrors.push(err238);}errors++;}}else {const err239 = {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 = [err239];}else {vErrors.push(err239);}errors++;}}if(data77.type !== undefined){let data85 = data77.type;if(Array.isArray(data85)){if(data85.length > 2){const err240 = {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 = [err240];}else {vErrors.push(err240);}errors++;}if(data85.length < 2){const err241 = {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 = [err241];}else {vErrors.push(err241);}errors++;}const len14 = data85.length;if(len14 > 0){let data86 = data85[0];if(typeof data86 !== "string"){const err242 = {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 = [err242];}else {vErrors.push(err242);}errors++;}if("TextQuoteSelector" !== data86){const err243 = {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 = [err243];}else {vErrors.push(err243);}errors++;}}if(len14 > 1){let data87 = data85[1];if(typeof data87 !== "string"){const err244 = {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 = [err244];}else {vErrors.push(err244);}errors++;}if("crm:E33_Linguistic_Object" !== data87){const err245 = {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 = [err245];}else {vErrors.push(err245);}errors++;}}}else {const err246 = {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 = [err246];}else {vErrors.push(err246);}errors++;}}if(data77.exact !== undefined){if(typeof data77.exact !== "string"){const err247 = {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 = [err247];}else {vErrors.push(err247);}errors++;}}if(data77.prefix !== undefined){if(typeof data77.prefix !== "string"){const err248 = {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 = [err248];}else {vErrors.push(err248);}errors++;}}if(data77.suffix !== undefined){if(typeof data77.suffix !== "string"){const err249 = {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 = [err249];}else {vErrors.push(err249);}errors++;}}}else {const err250 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err250];}else {vErrors.push(err250);}errors++;}var _valid10 = _errs234 === errors;if(_valid10 && valid52){valid52 = false;passing2 = [passing2, 1];}else {if(_valid10){valid52 = true;passing2 = 1;}}if(!valid52){const err251 = {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 = [err251];}else {vErrors.push(err251);}errors++;}else {errors = _errs218;if(vErrors !== null){if(_errs218){vErrors.length = _errs218;}else {vErrors = null;}}}if(!(data77 && typeof data77 == "object" && !Array.isArray(data77))){const err252 = {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 = [err252];}else {vErrors.push(err252);}errors++;}}}else {const err253 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/1/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err253];}else {vErrors.push(err253);}errors++;}var _valid8 = _errs202 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 1];}else {if(_valid8){valid40 = true;passing0 = 1;}const _errs251 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.id === undefined){const err254 = {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 = [err254];}else {vErrors.push(err254);}errors++;}if(data49.type === undefined){const err255 = {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 = [err255];}else {vErrors.push(err255);}errors++;}if(data49.value === undefined){const err256 = {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 = [err256];}else {vErrors.push(err256);}errors++;}if(data49.id !== undefined){let data91 = data49.id;if(typeof data91 === "string"){if(!(formats0(data91))){const err257 = {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 = [err257];}else {vErrors.push(err257);}errors++;}}else {const err258 = {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 = [err258];}else {vErrors.push(err258);}errors++;}}if(data49.type !== undefined){let data92 = data49.type;if(Array.isArray(data92)){if(data92.length > 2){const err259 = {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 = [err259];}else {vErrors.push(err259);}errors++;}if(data92.length < 2){const err260 = {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 = [err260];}else {vErrors.push(err260);}errors++;}const len15 = data92.length;if(len15 > 0){let data93 = data92[0];if(typeof data93 !== "string"){const err261 = {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 = [err261];}else {vErrors.push(err261);}errors++;}if("XPathSelector" !== data93){const err262 = {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 = [err262];}else {vErrors.push(err262);}errors++;}}if(len15 > 1){let data94 = data92[1];if(typeof data94 !== "string"){const err263 = {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 = [err263];}else {vErrors.push(err263);}errors++;}if("crm:E73_Information_Object" !== data94){const err264 = {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 = [err264];}else {vErrors.push(err264);}errors++;}}}else {const err265 = {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 = [err265];}else {vErrors.push(err265);}errors++;}}if(data49.value !== undefined){if(typeof data49.value !== "string"){const err266 = {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 = [err266];}else {vErrors.push(err266);}errors++;}}if(data49.refinedBy !== undefined){let data96 = data49.refinedBy;const _errs265 = errors;let valid61 = false;const _errs266 = errors;if(data96 && typeof data96 == "object" && !Array.isArray(data96)){if(data96.id === undefined){const err267 = {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 = [err267];}else {vErrors.push(err267);}errors++;}if(data96.type === undefined){const err268 = {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 = [err268];}else {vErrors.push(err268);}errors++;}if(data96.start === undefined){const err269 = {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 = [err269];}else {vErrors.push(err269);}errors++;}if(data96.end === undefined){const err270 = {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 = [err270];}else {vErrors.push(err270);}errors++;}if(data96.id !== undefined){let data97 = data96.id;if(typeof data97 === "string"){if(!(formats0(data97))){const err271 = {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 = [err271];}else {vErrors.push(err271);}errors++;}}else {const err272 = {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 = [err272];}else {vErrors.push(err272);}errors++;}}if(data96.type !== undefined){let data98 = data96.type;if(Array.isArray(data98)){if(data98.length > 2){const err273 = {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 = [err273];}else {vErrors.push(err273);}errors++;}if(data98.length < 2){const err274 = {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 = [err274];}else {vErrors.push(err274);}errors++;}const len16 = data98.length;if(len16 > 0){let data99 = data98[0];if(typeof data99 !== "string"){const err275 = {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 = [err275];}else {vErrors.push(err275);}errors++;}if("TextPositionSelector" !== data99){const err276 = {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 = [err276];}else {vErrors.push(err276);}errors++;}}if(len16 > 1){let data100 = data98[1];if(typeof data100 !== "string"){const err277 = {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 = [err277];}else {vErrors.push(err277);}errors++;}if("crm:E73_Information_Object" !== data100){const err278 = {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 = [err278];}else {vErrors.push(err278);}errors++;}}}else {const err279 = {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 = [err279];}else {vErrors.push(err279);}errors++;}}if(data96.start !== undefined){let data101 = data96.start;if((typeof data101 == "number") && (isFinite(data101))){if(data101 < 0 || isNaN(data101)){const err280 = {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 = [err280];}else {vErrors.push(err280);}errors++;}}else {const err281 = {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 = [err281];}else {vErrors.push(err281);}errors++;}}if(data96.end !== undefined){let data102 = data96.end;if((typeof data102 == "number") && (isFinite(data102))){if(data102 < 0 || isNaN(data102)){const err282 = {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 = [err282];}else {vErrors.push(err282);}errors++;}}else {const err283 = {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 = [err283];}else {vErrors.push(err283);}errors++;}}}else {const err284 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err284];}else {vErrors.push(err284);}errors++;}var _valid11 = _errs266 === errors;valid61 = valid61 || _valid11;if(!valid61){const _errs281 = errors;if(data96 && typeof data96 == "object" && !Array.isArray(data96)){if(data96.id === undefined){const err285 = {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 = [err285];}else {vErrors.push(err285);}errors++;}if(data96.type === undefined){const err286 = {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 = [err286];}else {vErrors.push(err286);}errors++;}if(data96.exact === undefined){const err287 = {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 = [err287];}else {vErrors.push(err287);}errors++;}if(data96.prefix === undefined){const err288 = {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 = [err288];}else {vErrors.push(err288);}errors++;}if(data96.suffix === undefined){const err289 = {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 = [err289];}else {vErrors.push(err289);}errors++;}if(data96.id !== undefined){let data103 = data96.id;if(typeof data103 === "string"){if(!(formats0(data103))){const err290 = {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 = [err290];}else {vErrors.push(err290);}errors++;}}else {const err291 = {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 = [err291];}else {vErrors.push(err291);}errors++;}}if(data96.type !== undefined){let data104 = data96.type;if(Array.isArray(data104)){if(data104.length > 2){const err292 = {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 = [err292];}else {vErrors.push(err292);}errors++;}if(data104.length < 2){const err293 = {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 = [err293];}else {vErrors.push(err293);}errors++;}const len17 = data104.length;if(len17 > 0){let data105 = data104[0];if(typeof data105 !== "string"){const err294 = {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 = [err294];}else {vErrors.push(err294);}errors++;}if("TextQuoteSelector" !== data105){const err295 = {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 = [err295];}else {vErrors.push(err295);}errors++;}}if(len17 > 1){let data106 = data104[1];if(typeof data106 !== "string"){const err296 = {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 = [err296];}else {vErrors.push(err296);}errors++;}if("crm:E33_Linguistic_Object" !== data106){const err297 = {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 = [err297];}else {vErrors.push(err297);}errors++;}}}else {const err298 = {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 = [err298];}else {vErrors.push(err298);}errors++;}}if(data96.exact !== undefined){if(typeof data96.exact !== "string"){const err299 = {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 = [err299];}else {vErrors.push(err299);}errors++;}}if(data96.prefix !== undefined){if(typeof data96.prefix !== "string"){const err300 = {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 = [err300];}else {vErrors.push(err300);}errors++;}}if(data96.suffix !== undefined){if(typeof data96.suffix !== "string"){const err301 = {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 = [err301];}else {vErrors.push(err301);}errors++;}}}else {const err302 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err302];}else {vErrors.push(err302);}errors++;}var _valid11 = _errs281 === errors;valid61 = valid61 || _valid11;}if(!valid61){const err303 = {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 = [err303];}else {vErrors.push(err303);}errors++;}else {errors = _errs265;if(vErrors !== null){if(_errs265){vErrors.length = _errs265;}else {vErrors = null;}}}if(!(data96 && typeof data96 == "object" && !Array.isArray(data96))){const err304 = {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 = [err304];}else {vErrors.push(err304);}errors++;}}}else {const err305 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/2/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err305];}else {vErrors.push(err305);}errors++;}var _valid8 = _errs251 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 2];}else {if(_valid8){valid40 = true;passing0 = 2;}const _errs298 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.id === undefined){const err306 = {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 = [err306];}else {vErrors.push(err306);}errors++;}if(data49.type === undefined){const err307 = {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 = [err307];}else {vErrors.push(err307);}errors++;}if(data49.value === undefined){const err308 = {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 = [err308];}else {vErrors.push(err308);}errors++;}if(data49.id !== undefined){let data110 = data49.id;if(typeof data110 === "string"){if(!(formats0(data110))){const err309 = {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 = [err309];}else {vErrors.push(err309);}errors++;}}else {const err310 = {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 = [err310];}else {vErrors.push(err310);}errors++;}}if(data49.type !== undefined){let data111 = data49.type;if(Array.isArray(data111)){if(data111.length > 2){const err311 = {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 = [err311];}else {vErrors.push(err311);}errors++;}if(data111.length < 2){const err312 = {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 = [err312];}else {vErrors.push(err312);}errors++;}const len18 = data111.length;if(len18 > 0){let data112 = data111[0];if(typeof data112 !== "string"){const err313 = {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 = [err313];}else {vErrors.push(err313);}errors++;}if("CssSelector" !== data112){const err314 = {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 = [err314];}else {vErrors.push(err314);}errors++;}}if(len18 > 1){let data113 = data111[1];if(typeof data113 !== "string"){const err315 = {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 = [err315];}else {vErrors.push(err315);}errors++;}if("crm:E73_Information_Object" !== data113){const err316 = {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 = [err316];}else {vErrors.push(err316);}errors++;}}}else {const err317 = {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 = [err317];}else {vErrors.push(err317);}errors++;}}if(data49.value !== undefined){if(typeof data49.value !== "string"){const err318 = {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 = [err318];}else {vErrors.push(err318);}errors++;}}if(data49.refinedBy !== undefined){let data115 = data49.refinedBy;const _errs312 = errors;let valid70 = false;const _errs313 = errors;if(data115 && typeof data115 == "object" && !Array.isArray(data115)){if(data115.id === undefined){const err319 = {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 = [err319];}else {vErrors.push(err319);}errors++;}if(data115.type === undefined){const err320 = {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 = [err320];}else {vErrors.push(err320);}errors++;}if(data115.start === undefined){const err321 = {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 = [err321];}else {vErrors.push(err321);}errors++;}if(data115.end === undefined){const err322 = {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 = [err322];}else {vErrors.push(err322);}errors++;}if(data115.id !== undefined){let data116 = data115.id;if(typeof data116 === "string"){if(!(formats0(data116))){const err323 = {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 = [err323];}else {vErrors.push(err323);}errors++;}}else {const err324 = {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 = [err324];}else {vErrors.push(err324);}errors++;}}if(data115.type !== undefined){let data117 = data115.type;if(Array.isArray(data117)){if(data117.length > 2){const err325 = {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 = [err325];}else {vErrors.push(err325);}errors++;}if(data117.length < 2){const err326 = {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 = [err326];}else {vErrors.push(err326);}errors++;}const len19 = data117.length;if(len19 > 0){let data118 = data117[0];if(typeof data118 !== "string"){const err327 = {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 = [err327];}else {vErrors.push(err327);}errors++;}if("TextPositionSelector" !== data118){const err328 = {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 = [err328];}else {vErrors.push(err328);}errors++;}}if(len19 > 1){let data119 = data117[1];if(typeof data119 !== "string"){const err329 = {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 = [err329];}else {vErrors.push(err329);}errors++;}if("crm:E73_Information_Object" !== data119){const err330 = {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 = [err330];}else {vErrors.push(err330);}errors++;}}}else {const err331 = {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 = [err331];}else {vErrors.push(err331);}errors++;}}if(data115.start !== undefined){let data120 = data115.start;if((typeof data120 == "number") && (isFinite(data120))){if(data120 < 0 || isNaN(data120)){const err332 = {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 = [err332];}else {vErrors.push(err332);}errors++;}}else {const err333 = {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 = [err333];}else {vErrors.push(err333);}errors++;}}if(data115.end !== undefined){let data121 = data115.end;if((typeof data121 == "number") && (isFinite(data121))){if(data121 < 0 || isNaN(data121)){const err334 = {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 = [err334];}else {vErrors.push(err334);}errors++;}}else {const err335 = {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 = [err335];}else {vErrors.push(err335);}errors++;}}}else {const err336 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err336];}else {vErrors.push(err336);}errors++;}var _valid12 = _errs313 === errors;valid70 = valid70 || _valid12;if(!valid70){const _errs328 = errors;if(data115 && typeof data115 == "object" && !Array.isArray(data115)){if(data115.id === undefined){const err337 = {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 = [err337];}else {vErrors.push(err337);}errors++;}if(data115.type === undefined){const err338 = {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 = [err338];}else {vErrors.push(err338);}errors++;}if(data115.exact === undefined){const err339 = {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 = [err339];}else {vErrors.push(err339);}errors++;}if(data115.prefix === undefined){const err340 = {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 = [err340];}else {vErrors.push(err340);}errors++;}if(data115.suffix === undefined){const err341 = {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 = [err341];}else {vErrors.push(err341);}errors++;}if(data115.id !== undefined){let data122 = data115.id;if(typeof data122 === "string"){if(!(formats0(data122))){const err342 = {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 = [err342];}else {vErrors.push(err342);}errors++;}}else {const err343 = {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 = [err343];}else {vErrors.push(err343);}errors++;}}if(data115.type !== undefined){let data123 = data115.type;if(Array.isArray(data123)){if(data123.length > 2){const err344 = {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 = [err344];}else {vErrors.push(err344);}errors++;}if(data123.length < 2){const err345 = {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 = [err345];}else {vErrors.push(err345);}errors++;}const len20 = data123.length;if(len20 > 0){let data124 = data123[0];if(typeof data124 !== "string"){const err346 = {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 = [err346];}else {vErrors.push(err346);}errors++;}if("TextQuoteSelector" !== data124){const err347 = {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 = [err347];}else {vErrors.push(err347);}errors++;}}if(len20 > 1){let data125 = data123[1];if(typeof data125 !== "string"){const err348 = {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 = [err348];}else {vErrors.push(err348);}errors++;}if("crm:E33_Linguistic_Object" !== data125){const err349 = {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 = [err349];}else {vErrors.push(err349);}errors++;}}}else {const err350 = {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 = [err350];}else {vErrors.push(err350);}errors++;}}if(data115.exact !== undefined){if(typeof data115.exact !== "string"){const err351 = {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 = [err351];}else {vErrors.push(err351);}errors++;}}if(data115.prefix !== undefined){if(typeof data115.prefix !== "string"){const err352 = {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 = [err352];}else {vErrors.push(err352);}errors++;}}if(data115.suffix !== undefined){if(typeof data115.suffix !== "string"){const err353 = {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 = [err353];}else {vErrors.push(err353);}errors++;}}}else {const err354 = {instancePath:instancePath+"/selector/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err354];}else {vErrors.push(err354);}errors++;}var _valid12 = _errs328 === errors;valid70 = valid70 || _valid12;}if(!valid70){const err355 = {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 = [err355];}else {vErrors.push(err355);}errors++;}else {errors = _errs312;if(vErrors !== null){if(_errs312){vErrors.length = _errs312;}else {vErrors = null;}}}if(!(data115 && typeof data115 == "object" && !Array.isArray(data115))){const err356 = {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 = [err356];}else {vErrors.push(err356);}errors++;}}}else {const err357 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/3/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err357];}else {vErrors.push(err357);}errors++;}var _valid8 = _errs298 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 3];}else {if(_valid8){valid40 = true;passing0 = 3;}const _errs345 = errors;if(data49 && typeof data49 == "object" && !Array.isArray(data49)){if(data49.id === undefined){const err358 = {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 = [err358];}else {vErrors.push(err358);}errors++;}if(data49.type === undefined){const err359 = {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 = [err359];}else {vErrors.push(err359);}errors++;}if(data49.startSelector === undefined){const err360 = {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 = [err360];}else {vErrors.push(err360);}errors++;}if(data49.endSelector === undefined){const err361 = {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 = [err361];}else {vErrors.push(err361);}errors++;}if(data49.id !== undefined){let data129 = data49.id;if(typeof data129 === "string"){if(!(formats0(data129))){const err362 = {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 = [err362];}else {vErrors.push(err362);}errors++;}}else {const err363 = {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 = [err363];}else {vErrors.push(err363);}errors++;}}if(data49.type !== undefined){let data130 = data49.type;if(Array.isArray(data130)){if(data130.length > 2){const err364 = {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 = [err364];}else {vErrors.push(err364);}errors++;}if(data130.length < 2){const err365 = {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 = [err365];}else {vErrors.push(err365);}errors++;}const len21 = data130.length;if(len21 > 0){let data131 = data130[0];if(typeof data131 !== "string"){const err366 = {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 = [err366];}else {vErrors.push(err366);}errors++;}if("RangeSelector" !== data131){const err367 = {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 = [err367];}else {vErrors.push(err367);}errors++;}}if(len21 > 1){let data132 = data130[1];if(typeof data132 !== "string"){const err368 = {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 = [err368];}else {vErrors.push(err368);}errors++;}if("crm:E73_Information_Object" !== data132){const err369 = {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 = [err369];}else {vErrors.push(err369);}errors++;}}}else {const err370 = {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 = [err370];}else {vErrors.push(err370);}errors++;}}if(data49.startSelector !== undefined){let data133 = data49.startSelector;if(data133 && typeof data133 == "object" && !Array.isArray(data133)){if(data133.id === undefined){const err371 = {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 = [err371];}else {vErrors.push(err371);}errors++;}if(data133.type === undefined){const err372 = {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 = [err372];}else {vErrors.push(err372);}errors++;}if(data133.value === undefined){const err373 = {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 = [err373];}else {vErrors.push(err373);}errors++;}if(data133.id !== undefined){let data134 = data133.id;if(typeof data134 === "string"){if(!(formats0(data134))){const err374 = {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 = [err374];}else {vErrors.push(err374);}errors++;}}else {const err375 = {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 = [err375];}else {vErrors.push(err375);}errors++;}}if(data133.type !== undefined){let data135 = data133.type;if(Array.isArray(data135)){if(data135.length > 2){const err376 = {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 = [err376];}else {vErrors.push(err376);}errors++;}if(data135.length < 2){const err377 = {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 = [err377];}else {vErrors.push(err377);}errors++;}const len22 = data135.length;if(len22 > 0){let data136 = data135[0];if(typeof data136 !== "string"){const err378 = {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 = [err378];}else {vErrors.push(err378);}errors++;}if("XPathSelector" !== data136){const err379 = {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 = [err379];}else {vErrors.push(err379);}errors++;}}if(len22 > 1){let data137 = data135[1];if(typeof data137 !== "string"){const err380 = {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 = [err380];}else {vErrors.push(err380);}errors++;}if("crm:E73_Information_Object" !== data137){const err381 = {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 = [err381];}else {vErrors.push(err381);}errors++;}}}else {const err382 = {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 = [err382];}else {vErrors.push(err382);}errors++;}}if(data133.value !== undefined){if(typeof data133.value !== "string"){const err383 = {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 = [err383];}else {vErrors.push(err383);}errors++;}}}else {const err384 = {instancePath:instancePath+"/selector/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err384];}else {vErrors.push(err384);}errors++;}}if(data49.endSelector !== undefined){let data139 = data49.endSelector;if(data139 && typeof data139 == "object" && !Array.isArray(data139)){if(data139.id === undefined){const err385 = {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 = [err385];}else {vErrors.push(err385);}errors++;}if(data139.type === undefined){const err386 = {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 = [err386];}else {vErrors.push(err386);}errors++;}if(data139.value === undefined){const err387 = {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 = [err387];}else {vErrors.push(err387);}errors++;}if(data139.id !== undefined){let data140 = data139.id;if(typeof data140 === "string"){if(!(formats0(data140))){const err388 = {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 = [err388];}else {vErrors.push(err388);}errors++;}}else {const err389 = {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 = [err389];}else {vErrors.push(err389);}errors++;}}if(data139.type !== undefined){let data141 = data139.type;if(Array.isArray(data141)){if(data141.length > 2){const err390 = {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 = [err390];}else {vErrors.push(err390);}errors++;}if(data141.length < 2){const err391 = {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 = [err391];}else {vErrors.push(err391);}errors++;}const len23 = data141.length;if(len23 > 0){let data142 = data141[0];if(typeof data142 !== "string"){const err392 = {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 = [err392];}else {vErrors.push(err392);}errors++;}if("XPathSelector" !== data142){const err393 = {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 = [err393];}else {vErrors.push(err393);}errors++;}}if(len23 > 1){let data143 = data141[1];if(typeof data143 !== "string"){const err394 = {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 = [err394];}else {vErrors.push(err394);}errors++;}if("crm:E73_Information_Object" !== data143){const err395 = {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 = [err395];}else {vErrors.push(err395);}errors++;}}}else {const err396 = {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 = [err396];}else {vErrors.push(err396);}errors++;}}if(data139.value !== undefined){if(typeof data139.value !== "string"){const err397 = {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 = [err397];}else {vErrors.push(err397);}errors++;}}}else {const err398 = {instancePath:instancePath+"/selector/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err398];}else {vErrors.push(err398);}errors++;}}}else {const err399 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/oneOf/4/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err399];}else {vErrors.push(err399);}errors++;}var _valid8 = _errs345 === errors;if(_valid8 && valid40){valid40 = false;passing0 = [passing0, 4];}else {if(_valid8){valid40 = true;passing0 = 4;}}}}}if(!valid40){const err400 = {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 = [err400];}else {vErrors.push(err400);}errors++;}else {errors = _errs150;if(vErrors !== null){if(_errs150){vErrors.length = _errs150;}else {vErrors = null;}}}if(!(data49 && typeof data49 == "object" && !Array.isArray(data49))){const err401 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/0/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err401];}else {vErrors.push(err401);}errors++;}var _valid7 = _errs148 === errors;valid39 = valid39 || _valid7;if(!valid39){const _errs381 = errors;if(Array.isArray(data49)){if(data49.length < 1){const err402 = {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 = [err402];}else {vErrors.push(err402);}errors++;}const len24 = data49.length;for(let i2=0; i2<len24; i2++){let data145 = data49[i2];const _errs385 = errors;let valid87 = false;let passing3 = null;const _errs386 = errors;if(data145 && typeof data145 == "object" && !Array.isArray(data145)){if(data145.id === undefined){const err403 = {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 = [err403];}else {vErrors.push(err403);}errors++;}if(data145.type === undefined){const err404 = {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 = [err404];}else {vErrors.push(err404);}errors++;}if(data145.exact === undefined){const err405 = {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 = [err405];}else {vErrors.push(err405);}errors++;}if(data145.prefix === undefined){const err406 = {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 = [err406];}else {vErrors.push(err406);}errors++;}if(data145.suffix === undefined){const err407 = {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 = [err407];}else {vErrors.push(err407);}errors++;}if(data145.id !== undefined){let data146 = data145.id;if(typeof data146 === "string"){if(!(formats0(data146))){const err408 = {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 = [err408];}else {vErrors.push(err408);}errors++;}}else {const err409 = {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 = [err409];}else {vErrors.push(err409);}errors++;}}if(data145.type !== undefined){let data147 = data145.type;if(Array.isArray(data147)){if(data147.length > 2){const err410 = {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 = [err410];}else {vErrors.push(err410);}errors++;}if(data147.length < 2){const err411 = {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 = [err411];}else {vErrors.push(err411);}errors++;}const len25 = data147.length;if(len25 > 0){let data148 = data147[0];if(typeof data148 !== "string"){const err412 = {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 = [err412];}else {vErrors.push(err412);}errors++;}if("TextQuoteSelector" !== data148){const err413 = {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 = [err413];}else {vErrors.push(err413);}errors++;}}if(len25 > 1){let data149 = data147[1];if(typeof data149 !== "string"){const err414 = {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 = [err414];}else {vErrors.push(err414);}errors++;}if("crm:E33_Linguistic_Object" !== data149){const err415 = {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 = [err415];}else {vErrors.push(err415);}errors++;}}}else {const err416 = {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 = [err416];}else {vErrors.push(err416);}errors++;}}if(data145.exact !== undefined){if(typeof data145.exact !== "string"){const err417 = {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 = [err417];}else {vErrors.push(err417);}errors++;}}if(data145.prefix !== undefined){if(typeof data145.prefix !== "string"){const err418 = {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 = [err418];}else {vErrors.push(err418);}errors++;}}if(data145.suffix !== undefined){if(typeof data145.suffix !== "string"){const err419 = {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 = [err419];}else {vErrors.push(err419);}errors++;}}if(data145.refinedBy !== undefined){let data153 = data145.refinedBy;const _errs404 = errors;let valid90 = false;let passing4 = null;const _errs405 = errors;if(data153 && typeof data153 == "object" && !Array.isArray(data153)){if(data153.id === undefined){const err420 = {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 = [err420];}else {vErrors.push(err420);}errors++;}if(data153.type === undefined){const err421 = {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 = [err421];}else {vErrors.push(err421);}errors++;}if(data153.start === undefined){const err422 = {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 = [err422];}else {vErrors.push(err422);}errors++;}if(data153.end === undefined){const err423 = {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 = [err423];}else {vErrors.push(err423);}errors++;}if(data153.id !== undefined){let data154 = data153.id;if(typeof data154 === "string"){if(!(formats0(data154))){const err424 = {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 = [err424];}else {vErrors.push(err424);}errors++;}}else {const err425 = {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 = [err425];}else {vErrors.push(err425);}errors++;}}if(data153.type !== undefined){let data155 = data153.type;if(Array.isArray(data155)){if(data155.length > 2){const err426 = {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 = [err426];}else {vErrors.push(err426);}errors++;}if(data155.length < 2){const err427 = {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 = [err427];}else {vErrors.push(err427);}errors++;}const len26 = data155.length;if(len26 > 0){let data156 = data155[0];if(typeof data156 !== "string"){const err428 = {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 = [err428];}else {vErrors.push(err428);}errors++;}if("TextPositionSelector" !== data156){const err429 = {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 = [err429];}else {vErrors.push(err429);}errors++;}}if(len26 > 1){let data157 = data155[1];if(typeof data157 !== "string"){const err430 = {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 = [err430];}else {vErrors.push(err430);}errors++;}if("crm:E73_Information_Object" !== data157){const err431 = {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 = [err431];}else {vErrors.push(err431);}errors++;}}}else {const err432 = {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 = [err432];}else {vErrors.push(err432);}errors++;}}if(data153.start !== undefined){let data158 = data153.start;if((typeof data158 == "number") && (isFinite(data158))){if(data158 < 0 || isNaN(data158)){const err433 = {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 = [err433];}else {vErrors.push(err433);}errors++;}}else {const err434 = {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 = [err434];}else {vErrors.push(err434);}errors++;}}if(data153.end !== undefined){let data159 = data153.end;if((typeof data159 == "number") && (isFinite(data159))){if(data159 < 0 || isNaN(data159)){const err435 = {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 = [err435];}else {vErrors.push(err435);}errors++;}}else {const err436 = {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 = [err436];}else {vErrors.push(err436);}errors++;}}}else {const err437 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err437];}else {vErrors.push(err437);}errors++;}var _valid14 = _errs405 === errors;if(_valid14){valid90 = true;passing4 = 0;}const _errs420 = errors;if(data153 && typeof data153 == "object" && !Array.isArray(data153)){if(data153.id === undefined){const err438 = {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 = [err438];}else {vErrors.push(err438);}errors++;}if(data153.type === undefined){const err439 = {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 = [err439];}else {vErrors.push(err439);}errors++;}if(data153.exact === undefined){const err440 = {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 = [err440];}else {vErrors.push(err440);}errors++;}if(data153.prefix === undefined){const err441 = {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 = [err441];}else {vErrors.push(err441);}errors++;}if(data153.suffix === undefined){const err442 = {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 = [err442];}else {vErrors.push(err442);}errors++;}if(data153.id !== undefined){let data160 = data153.id;if(typeof data160 === "string"){if(!(formats0(data160))){const err443 = {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 = [err443];}else {vErrors.push(err443);}errors++;}}else {const err444 = {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 = [err444];}else {vErrors.push(err444);}errors++;}}if(data153.type !== undefined){let data161 = data153.type;if(Array.isArray(data161)){if(data161.length > 2){const err445 = {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 = [err445];}else {vErrors.push(err445);}errors++;}if(data161.length < 2){const err446 = {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 = [err446];}else {vErrors.push(err446);}errors++;}const len27 = data161.length;if(len27 > 0){let data162 = data161[0];if(typeof data162 !== "string"){const err447 = {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 = [err447];}else {vErrors.push(err447);}errors++;}if("TextQuoteSelector" !== data162){const err448 = {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 = [err448];}else {vErrors.push(err448);}errors++;}}if(len27 > 1){let data163 = data161[1];if(typeof data163 !== "string"){const err449 = {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 = [err449];}else {vErrors.push(err449);}errors++;}if("crm:E33_Linguistic_Object" !== data163){const err450 = {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 = [err450];}else {vErrors.push(err450);}errors++;}}}else {const err451 = {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 = [err451];}else {vErrors.push(err451);}errors++;}}if(data153.exact !== undefined){if(typeof data153.exact !== "string"){const err452 = {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 = [err452];}else {vErrors.push(err452);}errors++;}}if(data153.prefix !== undefined){if(typeof data153.prefix !== "string"){const err453 = {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 = [err453];}else {vErrors.push(err453);}errors++;}}if(data153.suffix !== undefined){if(typeof data153.suffix !== "string"){const err454 = {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 = [err454];}else {vErrors.push(err454);}errors++;}}}else {const err455 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err455];}else {vErrors.push(err455);}errors++;}var _valid14 = _errs420 === errors;if(_valid14 && valid90){valid90 = false;passing4 = [passing4, 1];}else {if(_valid14){valid90 = true;passing4 = 1;}}if(!valid90){const err456 = {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 = [err456];}else {vErrors.push(err456);}errors++;}else {errors = _errs404;if(vErrors !== null){if(_errs404){vErrors.length = _errs404;}else {vErrors = null;}}}if(!(data153 && typeof data153 == "object" && !Array.isArray(data153))){const err457 = {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 = [err457];}else {vErrors.push(err457);}errors++;}}}else {const err458 = {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 = [err458];}else {vErrors.push(err458);}errors++;}var _valid13 = _errs386 === errors;if(_valid13){valid87 = true;passing3 = 0;}const _errs437 = errors;if(data145 && typeof data145 == "object" && !Array.isArray(data145)){if(data145.id === undefined){const err459 = {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 = [err459];}else {vErrors.push(err459);}errors++;}if(data145.type === undefined){const err460 = {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 = [err460];}else {vErrors.push(err460);}errors++;}if(data145.start === undefined){const err461 = {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 = [err461];}else {vErrors.push(err461);}errors++;}if(data145.end === undefined){const err462 = {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 = [err462];}else {vErrors.push(err462);}errors++;}if(data145.id !== undefined){let data167 = data145.id;if(typeof data167 === "string"){if(!(formats0(data167))){const err463 = {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 = [err463];}else {vErrors.push(err463);}errors++;}}else {const err464 = {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 = [err464];}else {vErrors.push(err464);}errors++;}}if(data145.type !== undefined){let data168 = data145.type;if(Array.isArray(data168)){if(data168.length > 2){const err465 = {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 = [err465];}else {vErrors.push(err465);}errors++;}if(data168.length < 2){const err466 = {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 = [err466];}else {vErrors.push(err466);}errors++;}const len28 = data168.length;if(len28 > 0){let data169 = data168[0];if(typeof data169 !== "string"){const err467 = {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 = [err467];}else {vErrors.push(err467);}errors++;}if("TextPositionSelector" !== data169){const err468 = {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 = [err468];}else {vErrors.push(err468);}errors++;}}if(len28 > 1){let data170 = data168[1];if(typeof data170 !== "string"){const err469 = {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 = [err469];}else {vErrors.push(err469);}errors++;}if("crm:E73_Information_Object" !== data170){const err470 = {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 = [err470];}else {vErrors.push(err470);}errors++;}}}else {const err471 = {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 = [err471];}else {vErrors.push(err471);}errors++;}}if(data145.start !== undefined){let data171 = data145.start;if((typeof data171 == "number") && (isFinite(data171))){if(data171 < 0 || isNaN(data171)){const err472 = {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 = [err472];}else {vErrors.push(err472);}errors++;}}else {const err473 = {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 = [err473];}else {vErrors.push(err473);}errors++;}}if(data145.end !== undefined){let data172 = data145.end;if((typeof data172 == "number") && (isFinite(data172))){if(data172 < 0 || isNaN(data172)){const err474 = {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 = [err474];}else {vErrors.push(err474);}errors++;}}else {const err475 = {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 = [err475];}else {vErrors.push(err475);}errors++;}}if(data145.refinedBy !== undefined){let data173 = data145.refinedBy;const _errs453 = errors;let valid99 = false;let passing5 = null;const _errs454 = errors;if(data173 && typeof data173 == "object" && !Array.isArray(data173)){if(data173.id === undefined){const err476 = {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 = [err476];}else {vErrors.push(err476);}errors++;}if(data173.type === undefined){const err477 = {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 = [err477];}else {vErrors.push(err477);}errors++;}if(data173.start === undefined){const err478 = {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 = [err478];}else {vErrors.push(err478);}errors++;}if(data173.end === undefined){const err479 = {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 = [err479];}else {vErrors.push(err479);}errors++;}if(data173.id !== undefined){let data174 = data173.id;if(typeof data174 === "string"){if(!(formats0(data174))){const err480 = {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 = [err480];}else {vErrors.push(err480);}errors++;}}else {const err481 = {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 = [err481];}else {vErrors.push(err481);}errors++;}}if(data173.type !== undefined){let data175 = data173.type;if(Array.isArray(data175)){if(data175.length > 2){const err482 = {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 = [err482];}else {vErrors.push(err482);}errors++;}if(data175.length < 2){const err483 = {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 = [err483];}else {vErrors.push(err483);}errors++;}const len29 = data175.length;if(len29 > 0){let data176 = data175[0];if(typeof data176 !== "string"){const err484 = {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 = [err484];}else {vErrors.push(err484);}errors++;}if("TextPositionSelector" !== data176){const err485 = {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 = [err485];}else {vErrors.push(err485);}errors++;}}if(len29 > 1){let data177 = data175[1];if(typeof data177 !== "string"){const err486 = {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 = [err486];}else {vErrors.push(err486);}errors++;}if("crm:E73_Information_Object" !== data177){const err487 = {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 = [err487];}else {vErrors.push(err487);}errors++;}}}else {const err488 = {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 = [err488];}else {vErrors.push(err488);}errors++;}}if(data173.start !== undefined){let data178 = data173.start;if((typeof data178 == "number") && (isFinite(data178))){if(data178 < 0 || isNaN(data178)){const err489 = {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 = [err489];}else {vErrors.push(err489);}errors++;}}else {const err490 = {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 = [err490];}else {vErrors.push(err490);}errors++;}}if(data173.end !== undefined){let data179 = data173.end;if((typeof data179 == "number") && (isFinite(data179))){if(data179 < 0 || isNaN(data179)){const err491 = {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 = [err491];}else {vErrors.push(err491);}errors++;}}else {const err492 = {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 = [err492];}else {vErrors.push(err492);}errors++;}}}else {const err493 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err493];}else {vErrors.push(err493);}errors++;}var _valid15 = _errs454 === errors;if(_valid15){valid99 = true;passing5 = 0;}const _errs469 = errors;if(data173 && typeof data173 == "object" && !Array.isArray(data173)){if(data173.id === undefined){const err494 = {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 = [err494];}else {vErrors.push(err494);}errors++;}if(data173.type === undefined){const err495 = {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 = [err495];}else {vErrors.push(err495);}errors++;}if(data173.exact === undefined){const err496 = {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 = [err496];}else {vErrors.push(err496);}errors++;}if(data173.prefix === undefined){const err497 = {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 = [err497];}else {vErrors.push(err497);}errors++;}if(data173.suffix === undefined){const err498 = {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 = [err498];}else {vErrors.push(err498);}errors++;}if(data173.id !== undefined){let data180 = data173.id;if(typeof data180 === "string"){if(!(formats0(data180))){const err499 = {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 = [err499];}else {vErrors.push(err499);}errors++;}}else {const err500 = {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 = [err500];}else {vErrors.push(err500);}errors++;}}if(data173.type !== undefined){let data181 = data173.type;if(Array.isArray(data181)){if(data181.length > 2){const err501 = {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 = [err501];}else {vErrors.push(err501);}errors++;}if(data181.length < 2){const err502 = {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 = [err502];}else {vErrors.push(err502);}errors++;}const len30 = data181.length;if(len30 > 0){let data182 = data181[0];if(typeof data182 !== "string"){const err503 = {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 = [err503];}else {vErrors.push(err503);}errors++;}if("TextQuoteSelector" !== data182){const err504 = {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 = [err504];}else {vErrors.push(err504);}errors++;}}if(len30 > 1){let data183 = data181[1];if(typeof data183 !== "string"){const err505 = {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 = [err505];}else {vErrors.push(err505);}errors++;}if("crm:E33_Linguistic_Object" !== data183){const err506 = {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 = [err506];}else {vErrors.push(err506);}errors++;}}}else {const err507 = {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 = [err507];}else {vErrors.push(err507);}errors++;}}if(data173.exact !== undefined){if(typeof data173.exact !== "string"){const err508 = {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 = [err508];}else {vErrors.push(err508);}errors++;}}if(data173.prefix !== undefined){if(typeof data173.prefix !== "string"){const err509 = {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 = [err509];}else {vErrors.push(err509);}errors++;}}if(data173.suffix !== undefined){if(typeof data173.suffix !== "string"){const err510 = {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 = [err510];}else {vErrors.push(err510);}errors++;}}}else {const err511 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err511];}else {vErrors.push(err511);}errors++;}var _valid15 = _errs469 === errors;if(_valid15 && valid99){valid99 = false;passing5 = [passing5, 1];}else {if(_valid15){valid99 = true;passing5 = 1;}}if(!valid99){const err512 = {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 = [err512];}else {vErrors.push(err512);}errors++;}else {errors = _errs453;if(vErrors !== null){if(_errs453){vErrors.length = _errs453;}else {vErrors = null;}}}if(!(data173 && typeof data173 == "object" && !Array.isArray(data173))){const err513 = {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 = [err513];}else {vErrors.push(err513);}errors++;}}}else {const err514 = {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 = [err514];}else {vErrors.push(err514);}errors++;}var _valid13 = _errs437 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 1];}else {if(_valid13){valid87 = true;passing3 = 1;}const _errs486 = errors;if(data145 && typeof data145 == "object" && !Array.isArray(data145)){if(data145.id === undefined){const err515 = {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 = [err515];}else {vErrors.push(err515);}errors++;}if(data145.type === undefined){const err516 = {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 = [err516];}else {vErrors.push(err516);}errors++;}if(data145.value === undefined){const err517 = {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 = [err517];}else {vErrors.push(err517);}errors++;}if(data145.id !== undefined){let data187 = data145.id;if(typeof data187 === "string"){if(!(formats0(data187))){const err518 = {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 = [err518];}else {vErrors.push(err518);}errors++;}}else {const err519 = {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 = [err519];}else {vErrors.push(err519);}errors++;}}if(data145.type !== undefined){let data188 = data145.type;if(Array.isArray(data188)){if(data188.length > 2){const err520 = {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 = [err520];}else {vErrors.push(err520);}errors++;}if(data188.length < 2){const err521 = {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 = [err521];}else {vErrors.push(err521);}errors++;}const len31 = data188.length;if(len31 > 0){let data189 = data188[0];if(typeof data189 !== "string"){const err522 = {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 = [err522];}else {vErrors.push(err522);}errors++;}if("XPathSelector" !== data189){const err523 = {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 = [err523];}else {vErrors.push(err523);}errors++;}}if(len31 > 1){let data190 = data188[1];if(typeof data190 !== "string"){const err524 = {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 = [err524];}else {vErrors.push(err524);}errors++;}if("crm:E73_Information_Object" !== data190){const err525 = {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 = [err525];}else {vErrors.push(err525);}errors++;}}}else {const err526 = {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 = [err526];}else {vErrors.push(err526);}errors++;}}if(data145.value !== undefined){if(typeof data145.value !== "string"){const err527 = {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 = [err527];}else {vErrors.push(err527);}errors++;}}if(data145.refinedBy !== undefined){let data192 = data145.refinedBy;const _errs500 = errors;let valid108 = false;const _errs501 = errors;if(data192 && typeof data192 == "object" && !Array.isArray(data192)){if(data192.id === undefined){const err528 = {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 = [err528];}else {vErrors.push(err528);}errors++;}if(data192.type === undefined){const err529 = {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 = [err529];}else {vErrors.push(err529);}errors++;}if(data192.start === undefined){const err530 = {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 = [err530];}else {vErrors.push(err530);}errors++;}if(data192.end === undefined){const err531 = {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 = [err531];}else {vErrors.push(err531);}errors++;}if(data192.id !== undefined){let data193 = data192.id;if(typeof data193 === "string"){if(!(formats0(data193))){const err532 = {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 = [err532];}else {vErrors.push(err532);}errors++;}}else {const err533 = {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 = [err533];}else {vErrors.push(err533);}errors++;}}if(data192.type !== undefined){let data194 = data192.type;if(Array.isArray(data194)){if(data194.length > 2){const err534 = {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 = [err534];}else {vErrors.push(err534);}errors++;}if(data194.length < 2){const err535 = {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 = [err535];}else {vErrors.push(err535);}errors++;}const len32 = data194.length;if(len32 > 0){let data195 = data194[0];if(typeof data195 !== "string"){const err536 = {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 = [err536];}else {vErrors.push(err536);}errors++;}if("TextPositionSelector" !== data195){const err537 = {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 = [err537];}else {vErrors.push(err537);}errors++;}}if(len32 > 1){let data196 = data194[1];if(typeof data196 !== "string"){const err538 = {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 = [err538];}else {vErrors.push(err538);}errors++;}if("crm:E73_Information_Object" !== data196){const err539 = {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 = [err539];}else {vErrors.push(err539);}errors++;}}}else {const err540 = {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 = [err540];}else {vErrors.push(err540);}errors++;}}if(data192.start !== undefined){let data197 = data192.start;if((typeof data197 == "number") && (isFinite(data197))){if(data197 < 0 || isNaN(data197)){const err541 = {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 = [err541];}else {vErrors.push(err541);}errors++;}}else {const err542 = {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 = [err542];}else {vErrors.push(err542);}errors++;}}if(data192.end !== undefined){let data198 = data192.end;if((typeof data198 == "number") && (isFinite(data198))){if(data198 < 0 || isNaN(data198)){const err543 = {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 = [err543];}else {vErrors.push(err543);}errors++;}}else {const err544 = {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 = [err544];}else {vErrors.push(err544);}errors++;}}}else {const err545 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err545];}else {vErrors.push(err545);}errors++;}var _valid16 = _errs501 === errors;valid108 = valid108 || _valid16;if(!valid108){const _errs516 = errors;if(data192 && typeof data192 == "object" && !Array.isArray(data192)){if(data192.id === undefined){const err546 = {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 = [err546];}else {vErrors.push(err546);}errors++;}if(data192.type === undefined){const err547 = {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 = [err547];}else {vErrors.push(err547);}errors++;}if(data192.exact === undefined){const err548 = {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 = [err548];}else {vErrors.push(err548);}errors++;}if(data192.prefix === undefined){const err549 = {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 = [err549];}else {vErrors.push(err549);}errors++;}if(data192.suffix === undefined){const err550 = {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 = [err550];}else {vErrors.push(err550);}errors++;}if(data192.id !== undefined){let data199 = data192.id;if(typeof data199 === "string"){if(!(formats0(data199))){const err551 = {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 = [err551];}else {vErrors.push(err551);}errors++;}}else {const err552 = {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 = [err552];}else {vErrors.push(err552);}errors++;}}if(data192.type !== undefined){let data200 = data192.type;if(Array.isArray(data200)){if(data200.length > 2){const err553 = {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 = [err553];}else {vErrors.push(err553);}errors++;}if(data200.length < 2){const err554 = {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 = [err554];}else {vErrors.push(err554);}errors++;}const len33 = data200.length;if(len33 > 0){let data201 = data200[0];if(typeof data201 !== "string"){const err555 = {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 = [err555];}else {vErrors.push(err555);}errors++;}if("TextQuoteSelector" !== data201){const err556 = {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 = [err556];}else {vErrors.push(err556);}errors++;}}if(len33 > 1){let data202 = data200[1];if(typeof data202 !== "string"){const err557 = {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 = [err557];}else {vErrors.push(err557);}errors++;}if("crm:E33_Linguistic_Object" !== data202){const err558 = {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 = [err558];}else {vErrors.push(err558);}errors++;}}}else {const err559 = {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 = [err559];}else {vErrors.push(err559);}errors++;}}if(data192.exact !== undefined){if(typeof data192.exact !== "string"){const err560 = {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 = [err560];}else {vErrors.push(err560);}errors++;}}if(data192.prefix !== undefined){if(typeof data192.prefix !== "string"){const err561 = {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 = [err561];}else {vErrors.push(err561);}errors++;}}if(data192.suffix !== undefined){if(typeof data192.suffix !== "string"){const err562 = {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 = [err562];}else {vErrors.push(err562);}errors++;}}}else {const err563 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err563];}else {vErrors.push(err563);}errors++;}var _valid16 = _errs516 === errors;valid108 = valid108 || _valid16;}if(!valid108){const err564 = {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 = [err564];}else {vErrors.push(err564);}errors++;}else {errors = _errs500;if(vErrors !== null){if(_errs500){vErrors.length = _errs500;}else {vErrors = null;}}}if(!(data192 && typeof data192 == "object" && !Array.isArray(data192))){const err565 = {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 = [err565];}else {vErrors.push(err565);}errors++;}}}else {const err566 = {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 = [err566];}else {vErrors.push(err566);}errors++;}var _valid13 = _errs486 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 2];}else {if(_valid13){valid87 = true;passing3 = 2;}const _errs533 = errors;if(data145 && typeof data145 == "object" && !Array.isArray(data145)){if(data145.id === undefined){const err567 = {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 = [err567];}else {vErrors.push(err567);}errors++;}if(data145.type === undefined){const err568 = {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 = [err568];}else {vErrors.push(err568);}errors++;}if(data145.value === undefined){const err569 = {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 = [err569];}else {vErrors.push(err569);}errors++;}if(data145.id !== undefined){let data206 = data145.id;if(typeof data206 === "string"){if(!(formats0(data206))){const err570 = {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 = [err570];}else {vErrors.push(err570);}errors++;}}else {const err571 = {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 = [err571];}else {vErrors.push(err571);}errors++;}}if(data145.type !== undefined){let data207 = data145.type;if(Array.isArray(data207)){if(data207.length > 2){const err572 = {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 = [err572];}else {vErrors.push(err572);}errors++;}if(data207.length < 2){const err573 = {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 = [err573];}else {vErrors.push(err573);}errors++;}const len34 = data207.length;if(len34 > 0){let data208 = data207[0];if(typeof data208 !== "string"){const err574 = {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 = [err574];}else {vErrors.push(err574);}errors++;}if("CssSelector" !== data208){const err575 = {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 = [err575];}else {vErrors.push(err575);}errors++;}}if(len34 > 1){let data209 = data207[1];if(typeof data209 !== "string"){const err576 = {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 = [err576];}else {vErrors.push(err576);}errors++;}if("crm:E73_Information_Object" !== data209){const err577 = {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 = [err577];}else {vErrors.push(err577);}errors++;}}}else {const err578 = {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 = [err578];}else {vErrors.push(err578);}errors++;}}if(data145.value !== undefined){if(typeof data145.value !== "string"){const err579 = {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 = [err579];}else {vErrors.push(err579);}errors++;}}if(data145.refinedBy !== undefined){let data211 = data145.refinedBy;const _errs547 = errors;let valid117 = false;const _errs548 = errors;if(data211 && typeof data211 == "object" && !Array.isArray(data211)){if(data211.id === undefined){const err580 = {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 = [err580];}else {vErrors.push(err580);}errors++;}if(data211.type === undefined){const err581 = {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 = [err581];}else {vErrors.push(err581);}errors++;}if(data211.start === undefined){const err582 = {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 = [err582];}else {vErrors.push(err582);}errors++;}if(data211.end === undefined){const err583 = {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 = [err583];}else {vErrors.push(err583);}errors++;}if(data211.id !== undefined){let data212 = data211.id;if(typeof data212 === "string"){if(!(formats0(data212))){const err584 = {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 = [err584];}else {vErrors.push(err584);}errors++;}}else {const err585 = {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 = [err585];}else {vErrors.push(err585);}errors++;}}if(data211.type !== undefined){let data213 = data211.type;if(Array.isArray(data213)){if(data213.length > 2){const err586 = {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 = [err586];}else {vErrors.push(err586);}errors++;}if(data213.length < 2){const err587 = {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 = [err587];}else {vErrors.push(err587);}errors++;}const len35 = data213.length;if(len35 > 0){let data214 = data213[0];if(typeof data214 !== "string"){const err588 = {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 = [err588];}else {vErrors.push(err588);}errors++;}if("TextPositionSelector" !== data214){const err589 = {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 = [err589];}else {vErrors.push(err589);}errors++;}}if(len35 > 1){let data215 = data213[1];if(typeof data215 !== "string"){const err590 = {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 = [err590];}else {vErrors.push(err590);}errors++;}if("crm:E73_Information_Object" !== data215){const err591 = {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 = [err591];}else {vErrors.push(err591);}errors++;}}}else {const err592 = {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 = [err592];}else {vErrors.push(err592);}errors++;}}if(data211.start !== undefined){let data216 = data211.start;if((typeof data216 == "number") && (isFinite(data216))){if(data216 < 0 || isNaN(data216)){const err593 = {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 = [err593];}else {vErrors.push(err593);}errors++;}}else {const err594 = {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 = [err594];}else {vErrors.push(err594);}errors++;}}if(data211.end !== undefined){let data217 = data211.end;if((typeof data217 == "number") && (isFinite(data217))){if(data217 < 0 || isNaN(data217)){const err595 = {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 = [err595];}else {vErrors.push(err595);}errors++;}}else {const err596 = {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 = [err596];}else {vErrors.push(err596);}errors++;}}}else {const err597 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textPositionSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err597];}else {vErrors.push(err597);}errors++;}var _valid17 = _errs548 === errors;valid117 = valid117 || _valid17;if(!valid117){const _errs563 = errors;if(data211 && typeof data211 == "object" && !Array.isArray(data211)){if(data211.id === undefined){const err598 = {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 = [err598];}else {vErrors.push(err598);}errors++;}if(data211.type === undefined){const err599 = {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 = [err599];}else {vErrors.push(err599);}errors++;}if(data211.exact === undefined){const err600 = {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 = [err600];}else {vErrors.push(err600);}errors++;}if(data211.prefix === undefined){const err601 = {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 = [err601];}else {vErrors.push(err601);}errors++;}if(data211.suffix === undefined){const err602 = {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 = [err602];}else {vErrors.push(err602);}errors++;}if(data211.id !== undefined){let data218 = data211.id;if(typeof data218 === "string"){if(!(formats0(data218))){const err603 = {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 = [err603];}else {vErrors.push(err603);}errors++;}}else {const err604 = {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 = [err604];}else {vErrors.push(err604);}errors++;}}if(data211.type !== undefined){let data219 = data211.type;if(Array.isArray(data219)){if(data219.length > 2){const err605 = {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 = [err605];}else {vErrors.push(err605);}errors++;}if(data219.length < 2){const err606 = {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 = [err606];}else {vErrors.push(err606);}errors++;}const len36 = data219.length;if(len36 > 0){let data220 = data219[0];if(typeof data220 !== "string"){const err607 = {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 = [err607];}else {vErrors.push(err607);}errors++;}if("TextQuoteSelector" !== data220){const err608 = {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 = [err608];}else {vErrors.push(err608);}errors++;}}if(len36 > 1){let data221 = data219[1];if(typeof data221 !== "string"){const err609 = {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 = [err609];}else {vErrors.push(err609);}errors++;}if("crm:E33_Linguistic_Object" !== data221){const err610 = {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 = [err610];}else {vErrors.push(err610);}errors++;}}}else {const err611 = {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 = [err611];}else {vErrors.push(err611);}errors++;}}if(data211.exact !== undefined){if(typeof data211.exact !== "string"){const err612 = {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 = [err612];}else {vErrors.push(err612);}errors++;}}if(data211.prefix !== undefined){if(typeof data211.prefix !== "string"){const err613 = {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 = [err613];}else {vErrors.push(err613);}errors++;}}if(data211.suffix !== undefined){if(typeof data211.suffix !== "string"){const err614 = {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 = [err614];}else {vErrors.push(err614);}errors++;}}}else {const err615 = {instancePath:instancePath+"/selector/" + i2+"/refinedBy",schemaPath:"defs.jsonld#/definitions/textQuoteSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err615];}else {vErrors.push(err615);}errors++;}var _valid17 = _errs563 === errors;valid117 = valid117 || _valid17;}if(!valid117){const err616 = {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 = [err616];}else {vErrors.push(err616);}errors++;}else {errors = _errs547;if(vErrors !== null){if(_errs547){vErrors.length = _errs547;}else {vErrors = null;}}}if(!(data211 && typeof data211 == "object" && !Array.isArray(data211))){const err617 = {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 = [err617];}else {vErrors.push(err617);}errors++;}}}else {const err618 = {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 = [err618];}else {vErrors.push(err618);}errors++;}var _valid13 = _errs533 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 3];}else {if(_valid13){valid87 = true;passing3 = 3;}const _errs580 = errors;if(data145 && typeof data145 == "object" && !Array.isArray(data145)){if(data145.id === undefined){const err619 = {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 = [err619];}else {vErrors.push(err619);}errors++;}if(data145.type === undefined){const err620 = {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 = [err620];}else {vErrors.push(err620);}errors++;}if(data145.startSelector === undefined){const err621 = {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 = [err621];}else {vErrors.push(err621);}errors++;}if(data145.endSelector === undefined){const err622 = {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 = [err622];}else {vErrors.push(err622);}errors++;}if(data145.id !== undefined){let data225 = data145.id;if(typeof data225 === "string"){if(!(formats0(data225))){const err623 = {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 = [err623];}else {vErrors.push(err623);}errors++;}}else {const err624 = {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 = [err624];}else {vErrors.push(err624);}errors++;}}if(data145.type !== undefined){let data226 = data145.type;if(Array.isArray(data226)){if(data226.length > 2){const err625 = {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 = [err625];}else {vErrors.push(err625);}errors++;}if(data226.length < 2){const err626 = {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 = [err626];}else {vErrors.push(err626);}errors++;}const len37 = data226.length;if(len37 > 0){let data227 = data226[0];if(typeof data227 !== "string"){const err627 = {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 = [err627];}else {vErrors.push(err627);}errors++;}if("RangeSelector" !== data227){const err628 = {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 = [err628];}else {vErrors.push(err628);}errors++;}}if(len37 > 1){let data228 = data226[1];if(typeof data228 !== "string"){const err629 = {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 = [err629];}else {vErrors.push(err629);}errors++;}if("crm:E73_Information_Object" !== data228){const err630 = {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 = [err630];}else {vErrors.push(err630);}errors++;}}}else {const err631 = {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 = [err631];}else {vErrors.push(err631);}errors++;}}if(data145.startSelector !== undefined){let data229 = data145.startSelector;if(data229 && typeof data229 == "object" && !Array.isArray(data229)){if(data229.id === undefined){const err632 = {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 = [err632];}else {vErrors.push(err632);}errors++;}if(data229.type === undefined){const err633 = {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 = [err633];}else {vErrors.push(err633);}errors++;}if(data229.value === undefined){const err634 = {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 = [err634];}else {vErrors.push(err634);}errors++;}if(data229.id !== undefined){let data230 = data229.id;if(typeof data230 === "string"){if(!(formats0(data230))){const err635 = {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 = [err635];}else {vErrors.push(err635);}errors++;}}else {const err636 = {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 = [err636];}else {vErrors.push(err636);}errors++;}}if(data229.type !== undefined){let data231 = data229.type;if(Array.isArray(data231)){if(data231.length > 2){const err637 = {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 = [err637];}else {vErrors.push(err637);}errors++;}if(data231.length < 2){const err638 = {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 = [err638];}else {vErrors.push(err638);}errors++;}const len38 = data231.length;if(len38 > 0){let data232 = data231[0];if(typeof data232 !== "string"){const err639 = {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 = [err639];}else {vErrors.push(err639);}errors++;}if("XPathSelector" !== data232){const err640 = {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 = [err640];}else {vErrors.push(err640);}errors++;}}if(len38 > 1){let data233 = data231[1];if(typeof data233 !== "string"){const err641 = {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 = [err641];}else {vErrors.push(err641);}errors++;}if("crm:E73_Information_Object" !== data233){const err642 = {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 = [err642];}else {vErrors.push(err642);}errors++;}}}else {const err643 = {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 = [err643];}else {vErrors.push(err643);}errors++;}}if(data229.value !== undefined){if(typeof data229.value !== "string"){const err644 = {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 = [err644];}else {vErrors.push(err644);}errors++;}}}else {const err645 = {instancePath:instancePath+"/selector/" + i2+"/startSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err645];}else {vErrors.push(err645);}errors++;}}if(data145.endSelector !== undefined){let data235 = data145.endSelector;if(data235 && typeof data235 == "object" && !Array.isArray(data235)){if(data235.id === undefined){const err646 = {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 = [err646];}else {vErrors.push(err646);}errors++;}if(data235.type === undefined){const err647 = {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 = [err647];}else {vErrors.push(err647);}errors++;}if(data235.value === undefined){const err648 = {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 = [err648];}else {vErrors.push(err648);}errors++;}if(data235.id !== undefined){let data236 = data235.id;if(typeof data236 === "string"){if(!(formats0(data236))){const err649 = {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 = [err649];}else {vErrors.push(err649);}errors++;}}else {const err650 = {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 = [err650];}else {vErrors.push(err650);}errors++;}}if(data235.type !== undefined){let data237 = data235.type;if(Array.isArray(data237)){if(data237.length > 2){const err651 = {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 = [err651];}else {vErrors.push(err651);}errors++;}if(data237.length < 2){const err652 = {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 = [err652];}else {vErrors.push(err652);}errors++;}const len39 = data237.length;if(len39 > 0){let data238 = data237[0];if(typeof data238 !== "string"){const err653 = {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 = [err653];}else {vErrors.push(err653);}errors++;}if("XPathSelector" !== data238){const err654 = {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 = [err654];}else {vErrors.push(err654);}errors++;}}if(len39 > 1){let data239 = data237[1];if(typeof data239 !== "string"){const err655 = {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 = [err655];}else {vErrors.push(err655);}errors++;}if("crm:E73_Information_Object" !== data239){const err656 = {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 = [err656];}else {vErrors.push(err656);}errors++;}}}else {const err657 = {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 = [err657];}else {vErrors.push(err657);}errors++;}}if(data235.value !== undefined){if(typeof data235.value !== "string"){const err658 = {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 = [err658];}else {vErrors.push(err658);}errors++;}}}else {const err659 = {instancePath:instancePath+"/selector/" + i2+"/endSelector",schemaPath:"defs.jsonld#/definitions/xpathSelector/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err659];}else {vErrors.push(err659);}errors++;}}}else {const err660 = {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 = [err660];}else {vErrors.push(err660);}errors++;}var _valid13 = _errs580 === errors;if(_valid13 && valid87){valid87 = false;passing3 = [passing3, 4];}else {if(_valid13){valid87 = true;passing3 = 4;}}}}}if(!valid87){const err661 = {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 = [err661];}else {vErrors.push(err661);}errors++;}else {errors = _errs385;if(vErrors !== null){if(_errs385){vErrors.length = _errs385;}else {vErrors = null;}}}if(!(data145 && typeof data145 == "object" && !Array.isArray(data145))){const err662 = {instancePath:instancePath+"/selector/" + i2,schemaPath:"#/properties/selector/anyOf/1/items/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err662];}else {vErrors.push(err662);}errors++;}}}else {const err663 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf/1/type",keyword:"type",params:{type: "array"},message:"must be array"};if(vErrors === null){vErrors = [err663];}else {vErrors.push(err663);}errors++;}var _valid7 = _errs381 === errors;valid39 = valid39 || _valid7;}if(!valid39){const err664 = {instancePath:instancePath+"/selector",schemaPath:"#/properties/selector/anyOf",keyword:"anyOf",params:{},message:"must match a schema in anyOf"};if(vErrors === null){vErrors = [err664];}else {vErrors.push(err664);}errors++;}else {errors = _errs147;if(vErrors !== null){if(_errs147){vErrors.length = _errs147;}else {vErrors = null;}}}}}else {const err665 = {instancePath,schemaPath:"#/type",keyword:"type",params:{type: "object"},message:"must be object"};if(vErrors === null){vErrors = [err665];}else {vErrors.push(err665);}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":{"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;}
|